Rewrite EscapeCommFunction16 to use EscapeCommFunction.
[wine/wine-kai.git] / configure
blob87207cb5fa2ede9e6c3c0bab0eedc8c9108f48c9
1 #! /bin/sh
3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --disable-debug compile out all debugging messages"
17 ac_help="$ac_help
18 --enable-opengl force usage of OpenGL even if the latter is thread-safe via pthread"
19 ac_help="$ac_help
20 --disable-trace compile out TRACE messages"
21 ac_help="$ac_help
22 --without-curses do not use curses"
23 ac_help="$ac_help
24 --without-reentrant-x compile for use with non-reentrant X libraries"
25 ac_help="$ac_help
26 --with-x use the X Window System"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
31 build=NONE
32 cache_file=./config.cache
33 exec_prefix=NONE
34 host=NONE
35 no_create=
36 nonopt=NONE
37 no_recursion=
38 prefix=NONE
39 program_prefix=NONE
40 program_suffix=NONE
41 program_transform_name=s,x,x,
42 silent=
43 site=
44 srcdir=
45 target=NONE
46 verbose=
47 x_includes=NONE
48 x_libraries=NONE
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
63 subdirs=
64 MFLAGS= MAKEFLAGS=
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
67 ac_max_here_lines=12
69 ac_prev=
70 for ac_option
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
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
85 # Accept the important Cygnus configure options, so we can diagnose typos.
87 case "$ac_option" in
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
95 ac_prev=build ;;
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97 build="$ac_optarg" ;;
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" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
112 -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; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
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; }
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'" ;;
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" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
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
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
153 Configuration:
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
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 [same as prefix]
164 --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]
178 --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
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
184 cat << EOF
185 Host 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]
189 Features 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
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
200 exit 0 ;;
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
207 -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" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
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" ;;
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" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
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 ;;
257 -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" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
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" ;;
323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -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" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
350 exit 0 ;;
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; }
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'" ;;
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; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
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" ;;
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" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
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; }
402 nonopt="$ac_option"
405 esac
406 done
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
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
422 if test "$silent" = yes; then
423 exec 6>/dev/null
424 else
425 exec 6>&1
427 exec 5>./config.log
429 echo "\
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
432 " 1>&5
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
436 ac_configure_args=
437 for ac_arg
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
448 done
450 # NLS nuisances.
451 # 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.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 echo > confdefs.h
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.
467 ac_unique_file=controls/edit.c
469 # Find the source files, if location was not specified.
470 if 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=..
480 else
481 ac_srcdir_defaulted=no
483 if 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; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if 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"
500 for 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"
505 done
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510 else
511 echo "creating cache $cache_file"
512 > $cache_file
515 ac_ext=c
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
522 ac_exeext=
523 ac_objext=o
524 if (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=
532 else
533 ac_n= ac_c='\c' ac_t=
538 ac_aux_dir=
539 for 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
549 done
550 if 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; }
553 ac_config_guess=$ac_aux_dir/config.guess
554 ac_config_sub=$ac_aux_dir/config.sub
555 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559 LIBEXT=so # library type .so or .a
560 TRACE_MSGS=yes # the TRACE() macro
561 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
562 CURSES=yes
563 OPENGL=normal
565 # Check whether --enable-debug or --disable-debug was given.
566 if test "${enable_debug+set}" = set; then
567 enableval="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
572 # Check whether --enable-opengl or --disable-opengl was given.
573 if 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
579 # Check whether --enable-trace or --disable-trace was given.
580 if test "${enable_trace+set}" = set; then
581 enableval="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
586 # Check whether --with-curses or --without-curses was given.
587 if test "${with_curses+set}" = set; then
588 withval="$with_curses"
589 if test "$withval" = "no"; then CURSES="no"; fi
593 # Check whether --with-reentrant-x or --without-reentrant-x was given.
594 if test "${with_reentrant_x+set}" = set; then
595 withval="$with_reentrant_x"
602 if test "$DEBUG_MSGS" = "no"
603 then
604 cat >> confdefs.h <<\EOF
605 #define NO_DEBUG_MSGS 1
610 if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no"
611 then
612 cat >> confdefs.h <<\EOF
613 #define NO_TRACE_MSGS 1
619 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
620 echo "configure:621: checking whether ${MAKE-make} sets \${MAKE}" >&5
621 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
622 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
624 else
625 cat > conftestmake <<\EOF
626 all:
627 @echo 'ac_maketemp="${MAKE}"'
629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
630 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
631 if test -n "$ac_maketemp"; then
632 eval ac_cv_prog_make_${ac_make}_set=yes
633 else
634 eval ac_cv_prog_make_${ac_make}_set=no
636 rm -f conftestmake
638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
639 echo "$ac_t""yes" 1>&6
640 SET_MAKE=
641 else
642 echo "$ac_t""no" 1>&6
643 SET_MAKE="MAKE=${MAKE-make}"
646 # Extract the first word of "gcc", so it can be a program name with args.
647 set dummy gcc; ac_word=$2
648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649 echo "configure:650: checking for $ac_word" >&5
650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
652 else
653 if test -n "$CC"; then
654 ac_cv_prog_CC="$CC" # Let the user override the test.
655 else
656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
657 ac_dummy="$PATH"
658 for ac_dir in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
661 ac_cv_prog_CC="gcc"
662 break
664 done
665 IFS="$ac_save_ifs"
668 CC="$ac_cv_prog_CC"
669 if test -n "$CC"; then
670 echo "$ac_t""$CC" 1>&6
671 else
672 echo "$ac_t""no" 1>&6
675 if test -z "$CC"; then
676 # Extract the first word of "cc", so it can be a program name with args.
677 set dummy cc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682 else
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
685 else
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
687 ac_prog_rejected=no
688 ac_dummy="$PATH"
689 for ac_dir in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
693 ac_prog_rejected=yes
694 continue
696 ac_cv_prog_CC="cc"
697 break
699 done
700 IFS="$ac_save_ifs"
701 if test $ac_prog_rejected = yes; then
702 # We found a bogon in the path, so make sure we never use it.
703 set dummy $ac_cv_prog_CC
704 shift
705 if test $# -gt 0; then
706 # We chose a different compiler from the bogus one.
707 # However, it has the same basename, so the bogon will be chosen
708 # first if we set CC to just the basename; use the full file name.
709 shift
710 set dummy "$ac_dir/$ac_word" "$@"
711 shift
712 ac_cv_prog_CC="$@"
717 CC="$ac_cv_prog_CC"
718 if test -n "$CC"; then
719 echo "$ac_t""$CC" 1>&6
720 else
721 echo "$ac_t""no" 1>&6
724 if test -z "$CC"; then
725 case "`uname -s`" in
726 *win32* | *WIN32*)
727 # Extract the first word of "cl", so it can be a program name with args.
728 set dummy cl; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
733 else
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
736 else
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
738 ac_dummy="$PATH"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
742 ac_cv_prog_CC="cl"
743 break
745 done
746 IFS="$ac_save_ifs"
749 CC="$ac_cv_prog_CC"
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
752 else
753 echo "$ac_t""no" 1>&6
756 esac
758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
762 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
764 ac_ext=c
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
771 cat > conftest.$ac_ext << EOF
773 #line 774 "configure"
774 #include "confdefs.h"
776 main(){return(0);}
778 if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
779 ac_cv_prog_cc_works=yes
780 # If we can't run a trivial program, we are probably using a cross compiler.
781 if (./conftest; exit) 2>/dev/null; then
782 ac_cv_prog_cc_cross=no
783 else
784 ac_cv_prog_cc_cross=yes
786 else
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 ac_cv_prog_cc_works=no
791 rm -fr conftest*
792 ac_ext=c
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp='$CPP $CPPFLAGS'
795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling=$ac_cv_prog_cc_cross
799 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800 if test $ac_cv_prog_cc_works = no; then
801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
803 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
804 echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
805 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806 cross_compiling=$ac_cv_prog_cc_cross
808 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
809 echo "configure:810: checking whether we are using GNU C" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
812 else
813 cat > conftest.c <<EOF
814 #ifdef __GNUC__
815 yes;
816 #endif
818 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
819 ac_cv_prog_gcc=yes
820 else
821 ac_cv_prog_gcc=no
825 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
827 if test $ac_cv_prog_gcc = yes; then
828 GCC=yes
829 else
830 GCC=
833 ac_test_CFLAGS="${CFLAGS+set}"
834 ac_save_CFLAGS="$CFLAGS"
835 CFLAGS=
836 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
837 echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840 else
841 echo 'void f(){}' > conftest.c
842 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
843 ac_cv_prog_cc_g=yes
844 else
845 ac_cv_prog_cc_g=no
847 rm -f conftest*
851 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
852 if test "$ac_test_CFLAGS" = set; then
853 CFLAGS="$ac_save_CFLAGS"
854 elif test $ac_cv_prog_cc_g = yes; then
855 if test "$GCC" = yes; then
856 CFLAGS="-g -O2"
857 else
858 CFLAGS="-g"
860 else
861 if test "$GCC" = yes; then
862 CFLAGS="-O2"
863 else
864 CFLAGS=
868 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
869 echo "configure:870: checking how to run the C preprocessor" >&5
870 # On Suns, sometimes $CPP names a directory.
871 if test -n "$CPP" && test -d "$CPP"; then
872 CPP=
874 if test -z "$CPP"; then
875 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877 else
878 # This must be in double quotes, not single quotes, because CPP may get
879 # substituted into the Makefile and "${CC-cc}" will confuse make.
880 CPP="${CC-cc} -E"
881 # On the NeXT, cc -E runs the code through the compiler's parser,
882 # not just through cpp.
883 cat > conftest.$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
886 #include <assert.h>
887 Syntax Error
889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
890 { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
892 if test -z "$ac_err"; then
894 else
895 echo "$ac_err" >&5
896 echo "configure: failed program was:" >&5
897 cat conftest.$ac_ext >&5
898 rm -rf conftest*
899 CPP="${CC-cc} -E -traditional-cpp"
900 cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
903 #include <assert.h>
904 Syntax Error
906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909 if test -z "$ac_err"; then
911 else
912 echo "$ac_err" >&5
913 echo "configure: failed program was:" >&5
914 cat conftest.$ac_ext >&5
915 rm -rf conftest*
916 CPP="${CC-cc} -nologo -E"
917 cat > conftest.$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
920 #include <assert.h>
921 Syntax Error
923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
928 else
929 echo "$ac_err" >&5
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 rm -rf conftest*
933 CPP=/lib/cpp
935 rm -f conftest*
937 rm -f conftest*
939 rm -f conftest*
940 ac_cv_prog_CPP="$CPP"
942 CPP="$ac_cv_prog_CPP"
943 else
944 ac_cv_prog_CPP="$CPP"
946 echo "$ac_t""$CPP" 1>&6
948 # If we find X, set shell vars x_includes and x_libraries to the
949 # paths, otherwise set no_x=yes.
950 # Uses ac_ vars as temps to allow command line to override cache and checks.
951 # --without-x overrides everything else, but does not touch the cache.
952 echo $ac_n "checking for X""... $ac_c" 1>&6
953 echo "configure:954: checking for X" >&5
955 # Check whether --with-x or --without-x was given.
956 if test "${with_x+set}" = set; then
957 withval="$with_x"
961 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
962 if test "x$with_x" = xno; then
963 # The user explicitly disabled X.
964 have_x=disabled
965 else
966 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
967 # Both variables are already set.
968 have_x=yes
969 else
970 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 # One or both of the vars are not set, and there is no cached value.
974 ac_x_includes=NO ac_x_libraries=NO
975 rm -fr conftestdir
976 if mkdir conftestdir; then
977 cd conftestdir
978 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
979 cat > Imakefile <<'EOF'
980 acfindx:
981 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
983 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
985 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
986 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
987 for ac_extension in a so sl; do
988 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
989 test -f $ac_im_libdir/libX11.$ac_extension; then
990 ac_im_usrlibdir=$ac_im_libdir; break
992 done
993 # Screen out bogus values from the imake configuration. They are
994 # bogus both because they are the default anyway, and because
995 # using them would break gcc on systems where it needs fixed includes.
996 case "$ac_im_incroot" in
997 /usr/include) ;;
998 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
999 esac
1000 case "$ac_im_usrlibdir" in
1001 /usr/lib | /lib) ;;
1002 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1003 esac
1005 cd ..
1006 rm -fr conftestdir
1009 if test "$ac_x_includes" = NO; then
1010 # Guess where to find include files, by looking for this one X11 .h file.
1011 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1013 # First, try using that file with no special directory specified.
1014 cat > conftest.$ac_ext <<EOF
1015 #line 1016 "configure"
1016 #include "confdefs.h"
1017 #include <$x_direct_test_include>
1019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1020 { (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1022 if test -z "$ac_err"; then
1023 rm -rf conftest*
1024 # We can compile using X headers with no special include directory.
1025 ac_x_includes=
1026 else
1027 echo "$ac_err" >&5
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1030 rm -rf conftest*
1031 # Look for the header file in a standard set of common directories.
1032 # Check X11 before X11Rn because it is often a symlink to the current release.
1033 for ac_dir in \
1034 /usr/X11/include \
1035 /usr/X11R6/include \
1036 /usr/X11R5/include \
1037 /usr/X11R4/include \
1039 /usr/include/X11 \
1040 /usr/include/X11R6 \
1041 /usr/include/X11R5 \
1042 /usr/include/X11R4 \
1044 /usr/local/X11/include \
1045 /usr/local/X11R6/include \
1046 /usr/local/X11R5/include \
1047 /usr/local/X11R4/include \
1049 /usr/local/include/X11 \
1050 /usr/local/include/X11R6 \
1051 /usr/local/include/X11R5 \
1052 /usr/local/include/X11R4 \
1054 /usr/X386/include \
1055 /usr/x386/include \
1056 /usr/XFree86/include/X11 \
1058 /usr/include \
1059 /usr/local/include \
1060 /usr/unsupported/include \
1061 /usr/athena/include \
1062 /usr/local/x11r5/include \
1063 /usr/lpp/Xamples/include \
1065 /usr/openwin/include \
1066 /usr/openwin/share/include \
1069 if test -r "$ac_dir/$x_direct_test_include"; then
1070 ac_x_includes=$ac_dir
1071 break
1073 done
1075 rm -f conftest*
1076 fi # $ac_x_includes = NO
1078 if test "$ac_x_libraries" = NO; then
1079 # Check for the libraries.
1081 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1082 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1084 # See if we find them without any special options.
1085 # Don't add to $LIBS permanently.
1086 ac_save_LIBS="$LIBS"
1087 LIBS="-l$x_direct_test_library $LIBS"
1088 cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1092 int main() {
1093 ${x_direct_test_function}()
1094 ; return 0; }
1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1097 rm -rf conftest*
1098 LIBS="$ac_save_LIBS"
1099 # We can link X programs with no special library path.
1100 ac_x_libraries=
1101 else
1102 echo "configure: failed program was:" >&5
1103 cat conftest.$ac_ext >&5
1104 rm -rf conftest*
1105 LIBS="$ac_save_LIBS"
1106 # First see if replacing the include by lib works.
1107 # Check X11 before X11Rn because it is often a symlink to the current release.
1108 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1109 /usr/X11/lib \
1110 /usr/X11R6/lib \
1111 /usr/X11R5/lib \
1112 /usr/X11R4/lib \
1114 /usr/lib/X11 \
1115 /usr/lib/X11R6 \
1116 /usr/lib/X11R5 \
1117 /usr/lib/X11R4 \
1119 /usr/local/X11/lib \
1120 /usr/local/X11R6/lib \
1121 /usr/local/X11R5/lib \
1122 /usr/local/X11R4/lib \
1124 /usr/local/lib/X11 \
1125 /usr/local/lib/X11R6 \
1126 /usr/local/lib/X11R5 \
1127 /usr/local/lib/X11R4 \
1129 /usr/X386/lib \
1130 /usr/x386/lib \
1131 /usr/XFree86/lib/X11 \
1133 /usr/lib \
1134 /usr/local/lib \
1135 /usr/unsupported/lib \
1136 /usr/athena/lib \
1137 /usr/local/x11r5/lib \
1138 /usr/lpp/Xamples/lib \
1139 /lib/usr/lib/X11 \
1141 /usr/openwin/lib \
1142 /usr/openwin/share/lib \
1145 for ac_extension in a so sl; do
1146 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1147 ac_x_libraries=$ac_dir
1148 break 2
1150 done
1151 done
1153 rm -f conftest*
1154 fi # $ac_x_libraries = NO
1156 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1157 # Didn't find X anywhere. Cache the known absence of X.
1158 ac_cv_have_x="have_x=no"
1159 else
1160 # Record where we found X for the cache.
1161 ac_cv_have_x="have_x=yes \
1162 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1166 eval "$ac_cv_have_x"
1167 fi # $with_x != no
1169 if test "$have_x" != yes; then
1170 echo "$ac_t""$have_x" 1>&6
1171 no_x=yes
1172 else
1173 # If each of the values was on the command line, it overrides each guess.
1174 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1175 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1176 # Update the cache value to reflect the command line values.
1177 ac_cv_have_x="have_x=yes \
1178 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1179 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1182 if test "$no_x" = yes; then
1183 # Not all programs may use this symbol, but it does not hurt to define it.
1184 cat >> confdefs.h <<\EOF
1185 #define X_DISPLAY_MISSING 1
1188 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1189 else
1190 if test -n "$x_includes"; then
1191 X_CFLAGS="$X_CFLAGS -I$x_includes"
1194 # It would also be nice to do this for all -L options, not just this one.
1195 if test -n "$x_libraries"; then
1196 X_LIBS="$X_LIBS -L$x_libraries"
1197 # For Solaris; some versions of Sun CC require a space after -R and
1198 # others require no space. Words are not sufficient . . . .
1199 case "`(uname -sr) 2>/dev/null`" in
1200 "SunOS 5"*)
1201 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether -R must be followed by a space" >&5
1203 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1204 cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1208 int main() {
1210 ; return 0; }
1212 if { (eval echo configure:1213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1213 rm -rf conftest*
1214 ac_R_nospace=yes
1215 else
1216 echo "configure: failed program was:" >&5
1217 cat conftest.$ac_ext >&5
1218 rm -rf conftest*
1219 ac_R_nospace=no
1221 rm -f conftest*
1222 if test $ac_R_nospace = yes; then
1223 echo "$ac_t""no" 1>&6
1224 X_LIBS="$X_LIBS -R$x_libraries"
1225 else
1226 LIBS="$ac_xsave_LIBS -R $x_libraries"
1227 cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1231 int main() {
1233 ; return 0; }
1235 if { (eval echo configure:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1236 rm -rf conftest*
1237 ac_R_space=yes
1238 else
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1241 rm -rf conftest*
1242 ac_R_space=no
1244 rm -f conftest*
1245 if test $ac_R_space = yes; then
1246 echo "$ac_t""yes" 1>&6
1247 X_LIBS="$X_LIBS -R $x_libraries"
1248 else
1249 echo "$ac_t""neither works" 1>&6
1252 LIBS="$ac_xsave_LIBS"
1253 esac
1256 # Check for system-dependent libraries X programs must link with.
1257 # Do this before checking for the system-independent R6 libraries
1258 # (-lICE), since we may need -lsocket or whatever for X linking.
1260 if test "$ISC" = yes; then
1261 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1262 else
1263 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1264 # libraries were built with DECnet support. And karl@cs.umb.edu says
1265 # the Alpha needs dnet_stub (dnet does not exist).
1266 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1267 echo "configure:1268: checking for dnet_ntoa in -ldnet" >&5
1268 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1271 else
1272 ac_save_LIBS="$LIBS"
1273 LIBS="-ldnet $LIBS"
1274 cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1277 /* Override any gcc2 internal prototype to avoid an error. */
1278 /* We use char because int might match the return type of a gcc2
1279 builtin and then its argument prototype would still apply. */
1280 char dnet_ntoa();
1282 int main() {
1283 dnet_ntoa()
1284 ; return 0; }
1286 if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1287 rm -rf conftest*
1288 eval "ac_cv_lib_$ac_lib_var=yes"
1289 else
1290 echo "configure: failed program was:" >&5
1291 cat conftest.$ac_ext >&5
1292 rm -rf conftest*
1293 eval "ac_cv_lib_$ac_lib_var=no"
1295 rm -f conftest*
1296 LIBS="$ac_save_LIBS"
1299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1300 echo "$ac_t""yes" 1>&6
1301 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1302 else
1303 echo "$ac_t""no" 1>&6
1306 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1307 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1308 echo "configure:1309: checking for dnet_ntoa in -ldnet_stub" >&5
1309 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313 ac_save_LIBS="$LIBS"
1314 LIBS="-ldnet_stub $LIBS"
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 /* Override any gcc2 internal prototype to avoid an error. */
1319 /* We use char because int might match the return type of a gcc2
1320 builtin and then its argument prototype would still apply. */
1321 char dnet_ntoa();
1323 int main() {
1324 dnet_ntoa()
1325 ; return 0; }
1327 if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1328 rm -rf conftest*
1329 eval "ac_cv_lib_$ac_lib_var=yes"
1330 else
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1333 rm -rf conftest*
1334 eval "ac_cv_lib_$ac_lib_var=no"
1336 rm -f conftest*
1337 LIBS="$ac_save_LIBS"
1340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1342 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1343 else
1344 echo "$ac_t""no" 1>&6
1349 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1350 # to get the SysV transport functions.
1351 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1352 # needs -lnsl.
1353 # The nsl library prevents programs from opening the X display
1354 # on Irix 5.2, according to dickey@clark.net.
1355 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1356 echo "configure:1357: checking for gethostbyname" >&5
1357 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1359 else
1360 cat > conftest.$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1363 /* System header to define __stub macros and hopefully few prototypes,
1364 which can conflict with char gethostbyname(); below. */
1365 #include <assert.h>
1366 /* Override any gcc2 internal prototype to avoid an error. */
1367 /* We use char because int might match the return type of a gcc2
1368 builtin and then its argument prototype would still apply. */
1369 char gethostbyname();
1371 int main() {
1373 /* The GNU C library defines this for functions which it implements
1374 to always fail with ENOSYS. Some functions are actually named
1375 something starting with __ and the normal name is an alias. */
1376 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1377 choke me
1378 #else
1379 gethostbyname();
1380 #endif
1382 ; return 0; }
1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1385 rm -rf conftest*
1386 eval "ac_cv_func_gethostbyname=yes"
1387 else
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1390 rm -rf conftest*
1391 eval "ac_cv_func_gethostbyname=no"
1393 rm -f conftest*
1396 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1399 else
1400 echo "$ac_t""no" 1>&6
1403 if test $ac_cv_func_gethostbyname = no; then
1404 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1405 echo "configure:1406: checking for gethostbyname in -lnsl" >&5
1406 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1409 else
1410 ac_save_LIBS="$LIBS"
1411 LIBS="-lnsl $LIBS"
1412 cat > conftest.$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 /* Override any gcc2 internal prototype to avoid an error. */
1416 /* We use char because int might match the return type of a gcc2
1417 builtin and then its argument prototype would still apply. */
1418 char gethostbyname();
1420 int main() {
1421 gethostbyname()
1422 ; return 0; }
1424 if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1425 rm -rf conftest*
1426 eval "ac_cv_lib_$ac_lib_var=yes"
1427 else
1428 echo "configure: failed program was:" >&5
1429 cat conftest.$ac_ext >&5
1430 rm -rf conftest*
1431 eval "ac_cv_lib_$ac_lib_var=no"
1433 rm -f conftest*
1434 LIBS="$ac_save_LIBS"
1437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1438 echo "$ac_t""yes" 1>&6
1439 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1440 else
1441 echo "$ac_t""no" 1>&6
1446 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1447 # socket/setsockopt and other routines are undefined under SCO ODT
1448 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1449 # on later versions), says simon@lia.di.epfl.ch: it contains
1450 # gethostby* variants that don't use the nameserver (or something).
1451 # -lsocket must be given before -lnsl if both are needed.
1452 # We assume that if connect needs -lnsl, so does gethostbyname.
1453 echo $ac_n "checking for connect""... $ac_c" 1>&6
1454 echo "configure:1455: checking for connect" >&5
1455 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1457 else
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1461 /* System header to define __stub macros and hopefully few prototypes,
1462 which can conflict with char connect(); below. */
1463 #include <assert.h>
1464 /* Override any gcc2 internal prototype to avoid an error. */
1465 /* We use char because int might match the return type of a gcc2
1466 builtin and then its argument prototype would still apply. */
1467 char connect();
1469 int main() {
1471 /* The GNU C library defines this for functions which it implements
1472 to always fail with ENOSYS. Some functions are actually named
1473 something starting with __ and the normal name is an alias. */
1474 #if defined (__stub_connect) || defined (__stub___connect)
1475 choke me
1476 #else
1477 connect();
1478 #endif
1480 ; return 0; }
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1483 rm -rf conftest*
1484 eval "ac_cv_func_connect=yes"
1485 else
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1488 rm -rf conftest*
1489 eval "ac_cv_func_connect=no"
1491 rm -f conftest*
1494 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1495 echo "$ac_t""yes" 1>&6
1497 else
1498 echo "$ac_t""no" 1>&6
1501 if test $ac_cv_func_connect = no; then
1502 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1503 echo "configure:1504: checking for connect in -lsocket" >&5
1504 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1507 else
1508 ac_save_LIBS="$LIBS"
1509 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1510 cat > conftest.$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513 /* Override any gcc2 internal prototype to avoid an error. */
1514 /* We use char because int might match the return type of a gcc2
1515 builtin and then its argument prototype would still apply. */
1516 char connect();
1518 int main() {
1519 connect()
1520 ; return 0; }
1522 if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1523 rm -rf conftest*
1524 eval "ac_cv_lib_$ac_lib_var=yes"
1525 else
1526 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5
1528 rm -rf conftest*
1529 eval "ac_cv_lib_$ac_lib_var=no"
1531 rm -f conftest*
1532 LIBS="$ac_save_LIBS"
1535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1536 echo "$ac_t""yes" 1>&6
1537 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1538 else
1539 echo "$ac_t""no" 1>&6
1544 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1545 echo $ac_n "checking for remove""... $ac_c" 1>&6
1546 echo "configure:1547: checking for remove" >&5
1547 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549 else
1550 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1553 /* System header to define __stub macros and hopefully few prototypes,
1554 which can conflict with char remove(); below. */
1555 #include <assert.h>
1556 /* Override any gcc2 internal prototype to avoid an error. */
1557 /* We use char because int might match the return type of a gcc2
1558 builtin and then its argument prototype would still apply. */
1559 char remove();
1561 int main() {
1563 /* The GNU C library defines this for functions which it implements
1564 to always fail with ENOSYS. Some functions are actually named
1565 something starting with __ and the normal name is an alias. */
1566 #if defined (__stub_remove) || defined (__stub___remove)
1567 choke me
1568 #else
1569 remove();
1570 #endif
1572 ; return 0; }
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1575 rm -rf conftest*
1576 eval "ac_cv_func_remove=yes"
1577 else
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1580 rm -rf conftest*
1581 eval "ac_cv_func_remove=no"
1583 rm -f conftest*
1586 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1589 else
1590 echo "$ac_t""no" 1>&6
1593 if test $ac_cv_func_remove = no; then
1594 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1595 echo "configure:1596: checking for remove in -lposix" >&5
1596 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1599 else
1600 ac_save_LIBS="$LIBS"
1601 LIBS="-lposix $LIBS"
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 /* Override any gcc2 internal prototype to avoid an error. */
1606 /* We use char because int might match the return type of a gcc2
1607 builtin and then its argument prototype would still apply. */
1608 char remove();
1610 int main() {
1611 remove()
1612 ; return 0; }
1614 if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1615 rm -rf conftest*
1616 eval "ac_cv_lib_$ac_lib_var=yes"
1617 else
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1620 rm -rf conftest*
1621 eval "ac_cv_lib_$ac_lib_var=no"
1623 rm -f conftest*
1624 LIBS="$ac_save_LIBS"
1627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1628 echo "$ac_t""yes" 1>&6
1629 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1630 else
1631 echo "$ac_t""no" 1>&6
1636 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1637 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1638 echo "configure:1639: checking for shmat" >&5
1639 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1641 else
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 /* System header to define __stub macros and hopefully few prototypes,
1646 which can conflict with char shmat(); below. */
1647 #include <assert.h>
1648 /* Override any gcc2 internal prototype to avoid an error. */
1649 /* We use char because int might match the return type of a gcc2
1650 builtin and then its argument prototype would still apply. */
1651 char shmat();
1653 int main() {
1655 /* The GNU C library defines this for functions which it implements
1656 to always fail with ENOSYS. Some functions are actually named
1657 something starting with __ and the normal name is an alias. */
1658 #if defined (__stub_shmat) || defined (__stub___shmat)
1659 choke me
1660 #else
1661 shmat();
1662 #endif
1664 ; return 0; }
1666 if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1667 rm -rf conftest*
1668 eval "ac_cv_func_shmat=yes"
1669 else
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1672 rm -rf conftest*
1673 eval "ac_cv_func_shmat=no"
1675 rm -f conftest*
1678 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1679 echo "$ac_t""yes" 1>&6
1681 else
1682 echo "$ac_t""no" 1>&6
1685 if test $ac_cv_func_shmat = no; then
1686 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1687 echo "configure:1688: checking for shmat in -lipc" >&5
1688 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1691 else
1692 ac_save_LIBS="$LIBS"
1693 LIBS="-lipc $LIBS"
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1697 /* Override any gcc2 internal prototype to avoid an error. */
1698 /* We use char because int might match the return type of a gcc2
1699 builtin and then its argument prototype would still apply. */
1700 char shmat();
1702 int main() {
1703 shmat()
1704 ; return 0; }
1706 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1707 rm -rf conftest*
1708 eval "ac_cv_lib_$ac_lib_var=yes"
1709 else
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1712 rm -rf conftest*
1713 eval "ac_cv_lib_$ac_lib_var=no"
1715 rm -f conftest*
1716 LIBS="$ac_save_LIBS"
1719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1722 else
1723 echo "$ac_t""no" 1>&6
1729 # Check for libraries that X11R6 Xt/Xaw programs need.
1730 ac_save_LDFLAGS="$LDFLAGS"
1731 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1732 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1733 # check for ICE first), but we must link in the order -lSM -lICE or
1734 # we get undefined symbols. So assume we have SM if we have ICE.
1735 # These have to be linked with before -lX11, unlike the other
1736 # libraries we check for below, so use a different variable.
1737 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1738 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1739 echo "configure:1740: checking for IceConnectionNumber in -lICE" >&5
1740 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1743 else
1744 ac_save_LIBS="$LIBS"
1745 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1746 cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 /* Override any gcc2 internal prototype to avoid an error. */
1750 /* We use char because int might match the return type of a gcc2
1751 builtin and then its argument prototype would still apply. */
1752 char IceConnectionNumber();
1754 int main() {
1755 IceConnectionNumber()
1756 ; return 0; }
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1759 rm -rf conftest*
1760 eval "ac_cv_lib_$ac_lib_var=yes"
1761 else
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1764 rm -rf conftest*
1765 eval "ac_cv_lib_$ac_lib_var=no"
1767 rm -f conftest*
1768 LIBS="$ac_save_LIBS"
1771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1774 else
1775 echo "$ac_t""no" 1>&6
1778 LDFLAGS="$ac_save_LDFLAGS"
1782 for ac_prog in 'bison -y' byacc
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_word" >&5
1788 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1790 else
1791 if test -n "$YACC"; then
1792 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1793 else
1794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1795 ac_dummy="$PATH"
1796 for ac_dir in $ac_dummy; do
1797 test -z "$ac_dir" && ac_dir=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_YACC="$ac_prog"
1800 break
1802 done
1803 IFS="$ac_save_ifs"
1806 YACC="$ac_cv_prog_YACC"
1807 if test -n "$YACC"; then
1808 echo "$ac_t""$YACC" 1>&6
1809 else
1810 echo "$ac_t""no" 1>&6
1813 test -n "$YACC" && break
1814 done
1815 test -n "$YACC" || YACC="yacc"
1817 # Extract the first word of "flex", so it can be a program name with args.
1818 set dummy flex; ac_word=$2
1819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1820 echo "configure:1821: checking for $ac_word" >&5
1821 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1823 else
1824 if test -n "$LEX"; then
1825 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1826 else
1827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1828 ac_dummy="$PATH"
1829 for ac_dir in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir=.
1831 if test -f $ac_dir/$ac_word; then
1832 ac_cv_prog_LEX="flex"
1833 break
1835 done
1836 IFS="$ac_save_ifs"
1837 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1840 LEX="$ac_cv_prog_LEX"
1841 if test -n "$LEX"; then
1842 echo "$ac_t""$LEX" 1>&6
1843 else
1844 echo "$ac_t""no" 1>&6
1847 if test -z "$LEXLIB"
1848 then
1849 case "$LEX" in
1850 flex*) ac_lib=fl ;;
1851 *) ac_lib=l ;;
1852 esac
1853 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1854 echo "configure:1855: checking for yywrap in -l$ac_lib" >&5
1855 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859 ac_save_LIBS="$LIBS"
1860 LIBS="-l$ac_lib $LIBS"
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1867 char yywrap();
1869 int main() {
1870 yywrap()
1871 ; return 0; }
1873 if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1874 rm -rf conftest*
1875 eval "ac_cv_lib_$ac_lib_var=yes"
1876 else
1877 echo "configure: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1879 rm -rf conftest*
1880 eval "ac_cv_lib_$ac_lib_var=no"
1882 rm -f conftest*
1883 LIBS="$ac_save_LIBS"
1886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1888 LEXLIB="-l$ac_lib"
1889 else
1890 echo "$ac_t""no" 1>&6
1895 for ac_prog in $LEX flex lex
1897 # Extract the first word of "$ac_prog", so it can be a program name with args.
1898 set dummy $ac_prog; ac_word=$2
1899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1900 echo "configure:1901: checking for $ac_word" >&5
1901 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1903 else
1904 if test -n "$XLEX"; then
1905 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1906 else
1907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1908 ac_dummy="$PATH"
1909 for ac_dir in $ac_dummy; do
1910 test -z "$ac_dir" && ac_dir=.
1911 if test -f $ac_dir/$ac_word; then
1912 ac_cv_prog_XLEX="$ac_prog"
1913 break
1915 done
1916 IFS="$ac_save_ifs"
1919 XLEX="$ac_cv_prog_XLEX"
1920 if test -n "$XLEX"; then
1921 echo "$ac_t""$XLEX" 1>&6
1922 else
1923 echo "$ac_t""no" 1>&6
1926 test -n "$XLEX" && break
1927 done
1928 test -n "$XLEX" || XLEX="none"
1930 if test "$XLEX" = "none"
1931 then
1932 echo "*** Error: No suitable lex found. ***"
1933 echo " Please install the 'flex' package."
1934 exit 1
1936 # Extract the first word of "ranlib", so it can be a program name with args.
1937 set dummy ranlib; ac_word=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1942 else
1943 if test -n "$RANLIB"; then
1944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1945 else
1946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1947 ac_dummy="$PATH"
1948 for ac_dir in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir=.
1950 if test -f $ac_dir/$ac_word; then
1951 ac_cv_prog_RANLIB="ranlib"
1952 break
1954 done
1955 IFS="$ac_save_ifs"
1956 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1959 RANLIB="$ac_cv_prog_RANLIB"
1960 if test -n "$RANLIB"; then
1961 echo "$ac_t""$RANLIB" 1>&6
1962 else
1963 echo "$ac_t""no" 1>&6
1966 # Find a good install program. We prefer a C program (faster),
1967 # so one script is as good as another. But avoid the broken or
1968 # incompatible versions:
1969 # SysV /etc/install, /usr/sbin/install
1970 # SunOS /usr/etc/install
1971 # IRIX /sbin/install
1972 # AIX /bin/install
1973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1976 # ./install, which can be erroneously created by make from ./install.sh.
1977 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1978 echo "configure:1979: checking for a BSD compatible install" >&5
1979 if test -z "$INSTALL"; then
1980 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1982 else
1983 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1984 for ac_dir in $PATH; do
1985 # Account for people who put trailing slashes in PATH elements.
1986 case "$ac_dir/" in
1987 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1989 # OSF1 and SCO ODT 3.0 have their own names for install.
1990 # Don't use installbsd from OSF since it installs stuff as root
1991 # by default.
1992 for ac_prog in ginstall scoinst install; do
1993 if test -f $ac_dir/$ac_prog; then
1994 if test $ac_prog = install &&
1995 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1996 # AIX install. It has an incompatible calling convention.
1998 else
1999 ac_cv_path_install="$ac_dir/$ac_prog -c"
2000 break 2
2003 done
2005 esac
2006 done
2007 IFS="$ac_save_IFS"
2010 if test "${ac_cv_path_install+set}" = set; then
2011 INSTALL="$ac_cv_path_install"
2012 else
2013 # As a last resort, use the slow shell script. We don't cache a
2014 # path for INSTALL within a source directory, because that will
2015 # break other packages using the cache if that directory is
2016 # removed, or if the path is relative.
2017 INSTALL="$ac_install_sh"
2020 echo "$ac_t""$INSTALL" 1>&6
2022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2023 # It thinks the first close brace ends the variable substitution.
2024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2030 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2031 echo "configure:2032: checking whether ln -s works" >&5
2032 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2034 else
2035 rm -f conftestdata
2036 if ln -s X conftestdata 2>/dev/null
2037 then
2038 rm -f conftestdata
2039 ac_cv_prog_LN_S="ln -s"
2040 else
2041 ac_cv_prog_LN_S=ln
2044 LN_S="$ac_cv_prog_LN_S"
2045 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2046 echo "$ac_t""yes" 1>&6
2047 else
2048 echo "$ac_t""no" 1>&6
2051 # Extract the first word of "c2man", so it can be a program name with args.
2052 set dummy c2man; ac_word=$2
2053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2054 echo "configure:2055: checking for $ac_word" >&5
2055 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2057 else
2058 if test -n "$C2MAN"; then
2059 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2060 else
2061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2062 ac_dummy="$PATH"
2063 for ac_dir in $ac_dummy; do
2064 test -z "$ac_dir" && ac_dir=.
2065 if test -f $ac_dir/$ac_word; then
2066 ac_cv_prog_C2MAN="c2man"
2067 break
2069 done
2070 IFS="$ac_save_ifs"
2071 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
2074 C2MAN="$ac_cv_prog_C2MAN"
2075 if test -n "$C2MAN"; then
2076 echo "$ac_t""$C2MAN" 1>&6
2077 else
2078 echo "$ac_t""no" 1>&6
2081 # Extract the first word of "ldconfig", so it can be a program name with args.
2082 set dummy ldconfig; ac_word=$2
2083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_word" >&5
2085 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2087 else
2088 case "$LDCONFIG" in
2090 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2092 ?:/*)
2093 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2097 ac_dummy="/sbin:/usr/sbin:$PATH"
2098 for ac_dir in $ac_dummy; do
2099 test -z "$ac_dir" && ac_dir=.
2100 if test -f $ac_dir/$ac_word; then
2101 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2102 break
2104 done
2105 IFS="$ac_save_ifs"
2106 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2108 esac
2110 LDCONFIG="$ac_cv_path_LDCONFIG"
2111 if test -n "$LDCONFIG"; then
2112 echo "$ac_t""$LDCONFIG" 1>&6
2113 else
2114 echo "$ac_t""no" 1>&6
2117 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2118 echo "configure:2119: checking for Cygwin environment" >&5
2119 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2121 else
2122 cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2126 int main() {
2128 #ifndef __CYGWIN__
2129 #define __CYGWIN__ __CYGWIN32__
2130 #endif
2131 return __CYGWIN__;
2132 ; return 0; }
2134 if { (eval echo configure:2135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2135 rm -rf conftest*
2136 ac_cv_cygwin=yes
2137 else
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2140 rm -rf conftest*
2141 ac_cv_cygwin=no
2143 rm -f conftest*
2144 rm -f conftest*
2147 echo "$ac_t""$ac_cv_cygwin" 1>&6
2148 CYGWIN=
2149 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2150 # Extract the first word of "dllwrap", so it can be a program name with args.
2151 set dummy dllwrap; ac_word=$2
2152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_word" >&5
2154 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2156 else
2157 if test -n "$DLLWRAP"; then
2158 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2159 else
2160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2161 ac_dummy="$PATH"
2162 for ac_dir in $ac_dummy; do
2163 test -z "$ac_dir" && ac_dir=.
2164 if test -f $ac_dir/$ac_word; then
2165 ac_cv_prog_DLLWRAP="dllwrap"
2166 break
2168 done
2169 IFS="$ac_save_ifs"
2170 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2173 DLLWRAP="$ac_cv_prog_DLLWRAP"
2174 if test -n "$DLLWRAP"; then
2175 echo "$ac_t""$DLLWRAP" 1>&6
2176 else
2177 echo "$ac_t""no" 1>&6
2181 for ac_prog in lclint lint
2183 # Extract the first word of "$ac_prog", so it can be a program name with args.
2184 set dummy $ac_prog; ac_word=$2
2185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2186 echo "configure:2187: checking for $ac_word" >&5
2187 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2189 else
2190 if test -n "$LINT"; then
2191 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2192 else
2193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2194 ac_dummy="$PATH"
2195 for ac_dir in $ac_dummy; do
2196 test -z "$ac_dir" && ac_dir=.
2197 if test -f $ac_dir/$ac_word; then
2198 ac_cv_prog_LINT="$ac_prog"
2199 break
2201 done
2202 IFS="$ac_save_ifs"
2205 LINT="$ac_cv_prog_LINT"
2206 if test -n "$LINT"; then
2207 echo "$ac_t""$LINT" 1>&6
2208 else
2209 echo "$ac_t""no" 1>&6
2212 test -n "$LINT" && break
2213 done
2215 if test "$LINT" = "lint"
2216 then
2217 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2222 if test "$CYGWIN" = "yes"
2223 then
2224 LDCOMBINE="ld -r --enable-stdcall-fixup"
2225 else
2226 LDCOMBINE="ld -r"
2231 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2232 echo "configure:2233: checking for sqrt in -lm" >&5
2233 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 ac_save_LIBS="$LIBS"
2238 LIBS="-lm $LIBS"
2239 cat > conftest.$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2242 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2245 char sqrt();
2247 int main() {
2248 sqrt()
2249 ; return 0; }
2251 if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2252 rm -rf conftest*
2253 eval "ac_cv_lib_$ac_lib_var=yes"
2254 else
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 rm -rf conftest*
2258 eval "ac_cv_lib_$ac_lib_var=no"
2260 rm -f conftest*
2261 LIBS="$ac_save_LIBS"
2264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2268 cat >> confdefs.h <<EOF
2269 #define $ac_tr_lib 1
2272 LIBS="-lm $LIBS"
2274 else
2275 echo "$ac_t""no" 1>&6
2278 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2279 echo "configure:2280: checking for i386_set_ldt in -li386" >&5
2280 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 ac_save_LIBS="$LIBS"
2285 LIBS="-li386 $LIBS"
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 /* Override any gcc2 internal prototype to avoid an error. */
2290 /* We use char because int might match the return type of a gcc2
2291 builtin and then its argument prototype would still apply. */
2292 char i386_set_ldt();
2294 int main() {
2295 i386_set_ldt()
2296 ; return 0; }
2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2299 rm -rf conftest*
2300 eval "ac_cv_lib_$ac_lib_var=yes"
2301 else
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2304 rm -rf conftest*
2305 eval "ac_cv_lib_$ac_lib_var=no"
2307 rm -f conftest*
2308 LIBS="$ac_save_LIBS"
2311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2312 echo "$ac_t""yes" 1>&6
2313 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2315 cat >> confdefs.h <<EOF
2316 #define $ac_tr_lib 1
2319 LIBS="-li386 $LIBS"
2321 else
2322 echo "$ac_t""no" 1>&6
2325 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2326 echo "configure:2327: checking for _oss_ioctl in -lossaudio" >&5
2327 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330 else
2331 ac_save_LIBS="$LIBS"
2332 LIBS="-lossaudio $LIBS"
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336 /* Override any gcc2 internal prototype to avoid an error. */
2337 /* We use char because int might match the return type of a gcc2
2338 builtin and then its argument prototype would still apply. */
2339 char _oss_ioctl();
2341 int main() {
2342 _oss_ioctl()
2343 ; return 0; }
2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2346 rm -rf conftest*
2347 eval "ac_cv_lib_$ac_lib_var=yes"
2348 else
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 rm -rf conftest*
2352 eval "ac_cv_lib_$ac_lib_var=no"
2354 rm -f conftest*
2355 LIBS="$ac_save_LIBS"
2358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2362 cat >> confdefs.h <<EOF
2363 #define $ac_tr_lib 1
2366 LIBS="-lossaudio $LIBS"
2368 else
2369 echo "$ac_t""no" 1>&6
2372 for ac_func in iswalnum
2374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_func" >&5
2376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2378 else
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $ac_func(); below. */
2384 #include <assert.h>
2385 /* Override any gcc2 internal prototype to avoid an error. */
2386 /* We use char because int might match the return type of a gcc2
2387 builtin and then its argument prototype would still apply. */
2388 char $ac_func();
2390 int main() {
2392 /* The GNU C library defines this for functions which it implements
2393 to always fail with ENOSYS. Some functions are actually named
2394 something starting with __ and the normal name is an alias. */
2395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2396 choke me
2397 #else
2398 $ac_func();
2399 #endif
2401 ; return 0; }
2403 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2404 rm -rf conftest*
2405 eval "ac_cv_func_$ac_func=yes"
2406 else
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2409 rm -rf conftest*
2410 eval "ac_cv_func_$ac_func=no"
2412 rm -f conftest*
2415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2418 cat >> confdefs.h <<EOF
2419 #define $ac_tr_func 1
2422 else
2423 echo "$ac_t""no" 1>&6
2424 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2425 echo "configure:2426: checking for iswalnum in -lw" >&5
2426 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 ac_save_LIBS="$LIBS"
2431 LIBS="-lw $LIBS"
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 /* Override any gcc2 internal prototype to avoid an error. */
2436 /* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2438 char iswalnum();
2440 int main() {
2441 iswalnum()
2442 ; return 0; }
2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2445 rm -rf conftest*
2446 eval "ac_cv_lib_$ac_lib_var=yes"
2447 else
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2450 rm -rf conftest*
2451 eval "ac_cv_lib_$ac_lib_var=no"
2453 rm -f conftest*
2454 LIBS="$ac_save_LIBS"
2457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2458 echo "$ac_t""yes" 1>&6
2459 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2460 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2461 cat >> confdefs.h <<EOF
2462 #define $ac_tr_lib 1
2465 LIBS="-lw $LIBS"
2467 else
2468 echo "$ac_t""no" 1>&6
2472 done
2474 for ac_func in gethostbyname
2476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_func" >&5
2478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2484 /* System header to define __stub macros and hopefully few prototypes,
2485 which can conflict with char $ac_func(); below. */
2486 #include <assert.h>
2487 /* Override any gcc2 internal prototype to avoid an error. */
2488 /* We use char because int might match the return type of a gcc2
2489 builtin and then its argument prototype would still apply. */
2490 char $ac_func();
2492 int main() {
2494 /* The GNU C library defines this for functions which it implements
2495 to always fail with ENOSYS. Some functions are actually named
2496 something starting with __ and the normal name is an alias. */
2497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2498 choke me
2499 #else
2500 $ac_func();
2501 #endif
2503 ; return 0; }
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2506 rm -rf conftest*
2507 eval "ac_cv_func_$ac_func=yes"
2508 else
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2511 rm -rf conftest*
2512 eval "ac_cv_func_$ac_func=no"
2514 rm -f conftest*
2517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2520 cat >> confdefs.h <<EOF
2521 #define $ac_tr_func 1
2524 else
2525 echo "$ac_t""no" 1>&6
2526 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2527 echo "configure:2528: checking for gethostbyname in -lnsl" >&5
2528 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2531 else
2532 ac_save_LIBS="$LIBS"
2533 LIBS="-lnsl $LIBS"
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 /* Override any gcc2 internal prototype to avoid an error. */
2538 /* We use char because int might match the return type of a gcc2
2539 builtin and then its argument prototype would still apply. */
2540 char gethostbyname();
2542 int main() {
2543 gethostbyname()
2544 ; return 0; }
2546 if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2547 rm -rf conftest*
2548 eval "ac_cv_lib_$ac_lib_var=yes"
2549 else
2550 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 rm -rf conftest*
2553 eval "ac_cv_lib_$ac_lib_var=no"
2555 rm -f conftest*
2556 LIBS="$ac_save_LIBS"
2559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2560 echo "$ac_t""yes" 1>&6
2561 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2562 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2563 cat >> confdefs.h <<EOF
2564 #define $ac_tr_lib 1
2567 LIBS="-lnsl $LIBS"
2569 else
2570 echo "$ac_t""no" 1>&6
2574 done
2576 for ac_func in connect
2578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_func" >&5
2580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2582 else
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char $ac_func(); below. */
2588 #include <assert.h>
2589 /* Override any gcc2 internal prototype to avoid an error. */
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2592 char $ac_func();
2594 int main() {
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2600 choke me
2601 #else
2602 $ac_func();
2603 #endif
2605 ; return 0; }
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2608 rm -rf conftest*
2609 eval "ac_cv_func_$ac_func=yes"
2610 else
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2613 rm -rf conftest*
2614 eval "ac_cv_func_$ac_func=no"
2616 rm -f conftest*
2619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2622 cat >> confdefs.h <<EOF
2623 #define $ac_tr_func 1
2626 else
2627 echo "$ac_t""no" 1>&6
2628 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2629 echo "configure:2630: checking for connect in -lsocket" >&5
2630 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2633 else
2634 ac_save_LIBS="$LIBS"
2635 LIBS="-lsocket $LIBS"
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2639 /* Override any gcc2 internal prototype to avoid an error. */
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2642 char connect();
2644 int main() {
2645 connect()
2646 ; return 0; }
2648 if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2649 rm -rf conftest*
2650 eval "ac_cv_lib_$ac_lib_var=yes"
2651 else
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2654 rm -rf conftest*
2655 eval "ac_cv_lib_$ac_lib_var=no"
2657 rm -f conftest*
2658 LIBS="$ac_save_LIBS"
2661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
2663 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2665 cat >> confdefs.h <<EOF
2666 #define $ac_tr_lib 1
2669 LIBS="-lsocket $LIBS"
2671 else
2672 echo "$ac_t""no" 1>&6
2676 done
2678 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
2679 echo "configure:2680: checking for _xpg4_setrunelocale in -lxpg4" >&5
2680 ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
2681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2683 else
2684 ac_save_LIBS="$LIBS"
2685 LIBS="-lxpg4 $LIBS"
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 /* Override any gcc2 internal prototype to avoid an error. */
2690 /* We use char because int might match the return type of a gcc2
2691 builtin and then its argument prototype would still apply. */
2692 char _xpg4_setrunelocale();
2694 int main() {
2695 _xpg4_setrunelocale()
2696 ; return 0; }
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2699 rm -rf conftest*
2700 eval "ac_cv_lib_$ac_lib_var=yes"
2701 else
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2704 rm -rf conftest*
2705 eval "ac_cv_lib_$ac_lib_var=no"
2707 rm -f conftest*
2708 LIBS="$ac_save_LIBS"
2711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2712 echo "$ac_t""yes" 1>&6
2713 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2715 cat >> confdefs.h <<EOF
2716 #define $ac_tr_lib 1
2719 LIBS="-lxpg4 $LIBS"
2721 else
2722 echo "$ac_t""no" 1>&6
2725 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2726 echo "configure:2727: checking for mmap in -lmmap" >&5
2727 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731 ac_save_LIBS="$LIBS"
2732 LIBS="-lmmap $LIBS"
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 /* Override any gcc2 internal prototype to avoid an error. */
2737 /* We use char because int might match the return type of a gcc2
2738 builtin and then its argument prototype would still apply. */
2739 char mmap();
2741 int main() {
2742 mmap()
2743 ; return 0; }
2745 if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2746 rm -rf conftest*
2747 eval "ac_cv_lib_$ac_lib_var=yes"
2748 else
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
2752 eval "ac_cv_lib_$ac_lib_var=no"
2754 rm -f conftest*
2755 LIBS="$ac_save_LIBS"
2758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2760 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2761 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2762 cat >> confdefs.h <<EOF
2763 #define $ac_tr_lib 1
2766 LIBS="-lmmap $LIBS"
2768 else
2769 echo "$ac_t""no" 1>&6
2772 for ac_func in openpty
2774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_func" >&5
2776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2778 else
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 /* System header to define __stub macros and hopefully few prototypes,
2783 which can conflict with char $ac_func(); below. */
2784 #include <assert.h>
2785 /* Override any gcc2 internal prototype to avoid an error. */
2786 /* We use char because int might match the return type of a gcc2
2787 builtin and then its argument prototype would still apply. */
2788 char $ac_func();
2790 int main() {
2792 /* The GNU C library defines this for functions which it implements
2793 to always fail with ENOSYS. Some functions are actually named
2794 something starting with __ and the normal name is an alias. */
2795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2796 choke me
2797 #else
2798 $ac_func();
2799 #endif
2801 ; return 0; }
2803 if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2804 rm -rf conftest*
2805 eval "ac_cv_func_$ac_func=yes"
2806 else
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 rm -rf conftest*
2810 eval "ac_cv_func_$ac_func=no"
2812 rm -f conftest*
2815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2818 cat >> confdefs.h <<EOF
2819 #define $ac_tr_func 1
2822 else
2823 echo "$ac_t""no" 1>&6
2824 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2825 echo "configure:2826: checking for openpty in -lutil" >&5
2826 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2829 else
2830 ac_save_LIBS="$LIBS"
2831 LIBS="-lutil $LIBS"
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 /* Override any gcc2 internal prototype to avoid an error. */
2836 /* We use char because int might match the return type of a gcc2
2837 builtin and then its argument prototype would still apply. */
2838 char openpty();
2840 int main() {
2841 openpty()
2842 ; return 0; }
2844 if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2845 rm -rf conftest*
2846 eval "ac_cv_lib_$ac_lib_var=yes"
2847 else
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2850 rm -rf conftest*
2851 eval "ac_cv_lib_$ac_lib_var=no"
2853 rm -f conftest*
2854 LIBS="$ac_save_LIBS"
2857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 cat >> confdefs.h <<\EOF
2860 #define HAVE_OPENPTY 1
2863 LIBS="$LIBS -lutil"
2865 else
2866 echo "$ac_t""no" 1>&6
2870 done
2873 for ac_hdr in dlfcn.h
2875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_hdr" >&5
2878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2880 else
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2884 #include <$ac_hdr>
2886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2887 { (eval echo configure:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2889 if test -z "$ac_err"; then
2890 rm -rf conftest*
2891 eval "ac_cv_header_$ac_safe=yes"
2892 else
2893 echo "$ac_err" >&5
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 rm -rf conftest*
2897 eval "ac_cv_header_$ac_safe=no"
2899 rm -f conftest*
2901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2904 cat >> confdefs.h <<EOF
2905 #define $ac_tr_hdr 1
2907 for ac_func in dlopen
2909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_func" >&5
2911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2913 else
2914 cat > conftest.$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917 /* System header to define __stub macros and hopefully few prototypes,
2918 which can conflict with char $ac_func(); below. */
2919 #include <assert.h>
2920 /* Override any gcc2 internal prototype to avoid an error. */
2921 /* We use char because int might match the return type of a gcc2
2922 builtin and then its argument prototype would still apply. */
2923 char $ac_func();
2925 int main() {
2927 /* The GNU C library defines this for functions which it implements
2928 to always fail with ENOSYS. Some functions are actually named
2929 something starting with __ and the normal name is an alias. */
2930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2931 choke me
2932 #else
2933 $ac_func();
2934 #endif
2936 ; return 0; }
2938 if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2939 rm -rf conftest*
2940 eval "ac_cv_func_$ac_func=yes"
2941 else
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 rm -rf conftest*
2945 eval "ac_cv_func_$ac_func=no"
2947 rm -f conftest*
2950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2953 cat >> confdefs.h <<EOF
2954 #define $ac_tr_func 1
2957 else
2958 echo "$ac_t""no" 1>&6
2959 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2960 echo "configure:2961: checking for dlopen in -ldl" >&5
2961 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2964 else
2965 ac_save_LIBS="$LIBS"
2966 LIBS="-ldl $LIBS"
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 /* Override any gcc2 internal prototype to avoid an error. */
2971 /* We use char because int might match the return type of a gcc2
2972 builtin and then its argument prototype would still apply. */
2973 char dlopen();
2975 int main() {
2976 dlopen()
2977 ; return 0; }
2979 if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2980 rm -rf conftest*
2981 eval "ac_cv_lib_$ac_lib_var=yes"
2982 else
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 rm -rf conftest*
2986 eval "ac_cv_lib_$ac_lib_var=no"
2988 rm -f conftest*
2989 LIBS="$ac_save_LIBS"
2992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2994 cat >> confdefs.h <<\EOF
2995 #define HAVE_DLOPEN 1
2998 LIBS="$LIBS -ldl"
2999 else
3000 echo "$ac_t""no" 1>&6
3001 LIBEXT="a"
3006 done
3008 else
3009 echo "$ac_t""no" 1>&6
3010 LIBEXT="a"
3013 done
3018 X_DLLS=""
3020 XFILES=""
3022 OPENGLFILES=""
3024 OPENGL32_DLL=""
3025 GLU32FILES=""
3027 GLU32_DLL=""
3029 if test "$have_x" = "yes"
3030 then
3031 XLIB="-lXext -lX11"
3032 ac_save_CPPFLAGS="$CPPFLAGS"
3033 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3035 for ac_hdr in X11/xpm.h
3037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3039 echo "configure:3040: checking for $ac_hdr" >&5
3040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3042 else
3043 cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <$ac_hdr>
3048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3049 { (eval echo configure:3050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3051 if test -z "$ac_err"; then
3052 rm -rf conftest*
3053 eval "ac_cv_header_$ac_safe=yes"
3054 else
3055 echo "$ac_err" >&5
3056 echo "configure: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3058 rm -rf conftest*
3059 eval "ac_cv_header_$ac_safe=no"
3061 rm -f conftest*
3063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3064 echo "$ac_t""yes" 1>&6
3065 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3066 cat >> confdefs.h <<EOF
3067 #define $ac_tr_hdr 1
3069 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3070 echo "configure:3071: checking for XpmCreatePixmapFromData in -lXpm" >&5
3071 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3074 else
3075 ac_save_LIBS="$LIBS"
3076 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3077 $LIBS"
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 /* Override any gcc2 internal prototype to avoid an error. */
3082 /* We use char because int might match the return type of a gcc2
3083 builtin and then its argument prototype would still apply. */
3084 char XpmCreatePixmapFromData();
3086 int main() {
3087 XpmCreatePixmapFromData()
3088 ; return 0; }
3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3091 rm -rf conftest*
3092 eval "ac_cv_lib_$ac_lib_var=yes"
3093 else
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3096 rm -rf conftest*
3097 eval "ac_cv_lib_$ac_lib_var=no"
3099 rm -f conftest*
3100 LIBS="$ac_save_LIBS"
3103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3104 echo "$ac_t""yes" 1>&6
3105 cat >> confdefs.h <<\EOF
3106 #define HAVE_LIBXXPM 1
3109 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3110 else
3111 echo "$ac_t""no" 1>&6
3115 else
3116 echo "$ac_t""no" 1>&6
3117 echo "Redhat : xpm xpm-devel"
3118 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3119 echo "SuSE : xpm"
3120 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3121 echo
3122 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3123 echo "the directory /contrib/libraries."
3124 echo
3125 exit 1
3129 done
3132 for ac_hdr in X11/Xlib.h
3134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3136 echo "configure:3137: checking for $ac_hdr" >&5
3137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3139 else
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3143 #include <$ac_hdr>
3145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3146 { (eval echo configure:3147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3148 if test -z "$ac_err"; then
3149 rm -rf conftest*
3150 eval "ac_cv_header_$ac_safe=yes"
3151 else
3152 echo "$ac_err" >&5
3153 echo "configure: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3155 rm -rf conftest*
3156 eval "ac_cv_header_$ac_safe=no"
3158 rm -f conftest*
3160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3163 cat >> confdefs.h <<EOF
3164 #define $ac_tr_hdr 1
3167 for ac_hdr in X11/XKBlib.h
3169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3171 echo "configure:3172: checking for $ac_hdr" >&5
3172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3174 else
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3178 #include <$ac_hdr>
3180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3181 { (eval echo configure:3182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3183 if test -z "$ac_err"; then
3184 rm -rf conftest*
3185 eval "ac_cv_header_$ac_safe=yes"
3186 else
3187 echo "$ac_err" >&5
3188 echo "configure: failed program was:" >&5
3189 cat conftest.$ac_ext >&5
3190 rm -rf conftest*
3191 eval "ac_cv_header_$ac_safe=no"
3193 rm -f conftest*
3195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3196 echo "$ac_t""yes" 1>&6
3197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3198 cat >> confdefs.h <<EOF
3199 #define $ac_tr_hdr 1
3201 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3202 echo "configure:3203: checking for XkbQueryExtension in -lX11" >&5
3203 ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3206 else
3207 ac_save_LIBS="$LIBS"
3208 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3209 cat > conftest.$ac_ext <<EOF
3210 #line 3211 "configure"
3211 #include "confdefs.h"
3212 /* Override any gcc2 internal prototype to avoid an error. */
3213 /* We use char because int might match the return type of a gcc2
3214 builtin and then its argument prototype would still apply. */
3215 char XkbQueryExtension();
3217 int main() {
3218 XkbQueryExtension()
3219 ; return 0; }
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3222 rm -rf conftest*
3223 eval "ac_cv_lib_$ac_lib_var=yes"
3224 else
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3227 rm -rf conftest*
3228 eval "ac_cv_lib_$ac_lib_var=no"
3230 rm -f conftest*
3231 LIBS="$ac_save_LIBS"
3234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3235 echo "$ac_t""yes" 1>&6
3236 cat >> confdefs.h <<\EOF
3237 #define HAVE_XKB 1
3240 else
3241 echo "$ac_t""no" 1>&6
3245 else
3246 echo "$ac_t""no" 1>&6
3247 echo "configure: warning: XKB extension not found!!" 1>&2
3250 done
3253 for ac_hdr in X11/extensions/XShm.h
3255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3257 echo "configure:3258: checking for $ac_hdr" >&5
3258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3260 else
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 #include <$ac_hdr>
3266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3267 { (eval echo configure:3268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3269 if test -z "$ac_err"; then
3270 rm -rf conftest*
3271 eval "ac_cv_header_$ac_safe=yes"
3272 else
3273 echo "$ac_err" >&5
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3276 rm -rf conftest*
3277 eval "ac_cv_header_$ac_safe=no"
3279 rm -f conftest*
3281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3284 cat >> confdefs.h <<EOF
3285 #define $ac_tr_hdr 1
3287 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3288 echo "configure:3289: checking for XShmQueryExtension in -lXext" >&5
3289 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3292 else
3293 ac_save_LIBS="$LIBS"
3294 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
3301 char XShmQueryExtension();
3303 int main() {
3304 XShmQueryExtension()
3305 ; return 0; }
3307 if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3308 rm -rf conftest*
3309 eval "ac_cv_lib_$ac_lib_var=yes"
3310 else
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3313 rm -rf conftest*
3314 eval "ac_cv_lib_$ac_lib_var=no"
3316 rm -f conftest*
3317 LIBS="$ac_save_LIBS"
3320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3321 echo "$ac_t""yes" 1>&6
3322 cat >> confdefs.h <<\EOF
3323 #define HAVE_LIBXXSHM 1
3326 else
3327 echo "$ac_t""no" 1>&6
3331 else
3332 echo "$ac_t""no" 1>&6
3333 echo "configure: warning: Xshm extension not found!!" 1>&2
3336 done
3339 for ac_hdr in X11/extensions/shape.h
3341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3343 echo "configure:3344: checking for $ac_hdr" >&5
3344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3346 else
3347 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3350 #include <$ac_hdr>
3352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3353 { (eval echo configure:3354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3355 if test -z "$ac_err"; then
3356 rm -rf conftest*
3357 eval "ac_cv_header_$ac_safe=yes"
3358 else
3359 echo "$ac_err" >&5
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 rm -rf conftest*
3363 eval "ac_cv_header_$ac_safe=no"
3365 rm -f conftest*
3367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3368 echo "$ac_t""yes" 1>&6
3369 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3370 cat >> confdefs.h <<EOF
3371 #define $ac_tr_hdr 1
3373 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3374 echo "configure:3375: checking for XShapeQueryExtension in -lXext" >&5
3375 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3378 else
3379 ac_save_LIBS="$LIBS"
3380 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3381 cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3387 char XShapeQueryExtension();
3389 int main() {
3390 XShapeQueryExtension()
3391 ; return 0; }
3393 if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3394 rm -rf conftest*
3395 eval "ac_cv_lib_$ac_lib_var=yes"
3396 else
3397 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3399 rm -rf conftest*
3400 eval "ac_cv_lib_$ac_lib_var=no"
3402 rm -f conftest*
3403 LIBS="$ac_save_LIBS"
3406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3407 echo "$ac_t""yes" 1>&6
3408 cat >> confdefs.h <<\EOF
3409 #define HAVE_LIBXSHAPE 1
3412 else
3413 echo "$ac_t""no" 1>&6
3417 else
3418 echo "$ac_t""no" 1>&6
3419 echo "configure: warning: XShape extension not found!!" 1>&2
3422 done
3425 for ac_hdr in X11/extensions/xf86dga.h
3427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3429 echo "configure:3430: checking for $ac_hdr" >&5
3430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3432 else
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 #include <$ac_hdr>
3438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3439 { (eval echo configure:3440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3441 if test -z "$ac_err"; then
3442 rm -rf conftest*
3443 eval "ac_cv_header_$ac_safe=yes"
3444 else
3445 echo "$ac_err" >&5
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 rm -rf conftest*
3449 eval "ac_cv_header_$ac_safe=no"
3451 rm -f conftest*
3453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_hdr 1
3459 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3460 echo "configure:3461: checking for XDGAQueryExtension in -lXxf86dga" >&5
3461 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3464 else
3465 ac_save_LIBS="$LIBS"
3466 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3467 $LIBS"
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3474 char XDGAQueryExtension();
3476 int main() {
3477 XDGAQueryExtension()
3478 ; return 0; }
3480 if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3481 rm -rf conftest*
3482 eval "ac_cv_lib_$ac_lib_var=yes"
3483 else
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3486 rm -rf conftest*
3487 eval "ac_cv_lib_$ac_lib_var=no"
3489 rm -f conftest*
3490 LIBS="$ac_save_LIBS"
3493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3495 cat >> confdefs.h <<\EOF
3496 #define HAVE_LIBXXF86DGA2 1
3499 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3501 else
3502 echo "$ac_t""no" 1>&6
3503 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3504 echo "configure:3505: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3505 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3508 else
3509 ac_save_LIBS="$LIBS"
3510 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3511 $LIBS"
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 /* Override any gcc2 internal prototype to avoid an error. */
3516 /* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3518 char XF86DGAQueryExtension();
3520 int main() {
3521 XF86DGAQueryExtension()
3522 ; return 0; }
3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525 rm -rf conftest*
3526 eval "ac_cv_lib_$ac_lib_var=yes"
3527 else
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3530 rm -rf conftest*
3531 eval "ac_cv_lib_$ac_lib_var=no"
3533 rm -f conftest*
3534 LIBS="$ac_save_LIBS"
3537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3538 echo "$ac_t""yes" 1>&6
3539 cat >> confdefs.h <<\EOF
3540 #define HAVE_LIBXXF86DGA 1
3543 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3545 else
3546 echo "$ac_t""no" 1>&6
3553 else
3554 echo "$ac_t""no" 1>&6
3555 echo "configure: warning: DGA extension not found!!" 1>&2
3558 done
3561 for ac_hdr in X11/extensions/xf86vmode.h
3563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3565 echo "configure:3566: checking for $ac_hdr" >&5
3566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3568 else
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 #include <$ac_hdr>
3574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3575 { (eval echo configure:3576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3577 if test -z "$ac_err"; then
3578 rm -rf conftest*
3579 eval "ac_cv_header_$ac_safe=yes"
3580 else
3581 echo "$ac_err" >&5
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3584 rm -rf conftest*
3585 eval "ac_cv_header_$ac_safe=no"
3587 rm -f conftest*
3589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3590 echo "$ac_t""yes" 1>&6
3591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3592 cat >> confdefs.h <<EOF
3593 #define $ac_tr_hdr 1
3595 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3596 echo "configure:3597: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3597 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3600 else
3601 ac_save_LIBS="$LIBS"
3602 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3603 $LIBS"
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 /* Override any gcc2 internal prototype to avoid an error. */
3608 /* We use char because int might match the return type of a gcc2
3609 builtin and then its argument prototype would still apply. */
3610 char XF86VidModeQueryExtension();
3612 int main() {
3613 XF86VidModeQueryExtension()
3614 ; return 0; }
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3617 rm -rf conftest*
3618 eval "ac_cv_lib_$ac_lib_var=yes"
3619 else
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 eval "ac_cv_lib_$ac_lib_var=no"
3625 rm -f conftest*
3626 LIBS="$ac_save_LIBS"
3629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3630 echo "$ac_t""yes" 1>&6
3631 cat >> confdefs.h <<\EOF
3632 #define HAVE_LIBXXF86VM 1
3635 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3637 else
3638 echo "$ac_t""no" 1>&6
3642 else
3643 echo "$ac_t""no" 1>&6
3644 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3647 done
3650 for ac_hdr in X11/extensions/Xvlib.h
3652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3654 echo "configure:3655: checking for $ac_hdr" >&5
3655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3657 else
3658 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3661 #include <$ac_hdr>
3663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3664 { (eval echo configure:3665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3666 if test -z "$ac_err"; then
3667 rm -rf conftest*
3668 eval "ac_cv_header_$ac_safe=yes"
3669 else
3670 echo "$ac_err" >&5
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673 rm -rf conftest*
3674 eval "ac_cv_header_$ac_safe=no"
3676 rm -f conftest*
3678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3679 echo "$ac_t""yes" 1>&6
3680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3681 cat >> confdefs.h <<EOF
3682 #define $ac_tr_hdr 1
3684 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3685 echo "configure:3686: checking for XvShmCreateImage in -lXv" >&5
3686 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3689 else
3690 ac_save_LIBS="$LIBS"
3691 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3692 $LIBS"
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699 char XvShmCreateImage();
3701 int main() {
3702 XvShmCreateImage()
3703 ; return 0; }
3705 if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3706 rm -rf conftest*
3707 eval "ac_cv_lib_$ac_lib_var=yes"
3708 else
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 rm -rf conftest*
3712 eval "ac_cv_lib_$ac_lib_var=no"
3714 rm -f conftest*
3715 LIBS="$ac_save_LIBS"
3718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3719 echo "$ac_t""yes" 1>&6
3720 cat >> confdefs.h <<\EOF
3721 #define HAVE_XVIDEO 1
3724 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3726 else
3727 echo "$ac_t""no" 1>&6
3731 else
3732 echo "$ac_t""no" 1>&6
3733 echo "configure: warning: XVideo extension not found !!" 1>&2
3736 done
3741 else
3742 echo "$ac_t""no" 1>&6
3744 done
3746 if test $OPENGL = "yes" -o $OPENGL = "normal"
3747 then
3748 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3752 echo "configure:3753: checking for $ac_hdr" >&5
3753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3755 else
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3759 #include <$ac_hdr>
3761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3762 { (eval echo configure:3763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3764 if test -z "$ac_err"; then
3765 rm -rf conftest*
3766 eval "ac_cv_header_$ac_safe=yes"
3767 else
3768 echo "$ac_err" >&5
3769 echo "configure: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3771 rm -rf conftest*
3772 eval "ac_cv_header_$ac_safe=no"
3774 rm -f conftest*
3776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3777 echo "$ac_t""yes" 1>&6
3778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3779 cat >> confdefs.h <<EOF
3780 #define $ac_tr_hdr 1
3783 else
3784 echo "$ac_t""no" 1>&6
3786 done
3788 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3789 then
3790 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3791 echo "configure:3792: checking "for up-to-date OpenGL version"" >&5
3792 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3794 else
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 #include <GL/gl.h>
3799 int main() {
3800 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3801 ; return 0; }
3803 if { (eval echo configure:3804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 rm -rf conftest*
3805 wine_cv_opengl_version_OK="yes"
3806 else
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3809 rm -rf conftest*
3810 wine_cv_opengl_version_OK="no"
3813 rm -f conftest*
3817 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3819 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3820 echo "configure:3821: checking "for thread-safe OpenGL version"" >&5
3821 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3823 else
3824 saved_libs=$LIBS
3825 LIBS="$X_LIBS -lGL"
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3830 int main() {
3831 pthread_getspecific();
3832 ; return 0; }
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835 rm -rf conftest*
3836 wine_cv_opengl_version_threadsafe="yes"
3837 else
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3840 rm -rf conftest*
3841 wine_cv_opengl_version_threadsafe="no"
3843 rm -f conftest*
3844 LIBS=$saved_libs
3848 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3850 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3851 then
3852 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3853 echo "configure:3854: checking for glXCreateContext in -lGL" >&5
3854 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3857 else
3858 ac_save_LIBS="$LIBS"
3859 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3860 cat > conftest.$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3866 char glXCreateContext();
3868 int main() {
3869 glXCreateContext()
3870 ; return 0; }
3872 if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3873 rm -rf conftest*
3874 eval "ac_cv_lib_$ac_lib_var=yes"
3875 else
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3878 rm -rf conftest*
3879 eval "ac_cv_lib_$ac_lib_var=no"
3881 rm -f conftest*
3882 LIBS="$ac_save_LIBS"
3885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3886 echo "$ac_t""yes" 1>&6
3887 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3889 else
3890 echo "$ac_t""no" 1>&6
3894 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3895 then
3897 OPENGLFILES='$(OPENGLFILES)'
3898 cat >> confdefs.h <<\EOF
3899 #define HAVE_OPENGL 1
3903 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3904 echo "configure:3905: checking for glXGetProcAddressARB in -lGL" >&5
3905 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3908 else
3909 ac_save_LIBS="$LIBS"
3910 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 /* Override any gcc2 internal prototype to avoid an error. */
3915 /* We use char because int might match the return type of a gcc2
3916 builtin and then its argument prototype would still apply. */
3917 char glXGetProcAddressARB();
3919 int main() {
3920 glXGetProcAddressARB()
3921 ; return 0; }
3923 if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3924 rm -rf conftest*
3925 eval "ac_cv_lib_$ac_lib_var=yes"
3926 else
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3929 rm -rf conftest*
3930 eval "ac_cv_lib_$ac_lib_var=no"
3932 rm -f conftest*
3933 LIBS="$ac_save_LIBS"
3936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3938 cat >> confdefs.h <<\EOF
3939 #define HAVE_GLX_GETPROCADDRESS 1
3942 else
3943 echo "$ac_t""no" 1>&6
3947 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3948 then
3949 echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6
3950 echo "configure:3951: checking "for OpenGL extension functions prototypes"" >&5
3951 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3953 else
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 #include <GL/gl.h>
3958 #ifdef HAVE_GL_GLEXT_H
3959 # include <GL/glext.h>
3960 #endif
3962 int main() {
3963 PFNGLCOLORTABLEEXTPROC test_proc;
3964 ; return 0; }
3966 if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3967 rm -rf conftest*
3968 wine_cv_extension_prototypes="yes"
3969 else
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 rm -rf conftest*
3973 wine_cv_extension_prototypes="no"
3976 rm -f conftest*
3980 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
3981 if test $wine_cv_extension_prototypes = "yes"
3982 then
3983 cat >> confdefs.h <<\EOF
3984 #define HAVE_GLEXT_PROTOTYPES 1
3989 OPENGL32_DLL=opengl32
3992 for ac_hdr in GL/osmesa.h
3994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3996 echo "configure:3997: checking for $ac_hdr" >&5
3997 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
3999 else
4000 cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 #include <$ac_hdr>
4005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4006 { (eval echo configure:4007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4008 if test -z "$ac_err"; then
4009 rm -rf conftest*
4010 eval "ac_cv_header_$ac_safe=yes"
4011 else
4012 echo "$ac_err" >&5
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4015 rm -rf conftest*
4016 eval "ac_cv_header_$ac_safe=no"
4018 rm -f conftest*
4020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4021 echo "$ac_t""yes" 1>&6
4022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4023 cat >> confdefs.h <<EOF
4024 #define $ac_tr_hdr 1
4026 echo $ac_n "checking for OSMesaCreateContext in -lGL""... $ac_c" 1>&6
4027 echo "configure:4028: checking for OSMesaCreateContext in -lGL" >&5
4028 ac_lib_var=`echo GL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
4029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4031 else
4032 ac_save_LIBS="$LIBS"
4033 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4034 $LIBS"
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4038 /* Override any gcc2 internal prototype to avoid an error. */
4039 /* We use char because int might match the return type of a gcc2
4040 builtin and then its argument prototype would still apply. */
4041 char OSMesaCreateContext();
4043 int main() {
4044 OSMesaCreateContext()
4045 ; return 0; }
4047 if { (eval echo configure:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4048 rm -rf conftest*
4049 eval "ac_cv_lib_$ac_lib_var=yes"
4050 else
4051 echo "configure: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4053 rm -rf conftest*
4054 eval "ac_cv_lib_$ac_lib_var=no"
4056 rm -f conftest*
4057 LIBS="$ac_save_LIBS"
4060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 X_PRE_LIBS="$X_PRE_LIBS -lGL"
4063 else
4064 echo "$ac_t""no" 1>&6
4065 echo $ac_n "checking for OSMesaCreateContext in -lOSMesa""... $ac_c" 1>&6
4066 echo "configure:4067: checking for OSMesaCreateContext in -lOSMesa" >&5
4067 ac_lib_var=`echo OSMesa'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
4068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4070 else
4071 ac_save_LIBS="$LIBS"
4072 LIBS="-lOSMesa -lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 /* Override any gcc2 internal prototype to avoid an error. */
4077 /* We use char because int might match the return type of a gcc2
4078 builtin and then its argument prototype would still apply. */
4079 char OSMesaCreateContext();
4081 int main() {
4082 OSMesaCreateContext()
4083 ; return 0; }
4085 if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4086 rm -rf conftest*
4087 eval "ac_cv_lib_$ac_lib_var=yes"
4088 else
4089 echo "configure: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4091 rm -rf conftest*
4092 eval "ac_cv_lib_$ac_lib_var=no"
4094 rm -f conftest*
4095 LIBS="$ac_save_LIBS"
4098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4099 echo "$ac_t""yes" 1>&6
4100 X_PRE_LIBS="$X_PRE_LIBS -lOSMesa"
4101 else
4102 echo "$ac_t""no" 1>&6
4109 else
4110 echo "$ac_t""no" 1>&6
4112 done
4115 echo $ac_n "checking for glBegin in -lGLU""... $ac_c" 1>&6
4116 echo "configure:4117: checking for glBegin in -lGLU" >&5
4117 ac_lib_var=`echo GLU'_'glBegin | sed 'y%./+-%__p_%'`
4118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4119 echo $ac_n "(cached) $ac_c" 1>&6
4120 else
4121 ac_save_LIBS="$LIBS"
4122 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4123 $LIBS"
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4127 /* Override any gcc2 internal prototype to avoid an error. */
4128 /* We use char because int might match the return type of a gcc2
4129 builtin and then its argument prototype would still apply. */
4130 char glBegin();
4132 int main() {
4133 glBegin()
4134 ; return 0; }
4136 if { (eval echo configure:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4137 rm -rf conftest*
4138 eval "ac_cv_lib_$ac_lib_var=yes"
4139 else
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4142 rm -rf conftest*
4143 eval "ac_cv_lib_$ac_lib_var=no"
4145 rm -f conftest*
4146 LIBS="$ac_save_LIBS"
4149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4150 echo "$ac_t""yes" 1>&6
4151 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4152 GLU32FILES='$(GLU32FILES)'
4153 GLU32_DLL=glu32
4155 else
4156 echo "$ac_t""no" 1>&6
4163 CPPFLAGS="$ac_save_CPPFLAGS"
4164 X_DLLS='$(X_DLLS)'
4165 XFILES='$(XFILES)'
4166 else
4167 XLIB=""
4168 X_CFLAGS=""
4169 X_LIBS=""
4172 if test "$CURSES" = "yes"
4173 then
4174 for ac_hdr in ncurses.h
4176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4178 echo "configure:4179: checking for $ac_hdr" >&5
4179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4181 else
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <$ac_hdr>
4187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4188 { (eval echo configure:4189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4190 if test -z "$ac_err"; then
4191 rm -rf conftest*
4192 eval "ac_cv_header_$ac_safe=yes"
4193 else
4194 echo "$ac_err" >&5
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4197 rm -rf conftest*
4198 eval "ac_cv_header_$ac_safe=no"
4200 rm -f conftest*
4202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4203 echo "$ac_t""yes" 1>&6
4204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4205 cat >> confdefs.h <<EOF
4206 #define $ac_tr_hdr 1
4208 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4209 echo "configure:4210: checking for waddch in -lncurses" >&5
4210 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4213 else
4214 ac_save_LIBS="$LIBS"
4215 LIBS="-lncurses $LIBS"
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char waddch();
4224 int main() {
4225 waddch()
4226 ; return 0; }
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4229 rm -rf conftest*
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4231 else
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 rm -rf conftest*
4235 eval "ac_cv_lib_$ac_lib_var=no"
4237 rm -f conftest*
4238 LIBS="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \
4244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4245 cat >> confdefs.h <<EOF
4246 #define $ac_tr_lib 1
4249 LIBS="-lncurses $LIBS"
4251 else
4252 echo "$ac_t""no" 1>&6
4255 else
4256 echo "$ac_t""no" 1>&6
4257 for ac_hdr in curses.h
4259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4261 echo "configure:4262: checking for $ac_hdr" >&5
4262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4264 else
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 #include <$ac_hdr>
4270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4271 { (eval echo configure:4272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4273 if test -z "$ac_err"; then
4274 rm -rf conftest*
4275 eval "ac_cv_header_$ac_safe=yes"
4276 else
4277 echo "$ac_err" >&5
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4280 rm -rf conftest*
4281 eval "ac_cv_header_$ac_safe=no"
4283 rm -f conftest*
4285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4288 cat >> confdefs.h <<EOF
4289 #define $ac_tr_hdr 1
4291 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4292 echo "configure:4293: checking for waddch in -lcurses" >&5
4293 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4296 else
4297 ac_save_LIBS="$LIBS"
4298 LIBS="-lcurses $LIBS"
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 /* Override any gcc2 internal prototype to avoid an error. */
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4305 char waddch();
4307 int main() {
4308 waddch()
4309 ; return 0; }
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4312 rm -rf conftest*
4313 eval "ac_cv_lib_$ac_lib_var=yes"
4314 else
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4317 rm -rf conftest*
4318 eval "ac_cv_lib_$ac_lib_var=no"
4320 rm -f conftest*
4321 LIBS="$ac_save_LIBS"
4324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4325 echo "$ac_t""yes" 1>&6
4326 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
4327 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4328 cat >> confdefs.h <<EOF
4329 #define $ac_tr_lib 1
4332 LIBS="-lcurses $LIBS"
4334 else
4335 echo "$ac_t""no" 1>&6
4338 else
4339 echo "$ac_t""no" 1>&6
4341 done
4344 done
4346 for ac_func in getbkgd resizeterm
4348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4349 echo "configure:4350: checking for $ac_func" >&5
4350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4352 else
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 /* System header to define __stub macros and hopefully few prototypes,
4357 which can conflict with char $ac_func(); below. */
4358 #include <assert.h>
4359 /* Override any gcc2 internal prototype to avoid an error. */
4360 /* We use char because int might match the return type of a gcc2
4361 builtin and then its argument prototype would still apply. */
4362 char $ac_func();
4364 int main() {
4366 /* The GNU C library defines this for functions which it implements
4367 to always fail with ENOSYS. Some functions are actually named
4368 something starting with __ and the normal name is an alias. */
4369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4370 choke me
4371 #else
4372 $ac_func();
4373 #endif
4375 ; return 0; }
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4378 rm -rf conftest*
4379 eval "ac_cv_func_$ac_func=yes"
4380 else
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4383 rm -rf conftest*
4384 eval "ac_cv_func_$ac_func=no"
4386 rm -f conftest*
4389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4392 cat >> confdefs.h <<EOF
4393 #define $ac_tr_func 1
4396 else
4397 echo "$ac_t""no" 1>&6
4399 done
4403 CUPSLIBS=""
4404 wine_cv_warn_cups_h=no
4405 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4406 echo "configure:4407: checking for cupsGetPPD in -lcups" >&5
4407 ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4410 else
4411 ac_save_LIBS="$LIBS"
4412 LIBS="-lcups $LIBS"
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 /* Override any gcc2 internal prototype to avoid an error. */
4417 /* We use char because int might match the return type of a gcc2
4418 builtin and then its argument prototype would still apply. */
4419 char cupsGetPPD();
4421 int main() {
4422 cupsGetPPD()
4423 ; return 0; }
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4426 rm -rf conftest*
4427 eval "ac_cv_lib_$ac_lib_var=yes"
4428 else
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4431 rm -rf conftest*
4432 eval "ac_cv_lib_$ac_lib_var=no"
4434 rm -f conftest*
4435 LIBS="$ac_save_LIBS"
4438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4440 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4441 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4442 echo "configure:4443: checking for cups/cups.h" >&5
4443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4445 else
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449 #include <cups/cups.h>
4451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4452 { (eval echo configure:4453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4454 if test -z "$ac_err"; then
4455 rm -rf conftest*
4456 eval "ac_cv_header_$ac_safe=yes"
4457 else
4458 echo "$ac_err" >&5
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4461 rm -rf conftest*
4462 eval "ac_cv_header_$ac_safe=no"
4464 rm -f conftest*
4466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4467 echo "$ac_t""yes" 1>&6
4468 cat >> confdefs.h <<\EOF
4469 #define HAVE_CUPS 1
4472 CUPSLIBS="-lcups"
4473 else
4474 echo "$ac_t""no" 1>&6
4475 wine_cv_warn_cups_h=yes
4479 else
4480 echo "$ac_t""no" 1>&6
4485 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4486 echo "configure:4487: checking for FT_Init_FreeType in -lfreetype" >&5
4487 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4490 else
4491 ac_save_LIBS="$LIBS"
4492 LIBS="-lfreetype $LIBS"
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 /* Override any gcc2 internal prototype to avoid an error. */
4497 /* We use char because int might match the return type of a gcc2
4498 builtin and then its argument prototype would still apply. */
4499 char FT_Init_FreeType();
4501 int main() {
4502 FT_Init_FreeType()
4503 ; return 0; }
4505 if { (eval echo configure:4506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 rm -rf conftest*
4507 eval "ac_cv_lib_$ac_lib_var=yes"
4508 else
4509 echo "configure: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4511 rm -rf conftest*
4512 eval "ac_cv_lib_$ac_lib_var=no"
4514 rm -f conftest*
4515 LIBS="$ac_save_LIBS"
4518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4519 echo "$ac_t""yes" 1>&6
4520 ft_lib=yes
4521 else
4522 echo "$ac_t""no" 1>&6
4523 ft_lib=no
4526 if test "$ft_lib" = "no"
4527 then
4528 FREETYPELIBS=""
4529 FREETYPEINCL=""
4530 wine_cv_msg_freetype=no
4531 else
4532 # Extract the first word of "freetype-config", so it can be a program name with args.
4533 set dummy freetype-config; ac_word=$2
4534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4535 echo "configure:4536: checking for $ac_word" >&5
4536 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4538 else
4539 if test -n "$ft_devel"; then
4540 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4541 else
4542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4543 ac_dummy="$PATH"
4544 for ac_dir in $ac_dummy; do
4545 test -z "$ac_dir" && ac_dir=.
4546 if test -f $ac_dir/$ac_word; then
4547 ac_cv_prog_ft_devel="freetype-config"
4548 break
4550 done
4551 IFS="$ac_save_ifs"
4552 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4555 ft_devel="$ac_cv_prog_ft_devel"
4556 if test -n "$ft_devel"; then
4557 echo "$ac_t""$ft_devel" 1>&6
4558 else
4559 echo "$ac_t""no" 1>&6
4562 if test "$ft_devel" = "no"
4563 then
4564 # Extract the first word of "freetype2-config", so it can be a program name with args.
4565 set dummy freetype2-config; ac_word=$2
4566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4567 echo "configure:4568: checking for $ac_word" >&5
4568 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4570 else
4571 if test -n "$ft_devel2"; then
4572 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4573 else
4574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4575 ac_dummy="$PATH"
4576 for ac_dir in $ac_dummy; do
4577 test -z "$ac_dir" && ac_dir=.
4578 if test -f $ac_dir/$ac_word; then
4579 ac_cv_prog_ft_devel2="freetype2-config"
4580 break
4582 done
4583 IFS="$ac_save_ifs"
4584 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4587 ft_devel2="$ac_cv_prog_ft_devel2"
4588 if test -n "$ft_devel2"; then
4589 echo "$ac_t""$ft_devel2" 1>&6
4590 else
4591 echo "$ac_t""no" 1>&6
4594 if test "$ft_devel2" = "freetype2-config"
4595 then
4596 ft_devel=$ft_devel2
4599 if test "$ft_devel" = "no"
4600 then
4601 FREETYPELIBS=""
4602 FREETYPEINCL=""
4603 wine_cv_msg_freetype=yes
4604 else
4605 cat >> confdefs.h <<\EOF
4606 #define HAVE_FREETYPE 1
4609 FREETYPELIBS=`$ft_devel --libs`
4610 FREETYPEINCL=`$ft_devel --cflags`
4611 ac_save_CPPFLAGS="$CPPFLAGS"
4612 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4613 for ac_hdr in freetype/freetype.h \
4614 freetype/ftglyph.h \
4615 freetype/tttables.h \
4616 freetype/ftnames.h \
4617 freetype/ftsnames.h \
4618 freetype/ttnameid.h
4620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4622 echo "configure:4623: checking for $ac_hdr" >&5
4623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4625 else
4626 cat > conftest.$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4629 #include <$ac_hdr>
4631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4632 { (eval echo configure:4633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4634 if test -z "$ac_err"; then
4635 rm -rf conftest*
4636 eval "ac_cv_header_$ac_safe=yes"
4637 else
4638 echo "$ac_err" >&5
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4641 rm -rf conftest*
4642 eval "ac_cv_header_$ac_safe=no"
4644 rm -f conftest*
4646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4647 echo "$ac_t""yes" 1>&6
4648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4649 cat >> confdefs.h <<EOF
4650 #define $ac_tr_hdr 1
4653 else
4654 echo "$ac_t""no" 1>&6
4656 done
4658 CPPFLAGS="$ac_save_CPPFLAGS"
4659 wine_cv_msg_freetype=no
4665 echo $ac_n "checking "for parport header/ppdev.h"""... $ac_c" 1>&6
4666 echo "configure:4667: checking "for parport header/ppdev.h"" >&5
4667 if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4669 else
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 #include <linux/ppdev.h>
4674 int main() {
4675 ioctl (1,PPCLAIM,0)
4676 ; return 0; }
4678 if { (eval echo configure:4679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4679 rm -rf conftest*
4680 ac_cv_c_ppdev="yes"
4681 else
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4684 rm -rf conftest*
4685 ac_cv_c_ppdev="no"
4687 rm -f conftest*
4691 echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4692 if test "$ac_cv_c_ppdev" = "yes"
4693 then
4694 cat >> confdefs.h <<\EOF
4695 #define HAVE_PPDEV 1
4700 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4701 echo "configure:4702: checking "for GNU style IPX support"" >&5
4702 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4704 else
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4708 #include <sys/socket.h>
4709 #include <netipx/ipx.h>
4710 int main() {
4711 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4712 ; return 0; }
4714 if { (eval echo configure:4715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4715 rm -rf conftest*
4716 ac_cv_c_ipx_gnu="yes"
4717 else
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4720 rm -rf conftest*
4721 ac_cv_c_ipx_gnu="no"
4723 rm -f conftest*
4727 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4728 if test "$ac_cv_c_ipx_gnu" = "yes"
4729 then
4730 cat >> confdefs.h <<\EOF
4731 #define HAVE_IPX_GNU 1
4736 if test "$ac_cv_c_ipx_gnu" = "no"
4737 then
4738 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4739 echo "configure:4740: checking "for linux style IPX support"" >&5
4740 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4742 else
4743 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4746 #include <sys/socket.h>
4747 #include <asm/types.h>
4748 #include <linux/ipx.h>
4749 int main() {
4750 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4751 ; return 0; }
4753 if { (eval echo configure:4754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4754 rm -rf conftest*
4755 ac_cv_c_ipx_linux="yes"
4756 else
4757 echo "configure: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4759 rm -rf conftest*
4760 ac_cv_c_ipx_linux="no"
4762 rm -f conftest*
4766 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4767 if test "$ac_cv_c_ipx_linux" = "yes"
4768 then
4769 cat >> confdefs.h <<\EOF
4770 #define HAVE_IPX_LINUX 1
4776 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4780 echo "configure:4781: checking for $ac_hdr" >&5
4781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4783 else
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4787 #include <$ac_hdr>
4789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4790 { (eval echo configure:4791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4792 if test -z "$ac_err"; then
4793 rm -rf conftest*
4794 eval "ac_cv_header_$ac_safe=yes"
4795 else
4796 echo "$ac_err" >&5
4797 echo "configure: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4799 rm -rf conftest*
4800 eval "ac_cv_header_$ac_safe=no"
4802 rm -f conftest*
4804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4805 echo "$ac_t""yes" 1>&6
4806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4807 cat >> confdefs.h <<EOF
4808 #define $ac_tr_hdr 1
4810 break
4811 else
4812 echo "$ac_t""no" 1>&6
4814 done
4817 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4818 echo "configure:4819: checking "for Open Sound System"" >&5
4819 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4821 else
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4826 #if defined(HAVE_SYS_SOUNDCARD_H)
4827 #include <sys/soundcard.h>
4828 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4829 #include <machine/soundcard.h>
4830 #elif defined(HAVE_SOUNDCARD_H)
4831 #include <soundcard.h>
4832 #endif
4834 int main() {
4837 /* check for one of the Open Sound System specific SNDCTL_ defines */
4838 #if !defined(SNDCTL_DSP_STEREO)
4839 #error No open sound system
4840 #endif
4842 ; return 0; }
4844 if { (eval echo configure:4845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4845 rm -rf conftest*
4846 ac_cv_c_opensoundsystem="yes"
4847 else
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4850 rm -rf conftest*
4851 ac_cv_c_opensoundsystem="no"
4853 rm -f conftest*
4856 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4858 if test "$ac_cv_c_opensoundsystem" = "yes"
4859 then
4860 cat >> confdefs.h <<\EOF
4861 #define HAVE_OSS 1
4866 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4867 echo "configure:4868: checking "for Open Sound System/MIDI interface"" >&5
4868 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4870 else
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4875 #if defined(HAVE_SYS_SOUNDCARD_H)
4876 #include <sys/soundcard.h>
4877 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4878 #include <machine/soundcard.h>
4879 #elif defined(HAVE_SOUNDCARD_H)
4880 #include <soundcard.h>
4881 #endif
4883 int main() {
4886 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4887 #if !defined(SNDCTL_SEQ_SYNC)
4888 #error No open sound system MIDI interface
4889 #endif
4891 ; return 0; }
4893 if { (eval echo configure:4894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4894 rm -rf conftest*
4895 ac_cv_c_opensoundsystem_midi="yes"
4896 else
4897 echo "configure: failed program was:" >&5
4898 cat conftest.$ac_ext >&5
4899 rm -rf conftest*
4900 ac_cv_c_opensoundsystem_midi="no"
4902 rm -f conftest*
4905 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4907 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4908 then
4909 cat >> confdefs.h <<\EOF
4910 #define HAVE_OSS_MIDI 1
4915 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4918 echo $ac_n "checking "whether mmap64 works defined as mmap"""... $ac_c" 1>&6
4919 echo "configure:4920: checking "whether mmap64 works defined as mmap"" >&5
4920 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4922 else
4923 if test "$cross_compiling" = yes; then
4924 ac_cv_mmap64_works="no"
4925 else
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4930 #define _FILE_OFFSET_BITS 64
4931 #include <stdio.h>
4932 #include <unistd.h>
4933 #include <fcntl.h>
4934 #include <sys/mman.h>
4935 #include <errno.h>
4937 int main(int argc,char **argv) {
4938 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4939 if (fd == -1) exit(1);
4941 unlink("conftest.map");
4943 write(fd,"test",4);
4945 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
4946 (errno == EINVAL)
4948 exit(1);
4950 close(fd);
4951 fprintf(stderr,"success!\n");
4952 exit(0);
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4958 then
4959 ac_cv_mmap64_works="yes"
4960 else
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4963 rm -fr conftest*
4964 ac_cv_mmap64_works="no"
4966 rm -fr conftest*
4971 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
4973 if test "$ac_cv_mmap64_works" = "yes"
4974 then
4975 cat >> confdefs.h <<\EOF
4976 #define _FILE_OFFSET_BITS 64
4982 if test "x${GCC}" = "xyes"
4983 then
4984 CFLAGS="$CFLAGS -Wall"
4985 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4986 echo "configure:4987: checking "for gcc strength-reduce bug"" >&5
4987 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4989 else
4990 if test "$cross_compiling" = yes; then
4991 ac_cv_c_gcc_strength_bug="yes"
4992 else
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4997 int L[4] = {0,1,2,3};
4998 int main(void) {
4999 static int Array[3];
5000 unsigned int B = 3;
5001 int i;
5002 for(i=0; i<B; i++) Array[i] = i - 3;
5003 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5004 L[i] = 4;
5006 exit( Array[1] != -2 || L[2] != 3);
5009 if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5010 then
5011 ac_cv_c_gcc_strength_bug="no"
5012 else
5013 echo "configure: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5015 rm -fr conftest*
5016 ac_cv_c_gcc_strength_bug="yes"
5018 rm -fr conftest*
5023 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5024 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5025 then
5026 CFLAGS="$CFLAGS -fno-strength-reduce"
5029 echo $ac_n "checking "for gcc -mpreferred-stack-boundary=2 support"""... $ac_c" 1>&6
5030 echo "configure:5031: checking "for gcc -mpreferred-stack-boundary=2 support"" >&5
5031 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5033 else
5034 saved_cflags=$CFLAGS
5035 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5036 cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5040 int main() {
5041 return 0
5042 ; return 0; }
5044 if { (eval echo configure:5045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5045 rm -rf conftest*
5046 ac_cv_c_gcc_stack_boundary="yes"
5047 else
5048 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5050 rm -rf conftest*
5051 ac_cv_c_gcc_stack_boundary="no"
5053 rm -f conftest*
5054 CFLAGS=$saved_cflags
5058 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5059 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5060 then
5061 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5066 echo $ac_n "checking "whether .type must sit inside a .def directive"""... $ac_c" 1>&6
5067 echo "configure:5068: checking "whether .type must sit inside a .def directive"" >&5
5068 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5070 else
5071 saved_libs=$LIBS
5072 LIBS="conftest_asm.s $LIBS"
5073 cat > conftest_asm.s <<EOF
5074 .globl _ac_test
5075 .def _ac_test; .scl 2; .type 32; .endef
5076 _ac_test:
5077 .long 0
5079 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5083 int main() {
5085 ; return 0; }
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088 rm -rf conftest*
5089 ac_cv_c_type_in_def="yes"
5090 else
5091 echo "configure: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 rm -rf conftest*
5094 ac_cv_c_type_in_def="no"
5096 rm -f conftest*
5097 LIBS=$saved_libs
5100 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5101 if test "$ac_cv_c_type_in_def" = "yes"
5102 then
5103 cat >> confdefs.h <<\EOF
5104 #define NEED_TYPE_IN_DEF 1
5110 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
5111 echo "configure:5112: checking "whether external symbols need an underscore prefix"" >&5
5112 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5114 else
5115 saved_libs=$LIBS
5116 LIBS="conftest_asm.s $LIBS"
5117 cat > conftest_asm.s <<EOF
5118 .globl _ac_test
5119 _ac_test:
5120 .long 0
5122 cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5125 extern int ac_test;
5126 int main() {
5127 if (ac_test) return 1
5128 ; return 0; }
5130 if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5131 rm -rf conftest*
5132 ac_cv_c_extern_prefix="yes"
5133 else
5134 echo "configure: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5136 rm -rf conftest*
5137 ac_cv_c_extern_prefix="no"
5139 rm -f conftest*
5140 LIBS=$saved_libs
5143 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5144 if test "$ac_cv_c_extern_prefix" = "yes"
5145 then
5146 cat >> confdefs.h <<\EOF
5147 #define NEED_UNDERSCORE_PREFIX 1
5153 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
5154 echo "configure:5155: checking "whether assembler accepts .string"" >&5
5155 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5157 else
5158 saved_libs=$LIBS
5159 LIBS="conftest_asm.s $LIBS"
5160 cat > conftest_asm.s <<EOF
5161 .string "test"
5163 cat > conftest.$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5167 int main() {
5169 ; return 0; }
5171 if { (eval echo configure:5172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5172 rm -rf conftest*
5173 ac_cv_c_asm_string="yes"
5174 else
5175 echo "configure: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5177 rm -rf conftest*
5178 ac_cv_c_asm_string="no"
5180 rm -f conftest*
5181 LIBS=$saved_libs
5184 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5185 if test "$ac_cv_c_asm_string" = "yes"
5186 then
5187 cat >> confdefs.h <<\EOF
5188 #define HAVE_ASM_STRING 1
5194 LDSHARED=""
5195 LDDLLFLAGS=""
5196 if test "$LIBEXT" = "so"
5197 then
5198 echo $ac_n "checking "whether we can build a GNU style ELF dll"""... $ac_c" 1>&6
5199 echo "configure:5200: checking "whether we can build a GNU style ELF dll"" >&5
5200 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5202 else
5203 saved_cflags=$CFLAGS
5204 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5209 int main() {
5210 return 1
5211 ; return 0; }
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5214 rm -rf conftest*
5215 ac_cv_c_dll_gnuelf="yes"
5216 else
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5219 rm -rf conftest*
5220 ac_cv_c_dll_gnuelf="no"
5222 rm -f conftest*
5223 CFLAGS=$saved_cflags
5227 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5228 if test "$ac_cv_c_dll_gnuelf" = "yes"
5229 then
5230 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
5231 LDDLLFLAGS="-Wl,-Bsymbolic"
5232 else
5233 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5234 echo "configure:5235: checking whether we can build a UnixWare (Solaris) dll" >&5
5235 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5237 else
5238 saved_cflags=$CFLAGS
5239 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5244 int main() {
5245 return 1
5246 ; return 0; }
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5249 rm -rf conftest*
5250 ac_cv_c_dll_unixware="yes"
5251 else
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 rm -rf conftest*
5255 ac_cv_c_dll_unixware="no"
5257 rm -f conftest*
5258 CFLAGS=$saved_cflags
5262 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5263 if test "$ac_cv_c_dll_unixware" = "yes"
5264 then
5265 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,\$(libdir)/%)"
5266 LDDLLFLAGS="-Wl,-B,symbolic"
5269 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5270 then
5271 LIBEXT="a"
5272 if test "$DLLWRAP" = "dllwrap"; then
5273 if test "$CYGWIN" = "yes"; then
5274 echo "*** use dllwrap for building shared library."
5275 LIBEXT="dll"
5281 if test "$LIBEXT" = "a"; then
5282 echo "*** It is currently not possible to build WINE without shared"
5283 echo "*** library (.so) support to allow transparent switch between .so"
5284 echo "*** and .dll files."
5285 echo "*** If you are using Linux, you will need a newer binutils."
5286 exit 1
5289 DLLFLAGS=""
5290 LDPATH=""
5292 if test "$LIBEXT" = "so"; then
5293 DLLFLAGS="-fPIC"
5294 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5295 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5296 elif test "$LIBEXT" = "dll"; then
5297 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5298 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5299 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5300 else
5301 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
5302 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
5303 echo "configure:5304: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
5304 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5306 else
5307 saved_cflags=$CFLAGS
5308 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5313 int main() {
5314 return 1
5315 ; return 0; }
5317 if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5318 rm -rf conftest*
5319 ac_cv_c_whole_archive="yes"
5320 else
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5323 rm -rf conftest*
5324 ac_cv_c_whole_archive="no"
5326 rm -f conftest*
5327 CFLAGS=$saved_cflags
5331 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
5332 if test "$ac_cv_c_whole_archive" = "yes"
5333 then
5334 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
5335 else
5336 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
5337 echo "configure:5338: checking whether the linker supports -z {all,default}extract (Linux)" >&5
5338 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5340 else
5341 saved_cflags=$CFLAGS
5342 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
5343 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5347 int main() {
5348 return 1
5349 ; return 0; }
5351 if { (eval echo configure:5352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5352 rm -rf conftest*
5353 ac_cv_c_allextract="yes"
5354 else
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5357 rm -rf conftest*
5358 ac_cv_c_allextract="no"
5360 rm -f conftest*
5361 CFLAGS=$saved_cflags
5365 echo "$ac_t""$ac_cv_c_allextract" 1>&6
5366 if test "$ac_cv_c_allextract" = "yes"
5367 then
5368 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
5383 wine_cv_libc_reentrant=no
5385 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5386 echo "configure:5387: checking for reentrant libc: __errno_location" >&5
5387 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5389 else
5390 if test "$cross_compiling" = yes; then
5391 wine_cv_libc_r___errno_location=yes
5392 else
5393 cat > conftest.$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5396 int myerrno = 0;
5397 char buf[256];
5398 int *__errno_location(){return &myerrno;}
5399 main(){connect(0,buf,255); exit(!myerrno);}
5401 if { (eval echo configure:5402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5402 then
5403 wine_cv_libc_r___errno_location=yes
5404 else
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5407 rm -fr conftest*
5408 wine_cv_libc_r___errno_location=no
5410 rm -fr conftest*
5416 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5417 if test "$wine_cv_libc_r___errno_location" = "yes"
5418 then
5419 wine_cv_libc_reentrant=__errno_location
5423 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5424 echo "configure:5425: checking for reentrant libc: __error" >&5
5425 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5427 else
5428 if test "$cross_compiling" = yes; then
5429 wine_cv_libc_r___error=yes
5430 else
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 int myerrno = 0;
5435 char buf[256];
5436 int *__error(){return &myerrno;}
5437 main(){connect(0,buf,255); exit(!myerrno);}
5439 if { (eval echo configure:5440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5440 then
5441 wine_cv_libc_r___error=yes
5442 else
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5445 rm -fr conftest*
5446 wine_cv_libc_r___error=no
5448 rm -fr conftest*
5454 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5455 if test "$wine_cv_libc_r___error" = "yes"
5456 then
5457 wine_cv_libc_reentrant=__error
5461 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5462 echo "configure:5463: checking for reentrant libc: ___errno" >&5
5463 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5465 else
5466 if test "$cross_compiling" = yes; then
5467 wine_cv_libc_r____errno=yes
5468 else
5469 cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5472 int myerrno = 0;
5473 char buf[256];
5474 int *___errno(){return &myerrno;}
5475 main(){connect(0,buf,255); exit(!myerrno);}
5477 if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5478 then
5479 wine_cv_libc_r____errno=yes
5480 else
5481 echo "configure: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5483 rm -fr conftest*
5484 wine_cv_libc_r____errno=no
5486 rm -fr conftest*
5492 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5493 if test "$wine_cv_libc_r____errno" = "yes"
5494 then
5495 wine_cv_libc_reentrant=___errno
5499 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5500 echo "configure:5501: checking for reentrant libc: __thr_errno" >&5
5501 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5503 else
5504 if test "$cross_compiling" = yes; then
5505 wine_cv_libc_r___thr_errno=yes
5506 else
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 int myerrno = 0;
5511 char buf[256];
5512 int *__thr_errno(){return &myerrno;}
5513 main(){connect(0,buf,255); exit(!myerrno);}
5515 if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5516 then
5517 wine_cv_libc_r___thr_errno=yes
5518 else
5519 echo "configure: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5521 rm -fr conftest*
5522 wine_cv_libc_r___thr_errno=no
5524 rm -fr conftest*
5530 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5531 if test "$wine_cv_libc_r___thr_errno" = "yes"
5532 then
5533 wine_cv_libc_reentrant=__thr_errno
5537 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5538 echo "configure:5539: checking for reentrant libc: __errno" >&5
5539 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5541 else
5542 if test "$cross_compiling" = yes; then
5543 wine_cv_libc_r___errno=yes
5544 else
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 int myerrno = 0;
5549 char buf[256];
5550 int *__errno(){return &myerrno;}
5551 main(){connect(0,buf,255); exit(!myerrno);}
5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5554 then
5555 wine_cv_libc_r___errno=yes
5556 else
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 rm -fr conftest*
5560 wine_cv_libc_r___errno=no
5562 rm -fr conftest*
5568 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5569 if test "$wine_cv_libc_r___errno" = "yes"
5570 then
5571 wine_cv_libc_reentrant=__errno
5575 if test "$wine_cv_libc_reentrant" != "no"
5576 then
5577 cat >> confdefs.h <<EOF
5578 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5584 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5585 then
5586 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
5587 echo "configure:5588: checking "for reentrant X libraries"" >&5
5588 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5590 else
5591 if test "x$with_reentrant_x" = "xno"
5592 then
5593 wine_cv_x_reentrant=no
5594 else
5595 libX11_check=none
5596 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5597 if test -r $dir/libX11.so; then
5598 libX11_check="-D $dir/libX11.so"
5599 break 1
5601 if test -r $dir/libX11.a; then
5602 libX11_check="$dir/libX11.a"
5603 break 1
5605 done
5606 if test "$libX11_check" != "none"; then
5607 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5608 then
5609 wine_cv_x_reentrant=yes
5610 else
5611 wine_cv_x_reentrant=no
5613 else
5614 wine_cv_x_reentrant=unknown
5619 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5620 else
5621 wine_cv_x_reentrant=no
5623 if test "$wine_cv_x_reentrant" = "no"
5624 then
5625 cat >> confdefs.h <<\EOF
5626 #define NO_REENTRANT_X11 1
5633 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5634 # for constant arguments. Useless!
5635 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5636 echo "configure:5637: checking for working alloca.h" >&5
5637 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5639 else
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643 #include <alloca.h>
5644 int main() {
5645 char *p = alloca(2 * sizeof(int));
5646 ; return 0; }
5648 if { (eval echo configure:5649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5649 rm -rf conftest*
5650 ac_cv_header_alloca_h=yes
5651 else
5652 echo "configure: failed program was:" >&5
5653 cat conftest.$ac_ext >&5
5654 rm -rf conftest*
5655 ac_cv_header_alloca_h=no
5657 rm -f conftest*
5660 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5661 if test $ac_cv_header_alloca_h = yes; then
5662 cat >> confdefs.h <<\EOF
5663 #define HAVE_ALLOCA_H 1
5668 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5669 echo "configure:5670: checking for alloca" >&5
5670 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5672 else
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5677 #ifdef __GNUC__
5678 # define alloca __builtin_alloca
5679 #else
5680 # ifdef _MSC_VER
5681 # include <malloc.h>
5682 # define alloca _alloca
5683 # else
5684 # if HAVE_ALLOCA_H
5685 # include <alloca.h>
5686 # else
5687 # ifdef _AIX
5688 #pragma alloca
5689 # else
5690 # ifndef alloca /* predefined by HP cc +Olibcalls */
5691 char *alloca ();
5692 # endif
5693 # endif
5694 # endif
5695 # endif
5696 #endif
5698 int main() {
5699 char *p = (char *) alloca(1);
5700 ; return 0; }
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703 rm -rf conftest*
5704 ac_cv_func_alloca_works=yes
5705 else
5706 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5708 rm -rf conftest*
5709 ac_cv_func_alloca_works=no
5711 rm -f conftest*
5714 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5715 if test $ac_cv_func_alloca_works = yes; then
5716 cat >> confdefs.h <<\EOF
5717 #define HAVE_ALLOCA 1
5722 if test $ac_cv_func_alloca_works = no; then
5723 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5724 # that cause trouble. Some versions do not even contain alloca or
5725 # contain a buggy version. If you still want to use their alloca,
5726 # use ar to extract alloca.o from them instead of compiling alloca.c.
5727 ALLOCA=alloca.${ac_objext}
5728 cat >> confdefs.h <<\EOF
5729 #define C_ALLOCA 1
5733 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5734 echo "configure:5735: checking whether alloca needs Cray hooks" >&5
5735 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5737 else
5738 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5741 #if defined(CRAY) && ! defined(CRAY2)
5742 webecray
5743 #else
5744 wenotbecray
5745 #endif
5748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5749 egrep "webecray" >/dev/null 2>&1; then
5750 rm -rf conftest*
5751 ac_cv_os_cray=yes
5752 else
5753 rm -rf conftest*
5754 ac_cv_os_cray=no
5756 rm -f conftest*
5760 echo "$ac_t""$ac_cv_os_cray" 1>&6
5761 if test $ac_cv_os_cray = yes; then
5762 for ac_func in _getb67 GETB67 getb67; do
5763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5764 echo "configure:5765: checking for $ac_func" >&5
5765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6
5767 else
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5771 /* System header to define __stub macros and hopefully few prototypes,
5772 which can conflict with char $ac_func(); below. */
5773 #include <assert.h>
5774 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5777 char $ac_func();
5779 int main() {
5781 /* The GNU C library defines this for functions which it implements
5782 to always fail with ENOSYS. Some functions are actually named
5783 something starting with __ and the normal name is an alias. */
5784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5785 choke me
5786 #else
5787 $ac_func();
5788 #endif
5790 ; return 0; }
5792 if { (eval echo configure:5793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5793 rm -rf conftest*
5794 eval "ac_cv_func_$ac_func=yes"
5795 else
5796 echo "configure: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 rm -rf conftest*
5799 eval "ac_cv_func_$ac_func=no"
5801 rm -f conftest*
5804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5805 echo "$ac_t""yes" 1>&6
5806 cat >> confdefs.h <<EOF
5807 #define CRAY_STACKSEG_END $ac_func
5810 break
5811 else
5812 echo "$ac_t""no" 1>&6
5815 done
5818 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5819 echo "configure:5820: checking stack direction for C alloca" >&5
5820 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5821 echo $ac_n "(cached) $ac_c" 1>&6
5822 else
5823 if test "$cross_compiling" = yes; then
5824 ac_cv_c_stack_direction=0
5825 else
5826 cat > conftest.$ac_ext <<EOF
5827 #line 5828 "configure"
5828 #include "confdefs.h"
5829 find_stack_direction ()
5831 static char *addr = 0;
5832 auto char dummy;
5833 if (addr == 0)
5835 addr = &dummy;
5836 return find_stack_direction ();
5838 else
5839 return (&dummy > addr) ? 1 : -1;
5841 main ()
5843 exit (find_stack_direction() < 0);
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5847 then
5848 ac_cv_c_stack_direction=1
5849 else
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5852 rm -fr conftest*
5853 ac_cv_c_stack_direction=-1
5855 rm -fr conftest*
5860 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5861 cat >> confdefs.h <<EOF
5862 #define STACK_DIRECTION $ac_cv_c_stack_direction
5867 for ac_func in \
5868 __libc_fork \
5869 _lwp_create \
5870 clone \
5871 ecvt \
5872 finite \
5873 fpclass \
5874 ftruncate64 \
5875 getnetbyaddr \
5876 getnetbyname \
5877 getpagesize \
5878 getprotobyname \
5879 getprotobynumber \
5880 getrlimit \
5881 getservbyport \
5882 getsockopt \
5883 inet_network \
5884 lseek64 \
5885 lstat \
5886 memmove \
5887 mmap \
5888 rfork \
5889 select \
5890 sendmsg \
5891 settimeofday \
5892 sigaltstack \
5893 statfs \
5894 strcasecmp \
5895 strerror \
5896 strncasecmp \
5897 tcgetattr \
5898 timegm \
5899 usleep \
5900 vfscanf \
5901 wait4 \
5902 waitpid \
5905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5906 echo "configure:5907: checking for $ac_func" >&5
5907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5909 else
5910 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5913 /* System header to define __stub macros and hopefully few prototypes,
5914 which can conflict with char $ac_func(); below. */
5915 #include <assert.h>
5916 /* Override any gcc2 internal prototype to avoid an error. */
5917 /* We use char because int might match the return type of a gcc2
5918 builtin and then its argument prototype would still apply. */
5919 char $ac_func();
5921 int main() {
5923 /* The GNU C library defines this for functions which it implements
5924 to always fail with ENOSYS. Some functions are actually named
5925 something starting with __ and the normal name is an alias. */
5926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5927 choke me
5928 #else
5929 $ac_func();
5930 #endif
5932 ; return 0; }
5934 if { (eval echo configure:5935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5935 rm -rf conftest*
5936 eval "ac_cv_func_$ac_func=yes"
5937 else
5938 echo "configure: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5940 rm -rf conftest*
5941 eval "ac_cv_func_$ac_func=no"
5943 rm -f conftest*
5946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5947 echo "$ac_t""yes" 1>&6
5948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5949 cat >> confdefs.h <<EOF
5950 #define $ac_tr_func 1
5953 else
5954 echo "$ac_t""no" 1>&6
5956 done
5960 for ac_hdr in \
5961 arpa/inet.h \
5962 arpa/nameser.h \
5963 elf.h \
5964 float.h \
5965 ieeefp.h \
5966 libio.h \
5967 libutil.h \
5968 link.h \
5969 linux/cdrom.h \
5970 linux/input.h \
5971 linux/joystick.h \
5972 linux/ucdrom.h \
5973 net/if.h \
5974 netdb.h \
5975 netinet/in.h \
5976 netinet/in_systm.h \
5977 netinet/ip.h \
5978 netinet/tcp.h \
5979 pty.h \
5980 resolv.h \
5981 sched.h \
5982 socket.h \
5983 strings.h \
5984 sys/cdio.h \
5985 sys/errno.h \
5986 sys/file.h \
5987 sys/filio.h \
5988 sys/ipc.h \
5989 sys/lwp.h \
5990 sys/mman.h \
5991 sys/modem.h \
5992 sys/mount.h \
5993 sys/msg.h \
5994 sys/param.h \
5995 sys/ptrace.h \
5996 sys/reg.h \
5997 sys/signal.h \
5998 sys/shm.h \
5999 sys/socket.h \
6000 sys/sockio.h \
6001 sys/statfs.h \
6002 sys/strtio.h \
6003 sys/syscall.h \
6004 sys/user.h \
6005 sys/wait.h \
6006 sys/v86.h \
6007 sys/v86intr.h \
6008 sys/vfs.h \
6009 sys/vm86.h \
6010 syscall.h \
6011 ucontext.h \
6014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6016 echo "configure:6017: checking for $ac_hdr" >&5
6017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6018 echo $ac_n "(cached) $ac_c" 1>&6
6019 else
6020 cat > conftest.$ac_ext <<EOF
6021 #line 6022 "configure"
6022 #include "confdefs.h"
6023 #include <$ac_hdr>
6025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6026 { (eval echo configure:6027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6028 if test -z "$ac_err"; then
6029 rm -rf conftest*
6030 eval "ac_cv_header_$ac_safe=yes"
6031 else
6032 echo "$ac_err" >&5
6033 echo "configure: failed program was:" >&5
6034 cat conftest.$ac_ext >&5
6035 rm -rf conftest*
6036 eval "ac_cv_header_$ac_safe=no"
6038 rm -f conftest*
6040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6041 echo "$ac_t""yes" 1>&6
6042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6043 cat >> confdefs.h <<EOF
6044 #define $ac_tr_hdr 1
6047 else
6048 echo "$ac_t""no" 1>&6
6050 done
6052 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6053 echo "configure:6054: checking whether stat file-mode macros are broken" >&5
6054 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6056 else
6057 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6060 #include <sys/types.h>
6061 #include <sys/stat.h>
6063 #if defined(S_ISBLK) && defined(S_IFDIR)
6064 # if S_ISBLK (S_IFDIR)
6065 You lose.
6066 # endif
6067 #endif
6069 #if defined(S_ISBLK) && defined(S_IFCHR)
6070 # if S_ISBLK (S_IFCHR)
6071 You lose.
6072 # endif
6073 #endif
6075 #if defined(S_ISLNK) && defined(S_IFREG)
6076 # if S_ISLNK (S_IFREG)
6077 You lose.
6078 # endif
6079 #endif
6081 #if defined(S_ISSOCK) && defined(S_IFREG)
6082 # if S_ISSOCK (S_IFREG)
6083 You lose.
6084 # endif
6085 #endif
6088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6089 egrep "You lose" >/dev/null 2>&1; then
6090 rm -rf conftest*
6091 ac_cv_header_stat_broken=yes
6092 else
6093 rm -rf conftest*
6094 ac_cv_header_stat_broken=no
6096 rm -f conftest*
6100 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6101 if test $ac_cv_header_stat_broken = yes; then
6102 cat >> confdefs.h <<\EOF
6103 #define STAT_MACROS_BROKEN 1
6110 echo $ac_n "checking for working const""... $ac_c" 1>&6
6111 echo "configure:6112: checking for working const" >&5
6112 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6113 echo $ac_n "(cached) $ac_c" 1>&6
6114 else
6115 cat > conftest.$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6119 int main() {
6121 /* Ultrix mips cc rejects this. */
6122 typedef int charset[2]; const charset x;
6123 /* SunOS 4.1.1 cc rejects this. */
6124 char const *const *ccp;
6125 char **p;
6126 /* NEC SVR4.0.2 mips cc rejects this. */
6127 struct point {int x, y;};
6128 static struct point const zero = {0,0};
6129 /* AIX XL C 1.02.0.0 rejects this.
6130 It does not let you subtract one const X* pointer from another in an arm
6131 of an if-expression whose if-part is not a constant expression */
6132 const char *g = "string";
6133 ccp = &g + (g ? g-g : 0);
6134 /* HPUX 7.0 cc rejects these. */
6135 ++ccp;
6136 p = (char**) ccp;
6137 ccp = (char const *const *) p;
6138 { /* SCO 3.2v4 cc rejects this. */
6139 char *t;
6140 char const *s = 0 ? (char *) 0 : (char const *) 0;
6142 *t++ = 0;
6144 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6145 int x[] = {25, 17};
6146 const int *foo = &x[0];
6147 ++foo;
6149 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6150 typedef const int *iptr;
6151 iptr p = 0;
6152 ++p;
6154 { /* AIX XL C 1.02.0.0 rejects this saying
6155 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6156 struct s { int j; const int *ap[3]; };
6157 struct s *b; b->j = 5;
6159 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6160 const int foo = 10;
6163 ; return 0; }
6165 if { (eval echo configure:6166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6166 rm -rf conftest*
6167 ac_cv_c_const=yes
6168 else
6169 echo "configure: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6171 rm -rf conftest*
6172 ac_cv_c_const=no
6174 rm -f conftest*
6177 echo "$ac_t""$ac_cv_c_const" 1>&6
6178 if test $ac_cv_c_const = no; then
6179 cat >> confdefs.h <<\EOF
6180 #define const
6185 echo $ac_n "checking for inline""... $ac_c" 1>&6
6186 echo "configure:6187: checking for inline" >&5
6187 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6188 echo $ac_n "(cached) $ac_c" 1>&6
6189 else
6190 ac_cv_c_inline=no
6191 for ac_kw in inline __inline__ __inline; do
6192 cat > conftest.$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6196 int main() {
6197 } $ac_kw foo() {
6198 ; return 0; }
6200 if { (eval echo configure:6201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6201 rm -rf conftest*
6202 ac_cv_c_inline=$ac_kw; break
6203 else
6204 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6207 rm -f conftest*
6208 done
6212 echo "$ac_t""$ac_cv_c_inline" 1>&6
6213 case "$ac_cv_c_inline" in
6214 inline | yes) ;;
6215 no) cat >> confdefs.h <<\EOF
6216 #define inline
6219 *) cat >> confdefs.h <<EOF
6220 #define inline $ac_cv_c_inline
6223 esac
6225 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6226 echo "configure:6227: checking for ANSI C header files" >&5
6227 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6228 echo $ac_n "(cached) $ac_c" 1>&6
6229 else
6230 cat > conftest.$ac_ext <<EOF
6231 #line 6232 "configure"
6232 #include "confdefs.h"
6233 #include <stdlib.h>
6234 #include <stdarg.h>
6235 #include <string.h>
6236 #include <float.h>
6238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6239 { (eval echo configure:6240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6241 if test -z "$ac_err"; then
6242 rm -rf conftest*
6243 ac_cv_header_stdc=yes
6244 else
6245 echo "$ac_err" >&5
6246 echo "configure: failed program was:" >&5
6247 cat conftest.$ac_ext >&5
6248 rm -rf conftest*
6249 ac_cv_header_stdc=no
6251 rm -f conftest*
6253 if test $ac_cv_header_stdc = yes; then
6254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 #include <string.h>
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261 egrep "memchr" >/dev/null 2>&1; then
6263 else
6264 rm -rf conftest*
6265 ac_cv_header_stdc=no
6267 rm -f conftest*
6271 if test $ac_cv_header_stdc = yes; then
6272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 #include <stdlib.h>
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 egrep "free" >/dev/null 2>&1; then
6281 else
6282 rm -rf conftest*
6283 ac_cv_header_stdc=no
6285 rm -f conftest*
6289 if test $ac_cv_header_stdc = yes; then
6290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6291 if test "$cross_compiling" = yes; then
6293 else
6294 cat > conftest.$ac_ext <<EOF
6295 #line 6296 "configure"
6296 #include "confdefs.h"
6297 #include <ctype.h>
6298 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6299 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6301 int main () { int i; for (i = 0; i < 256; i++)
6302 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6303 exit (0); }
6306 if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6307 then
6309 else
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6312 rm -fr conftest*
6313 ac_cv_header_stdc=no
6315 rm -fr conftest*
6321 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6322 if test $ac_cv_header_stdc = yes; then
6323 cat >> confdefs.h <<\EOF
6324 #define STDC_HEADERS 1
6329 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6330 echo "configure:6331: checking for size_t" >&5
6331 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6333 else
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 #include <sys/types.h>
6338 #if STDC_HEADERS
6339 #include <stdlib.h>
6340 #include <stddef.h>
6341 #endif
6343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6344 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6345 rm -rf conftest*
6346 ac_cv_type_size_t=yes
6347 else
6348 rm -rf conftest*
6349 ac_cv_type_size_t=no
6351 rm -f conftest*
6354 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6355 if test $ac_cv_type_size_t = no; then
6356 cat >> confdefs.h <<\EOF
6357 #define size_t unsigned
6362 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6363 echo "configure:6364: checking size of long long" >&5
6364 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6365 echo $ac_n "(cached) $ac_c" 1>&6
6366 else
6367 if test "$cross_compiling" = yes; then
6368 ac_cv_sizeof_long_long=0
6369 else
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6373 #include <stdio.h>
6374 #include <sys/types.h>
6375 main()
6377 FILE *f=fopen("conftestval", "w");
6378 if (!f) exit(1);
6379 fprintf(f, "%d\n", sizeof(long long));
6380 exit(0);
6383 if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6384 then
6385 ac_cv_sizeof_long_long=`cat conftestval`
6386 else
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6389 rm -fr conftest*
6390 ac_cv_sizeof_long_long=0
6392 rm -fr conftest*
6396 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6397 cat >> confdefs.h <<EOF
6398 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6403 echo $ac_n "checking "whether linux/input.h is for real"""... $ac_c" 1>&6
6404 echo "configure:6405: checking "whether linux/input.h is for real"" >&5
6405 if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6406 echo $ac_n "(cached) $ac_c" 1>&6
6407 else
6408 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure"
6410 #include "confdefs.h"
6412 #include <linux/input.h>
6414 int main() {
6416 int foo = EVIOCGBIT(EV_ABS,42);
6417 int bar = BTN_PINKIE;
6418 int fortytwo = 42;
6420 ; return 0; }
6422 if { (eval echo configure:6423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6423 rm -rf conftest*
6424 wine_cv_linux_input_h=yes
6425 else
6426 echo "configure: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6428 rm -rf conftest*
6429 wine_cv_linux_input_h=no
6431 rm -f conftest*
6435 echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6436 if test "$wine_cv_linux_input_h" = "yes"
6437 then
6438 cat >> confdefs.h <<\EOF
6439 #define HAVE_CORRECT_LINUXINPUT_H 1
6445 echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style"""... $ac_c" 1>&6
6446 echo "configure:6447: checking "whether we can use re-entrant gethostbyname_r Linux style"" >&5
6447 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6448 echo $ac_n "(cached) $ac_c" 1>&6
6449 else
6450 cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6454 #include <netdb.h>
6456 int main() {
6458 char *name=NULL;
6459 struct hostent he;
6460 struct hostent *result;
6461 char *buf=NULL;
6462 int bufsize=0;
6463 int res,errnr;
6464 char *addr=NULL;
6465 int addrlen=0;
6466 int addrtype=0;
6467 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6468 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6470 ; return 0; }
6472 if { (eval echo configure:6473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6473 rm -rf conftest*
6474 wine_cv_linux_gethostbyname_r_6=yes
6475 else
6476 echo "configure: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6478 rm -rf conftest*
6479 wine_cv_linux_gethostbyname_r_6=no
6482 rm -f conftest*
6486 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6487 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6488 then
6489 cat >> confdefs.h <<\EOF
6490 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6495 if test "$ac_cv_header_linux_joystick_h" = "yes"
6496 then
6497 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
6498 echo "configure:6499: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
6499 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6500 echo $ac_n "(cached) $ac_c" 1>&6
6501 else
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6506 #include <sys/ioctl.h>
6507 #include <linux/joystick.h>
6509 struct js_event blub;
6510 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6511 #error "no 2.2 header"
6512 #endif
6514 int main() {
6515 /*empty*/
6516 ; return 0; }
6518 if { (eval echo configure:6519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6519 rm -rf conftest*
6520 wine_cv_linux_joystick_22_api=yes
6521 else
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6524 rm -rf conftest*
6525 wine_cv_linux_joystick_22_api=no
6527 rm -f conftest*
6531 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6532 if test "$wine_cv_linux_joystick_22_api" = "yes"
6533 then
6534 cat >> confdefs.h <<\EOF
6535 #define HAVE_LINUX_22_JOYSTICK_API 1
6542 if test "$ac_cv_header_sys_vfs_h" = "yes"
6543 then
6544 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
6545 echo "configure:6546: checking "whether sys/vfs.h defines statfs"" >&5
6546 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6548 else
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6553 #include <sys/types.h>
6554 #ifdef HAVE_SYS_PARAM_H
6555 # include <sys/param.h>
6556 #endif
6557 #include <sys/vfs.h>
6559 int main() {
6561 struct statfs stfs;
6563 memset(&stfs,0,sizeof(stfs));
6565 ; return 0; }
6567 if { (eval echo configure:6568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6568 rm -rf conftest*
6569 wine_cv_sys_vfs_has_statfs=yes
6570 else
6571 echo "configure: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6573 rm -rf conftest*
6574 wine_cv_sys_vfs_has_statfs=no
6577 rm -f conftest*
6581 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6582 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6583 then
6584 cat >> confdefs.h <<\EOF
6585 #define STATFS_DEFINED_BY_SYS_VFS 1
6591 if test "$ac_cv_header_sys_statfs_h" = "yes"
6592 then
6593 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
6594 echo "configure:6595: checking "whether sys/statfs.h defines statfs"" >&5
6595 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6596 echo $ac_n "(cached) $ac_c" 1>&6
6597 else
6598 cat > conftest.$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6602 #include <sys/types.h>
6603 #ifdef HAVE_SYS_PARAM_H
6604 # include <sys/param.h>
6605 #endif
6606 #include <sys/statfs.h>
6608 int main() {
6610 struct statfs stfs;
6612 ; return 0; }
6614 if { (eval echo configure:6615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6615 rm -rf conftest*
6616 wine_cv_sys_statfs_has_statfs=yes
6617 else
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6620 rm -rf conftest*
6621 wine_cv_sys_statfs_has_statfs=no
6624 rm -f conftest*
6628 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6629 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6630 then
6631 cat >> confdefs.h <<\EOF
6632 #define STATFS_DEFINED_BY_SYS_STATFS 1
6638 if test "$ac_cv_header_sys_mount_h" = "yes"
6639 then
6640 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
6641 echo "configure:6642: checking "whether sys/mount.h defines statfs"" >&5
6642 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6644 else
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6649 #include <sys/types.h>
6650 #ifdef HAVE_SYS_PARAM_H
6651 # include <sys/param.h>
6652 #endif
6653 #include <sys/mount.h>
6655 int main() {
6657 struct statfs stfs;
6659 ; return 0; }
6661 if { (eval echo configure:6662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6662 rm -rf conftest*
6663 wine_cv_sys_mount_has_statfs=yes
6664 else
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6667 rm -rf conftest*
6668 wine_cv_sys_mount_has_statfs=no
6671 rm -f conftest*
6675 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6676 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6677 then
6678 cat >> confdefs.h <<\EOF
6679 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6686 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
6687 echo "configure:6688: checking "for statfs.f_bfree"" >&5
6688 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6689 echo $ac_n "(cached) $ac_c" 1>&6
6690 else
6691 if test "x$statfs_bfree" = "xno"
6692 then
6693 wine_cv_statfs_bfree=no
6694 else
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6699 #include <sys/types.h>
6700 #ifdef HAVE_SYS_PARAM_H
6701 # include <sys/param.h>
6702 #endif
6703 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6704 # include <sys/mount.h>
6705 #else
6706 # ifdef STATFS_DEFINED_BY_SYS_VFS
6707 # include <sys/vfs.h>
6708 # else
6709 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6710 # include <sys/statfs.h>
6711 # endif
6712 # endif
6713 #endif
6715 int main() {
6717 struct statfs stfs;
6719 stfs.f_bfree++;
6721 ; return 0; }
6723 if { (eval echo configure:6724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6724 rm -rf conftest*
6725 wine_cv_statfs_bfree=yes
6726 else
6727 echo "configure: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6729 rm -rf conftest*
6730 wine_cv_statfs_bfree=no
6733 rm -f conftest*
6737 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6738 if test "$wine_cv_statfs_bfree" = "yes"
6739 then
6740 cat >> confdefs.h <<\EOF
6741 #define STATFS_HAS_BFREE 1
6746 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
6747 echo "configure:6748: checking "for statfs.f_bavail"" >&5
6748 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6750 else
6751 if test "x$statfs_bavail" = "xno"
6752 then
6753 wine_cv_statfs_bavail=no
6754 else
6755 cat > conftest.$ac_ext <<EOF
6756 #line 6757 "configure"
6757 #include "confdefs.h"
6759 #include <sys/types.h>
6760 #ifdef HAVE_SYS_PARAM_H
6761 # include <sys/param.h>
6762 #endif
6763 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6764 # include <sys/mount.h>
6765 #else
6766 # ifdef STATFS_DEFINED_BY_SYS_VFS
6767 # include <sys/vfs.h>
6768 # else
6769 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6770 # include <sys/statfs.h>
6771 # endif
6772 # endif
6773 #endif
6775 int main() {
6777 struct statfs stfs;
6779 stfs.f_bavail++;
6781 ; return 0; }
6783 if { (eval echo configure:6784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6784 rm -rf conftest*
6785 wine_cv_statfs_bavail=yes
6786 else
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 rm -rf conftest*
6790 wine_cv_statfs_bavail=no
6793 rm -f conftest*
6797 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6798 if test "$wine_cv_statfs_bavail" = "yes"
6799 then
6800 cat >> confdefs.h <<\EOF
6801 #define STATFS_HAS_BAVAIL 1
6807 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
6808 echo "configure:6809: checking "for msg_accrights in struct msghdr"" >&5
6809 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6810 echo $ac_n "(cached) $ac_c" 1>&6
6811 else
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 #include <sys/types.h>
6816 #include <sys/socket.h>
6817 int main() {
6818 struct msghdr hdr; hdr.msg_accrights=0
6819 ; return 0; }
6821 if { (eval echo configure:6822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6822 rm -rf conftest*
6823 ac_cv_c_msg_accrights="yes"
6824 else
6825 echo "configure: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6827 rm -rf conftest*
6828 ac_cv_c_msg_accrights="no"
6830 rm -f conftest*
6833 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6834 if test "$ac_cv_c_msg_accrights" = "yes"
6835 then
6836 cat >> confdefs.h <<\EOF
6837 #define HAVE_MSGHDR_ACCRIGHTS 1
6843 echo $ac_n "checking "for sa_len in struct sockaddr"""... $ac_c" 1>&6
6844 echo "configure:6845: checking "for sa_len in struct sockaddr"" >&5
6845 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
6846 echo $ac_n "(cached) $ac_c" 1>&6
6847 else
6848 cat > conftest.$ac_ext <<EOF
6849 #line 6850 "configure"
6850 #include "confdefs.h"
6851 #include <sys/types.h>
6852 #include <sys/socket.h>
6854 int main() {
6855 static struct sockaddr addr; addr.sa_len = 1
6856 ; return 0; }
6858 if { (eval echo configure:6859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6859 rm -rf conftest*
6860 ac_cv_c_sockaddr_sa_len="yes"
6861 else
6862 echo "configure: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6864 rm -rf conftest*
6865 ac_cv_c_sockaddr_sa_len="no"
6867 rm -f conftest*
6870 echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6871 if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6872 then
6873 cat >> confdefs.h <<\EOF
6874 #define HAVE_SOCKADDR_SA_LEN 1
6880 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
6881 echo "configure:6882: checking "for sun_len in struct sockaddr_un"" >&5
6882 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6883 echo $ac_n "(cached) $ac_c" 1>&6
6884 else
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 #include <sys/types.h>
6889 #include <sys/socket.h>
6890 #include <sys/un.h>
6891 int main() {
6892 static struct sockaddr_un addr; addr.sun_len = 1
6893 ; return 0; }
6895 if { (eval echo configure:6896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6896 rm -rf conftest*
6897 ac_cv_c_sockaddr_sun_len="yes"
6898 else
6899 echo "configure: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6901 rm -rf conftest*
6902 ac_cv_c_sockaddr_sun_len="no"
6904 rm -f conftest*
6907 echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6908 if test "$ac_cv_c_sockaddr_sun_len" = "yes"
6909 then
6910 cat >> confdefs.h <<\EOF
6911 #define HAVE_SOCKADDR_SUN_LEN 1
6917 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6918 echo "configure:6919: checking "whether we need to define __i386__"" >&5
6919 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6921 else
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6925 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6927 #endif
6929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6930 egrep "yes" >/dev/null 2>&1; then
6931 rm -rf conftest*
6932 ac_cv_cpp_def_i386="yes"
6933 else
6934 rm -rf conftest*
6935 ac_cv_cpp_def_i386="no"
6937 rm -f conftest*
6941 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6942 if test "$ac_cv_cpp_def_i386" = "yes"
6943 then
6944 CFLAGS="$CFLAGS -D__i386__"
6945 LINTFLAGS="$LINTFLAGS -D__i386__"
6948 GCC_NO_BUILTIN=""
6949 if test "$GCC" = "yes"
6950 then
6951 GCC_NO_BUILTIN="-fno-builtin"
6958 MAKE_RULES=Make.rules
6961 MAKE_DLL_RULES=dlls/Makedll.rules
6964 MAKE_PROG_RULES=programs/Makeprog.rules
6967 trap '' 1 2 15
6968 cat > confcache <<\EOF
6969 # This file is a shell script that caches the results of configure
6970 # tests run on this system so they can be shared between configure
6971 # scripts and configure runs. It is not useful on other systems.
6972 # If it contains results you don't want to keep, you may remove or edit it.
6974 # By default, configure uses ./config.cache as the cache file,
6975 # creating it if it does not exist already. You can give configure
6976 # the --cache-file=FILE option to use a different cache file; that is
6977 # what configure does when it calls configure scripts in
6978 # subdirectories, so they share the cache.
6979 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6980 # config.status only pays attention to the cache file if you give it the
6981 # --recheck option to rerun configure.
6984 # The following way of writing the cache mishandles newlines in values,
6985 # but we know of no workaround that is simple, portable, and efficient.
6986 # So, don't put newlines in cache variables' values.
6987 # Ultrix sh set writes to stderr and can't be redirected directly,
6988 # and sets the high bit in the cache file unless we assign to the vars.
6989 (set) 2>&1 |
6990 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6991 *ac_space=\ *)
6992 # `set' does not quote correctly, so add quotes (double-quote substitution
6993 # turns \\\\ into \\, and sed turns \\ into \).
6994 sed -n \
6995 -e "s/'/'\\\\''/g" \
6996 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6999 # `set' quotes correctly as required by POSIX, so do not add quotes.
7000 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7002 esac >> confcache
7003 if cmp -s $cache_file confcache; then
7005 else
7006 if test -w $cache_file; then
7007 echo "updating cache $cache_file"
7008 cat confcache > $cache_file
7009 else
7010 echo "not updating unwritable cache $cache_file"
7013 rm -f confcache
7015 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7018 # Let make expand exec_prefix.
7019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7021 # Any assignment to VPATH causes Sun make to only execute
7022 # the first set of double-colon rules, so remove it if not needed.
7023 # If there is a colon in the path, we need to keep it.
7024 if test "x$srcdir" = x.; then
7025 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7028 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7030 DEFS=-DHAVE_CONFIG_H
7032 # Without the "./", some shells look in PATH for config.status.
7033 : ${CONFIG_STATUS=./config.status}
7035 echo creating $CONFIG_STATUS
7036 rm -f $CONFIG_STATUS
7037 cat > $CONFIG_STATUS <<EOF
7038 #! /bin/sh
7039 # Generated automatically by configure.
7040 # Run this file to recreate the current configuration.
7041 # This directory was configured as follows,
7042 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7044 # $0 $ac_configure_args
7046 # Compiler output produced by configure, useful for debugging
7047 # configure, is in ./config.log if it exists.
7049 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7050 for ac_option
7052 case "\$ac_option" in
7053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7054 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7055 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7056 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7057 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7058 exit 0 ;;
7059 -help | --help | --hel | --he | --h)
7060 echo "\$ac_cs_usage"; exit 0 ;;
7061 *) echo "\$ac_cs_usage"; exit 1 ;;
7062 esac
7063 done
7065 ac_given_srcdir=$srcdir
7066 ac_given_INSTALL="$INSTALL"
7068 trap 'rm -fr `echo "
7069 Make.rules
7070 dlls/Makedll.rules
7071 programs/Makeprog.rules
7072 Makefile
7073 console/Makefile
7074 controls/Makefile
7075 debugger/Makefile
7076 dlls/Makefile
7077 dlls/advapi32/Makefile
7078 dlls/avifil32/Makefile
7079 dlls/comctl32/Makefile
7080 dlls/commdlg/Makefile
7081 dlls/crtdll/Makefile
7082 dlls/dciman32/Makefile
7083 dlls/ddraw/Makefile
7084 dlls/dinput/Makefile
7085 dlls/dplay/Makefile
7086 dlls/dplayx/Makefile
7087 dlls/dsound/Makefile
7088 dlls/gdi/Makefile
7089 dlls/glu32/Makefile
7090 dlls/icmp/Makefile
7091 dlls/imagehlp/Makefile
7092 dlls/imm32/Makefile
7093 dlls/kernel/Makefile
7094 dlls/lzexpand/Makefile
7095 dlls/mpr/Makefile
7096 dlls/msacm/Makefile
7097 dlls/msnet32/Makefile
7098 dlls/msvcrt/Makefile
7099 dlls/msvideo/Makefile
7100 dlls/ntdll/Makefile
7101 dlls/odbc32/Makefile
7102 dlls/ole32/Makefile
7103 dlls/oleaut32/Makefile
7104 dlls/olecli/Makefile
7105 dlls/oledlg/Makefile
7106 dlls/olepro32/Makefile
7107 dlls/olesvr/Makefile
7108 dlls/opengl32/Makefile
7109 dlls/psapi/Makefile
7110 dlls/quartz/Makefile
7111 dlls/rasapi32/Makefile
7112 dlls/richedit/Makefile
7113 dlls/rpcrt4/Makefile
7114 dlls/serialui/Makefile
7115 dlls/setupapi/Makefile
7116 dlls/shdocvw/Makefile
7117 dlls/shell32/Makefile
7118 dlls/shfolder/Makefile
7119 dlls/shlwapi/Makefile
7120 dlls/tapi32/Makefile
7121 dlls/ttydrv/Makefile
7122 dlls/urlmon/Makefile
7123 dlls/user/Makefile
7124 dlls/version/Makefile
7125 dlls/win32s/Makefile
7126 dlls/winaspi/Makefile
7127 dlls/winedos/Makefile
7128 dlls/wineps/Makefile
7129 dlls/wininet/Makefile
7130 dlls/winmm/Makefile
7131 dlls/winmm/joystick/Makefile
7132 dlls/winmm/mcianim/Makefile
7133 dlls/winmm/mciavi/Makefile
7134 dlls/winmm/mcicda/Makefile
7135 dlls/winmm/mciseq/Makefile
7136 dlls/winmm/mciwave/Makefile
7137 dlls/winmm/midimap/Makefile
7138 dlls/winmm/wavemap/Makefile
7139 dlls/winmm/wineoss/Makefile
7140 dlls/winnls/Makefile
7141 dlls/winsock/Makefile
7142 dlls/winspool/Makefile
7143 dlls/wintrust/Makefile
7144 dlls/wow32/Makefile
7145 dlls/wsock32/Makefile
7146 dlls/x11drv/Makefile
7147 documentation/Makefile
7148 documentation/wine.conf.man
7149 documentation/wine.man
7150 files/Makefile
7151 graphics/Makefile
7152 graphics/enhmetafiledrv/Makefile
7153 graphics/metafiledrv/Makefile
7154 graphics/win16drv/Makefile
7155 graphics/x11drv/Makefile
7156 if1632/Makefile
7157 include/Makefile
7158 library/Makefile
7159 libtest/Makefile
7160 loader/Makefile
7161 loader/dos/Makefile
7162 loader/ne/Makefile
7163 memory/Makefile
7164 misc/Makefile
7165 miscemu/Makefile
7166 msdos/Makefile
7167 objects/Makefile
7168 ole/Makefile
7169 programs/Makefile
7170 programs/avitools/Makefile
7171 programs/clock/Makefile
7172 programs/cmdlgtst/Makefile
7173 programs/control/Makefile
7174 programs/notepad/Makefile
7175 programs/osversioncheck/Makefile
7176 programs/progman/Makefile
7177 programs/regapi/Makefile
7178 programs/regtest/Makefile
7179 programs/uninstaller/Makefile
7180 programs/view/Makefile
7181 programs/wcmd/Makefile
7182 programs/winemine/Makefile
7183 programs/winetest/Makefile
7184 programs/winhelp/Makefile
7185 programs/winver/Makefile
7186 relay32/Makefile
7187 scheduler/Makefile
7188 server/Makefile
7189 tools/Makefile
7190 tools/cvdump/Makefile
7191 tools/specmaker/Makefile
7192 tools/winebuild/Makefile
7193 tools/winelauncher
7194 tools/wmc/Makefile
7195 tools/wrc/Makefile
7196 tsx11/Makefile
7197 unicode/Makefile
7198 win32/Makefile
7199 windows/Makefile
7200 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7202 cat >> $CONFIG_STATUS <<EOF
7204 # Protect against being on the right side of a sed subst in config.status.
7205 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7206 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7207 $ac_vpsub
7208 $extrasub
7209 s%@SHELL@%$SHELL%g
7210 s%@CFLAGS@%$CFLAGS%g
7211 s%@CPPFLAGS@%$CPPFLAGS%g
7212 s%@CXXFLAGS@%$CXXFLAGS%g
7213 s%@FFLAGS@%$FFLAGS%g
7214 s%@DEFS@%$DEFS%g
7215 s%@LDFLAGS@%$LDFLAGS%g
7216 s%@LIBS@%$LIBS%g
7217 s%@exec_prefix@%$exec_prefix%g
7218 s%@prefix@%$prefix%g
7219 s%@program_transform_name@%$program_transform_name%g
7220 s%@bindir@%$bindir%g
7221 s%@sbindir@%$sbindir%g
7222 s%@libexecdir@%$libexecdir%g
7223 s%@datadir@%$datadir%g
7224 s%@sysconfdir@%$sysconfdir%g
7225 s%@sharedstatedir@%$sharedstatedir%g
7226 s%@localstatedir@%$localstatedir%g
7227 s%@libdir@%$libdir%g
7228 s%@includedir@%$includedir%g
7229 s%@oldincludedir@%$oldincludedir%g
7230 s%@infodir@%$infodir%g
7231 s%@mandir@%$mandir%g
7232 s%@OPTIONS@%$OPTIONS%g
7233 s%@SET_MAKE@%$SET_MAKE%g
7234 s%@CC@%$CC%g
7235 s%@CPP@%$CPP%g
7236 s%@X_CFLAGS@%$X_CFLAGS%g
7237 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7238 s%@X_LIBS@%$X_LIBS%g
7239 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7240 s%@YACC@%$YACC%g
7241 s%@LEX@%$LEX%g
7242 s%@LEXLIB@%$LEXLIB%g
7243 s%@XLEX@%$XLEX%g
7244 s%@RANLIB@%$RANLIB%g
7245 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7246 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7247 s%@INSTALL_DATA@%$INSTALL_DATA%g
7248 s%@LN_S@%$LN_S%g
7249 s%@C2MAN@%$C2MAN%g
7250 s%@LDCONFIG@%$LDCONFIG%g
7251 s%@DLLWRAP@%$DLLWRAP%g
7252 s%@LINT@%$LINT%g
7253 s%@LINTFLAGS@%$LINTFLAGS%g
7254 s%@LDCOMBINE@%$LDCOMBINE%g
7255 s%@XLIB@%$XLIB%g
7256 s%@X_DLLS@%$X_DLLS%g
7257 s%@XFILES@%$XFILES%g
7258 s%@OPENGLFILES@%$OPENGLFILES%g
7259 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
7260 s%@GLU32FILES@%$GLU32FILES%g
7261 s%@GLU32_DLL@%$GLU32_DLL%g
7262 s%@CUPSLIBS@%$CUPSLIBS%g
7263 s%@ft_devel@%$ft_devel%g
7264 s%@ft_devel2@%$ft_devel2%g
7265 s%@FREETYPELIBS@%$FREETYPELIBS%g
7266 s%@FREETYPEINCL@%$FREETYPEINCL%g
7267 s%@DLL_LINK@%$DLL_LINK%g
7268 s%@DLLFLAGS@%$DLLFLAGS%g
7269 s%@LDSHARED@%$LDSHARED%g
7270 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7271 s%@LIBEXT@%$LIBEXT%g
7272 s%@LDPATH@%$LDPATH%g
7273 s%@ALLOCA@%$ALLOCA%g
7274 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7275 /@MAKE_RULES@/r $MAKE_RULES
7276 s%@MAKE_RULES@%%g
7277 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7278 s%@MAKE_DLL_RULES@%%g
7279 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7280 s%@MAKE_PROG_RULES@%%g
7282 CEOF
7285 cat >> $CONFIG_STATUS <<\EOF
7287 # Split the substitutions into bite-sized pieces for seds with
7288 # small command number limits, like on Digital OSF/1 and HP-UX.
7289 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7290 ac_file=1 # Number of current file.
7291 ac_beg=1 # First line for current file.
7292 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7293 ac_more_lines=:
7294 ac_sed_cmds=""
7295 while $ac_more_lines; do
7296 if test $ac_beg -gt 1; then
7297 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7298 else
7299 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7301 if test ! -s conftest.s$ac_file; then
7302 ac_more_lines=false
7303 rm -f conftest.s$ac_file
7304 else
7305 if test -z "$ac_sed_cmds"; then
7306 ac_sed_cmds="sed -f conftest.s$ac_file"
7307 else
7308 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7310 ac_file=`expr $ac_file + 1`
7311 ac_beg=$ac_end
7312 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7314 done
7315 if test -z "$ac_sed_cmds"; then
7316 ac_sed_cmds=cat
7320 cat >> $CONFIG_STATUS <<EOF
7322 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7323 dlls/Makedll.rules
7324 programs/Makeprog.rules
7325 Makefile
7326 console/Makefile
7327 controls/Makefile
7328 debugger/Makefile
7329 dlls/Makefile
7330 dlls/advapi32/Makefile
7331 dlls/avifil32/Makefile
7332 dlls/comctl32/Makefile
7333 dlls/commdlg/Makefile
7334 dlls/crtdll/Makefile
7335 dlls/dciman32/Makefile
7336 dlls/ddraw/Makefile
7337 dlls/dinput/Makefile
7338 dlls/dplay/Makefile
7339 dlls/dplayx/Makefile
7340 dlls/dsound/Makefile
7341 dlls/gdi/Makefile
7342 dlls/glu32/Makefile
7343 dlls/icmp/Makefile
7344 dlls/imagehlp/Makefile
7345 dlls/imm32/Makefile
7346 dlls/kernel/Makefile
7347 dlls/lzexpand/Makefile
7348 dlls/mpr/Makefile
7349 dlls/msacm/Makefile
7350 dlls/msnet32/Makefile
7351 dlls/msvcrt/Makefile
7352 dlls/msvideo/Makefile
7353 dlls/ntdll/Makefile
7354 dlls/odbc32/Makefile
7355 dlls/ole32/Makefile
7356 dlls/oleaut32/Makefile
7357 dlls/olecli/Makefile
7358 dlls/oledlg/Makefile
7359 dlls/olepro32/Makefile
7360 dlls/olesvr/Makefile
7361 dlls/opengl32/Makefile
7362 dlls/psapi/Makefile
7363 dlls/quartz/Makefile
7364 dlls/rasapi32/Makefile
7365 dlls/richedit/Makefile
7366 dlls/rpcrt4/Makefile
7367 dlls/serialui/Makefile
7368 dlls/setupapi/Makefile
7369 dlls/shdocvw/Makefile
7370 dlls/shell32/Makefile
7371 dlls/shfolder/Makefile
7372 dlls/shlwapi/Makefile
7373 dlls/tapi32/Makefile
7374 dlls/ttydrv/Makefile
7375 dlls/urlmon/Makefile
7376 dlls/user/Makefile
7377 dlls/version/Makefile
7378 dlls/win32s/Makefile
7379 dlls/winaspi/Makefile
7380 dlls/winedos/Makefile
7381 dlls/wineps/Makefile
7382 dlls/wininet/Makefile
7383 dlls/winmm/Makefile
7384 dlls/winmm/joystick/Makefile
7385 dlls/winmm/mcianim/Makefile
7386 dlls/winmm/mciavi/Makefile
7387 dlls/winmm/mcicda/Makefile
7388 dlls/winmm/mciseq/Makefile
7389 dlls/winmm/mciwave/Makefile
7390 dlls/winmm/midimap/Makefile
7391 dlls/winmm/wavemap/Makefile
7392 dlls/winmm/wineoss/Makefile
7393 dlls/winnls/Makefile
7394 dlls/winsock/Makefile
7395 dlls/winspool/Makefile
7396 dlls/wintrust/Makefile
7397 dlls/wow32/Makefile
7398 dlls/wsock32/Makefile
7399 dlls/x11drv/Makefile
7400 documentation/Makefile
7401 documentation/wine.conf.man
7402 documentation/wine.man
7403 files/Makefile
7404 graphics/Makefile
7405 graphics/enhmetafiledrv/Makefile
7406 graphics/metafiledrv/Makefile
7407 graphics/win16drv/Makefile
7408 graphics/x11drv/Makefile
7409 if1632/Makefile
7410 include/Makefile
7411 library/Makefile
7412 libtest/Makefile
7413 loader/Makefile
7414 loader/dos/Makefile
7415 loader/ne/Makefile
7416 memory/Makefile
7417 misc/Makefile
7418 miscemu/Makefile
7419 msdos/Makefile
7420 objects/Makefile
7421 ole/Makefile
7422 programs/Makefile
7423 programs/avitools/Makefile
7424 programs/clock/Makefile
7425 programs/cmdlgtst/Makefile
7426 programs/control/Makefile
7427 programs/notepad/Makefile
7428 programs/osversioncheck/Makefile
7429 programs/progman/Makefile
7430 programs/regapi/Makefile
7431 programs/regtest/Makefile
7432 programs/uninstaller/Makefile
7433 programs/view/Makefile
7434 programs/wcmd/Makefile
7435 programs/winemine/Makefile
7436 programs/winetest/Makefile
7437 programs/winhelp/Makefile
7438 programs/winver/Makefile
7439 relay32/Makefile
7440 scheduler/Makefile
7441 server/Makefile
7442 tools/Makefile
7443 tools/cvdump/Makefile
7444 tools/specmaker/Makefile
7445 tools/winebuild/Makefile
7446 tools/winelauncher
7447 tools/wmc/Makefile
7448 tools/wrc/Makefile
7449 tsx11/Makefile
7450 unicode/Makefile
7451 win32/Makefile
7452 windows/Makefile
7453 windows/x11drv/Makefile "}
7455 cat >> $CONFIG_STATUS <<\EOF
7456 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7457 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7458 case "$ac_file" in
7459 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7460 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7461 *) ac_file_in="${ac_file}.in" ;;
7462 esac
7464 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7466 # Remove last slash and all that follows it. Not all systems have dirname.
7467 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7468 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7469 # The file is in a subdirectory.
7470 test ! -d "$ac_dir" && mkdir "$ac_dir"
7471 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7472 # A "../" for each directory in $ac_dir_suffix.
7473 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7474 else
7475 ac_dir_suffix= ac_dots=
7478 case "$ac_given_srcdir" in
7479 .) srcdir=.
7480 if test -z "$ac_dots"; then top_srcdir=.
7481 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7482 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7483 *) # Relative path.
7484 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7485 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7486 esac
7488 case "$ac_given_INSTALL" in
7489 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7490 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7491 esac
7493 echo creating "$ac_file"
7494 rm -f "$ac_file"
7495 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7496 case "$ac_file" in
7497 *Makefile*) ac_comsub="1i\\
7498 # $configure_input" ;;
7499 *) ac_comsub= ;;
7500 esac
7502 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7503 sed -e "$ac_comsub
7504 s%@configure_input@%$configure_input%g
7505 s%@srcdir@%$srcdir%g
7506 s%@top_srcdir@%$top_srcdir%g
7507 s%@INSTALL@%$INSTALL%g
7508 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7509 fi; done
7510 rm -f conftest.s*
7512 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7513 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7515 # ac_d sets the value in "#define NAME VALUE" lines.
7516 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7517 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7518 ac_dC='\3'
7519 ac_dD='%g'
7520 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7521 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7522 ac_uB='\([ ]\)%\1#\2define\3'
7523 ac_uC=' '
7524 ac_uD='\4%g'
7525 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7526 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7527 ac_eB='$%\1#\2define\3'
7528 ac_eC=' '
7529 ac_eD='%g'
7531 if test "${CONFIG_HEADERS+set}" != set; then
7533 cat >> $CONFIG_STATUS <<EOF
7534 CONFIG_HEADERS="include/config.h"
7536 cat >> $CONFIG_STATUS <<\EOF
7538 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7540 case "$ac_file" in
7541 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7542 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7543 *) ac_file_in="${ac_file}.in" ;;
7544 esac
7546 echo creating $ac_file
7548 rm -f conftest.frag conftest.in conftest.out
7549 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7550 cat $ac_file_inputs > conftest.in
7554 # Transform confdefs.h into a sed script conftest.vals that substitutes
7555 # the proper values into config.h.in to produce config.h. And first:
7556 # Protect against being on the right side of a sed subst in config.status.
7557 # Protect against being in an unquoted here document in config.status.
7558 rm -f conftest.vals
7559 cat > conftest.hdr <<\EOF
7560 s/[\\&%]/\\&/g
7561 s%[\\$`]%\\&%g
7562 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7563 s%ac_d%ac_u%gp
7564 s%ac_u%ac_e%gp
7566 sed -n -f conftest.hdr confdefs.h > conftest.vals
7567 rm -f conftest.hdr
7569 # This sed command replaces #undef with comments. This is necessary, for
7570 # example, in the case of _POSIX_SOURCE, which is predefined and required
7571 # on some systems where configure will not decide to define it.
7572 cat >> conftest.vals <<\EOF
7573 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7576 # Break up conftest.vals because some shells have a limit on
7577 # the size of here documents, and old seds have small limits too.
7579 rm -f conftest.tail
7580 while :
7582 ac_lines=`grep -c . conftest.vals`
7583 # grep -c gives empty output for an empty file on some AIX systems.
7584 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7585 # Write a limited-size here document to conftest.frag.
7586 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7587 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7588 echo 'CEOF
7589 sed -f conftest.frag conftest.in > conftest.out
7590 rm -f conftest.in
7591 mv conftest.out conftest.in
7592 ' >> $CONFIG_STATUS
7593 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7594 rm -f conftest.vals
7595 mv conftest.tail conftest.vals
7596 done
7597 rm -f conftest.vals
7599 cat >> $CONFIG_STATUS <<\EOF
7600 rm -f conftest.frag conftest.h
7601 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7602 cat conftest.in >> conftest.h
7603 rm -f conftest.in
7604 if cmp -s $ac_file conftest.h 2>/dev/null; then
7605 echo "$ac_file is unchanged"
7606 rm -f conftest.h
7607 else
7608 # Remove last slash and all that follows it. Not all systems have dirname.
7609 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7610 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7611 # The file is in a subdirectory.
7612 test ! -d "$ac_dir" && mkdir "$ac_dir"
7614 rm -f $ac_file
7615 mv conftest.h $ac_file
7617 fi; done
7620 cat >> $CONFIG_STATUS <<EOF
7624 cat >> $CONFIG_STATUS <<\EOF
7626 extra_subdirs="\
7627 dlls/ddraw/d3ddevice \
7628 dlls/ddraw/dclipper \
7629 dlls/ddraw/ddraw \
7630 dlls/ddraw/direct3d \
7631 dlls/ddraw/dpalette \
7632 dlls/ddraw/dsurface \
7633 dlls/dinput/joystick \
7634 dlls/dinput/keyboard \
7635 dlls/dinput/mouse \
7636 dlls/kernel/messages \
7637 dlls/user/dde \
7638 dlls/user/resources \
7639 dlls/wineps/data \
7641 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7643 exit 0
7645 chmod +x $CONFIG_STATUS
7646 rm -fr confdefs* $ac_clean_files
7647 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7650 if test "$have_x" = "no"
7651 then
7652 echo
7653 echo "*** Warning: X development files not found. Wine will be built without"
7654 echo "*** X support, which currently does not work, and would probably not be"
7655 echo "*** what you want anyway. You will need to install devel packages of"
7656 echo "*** Xlib/Xfree86 and Xpm at the very least."
7657 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7658 then
7659 echo
7660 echo "*** Warning: Xpm development files not found. Wine will be built without"
7661 echo "*** Xpm support, which currently does not work. You will need to install"
7662 echo "*** devel packages of Xpm."
7665 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7666 then
7667 echo
7668 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7669 echo "*** terminal resize support. Consider upgrading ncurses."
7672 if test "$wine_cv_libc_reentrant" = "no"
7673 then
7674 echo
7675 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7676 echo "*** thread support. Consider upgrading libc to a more recent"
7677 echo "*** reentrant version of libc."
7680 if test "$wine_cv_opengl_version_OK" = "no"
7681 then
7682 echo
7683 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7684 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7687 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7688 then
7689 echo
7690 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7691 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7692 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7693 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7696 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7697 then
7698 echo
7699 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7700 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7701 echo "*** support before reporting bugs."
7704 if test "$wine_cv_warn_cups_h" = "yes"
7705 then
7706 echo
7707 echo "*** Note: You have cups runtime libraries, but no development"
7708 echo "*** libraries. Install the cups-devel package or whichever package"
7709 echo "*** contains cups.h to enable CUPS support in WINE."
7712 if test "$wine_cv_msg_freetype" = "yes"
7713 then
7714 echo
7715 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7716 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7717 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7718 echo "*** enable Wine to use TrueType fonts."
7721 echo
7722 echo "Configure finished. Do 'make depend && make' to compile Wine."
7723 echo