Ignore ConfigueNotify size changes while the window is iconic.
[wine/multimedia.git] / configure
blob5cd153026350ec8b74413297a10e97fc9d09f3cc
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
3016 JPEGLIB=""
3018 for ac_hdr in jpeglib.h
3020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_hdr" >&5
3023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3025 else
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 #include <$ac_hdr>
3031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3032 { (eval echo configure:3033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3034 if test -z "$ac_err"; then
3035 rm -rf conftest*
3036 eval "ac_cv_header_$ac_safe=yes"
3037 else
3038 echo "$ac_err" >&5
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3041 rm -rf conftest*
3042 eval "ac_cv_header_$ac_safe=no"
3044 rm -f conftest*
3046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3047 echo "$ac_t""yes" 1>&6
3048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3049 cat >> confdefs.h <<EOF
3050 #define $ac_tr_hdr 1
3052 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
3053 echo "configure:3054: checking for jpeg_start_decompress in -ljpeg" >&5
3054 ac_lib_var=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057 else
3058 ac_save_LIBS="$LIBS"
3059 LIBS="-ljpeg $LIBS"
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* Override any gcc2 internal prototype to avoid an error. */
3064 /* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3066 char jpeg_start_decompress();
3068 int main() {
3069 jpeg_start_decompress()
3070 ; return 0; }
3072 if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3073 rm -rf conftest*
3074 eval "ac_cv_lib_$ac_lib_var=yes"
3075 else
3076 echo "configure: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3078 rm -rf conftest*
3079 eval "ac_cv_lib_$ac_lib_var=no"
3081 rm -f conftest*
3082 LIBS="$ac_save_LIBS"
3085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 cat >> confdefs.h <<\EOF
3088 #define HAVE_LIBJPEG 1
3091 JPEGLIB="-ljpeg"
3093 else
3094 echo "$ac_t""no" 1>&6
3098 else
3099 echo "$ac_t""no" 1>&6
3101 done
3107 XFILES=""
3109 OPENGLFILES=""
3111 GLU32FILES=""
3112 if test "$have_x" = "yes"
3113 then
3114 XLIB="-lXext -lX11"
3115 ac_save_CPPFLAGS="$CPPFLAGS"
3116 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3118 for ac_hdr in X11/xpm.h
3120 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_hdr" >&5
3123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3125 else
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 #include <$ac_hdr>
3131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3132 { (eval echo configure:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3134 if test -z "$ac_err"; then
3135 rm -rf conftest*
3136 eval "ac_cv_header_$ac_safe=yes"
3137 else
3138 echo "$ac_err" >&5
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 rm -rf conftest*
3142 eval "ac_cv_header_$ac_safe=no"
3144 rm -f conftest*
3146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3147 echo "$ac_t""yes" 1>&6
3148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3149 cat >> confdefs.h <<EOF
3150 #define $ac_tr_hdr 1
3152 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3153 echo "configure:3154: checking for XpmCreatePixmapFromData in -lXpm" >&5
3154 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3157 else
3158 ac_save_LIBS="$LIBS"
3159 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3160 $LIBS"
3161 cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 /* We use char because int might match the return type of a gcc2
3166 builtin and then its argument prototype would still apply. */
3167 char XpmCreatePixmapFromData();
3169 int main() {
3170 XpmCreatePixmapFromData()
3171 ; return 0; }
3173 if { (eval echo configure:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3174 rm -rf conftest*
3175 eval "ac_cv_lib_$ac_lib_var=yes"
3176 else
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3179 rm -rf conftest*
3180 eval "ac_cv_lib_$ac_lib_var=no"
3182 rm -f conftest*
3183 LIBS="$ac_save_LIBS"
3186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3187 echo "$ac_t""yes" 1>&6
3188 cat >> confdefs.h <<\EOF
3189 #define HAVE_LIBXXPM 1
3192 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3193 else
3194 echo "$ac_t""no" 1>&6
3198 else
3199 echo "$ac_t""no" 1>&6
3200 echo "Red Hat < 7.1 : xpm xpm-devel"
3201 echo "Red Hat >= 7.1 : XFree86-devel"
3202 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3203 echo "SuSE : xpm"
3204 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3205 echo
3206 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3207 echo "the directory /contrib/libraries."
3208 echo
3209 exit 1
3213 done
3216 for ac_hdr in X11/Xlib.h
3218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_hdr" >&5
3221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3223 else
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 #include <$ac_hdr>
3229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3230 { (eval echo configure:3231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3232 if test -z "$ac_err"; then
3233 rm -rf conftest*
3234 eval "ac_cv_header_$ac_safe=yes"
3235 else
3236 echo "$ac_err" >&5
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 rm -rf conftest*
3240 eval "ac_cv_header_$ac_safe=no"
3242 rm -f conftest*
3244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3245 echo "$ac_t""yes" 1>&6
3246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3247 cat >> confdefs.h <<EOF
3248 #define $ac_tr_hdr 1
3251 for ac_hdr in X11/XKBlib.h
3253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3255 echo "configure:3256: checking for $ac_hdr" >&5
3256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3258 else
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 #include <$ac_hdr>
3264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3265 { (eval echo configure:3266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3267 if test -z "$ac_err"; then
3268 rm -rf conftest*
3269 eval "ac_cv_header_$ac_safe=yes"
3270 else
3271 echo "$ac_err" >&5
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3274 rm -rf conftest*
3275 eval "ac_cv_header_$ac_safe=no"
3277 rm -f conftest*
3279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3280 echo "$ac_t""yes" 1>&6
3281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3282 cat >> confdefs.h <<EOF
3283 #define $ac_tr_hdr 1
3285 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3286 echo "configure:3287: checking for XkbQueryExtension in -lX11" >&5
3287 ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3290 else
3291 ac_save_LIBS="$LIBS"
3292 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 /* Override any gcc2 internal prototype to avoid an error. */
3297 /* We use char because int might match the return type of a gcc2
3298 builtin and then its argument prototype would still apply. */
3299 char XkbQueryExtension();
3301 int main() {
3302 XkbQueryExtension()
3303 ; return 0; }
3305 if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3306 rm -rf conftest*
3307 eval "ac_cv_lib_$ac_lib_var=yes"
3308 else
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3311 rm -rf conftest*
3312 eval "ac_cv_lib_$ac_lib_var=no"
3314 rm -f conftest*
3315 LIBS="$ac_save_LIBS"
3318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3319 echo "$ac_t""yes" 1>&6
3320 cat >> confdefs.h <<\EOF
3321 #define HAVE_XKB 1
3324 else
3325 echo "$ac_t""no" 1>&6
3329 else
3330 echo "$ac_t""no" 1>&6
3331 echo "configure: warning: XKB extension not found!!" 1>&2
3334 done
3337 for ac_hdr in X11/extensions/XShm.h
3339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3341 echo "configure:3342: checking for $ac_hdr" >&5
3342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3344 else
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 #include <$ac_hdr>
3350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3351 { (eval echo configure:3352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3353 if test -z "$ac_err"; then
3354 rm -rf conftest*
3355 eval "ac_cv_header_$ac_safe=yes"
3356 else
3357 echo "$ac_err" >&5
3358 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3360 rm -rf conftest*
3361 eval "ac_cv_header_$ac_safe=no"
3363 rm -f conftest*
3365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3366 echo "$ac_t""yes" 1>&6
3367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3368 cat >> confdefs.h <<EOF
3369 #define $ac_tr_hdr 1
3371 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3372 echo "configure:3373: checking for XShmQueryExtension in -lXext" >&5
3373 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3376 else
3377 ac_save_LIBS="$LIBS"
3378 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 /* Override any gcc2 internal prototype to avoid an error. */
3383 /* We use char because int might match the return type of a gcc2
3384 builtin and then its argument prototype would still apply. */
3385 char XShmQueryExtension();
3387 int main() {
3388 XShmQueryExtension()
3389 ; return 0; }
3391 if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3392 rm -rf conftest*
3393 eval "ac_cv_lib_$ac_lib_var=yes"
3394 else
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 rm -rf conftest*
3398 eval "ac_cv_lib_$ac_lib_var=no"
3400 rm -f conftest*
3401 LIBS="$ac_save_LIBS"
3404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3406 cat >> confdefs.h <<\EOF
3407 #define HAVE_LIBXXSHM 1
3410 else
3411 echo "$ac_t""no" 1>&6
3415 else
3416 echo "$ac_t""no" 1>&6
3417 echo "configure: warning: Xshm extension not found!!" 1>&2
3420 done
3423 for ac_hdr in X11/extensions/shape.h
3425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3427 echo "configure:3428: checking for $ac_hdr" >&5
3428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3430 else
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 #include <$ac_hdr>
3436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3437 { (eval echo configure:3438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3439 if test -z "$ac_err"; then
3440 rm -rf conftest*
3441 eval "ac_cv_header_$ac_safe=yes"
3442 else
3443 echo "$ac_err" >&5
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3446 rm -rf conftest*
3447 eval "ac_cv_header_$ac_safe=no"
3449 rm -f conftest*
3451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3452 echo "$ac_t""yes" 1>&6
3453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3454 cat >> confdefs.h <<EOF
3455 #define $ac_tr_hdr 1
3457 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3458 echo "configure:3459: checking for XShapeQueryExtension in -lXext" >&5
3459 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3462 else
3463 ac_save_LIBS="$LIBS"
3464 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* Override any gcc2 internal prototype to avoid an error. */
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471 char XShapeQueryExtension();
3473 int main() {
3474 XShapeQueryExtension()
3475 ; return 0; }
3477 if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3478 rm -rf conftest*
3479 eval "ac_cv_lib_$ac_lib_var=yes"
3480 else
3481 echo "configure: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3483 rm -rf conftest*
3484 eval "ac_cv_lib_$ac_lib_var=no"
3486 rm -f conftest*
3487 LIBS="$ac_save_LIBS"
3490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3491 echo "$ac_t""yes" 1>&6
3492 cat >> confdefs.h <<\EOF
3493 #define HAVE_LIBXSHAPE 1
3496 else
3497 echo "$ac_t""no" 1>&6
3501 else
3502 echo "$ac_t""no" 1>&6
3503 echo "configure: warning: XShape extension not found!!" 1>&2
3506 done
3509 for ac_hdr in X11/extensions/xf86dga.h
3511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3513 echo "configure:3514: checking for $ac_hdr" >&5
3514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3516 else
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3520 #include <$ac_hdr>
3522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3523 { (eval echo configure:3524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3525 if test -z "$ac_err"; then
3526 rm -rf conftest*
3527 eval "ac_cv_header_$ac_safe=yes"
3528 else
3529 echo "$ac_err" >&5
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3532 rm -rf conftest*
3533 eval "ac_cv_header_$ac_safe=no"
3535 rm -f conftest*
3537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3538 echo "$ac_t""yes" 1>&6
3539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3540 cat >> confdefs.h <<EOF
3541 #define $ac_tr_hdr 1
3543 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3544 echo "configure:3545: checking for XDGAQueryExtension in -lXxf86dga" >&5
3545 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3548 else
3549 ac_save_LIBS="$LIBS"
3550 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3551 $LIBS"
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 /* Override any gcc2 internal prototype to avoid an error. */
3556 /* We use char because int might match the return type of a gcc2
3557 builtin and then its argument prototype would still apply. */
3558 char XDGAQueryExtension();
3560 int main() {
3561 XDGAQueryExtension()
3562 ; return 0; }
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3565 rm -rf conftest*
3566 eval "ac_cv_lib_$ac_lib_var=yes"
3567 else
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3570 rm -rf conftest*
3571 eval "ac_cv_lib_$ac_lib_var=no"
3573 rm -f conftest*
3574 LIBS="$ac_save_LIBS"
3577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3578 echo "$ac_t""yes" 1>&6
3579 cat >> confdefs.h <<\EOF
3580 #define HAVE_LIBXXF86DGA2 1
3583 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3585 else
3586 echo "$ac_t""no" 1>&6
3587 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3588 echo "configure:3589: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3589 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3592 else
3593 ac_save_LIBS="$LIBS"
3594 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3595 $LIBS"
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 /* Override any gcc2 internal prototype to avoid an error. */
3600 /* We use char because int might match the return type of a gcc2
3601 builtin and then its argument prototype would still apply. */
3602 char XF86DGAQueryExtension();
3604 int main() {
3605 XF86DGAQueryExtension()
3606 ; return 0; }
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3609 rm -rf conftest*
3610 eval "ac_cv_lib_$ac_lib_var=yes"
3611 else
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3614 rm -rf conftest*
3615 eval "ac_cv_lib_$ac_lib_var=no"
3617 rm -f conftest*
3618 LIBS="$ac_save_LIBS"
3621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3622 echo "$ac_t""yes" 1>&6
3623 cat >> confdefs.h <<\EOF
3624 #define HAVE_LIBXXF86DGA 1
3627 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3629 else
3630 echo "$ac_t""no" 1>&6
3637 else
3638 echo "$ac_t""no" 1>&6
3639 echo "configure: warning: DGA extension not found!!" 1>&2
3642 done
3645 for ac_hdr in X11/extensions/xf86vmode.h
3647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3649 echo "configure:3650: checking for $ac_hdr" >&5
3650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3652 else
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 #include <$ac_hdr>
3658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3659 { (eval echo configure:3660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3661 if test -z "$ac_err"; then
3662 rm -rf conftest*
3663 eval "ac_cv_header_$ac_safe=yes"
3664 else
3665 echo "$ac_err" >&5
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 rm -rf conftest*
3669 eval "ac_cv_header_$ac_safe=no"
3671 rm -f conftest*
3673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3676 cat >> confdefs.h <<EOF
3677 #define $ac_tr_hdr 1
3679 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3680 echo "configure:3681: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3681 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3684 else
3685 ac_save_LIBS="$LIBS"
3686 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3687 $LIBS"
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 /* Override any gcc2 internal prototype to avoid an error. */
3692 /* We use char because int might match the return type of a gcc2
3693 builtin and then its argument prototype would still apply. */
3694 char XF86VidModeQueryExtension();
3696 int main() {
3697 XF86VidModeQueryExtension()
3698 ; return 0; }
3700 if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3701 rm -rf conftest*
3702 eval "ac_cv_lib_$ac_lib_var=yes"
3703 else
3704 echo "configure: failed program was:" >&5
3705 cat conftest.$ac_ext >&5
3706 rm -rf conftest*
3707 eval "ac_cv_lib_$ac_lib_var=no"
3709 rm -f conftest*
3710 LIBS="$ac_save_LIBS"
3713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 cat >> confdefs.h <<\EOF
3716 #define HAVE_LIBXXF86VM 1
3719 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3721 else
3722 echo "$ac_t""no" 1>&6
3726 else
3727 echo "$ac_t""no" 1>&6
3728 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3731 done
3734 for ac_hdr in X11/extensions/Xvlib.h
3736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3738 echo "configure:3739: checking for $ac_hdr" >&5
3739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3741 else
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 #include <$ac_hdr>
3747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3748 { (eval echo configure:3749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3750 if test -z "$ac_err"; then
3751 rm -rf conftest*
3752 eval "ac_cv_header_$ac_safe=yes"
3753 else
3754 echo "$ac_err" >&5
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3757 rm -rf conftest*
3758 eval "ac_cv_header_$ac_safe=no"
3760 rm -f conftest*
3762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3765 cat >> confdefs.h <<EOF
3766 #define $ac_tr_hdr 1
3768 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3769 echo "configure:3770: checking for XvShmCreateImage in -lXv" >&5
3770 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3773 else
3774 ac_save_LIBS="$LIBS"
3775 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3776 $LIBS"
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780 /* Override any gcc2 internal prototype to avoid an error. */
3781 /* We use char because int might match the return type of a gcc2
3782 builtin and then its argument prototype would still apply. */
3783 char XvShmCreateImage();
3785 int main() {
3786 XvShmCreateImage()
3787 ; return 0; }
3789 if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3790 rm -rf conftest*
3791 eval "ac_cv_lib_$ac_lib_var=yes"
3792 else
3793 echo "configure: failed program was:" >&5
3794 cat conftest.$ac_ext >&5
3795 rm -rf conftest*
3796 eval "ac_cv_lib_$ac_lib_var=no"
3798 rm -f conftest*
3799 LIBS="$ac_save_LIBS"
3802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3803 echo "$ac_t""yes" 1>&6
3804 cat >> confdefs.h <<\EOF
3805 #define HAVE_XVIDEO 1
3808 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3810 else
3811 echo "$ac_t""no" 1>&6
3815 else
3816 echo "$ac_t""no" 1>&6
3817 echo "configure: warning: XVideo extension not found !!" 1>&2
3820 done
3823 for ac_hdr in X11/extensions/Xrender.h
3825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3827 echo "configure:3828: checking for $ac_hdr" >&5
3828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3830 else
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 #include <$ac_hdr>
3836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3837 { (eval echo configure:3838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3839 if test -z "$ac_err"; then
3840 rm -rf conftest*
3841 eval "ac_cv_header_$ac_safe=yes"
3842 else
3843 echo "$ac_err" >&5
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 rm -rf conftest*
3847 eval "ac_cv_header_$ac_safe=no"
3849 rm -f conftest*
3851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3852 echo "$ac_t""yes" 1>&6
3853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3854 cat >> confdefs.h <<EOF
3855 #define $ac_tr_hdr 1
3857 echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
3858 echo "configure:3859: checking for XRenderQueryExtension in -lXrender" >&5
3859 ac_lib_var=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
3860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3863 ac_save_LIBS="$LIBS"
3864 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3865 $LIBS"
3866 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 /* Override any gcc2 internal prototype to avoid an error. */
3870 /* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3872 char XRenderQueryExtension();
3874 int main() {
3875 XRenderQueryExtension()
3876 ; return 0; }
3878 if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3879 rm -rf conftest*
3880 eval "ac_cv_lib_$ac_lib_var=yes"
3881 else
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3884 rm -rf conftest*
3885 eval "ac_cv_lib_$ac_lib_var=no"
3887 rm -f conftest*
3888 LIBS="$ac_save_LIBS"
3891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3893 cat >> confdefs.h <<\EOF
3894 #define HAVE_LIBXRENDER 1
3897 X_PRE_LIBS="$X_PRE_LIBS -lXrender"
3899 else
3900 echo "$ac_t""no" 1>&6
3904 else
3905 echo "$ac_t""no" 1>&6
3906 echo "configure: warning: XRender extension not found !!" 1>&2
3909 done
3914 else
3915 echo "$ac_t""no" 1>&6
3917 done
3919 if test $OPENGL = "yes" -o $OPENGL = "normal"
3920 then
3921 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3925 echo "configure:3926: checking for $ac_hdr" >&5
3926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3928 else
3929 cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932 #include <$ac_hdr>
3934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3935 { (eval echo configure:3936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3937 if test -z "$ac_err"; then
3938 rm -rf conftest*
3939 eval "ac_cv_header_$ac_safe=yes"
3940 else
3941 echo "$ac_err" >&5
3942 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3944 rm -rf conftest*
3945 eval "ac_cv_header_$ac_safe=no"
3947 rm -f conftest*
3949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3950 echo "$ac_t""yes" 1>&6
3951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3952 cat >> confdefs.h <<EOF
3953 #define $ac_tr_hdr 1
3956 else
3957 echo "$ac_t""no" 1>&6
3959 done
3961 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3962 then
3963 echo $ac_n "checking for up-to-date OpenGL version""... $ac_c" 1>&6
3964 echo "configure:3965: checking for up-to-date OpenGL version" >&5
3965 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3967 else
3968 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3971 #include <GL/gl.h>
3972 int main() {
3973 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3974 ; return 0; }
3976 if { (eval echo configure:3977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3977 rm -rf conftest*
3978 wine_cv_opengl_version_OK="yes"
3979 else
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3982 rm -rf conftest*
3983 wine_cv_opengl_version_OK="no"
3986 rm -f conftest*
3990 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3992 echo $ac_n "checking for thread-safe OpenGL version""... $ac_c" 1>&6
3993 echo "configure:3994: checking for thread-safe OpenGL version" >&5
3994 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3996 else
3997 saved_libs=$LIBS
3998 LIBS="$X_LIBS -lGL"
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4003 int main() {
4004 pthread_getspecific();
4005 ; return 0; }
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4008 rm -rf conftest*
4009 wine_cv_opengl_version_threadsafe="yes"
4010 else
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4013 rm -rf conftest*
4014 wine_cv_opengl_version_threadsafe="no"
4016 rm -f conftest*
4017 LIBS=$saved_libs
4021 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
4023 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
4024 then
4025 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
4026 echo "configure:4027: checking for glXCreateContext in -lGL" >&5
4027 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
4028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030 else
4031 ac_save_LIBS="$LIBS"
4032 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* Override any gcc2 internal prototype to avoid an error. */
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4039 char glXCreateContext();
4041 int main() {
4042 glXCreateContext()
4043 ; return 0; }
4045 if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4046 rm -rf conftest*
4047 eval "ac_cv_lib_$ac_lib_var=yes"
4048 else
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 rm -rf conftest*
4052 eval "ac_cv_lib_$ac_lib_var=no"
4054 rm -f conftest*
4055 LIBS="$ac_save_LIBS"
4058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4060 X_PRE_LIBS="$X_PRE_LIBS -lGL"
4062 else
4063 echo "$ac_t""no" 1>&6
4067 if test $ac_cv_lib_GL_glXCreateContext = "yes"
4068 then
4070 OPENGLFILES='$(OPENGLFILES)'
4071 cat >> confdefs.h <<\EOF
4072 #define HAVE_OPENGL 1
4076 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
4077 echo "configure:4078: checking for glXGetProcAddressARB in -lGL" >&5
4078 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
4079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4081 else
4082 ac_save_LIBS="$LIBS"
4083 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4084 cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 /* Override any gcc2 internal prototype to avoid an error. */
4088 /* We use char because int might match the return type of a gcc2
4089 builtin and then its argument prototype would still apply. */
4090 char glXGetProcAddressARB();
4092 int main() {
4093 glXGetProcAddressARB()
4094 ; return 0; }
4096 if { (eval echo configure:4097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4097 rm -rf conftest*
4098 eval "ac_cv_lib_$ac_lib_var=yes"
4099 else
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4102 rm -rf conftest*
4103 eval "ac_cv_lib_$ac_lib_var=no"
4105 rm -f conftest*
4106 LIBS="$ac_save_LIBS"
4109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4110 echo "$ac_t""yes" 1>&6
4111 cat >> confdefs.h <<\EOF
4112 #define HAVE_GLX_GETPROCADDRESS 1
4115 else
4116 echo "$ac_t""no" 1>&6
4120 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
4121 then
4122 echo $ac_n "checking for OpenGL extension functions prototypes""... $ac_c" 1>&6
4123 echo "configure:4124: checking for OpenGL extension functions prototypes" >&5
4124 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4126 else
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4130 #include <GL/gl.h>
4131 #ifdef HAVE_GL_GLEXT_H
4132 # include <GL/glext.h>
4133 #endif
4135 int main() {
4136 PFNGLCOLORTABLEEXTPROC test_proc;
4137 ; return 0; }
4139 if { (eval echo configure:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4140 rm -rf conftest*
4141 wine_cv_extension_prototypes="yes"
4142 else
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4145 rm -rf conftest*
4146 wine_cv_extension_prototypes="no"
4149 rm -f conftest*
4153 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
4154 if test $wine_cv_extension_prototypes = "yes"
4155 then
4156 cat >> confdefs.h <<\EOF
4157 #define HAVE_GLEXT_PROTOTYPES 1
4164 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
4165 echo "configure:4166: checking for gluLookAt in -lGLU" >&5
4166 ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
4167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4169 else
4170 ac_save_LIBS="$LIBS"
4171 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4172 $LIBS"
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4176 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4179 char gluLookAt();
4181 int main() {
4182 gluLookAt()
4183 ; return 0; }
4185 if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4186 rm -rf conftest*
4187 eval "ac_cv_lib_$ac_lib_var=yes"
4188 else
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4191 rm -rf conftest*
4192 eval "ac_cv_lib_$ac_lib_var=no"
4194 rm -f conftest*
4195 LIBS="$ac_save_LIBS"
4198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4200 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4201 GLU32FILES='$(GLU32FILES)'
4203 else
4204 echo "$ac_t""no" 1>&6
4211 CPPFLAGS="$ac_save_CPPFLAGS"
4212 XFILES='$(XFILES)'
4213 else
4214 XLIB=""
4215 X_CFLAGS=""
4216 X_LIBS=""
4219 if test "$CURSES" = "yes"
4220 then
4221 for ac_hdr in ncurses.h
4223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4225 echo "configure:4226: checking for $ac_hdr" >&5
4226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4228 else
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 #include <$ac_hdr>
4234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4235 { (eval echo configure:4236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4237 if test -z "$ac_err"; then
4238 rm -rf conftest*
4239 eval "ac_cv_header_$ac_safe=yes"
4240 else
4241 echo "$ac_err" >&5
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4244 rm -rf conftest*
4245 eval "ac_cv_header_$ac_safe=no"
4247 rm -f conftest*
4249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4252 cat >> confdefs.h <<EOF
4253 #define $ac_tr_hdr 1
4255 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4256 echo "configure:4257: checking for waddch in -lncurses" >&5
4257 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4260 else
4261 ac_save_LIBS="$LIBS"
4262 LIBS="-lncurses $LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4269 char waddch();
4271 int main() {
4272 waddch()
4273 ; return 0; }
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4276 rm -rf conftest*
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4278 else
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4281 rm -rf conftest*
4282 eval "ac_cv_lib_$ac_lib_var=no"
4284 rm -f conftest*
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4290 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \
4291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4292 cat >> confdefs.h <<EOF
4293 #define $ac_tr_lib 1
4296 LIBS="-lncurses $LIBS"
4298 else
4299 echo "$ac_t""no" 1>&6
4302 else
4303 echo "$ac_t""no" 1>&6
4304 for ac_hdr in curses.h
4306 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4308 echo "configure:4309: checking for $ac_hdr" >&5
4309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4311 else
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 #include <$ac_hdr>
4317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4318 { (eval echo configure:4319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4320 if test -z "$ac_err"; then
4321 rm -rf conftest*
4322 eval "ac_cv_header_$ac_safe=yes"
4323 else
4324 echo "$ac_err" >&5
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4327 rm -rf conftest*
4328 eval "ac_cv_header_$ac_safe=no"
4330 rm -f conftest*
4332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4333 echo "$ac_t""yes" 1>&6
4334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4335 cat >> confdefs.h <<EOF
4336 #define $ac_tr_hdr 1
4338 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4339 echo "configure:4340: checking for waddch in -lcurses" >&5
4340 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4343 else
4344 ac_save_LIBS="$LIBS"
4345 LIBS="-lcurses $LIBS"
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 /* Override any gcc2 internal prototype to avoid an error. */
4350 /* We use char because int might match the return type of a gcc2
4351 builtin and then its argument prototype would still apply. */
4352 char waddch();
4354 int main() {
4355 waddch()
4356 ; return 0; }
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4359 rm -rf conftest*
4360 eval "ac_cv_lib_$ac_lib_var=yes"
4361 else
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4364 rm -rf conftest*
4365 eval "ac_cv_lib_$ac_lib_var=no"
4367 rm -f conftest*
4368 LIBS="$ac_save_LIBS"
4371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4373 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
4374 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4375 cat >> confdefs.h <<EOF
4376 #define $ac_tr_lib 1
4379 LIBS="-lcurses $LIBS"
4381 else
4382 echo "$ac_t""no" 1>&6
4385 else
4386 echo "$ac_t""no" 1>&6
4388 done
4391 done
4393 for ac_func in getbkgd resizeterm
4395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4396 echo "configure:4397: checking for $ac_func" >&5
4397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4399 else
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 /* System header to define __stub macros and hopefully few prototypes,
4404 which can conflict with char $ac_func(); below. */
4405 #include <assert.h>
4406 /* Override any gcc2 internal prototype to avoid an error. */
4407 /* We use char because int might match the return type of a gcc2
4408 builtin and then its argument prototype would still apply. */
4409 char $ac_func();
4411 int main() {
4413 /* The GNU C library defines this for functions which it implements
4414 to always fail with ENOSYS. Some functions are actually named
4415 something starting with __ and the normal name is an alias. */
4416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4417 choke me
4418 #else
4419 $ac_func();
4420 #endif
4422 ; return 0; }
4424 if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4425 rm -rf conftest*
4426 eval "ac_cv_func_$ac_func=yes"
4427 else
4428 echo "configure: failed program was:" >&5
4429 cat conftest.$ac_ext >&5
4430 rm -rf conftest*
4431 eval "ac_cv_func_$ac_func=no"
4433 rm -f conftest*
4436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4437 echo "$ac_t""yes" 1>&6
4438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4439 cat >> confdefs.h <<EOF
4440 #define $ac_tr_func 1
4443 else
4444 echo "$ac_t""no" 1>&6
4446 done
4450 CUPSLIBS=""
4451 wine_cv_warn_cups_h=no
4452 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4453 echo "configure:4454: checking for cupsGetPPD in -lcups" >&5
4454 ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4457 else
4458 ac_save_LIBS="$LIBS"
4459 LIBS="-lcups $LIBS"
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 /* Override any gcc2 internal prototype to avoid an error. */
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4466 char cupsGetPPD();
4468 int main() {
4469 cupsGetPPD()
4470 ; return 0; }
4472 if { (eval echo configure:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4473 rm -rf conftest*
4474 eval "ac_cv_lib_$ac_lib_var=yes"
4475 else
4476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4478 rm -rf conftest*
4479 eval "ac_cv_lib_$ac_lib_var=no"
4481 rm -f conftest*
4482 LIBS="$ac_save_LIBS"
4485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4487 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4488 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4489 echo "configure:4490: checking for cups/cups.h" >&5
4490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4492 else
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 #include <cups/cups.h>
4498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4499 { (eval echo configure:4500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4501 if test -z "$ac_err"; then
4502 rm -rf conftest*
4503 eval "ac_cv_header_$ac_safe=yes"
4504 else
4505 echo "$ac_err" >&5
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4508 rm -rf conftest*
4509 eval "ac_cv_header_$ac_safe=no"
4511 rm -f conftest*
4513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 cat >> confdefs.h <<\EOF
4516 #define HAVE_CUPS 1
4519 CUPSLIBS="-lcups"
4520 else
4521 echo "$ac_t""no" 1>&6
4522 wine_cv_warn_cups_h=yes
4526 else
4527 echo "$ac_t""no" 1>&6
4532 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4533 echo "configure:4534: checking for FT_Init_FreeType in -lfreetype" >&5
4534 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4537 else
4538 ac_save_LIBS="$LIBS"
4539 LIBS="-lfreetype $LIBS"
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 /* Override any gcc2 internal prototype to avoid an error. */
4544 /* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4546 char FT_Init_FreeType();
4548 int main() {
4549 FT_Init_FreeType()
4550 ; return 0; }
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4553 rm -rf conftest*
4554 eval "ac_cv_lib_$ac_lib_var=yes"
4555 else
4556 echo "configure: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4558 rm -rf conftest*
4559 eval "ac_cv_lib_$ac_lib_var=no"
4561 rm -f conftest*
4562 LIBS="$ac_save_LIBS"
4565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4566 echo "$ac_t""yes" 1>&6
4567 ft_lib=yes
4568 else
4569 echo "$ac_t""no" 1>&6
4570 ft_lib=no
4573 if test "$ft_lib" = "no"
4574 then
4575 FREETYPELIBS=""
4576 FREETYPEINCL=""
4577 wine_cv_msg_freetype=no
4578 else
4579 # Extract the first word of "freetype-config", so it can be a program name with args.
4580 set dummy freetype-config; ac_word=$2
4581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4582 echo "configure:4583: checking for $ac_word" >&5
4583 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4585 else
4586 if test -n "$ft_devel"; then
4587 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4588 else
4589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4590 ac_dummy="$PATH"
4591 for ac_dir in $ac_dummy; do
4592 test -z "$ac_dir" && ac_dir=.
4593 if test -f $ac_dir/$ac_word; then
4594 ac_cv_prog_ft_devel="freetype-config"
4595 break
4597 done
4598 IFS="$ac_save_ifs"
4599 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4602 ft_devel="$ac_cv_prog_ft_devel"
4603 if test -n "$ft_devel"; then
4604 echo "$ac_t""$ft_devel" 1>&6
4605 else
4606 echo "$ac_t""no" 1>&6
4609 if test "$ft_devel" = "no"
4610 then
4611 # Extract the first word of "freetype2-config", so it can be a program name with args.
4612 set dummy freetype2-config; ac_word=$2
4613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_word" >&5
4615 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4617 else
4618 if test -n "$ft_devel2"; then
4619 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4620 else
4621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4622 ac_dummy="$PATH"
4623 for ac_dir in $ac_dummy; do
4624 test -z "$ac_dir" && ac_dir=.
4625 if test -f $ac_dir/$ac_word; then
4626 ac_cv_prog_ft_devel2="freetype2-config"
4627 break
4629 done
4630 IFS="$ac_save_ifs"
4631 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4634 ft_devel2="$ac_cv_prog_ft_devel2"
4635 if test -n "$ft_devel2"; then
4636 echo "$ac_t""$ft_devel2" 1>&6
4637 else
4638 echo "$ac_t""no" 1>&6
4641 if test "$ft_devel2" = "freetype2-config"
4642 then
4643 ft_devel=$ft_devel2
4646 if test "$ft_devel" = "no"
4647 then
4648 FREETYPELIBS=""
4649 FREETYPEINCL=""
4650 wine_cv_msg_freetype=yes
4651 else
4652 cat >> confdefs.h <<\EOF
4653 #define HAVE_FREETYPE 1
4656 FREETYPELIBS=`$ft_devel --libs`
4657 FREETYPEINCL=`$ft_devel --cflags`
4658 ac_save_CPPFLAGS="$CPPFLAGS"
4659 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4660 for ac_hdr in freetype/freetype.h \
4661 freetype/ftglyph.h \
4662 freetype/tttables.h \
4663 freetype/ftnames.h \
4664 freetype/ftsnames.h \
4665 freetype/ttnameid.h \
4666 freetype/ftoutln.h
4668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4670 echo "configure:4671: checking for $ac_hdr" >&5
4671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4673 else
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #include <$ac_hdr>
4679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4680 { (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4682 if test -z "$ac_err"; then
4683 rm -rf conftest*
4684 eval "ac_cv_header_$ac_safe=yes"
4685 else
4686 echo "$ac_err" >&5
4687 echo "configure: failed program was:" >&5
4688 cat conftest.$ac_ext >&5
4689 rm -rf conftest*
4690 eval "ac_cv_header_$ac_safe=no"
4692 rm -f conftest*
4694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4697 cat >> confdefs.h <<EOF
4698 #define $ac_tr_hdr 1
4701 else
4702 echo "$ac_t""no" 1>&6
4704 done
4706 CPPFLAGS="$ac_save_CPPFLAGS"
4707 wine_cv_msg_freetype=no
4713 echo $ac_n "checking for parport header/ppdev.h""... $ac_c" 1>&6
4714 echo "configure:4715: checking for parport header/ppdev.h" >&5
4715 if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4717 else
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 #include <linux/ppdev.h>
4722 int main() {
4723 ioctl (1,PPCLAIM,0)
4724 ; return 0; }
4726 if { (eval echo configure:4727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4727 rm -rf conftest*
4728 ac_cv_c_ppdev="yes"
4729 else
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4732 rm -rf conftest*
4733 ac_cv_c_ppdev="no"
4735 rm -f conftest*
4739 echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4740 if test "$ac_cv_c_ppdev" = "yes"
4741 then
4742 cat >> confdefs.h <<\EOF
4743 #define HAVE_PPDEV 1
4748 echo $ac_n "checking for GNU style IPX support""... $ac_c" 1>&6
4749 echo "configure:4750: checking for GNU style IPX support" >&5
4750 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4752 else
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 #include <sys/socket.h>
4757 #include <netipx/ipx.h>
4758 int main() {
4759 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4760 ; return 0; }
4762 if { (eval echo configure:4763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4763 rm -rf conftest*
4764 ac_cv_c_ipx_gnu="yes"
4765 else
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4768 rm -rf conftest*
4769 ac_cv_c_ipx_gnu="no"
4771 rm -f conftest*
4775 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4776 if test "$ac_cv_c_ipx_gnu" = "yes"
4777 then
4778 cat >> confdefs.h <<\EOF
4779 #define HAVE_IPX_GNU 1
4784 if test "$ac_cv_c_ipx_gnu" = "no"
4785 then
4786 echo $ac_n "checking for linux style IPX support""... $ac_c" 1>&6
4787 echo "configure:4788: checking for linux style IPX support" >&5
4788 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4790 else
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4794 #include <sys/socket.h>
4795 #include <asm/types.h>
4796 #include <linux/ipx.h>
4797 int main() {
4798 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4799 ; return 0; }
4801 if { (eval echo configure:4802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4802 rm -rf conftest*
4803 ac_cv_c_ipx_linux="yes"
4804 else
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4807 rm -rf conftest*
4808 ac_cv_c_ipx_linux="no"
4810 rm -f conftest*
4814 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4815 if test "$ac_cv_c_ipx_linux" = "yes"
4816 then
4817 cat >> confdefs.h <<\EOF
4818 #define HAVE_IPX_LINUX 1
4824 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4828 echo "configure:4829: checking for $ac_hdr" >&5
4829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4831 else
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 #include <$ac_hdr>
4837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4838 { (eval echo configure:4839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4840 if test -z "$ac_err"; then
4841 rm -rf conftest*
4842 eval "ac_cv_header_$ac_safe=yes"
4843 else
4844 echo "$ac_err" >&5
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4847 rm -rf conftest*
4848 eval "ac_cv_header_$ac_safe=no"
4850 rm -f conftest*
4852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4855 cat >> confdefs.h <<EOF
4856 #define $ac_tr_hdr 1
4858 break
4859 else
4860 echo "$ac_t""no" 1>&6
4862 done
4865 echo $ac_n "checking for Open Sound System""... $ac_c" 1>&6
4866 echo "configure:4867: checking for Open Sound System" >&5
4867 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4869 else
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4874 #if defined(HAVE_SYS_SOUNDCARD_H)
4875 #include <sys/soundcard.h>
4876 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4877 #include <machine/soundcard.h>
4878 #elif defined(HAVE_SOUNDCARD_H)
4879 #include <soundcard.h>
4880 #endif
4882 int main() {
4885 /* check for one of the Open Sound System specific SNDCTL_ defines */
4886 #if !defined(SNDCTL_DSP_STEREO)
4887 #error No open sound system
4888 #endif
4890 ; return 0; }
4892 if { (eval echo configure:4893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4893 rm -rf conftest*
4894 ac_cv_c_opensoundsystem="yes"
4895 else
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4898 rm -rf conftest*
4899 ac_cv_c_opensoundsystem="no"
4901 rm -f conftest*
4904 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4906 if test "$ac_cv_c_opensoundsystem" = "yes"
4907 then
4908 cat >> confdefs.h <<\EOF
4909 #define HAVE_OSS 1
4914 echo $ac_n "checking for Open Sound System/MIDI interface""... $ac_c" 1>&6
4915 echo "configure:4916: checking for Open Sound System/MIDI interface" >&5
4916 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4918 else
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4923 #if defined(HAVE_SYS_SOUNDCARD_H)
4924 #include <sys/soundcard.h>
4925 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4926 #include <machine/soundcard.h>
4927 #elif defined(HAVE_SOUNDCARD_H)
4928 #include <soundcard.h>
4929 #endif
4931 int main() {
4934 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4935 #if !defined(SNDCTL_SEQ_SYNC)
4936 #error No open sound system MIDI interface
4937 #endif
4939 ; return 0; }
4941 if { (eval echo configure:4942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4942 rm -rf conftest*
4943 ac_cv_c_opensoundsystem_midi="yes"
4944 else
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4947 rm -rf conftest*
4948 ac_cv_c_opensoundsystem_midi="no"
4950 rm -f conftest*
4953 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4955 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4956 then
4957 cat >> confdefs.h <<\EOF
4958 #define HAVE_OSS_MIDI 1
4963 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4966 echo $ac_n "checking whether mmap64 works defined as mmap""... $ac_c" 1>&6
4967 echo "configure:4968: checking whether mmap64 works defined as mmap" >&5
4968 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4970 else
4971 if test "$cross_compiling" = yes; then
4972 ac_cv_mmap64_works="no"
4973 else
4974 cat > conftest.$ac_ext <<EOF
4975 #line 4976 "configure"
4976 #include "confdefs.h"
4978 #define _FILE_OFFSET_BITS 64
4979 #include <stdio.h>
4980 #include <unistd.h>
4981 #include <fcntl.h>
4982 #include <sys/mman.h>
4983 #include <errno.h>
4985 int main(int argc,char **argv) {
4986 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4987 if (fd == -1) exit(1);
4989 unlink("conftest.map");
4991 write(fd,"test",4);
4993 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
4994 (errno == EINVAL)
4996 exit(1);
4998 close(fd);
4999 fprintf(stderr,"success!\n");
5000 exit(0);
5005 if { (eval echo configure:5006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5006 then
5007 ac_cv_mmap64_works="yes"
5008 else
5009 echo "configure: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5011 rm -fr conftest*
5012 ac_cv_mmap64_works="no"
5014 rm -fr conftest*
5019 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
5021 if test "$ac_cv_mmap64_works" = "yes"
5022 then
5023 cat >> confdefs.h <<\EOF
5024 #define _FILE_OFFSET_BITS 64
5030 if test "x${GCC}" = "xyes"
5031 then
5032 CFLAGS="$CFLAGS -Wall"
5033 echo $ac_n "checking for gcc strength-reduce bug""... $ac_c" 1>&6
5034 echo "configure:5035: checking for gcc strength-reduce bug" >&5
5035 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5037 else
5038 if test "$cross_compiling" = yes; then
5039 ac_cv_c_gcc_strength_bug="yes"
5040 else
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5045 int L[4] = {0,1,2,3};
5046 int main(void) {
5047 static int Array[3];
5048 unsigned int B = 3;
5049 int i;
5050 for(i=0; i<B; i++) Array[i] = i - 3;
5051 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5052 L[i] = 4;
5054 exit( Array[1] != -2 || L[2] != 3);
5057 if { (eval echo configure:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5058 then
5059 ac_cv_c_gcc_strength_bug="no"
5060 else
5061 echo "configure: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5063 rm -fr conftest*
5064 ac_cv_c_gcc_strength_bug="yes"
5066 rm -fr conftest*
5071 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5072 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5073 then
5074 CFLAGS="$CFLAGS -fno-strength-reduce"
5077 echo $ac_n "checking for gcc -mpreferred-stack-boundary=2 support""... $ac_c" 1>&6
5078 echo "configure:5079: checking for gcc -mpreferred-stack-boundary=2 support" >&5
5079 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5081 else
5082 saved_cflags=$CFLAGS
5083 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5084 cat > conftest.$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5088 int main() {
5089 return 0
5090 ; return 0; }
5092 if { (eval echo configure:5093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5093 rm -rf conftest*
5094 ac_cv_c_gcc_stack_boundary="yes"
5095 else
5096 echo "configure: failed program was:" >&5
5097 cat conftest.$ac_ext >&5
5098 rm -rf conftest*
5099 ac_cv_c_gcc_stack_boundary="no"
5101 rm -f conftest*
5102 CFLAGS=$saved_cflags
5106 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5107 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5108 then
5109 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5114 echo $ac_n "checking whether .type must sit inside a .def directive""... $ac_c" 1>&6
5115 echo "configure:5116: checking whether .type must sit inside a .def directive" >&5
5116 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5118 else
5119 saved_libs=$LIBS
5120 LIBS="conftest_asm.s $LIBS"
5121 cat > conftest_asm.s <<EOF
5122 .globl _ac_test
5123 .def _ac_test; .scl 2; .type 32; .endef
5124 _ac_test:
5125 .long 0
5127 cat > conftest.$ac_ext <<EOF
5128 #line 5129 "configure"
5129 #include "confdefs.h"
5131 int main() {
5133 ; return 0; }
5135 if { (eval echo configure:5136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5136 rm -rf conftest*
5137 ac_cv_c_type_in_def="yes"
5138 else
5139 echo "configure: failed program was:" >&5
5140 cat conftest.$ac_ext >&5
5141 rm -rf conftest*
5142 ac_cv_c_type_in_def="no"
5144 rm -f conftest*
5145 LIBS=$saved_libs
5148 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5149 if test "$ac_cv_c_type_in_def" = "yes"
5150 then
5151 cat >> confdefs.h <<\EOF
5152 #define NEED_TYPE_IN_DEF 1
5158 echo $ac_n "checking whether external symbols need an underscore prefix""... $ac_c" 1>&6
5159 echo "configure:5160: checking whether external symbols need an underscore prefix" >&5
5160 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5162 else
5163 saved_libs=$LIBS
5164 LIBS="conftest_asm.s $LIBS"
5165 cat > conftest_asm.s <<EOF
5166 .globl _ac_test
5167 _ac_test:
5168 .long 0
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5173 extern int ac_test;
5174 int main() {
5175 if (ac_test) return 1
5176 ; return 0; }
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5179 rm -rf conftest*
5180 ac_cv_c_extern_prefix="yes"
5181 else
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5184 rm -rf conftest*
5185 ac_cv_c_extern_prefix="no"
5187 rm -f conftest*
5188 LIBS=$saved_libs
5191 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5192 if test "$ac_cv_c_extern_prefix" = "yes"
5193 then
5194 cat >> confdefs.h <<\EOF
5195 #define NEED_UNDERSCORE_PREFIX 1
5201 echo $ac_n "checking whether assembler accepts .string""... $ac_c" 1>&6
5202 echo "configure:5203: checking whether assembler accepts .string" >&5
5203 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5205 else
5206 saved_libs=$LIBS
5207 LIBS="conftest_asm.s $LIBS"
5208 cat > conftest_asm.s <<EOF
5209 .string "test"
5211 cat > conftest.$ac_ext <<EOF
5212 #line 5213 "configure"
5213 #include "confdefs.h"
5215 int main() {
5217 ; return 0; }
5219 if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5220 rm -rf conftest*
5221 ac_cv_c_asm_string="yes"
5222 else
5223 echo "configure: failed program was:" >&5
5224 cat conftest.$ac_ext >&5
5225 rm -rf conftest*
5226 ac_cv_c_asm_string="no"
5228 rm -f conftest*
5229 LIBS=$saved_libs
5232 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5233 if test "$ac_cv_c_asm_string" = "yes"
5234 then
5235 cat >> confdefs.h <<\EOF
5236 #define HAVE_ASM_STRING 1
5242 LDSHARED=""
5243 LDDLLFLAGS=""
5244 if test "$LIBEXT" = "so"
5245 then
5246 echo $ac_n "checking whether we can build a GNU style ELF dll""... $ac_c" 1>&6
5247 echo "configure:5248: checking whether we can build a GNU style ELF dll" >&5
5248 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5250 else
5251 saved_cflags=$CFLAGS
5252 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5257 int main() {
5258 return 1
5259 ; return 0; }
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5262 rm -rf conftest*
5263 ac_cv_c_dll_gnuelf="yes"
5264 else
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5267 rm -rf conftest*
5268 ac_cv_c_dll_gnuelf="no"
5270 rm -f conftest*
5271 CFLAGS=$saved_cflags
5275 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5276 if test "$ac_cv_c_dll_gnuelf" = "yes"
5277 then
5278 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
5279 LDDLLFLAGS="-Wl,-Bsymbolic"
5280 else
5281 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5282 echo "configure:5283: checking whether we can build a UnixWare (Solaris) dll" >&5
5283 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5285 else
5286 saved_cflags=$CFLAGS
5287 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5288 cat > conftest.$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5292 int main() {
5293 return 1
5294 ; return 0; }
5296 if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5297 rm -rf conftest*
5298 ac_cv_c_dll_unixware="yes"
5299 else
5300 echo "configure: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5302 rm -rf conftest*
5303 ac_cv_c_dll_unixware="no"
5305 rm -f conftest*
5306 CFLAGS=$saved_cflags
5310 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5311 if test "$ac_cv_c_dll_unixware" = "yes"
5312 then
5313 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
5314 LDDLLFLAGS="-Wl,-B,symbolic"
5317 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5318 then
5319 LIBEXT="a"
5320 if test "$DLLWRAP" = "dllwrap"; then
5321 if test "$CYGWIN" = "yes"; then
5322 echo "*** use dllwrap for building shared library."
5323 LIBEXT="dll"
5329 if test "$LIBEXT" = "a"; then
5330 echo "*** It is currently not possible to build WINE without shared"
5331 echo "*** library (.so) support to allow transparent switch between .so"
5332 echo "*** and .dll files."
5333 echo "*** If you are using Linux, you will need a newer binutils."
5334 exit 1
5337 DLLFLAGS=""
5338 LDPATH=""
5340 if test "$LIBEXT" = "so"; then
5341 DLLFLAGS="-fPIC"
5342 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5343 elif test "$LIBEXT" = "dll"; then
5344 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5345 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5357 wine_cv_libc_reentrant=no
5359 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5360 echo "configure:5361: checking for reentrant libc: __errno_location" >&5
5361 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5363 else
5364 if test "$cross_compiling" = yes; then
5365 wine_cv_libc_r___errno_location=yes
5366 else
5367 cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5370 int myerrno = 0;
5371 char buf[256];
5372 int *__errno_location(){return &myerrno;}
5373 main(){connect(0,buf,255); exit(!myerrno);}
5375 if { (eval echo configure:5376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5376 then
5377 wine_cv_libc_r___errno_location=yes
5378 else
5379 echo "configure: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 rm -fr conftest*
5382 wine_cv_libc_r___errno_location=no
5384 rm -fr conftest*
5390 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5391 if test "$wine_cv_libc_r___errno_location" = "yes"
5392 then
5393 wine_cv_libc_reentrant=__errno_location
5397 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5398 echo "configure:5399: checking for reentrant libc: __error" >&5
5399 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5401 else
5402 if test "$cross_compiling" = yes; then
5403 wine_cv_libc_r___error=yes
5404 else
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 int myerrno = 0;
5409 char buf[256];
5410 int *__error(){return &myerrno;}
5411 main(){connect(0,buf,255); exit(!myerrno);}
5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5414 then
5415 wine_cv_libc_r___error=yes
5416 else
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 rm -fr conftest*
5420 wine_cv_libc_r___error=no
5422 rm -fr conftest*
5428 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5429 if test "$wine_cv_libc_r___error" = "yes"
5430 then
5431 wine_cv_libc_reentrant=__error
5435 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5436 echo "configure:5437: checking for reentrant libc: ___errno" >&5
5437 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5439 else
5440 if test "$cross_compiling" = yes; then
5441 wine_cv_libc_r____errno=yes
5442 else
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5446 int myerrno = 0;
5447 char buf[256];
5448 int *___errno(){return &myerrno;}
5449 main(){connect(0,buf,255); exit(!myerrno);}
5451 if { (eval echo configure:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5452 then
5453 wine_cv_libc_r____errno=yes
5454 else
5455 echo "configure: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5457 rm -fr conftest*
5458 wine_cv_libc_r____errno=no
5460 rm -fr conftest*
5466 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5467 if test "$wine_cv_libc_r____errno" = "yes"
5468 then
5469 wine_cv_libc_reentrant=___errno
5473 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5474 echo "configure:5475: checking for reentrant libc: __thr_errno" >&5
5475 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5477 else
5478 if test "$cross_compiling" = yes; then
5479 wine_cv_libc_r___thr_errno=yes
5480 else
5481 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5484 int myerrno = 0;
5485 char buf[256];
5486 int *__thr_errno(){return &myerrno;}
5487 main(){connect(0,buf,255); exit(!myerrno);}
5489 if { (eval echo configure:5490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5490 then
5491 wine_cv_libc_r___thr_errno=yes
5492 else
5493 echo "configure: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5495 rm -fr conftest*
5496 wine_cv_libc_r___thr_errno=no
5498 rm -fr conftest*
5504 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5505 if test "$wine_cv_libc_r___thr_errno" = "yes"
5506 then
5507 wine_cv_libc_reentrant=__thr_errno
5511 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5512 echo "configure:5513: checking for reentrant libc: __errno" >&5
5513 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5515 else
5516 if test "$cross_compiling" = yes; then
5517 wine_cv_libc_r___errno=yes
5518 else
5519 cat > conftest.$ac_ext <<EOF
5520 #line 5521 "configure"
5521 #include "confdefs.h"
5522 int myerrno = 0;
5523 char buf[256];
5524 int *__errno(){return &myerrno;}
5525 main(){connect(0,buf,255); exit(!myerrno);}
5527 if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5528 then
5529 wine_cv_libc_r___errno=yes
5530 else
5531 echo "configure: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5533 rm -fr conftest*
5534 wine_cv_libc_r___errno=no
5536 rm -fr conftest*
5542 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5543 if test "$wine_cv_libc_r___errno" = "yes"
5544 then
5545 wine_cv_libc_reentrant=__errno
5549 if test "$wine_cv_libc_reentrant" != "no"
5550 then
5551 cat >> confdefs.h <<EOF
5552 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5558 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5559 then
5560 echo $ac_n "checking for reentrant X libraries""... $ac_c" 1>&6
5561 echo "configure:5562: checking for reentrant X libraries" >&5
5562 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5564 else
5565 if test "x$with_reentrant_x" = "xno"
5566 then
5567 wine_cv_x_reentrant=no
5568 else
5569 libX11_check=none
5570 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5571 if test -r $dir/libX11.so; then
5572 libX11_check="-D $dir/libX11.so"
5573 break 1
5575 if test -r $dir/libX11.a; then
5576 libX11_check="$dir/libX11.a"
5577 break 1
5579 done
5580 if test "$libX11_check" != "none"; then
5581 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5582 then
5583 wine_cv_x_reentrant=yes
5584 else
5585 wine_cv_x_reentrant=no
5587 else
5588 wine_cv_x_reentrant=unknown
5593 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5594 else
5595 wine_cv_x_reentrant=no
5597 if test "$wine_cv_x_reentrant" = "no"
5598 then
5599 cat >> confdefs.h <<\EOF
5600 #define NO_REENTRANT_X11 1
5607 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5608 # for constant arguments. Useless!
5609 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5610 echo "configure:5611: checking for working alloca.h" >&5
5611 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5613 else
5614 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5617 #include <alloca.h>
5618 int main() {
5619 char *p = alloca(2 * sizeof(int));
5620 ; return 0; }
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5623 rm -rf conftest*
5624 ac_cv_header_alloca_h=yes
5625 else
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 rm -rf conftest*
5629 ac_cv_header_alloca_h=no
5631 rm -f conftest*
5634 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5635 if test $ac_cv_header_alloca_h = yes; then
5636 cat >> confdefs.h <<\EOF
5637 #define HAVE_ALLOCA_H 1
5642 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5643 echo "configure:5644: checking for alloca" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5646 else
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5651 #ifdef __GNUC__
5652 # define alloca __builtin_alloca
5653 #else
5654 # ifdef _MSC_VER
5655 # include <malloc.h>
5656 # define alloca _alloca
5657 # else
5658 # if HAVE_ALLOCA_H
5659 # include <alloca.h>
5660 # else
5661 # ifdef _AIX
5662 #pragma alloca
5663 # else
5664 # ifndef alloca /* predefined by HP cc +Olibcalls */
5665 char *alloca ();
5666 # endif
5667 # endif
5668 # endif
5669 # endif
5670 #endif
5672 int main() {
5673 char *p = (char *) alloca(1);
5674 ; return 0; }
5676 if { (eval echo configure:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5677 rm -rf conftest*
5678 ac_cv_func_alloca_works=yes
5679 else
5680 echo "configure: failed program was:" >&5
5681 cat conftest.$ac_ext >&5
5682 rm -rf conftest*
5683 ac_cv_func_alloca_works=no
5685 rm -f conftest*
5688 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5689 if test $ac_cv_func_alloca_works = yes; then
5690 cat >> confdefs.h <<\EOF
5691 #define HAVE_ALLOCA 1
5696 if test $ac_cv_func_alloca_works = no; then
5697 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5698 # that cause trouble. Some versions do not even contain alloca or
5699 # contain a buggy version. If you still want to use their alloca,
5700 # use ar to extract alloca.o from them instead of compiling alloca.c.
5701 ALLOCA=alloca.${ac_objext}
5702 cat >> confdefs.h <<\EOF
5703 #define C_ALLOCA 1
5707 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5708 echo "configure:5709: checking whether alloca needs Cray hooks" >&5
5709 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5710 echo $ac_n "(cached) $ac_c" 1>&6
5711 else
5712 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5715 #if defined(CRAY) && ! defined(CRAY2)
5716 webecray
5717 #else
5718 wenotbecray
5719 #endif
5722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5723 egrep "webecray" >/dev/null 2>&1; then
5724 rm -rf conftest*
5725 ac_cv_os_cray=yes
5726 else
5727 rm -rf conftest*
5728 ac_cv_os_cray=no
5730 rm -f conftest*
5734 echo "$ac_t""$ac_cv_os_cray" 1>&6
5735 if test $ac_cv_os_cray = yes; then
5736 for ac_func in _getb67 GETB67 getb67; do
5737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5738 echo "configure:5739: checking for $ac_func" >&5
5739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5740 echo $ac_n "(cached) $ac_c" 1>&6
5741 else
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5745 /* System header to define __stub macros and hopefully few prototypes,
5746 which can conflict with char $ac_func(); below. */
5747 #include <assert.h>
5748 /* Override any gcc2 internal prototype to avoid an error. */
5749 /* We use char because int might match the return type of a gcc2
5750 builtin and then its argument prototype would still apply. */
5751 char $ac_func();
5753 int main() {
5755 /* The GNU C library defines this for functions which it implements
5756 to always fail with ENOSYS. Some functions are actually named
5757 something starting with __ and the normal name is an alias. */
5758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5759 choke me
5760 #else
5761 $ac_func();
5762 #endif
5764 ; return 0; }
5766 if { (eval echo configure:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5767 rm -rf conftest*
5768 eval "ac_cv_func_$ac_func=yes"
5769 else
5770 echo "configure: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5772 rm -rf conftest*
5773 eval "ac_cv_func_$ac_func=no"
5775 rm -f conftest*
5778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5779 echo "$ac_t""yes" 1>&6
5780 cat >> confdefs.h <<EOF
5781 #define CRAY_STACKSEG_END $ac_func
5784 break
5785 else
5786 echo "$ac_t""no" 1>&6
5789 done
5792 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5793 echo "configure:5794: checking stack direction for C alloca" >&5
5794 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5796 else
5797 if test "$cross_compiling" = yes; then
5798 ac_cv_c_stack_direction=0
5799 else
5800 cat > conftest.$ac_ext <<EOF
5801 #line 5802 "configure"
5802 #include "confdefs.h"
5803 find_stack_direction ()
5805 static char *addr = 0;
5806 auto char dummy;
5807 if (addr == 0)
5809 addr = &dummy;
5810 return find_stack_direction ();
5812 else
5813 return (&dummy > addr) ? 1 : -1;
5815 main ()
5817 exit (find_stack_direction() < 0);
5820 if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5821 then
5822 ac_cv_c_stack_direction=1
5823 else
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5826 rm -fr conftest*
5827 ac_cv_c_stack_direction=-1
5829 rm -fr conftest*
5834 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5835 cat >> confdefs.h <<EOF
5836 #define STACK_DIRECTION $ac_cv_c_stack_direction
5841 for ac_func in \
5842 __libc_fork \
5843 _lwp_create \
5844 clone \
5845 ecvt \
5846 finite \
5847 fpclass \
5848 ftruncate64 \
5849 getnetbyaddr \
5850 getnetbyname \
5851 getpagesize \
5852 getprotobyname \
5853 getprotobynumber \
5854 getrlimit \
5855 getservbyport \
5856 getsockopt \
5857 inet_network \
5858 lseek64 \
5859 lstat \
5860 memmove \
5861 mmap \
5862 rfork \
5863 select \
5864 sendmsg \
5865 settimeofday \
5866 sigaltstack \
5867 statfs \
5868 strcasecmp \
5869 strerror \
5870 strncasecmp \
5871 tcgetattr \
5872 timegm \
5873 usleep \
5874 vfscanf \
5875 wait4 \
5876 waitpid \
5879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5880 echo "configure:5881: checking for $ac_func" >&5
5881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5883 else
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887 /* System header to define __stub macros and hopefully few prototypes,
5888 which can conflict with char $ac_func(); below. */
5889 #include <assert.h>
5890 /* Override any gcc2 internal prototype to avoid an error. */
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5893 char $ac_func();
5895 int main() {
5897 /* The GNU C library defines this for functions which it implements
5898 to always fail with ENOSYS. Some functions are actually named
5899 something starting with __ and the normal name is an alias. */
5900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5901 choke me
5902 #else
5903 $ac_func();
5904 #endif
5906 ; return 0; }
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5909 rm -rf conftest*
5910 eval "ac_cv_func_$ac_func=yes"
5911 else
5912 echo "configure: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5914 rm -rf conftest*
5915 eval "ac_cv_func_$ac_func=no"
5917 rm -f conftest*
5920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5921 echo "$ac_t""yes" 1>&6
5922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5923 cat >> confdefs.h <<EOF
5924 #define $ac_tr_func 1
5927 else
5928 echo "$ac_t""no" 1>&6
5930 done
5934 for ac_hdr in \
5935 arpa/inet.h \
5936 arpa/nameser.h \
5937 elf.h \
5938 float.h \
5939 ieeefp.h \
5940 libio.h \
5941 libutil.h \
5942 link.h \
5943 linux/cdrom.h \
5944 linux/input.h \
5945 linux/joystick.h \
5946 linux/ucdrom.h \
5947 net/if.h \
5948 netdb.h \
5949 netinet/in.h \
5950 netinet/in_systm.h \
5951 netinet/ip.h \
5952 netinet/tcp.h \
5953 pty.h \
5954 resolv.h \
5955 sched.h \
5956 socket.h \
5957 strings.h \
5958 sys/cdio.h \
5959 sys/errno.h \
5960 sys/file.h \
5961 sys/filio.h \
5962 sys/ipc.h \
5963 sys/link.h \
5964 sys/lwp.h \
5965 sys/mman.h \
5966 sys/modem.h \
5967 sys/mount.h \
5968 sys/msg.h \
5969 sys/param.h \
5970 sys/ptrace.h \
5971 sys/reg.h \
5972 sys/signal.h \
5973 sys/shm.h \
5974 sys/socket.h \
5975 sys/sockio.h \
5976 sys/statfs.h \
5977 sys/strtio.h \
5978 sys/syscall.h \
5979 sys/user.h \
5980 sys/wait.h \
5981 sys/v86.h \
5982 sys/v86intr.h \
5983 sys/vfs.h \
5984 sys/vm86.h \
5985 syscall.h \
5986 ucontext.h \
5989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5990 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5991 echo "configure:5992: checking for $ac_hdr" >&5
5992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5993 echo $ac_n "(cached) $ac_c" 1>&6
5994 else
5995 cat > conftest.$ac_ext <<EOF
5996 #line 5997 "configure"
5997 #include "confdefs.h"
5998 #include <$ac_hdr>
6000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6001 { (eval echo configure:6002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6003 if test -z "$ac_err"; then
6004 rm -rf conftest*
6005 eval "ac_cv_header_$ac_safe=yes"
6006 else
6007 echo "$ac_err" >&5
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6010 rm -rf conftest*
6011 eval "ac_cv_header_$ac_safe=no"
6013 rm -f conftest*
6015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6016 echo "$ac_t""yes" 1>&6
6017 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6018 cat >> confdefs.h <<EOF
6019 #define $ac_tr_hdr 1
6022 else
6023 echo "$ac_t""no" 1>&6
6025 done
6027 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6028 echo "configure:6029: checking whether stat file-mode macros are broken" >&5
6029 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6031 else
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 #include <sys/types.h>
6036 #include <sys/stat.h>
6038 #if defined(S_ISBLK) && defined(S_IFDIR)
6039 # if S_ISBLK (S_IFDIR)
6040 You lose.
6041 # endif
6042 #endif
6044 #if defined(S_ISBLK) && defined(S_IFCHR)
6045 # if S_ISBLK (S_IFCHR)
6046 You lose.
6047 # endif
6048 #endif
6050 #if defined(S_ISLNK) && defined(S_IFREG)
6051 # if S_ISLNK (S_IFREG)
6052 You lose.
6053 # endif
6054 #endif
6056 #if defined(S_ISSOCK) && defined(S_IFREG)
6057 # if S_ISSOCK (S_IFREG)
6058 You lose.
6059 # endif
6060 #endif
6063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6064 egrep "You lose" >/dev/null 2>&1; then
6065 rm -rf conftest*
6066 ac_cv_header_stat_broken=yes
6067 else
6068 rm -rf conftest*
6069 ac_cv_header_stat_broken=no
6071 rm -f conftest*
6075 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6076 if test $ac_cv_header_stat_broken = yes; then
6077 cat >> confdefs.h <<\EOF
6078 #define STAT_MACROS_BROKEN 1
6085 echo $ac_n "checking for working const""... $ac_c" 1>&6
6086 echo "configure:6087: checking for working const" >&5
6087 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6089 else
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6094 int main() {
6096 /* Ultrix mips cc rejects this. */
6097 typedef int charset[2]; const charset x;
6098 /* SunOS 4.1.1 cc rejects this. */
6099 char const *const *ccp;
6100 char **p;
6101 /* NEC SVR4.0.2 mips cc rejects this. */
6102 struct point {int x, y;};
6103 static struct point const zero = {0,0};
6104 /* AIX XL C 1.02.0.0 rejects this.
6105 It does not let you subtract one const X* pointer from another in an arm
6106 of an if-expression whose if-part is not a constant expression */
6107 const char *g = "string";
6108 ccp = &g + (g ? g-g : 0);
6109 /* HPUX 7.0 cc rejects these. */
6110 ++ccp;
6111 p = (char**) ccp;
6112 ccp = (char const *const *) p;
6113 { /* SCO 3.2v4 cc rejects this. */
6114 char *t;
6115 char const *s = 0 ? (char *) 0 : (char const *) 0;
6117 *t++ = 0;
6119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6120 int x[] = {25, 17};
6121 const int *foo = &x[0];
6122 ++foo;
6124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6125 typedef const int *iptr;
6126 iptr p = 0;
6127 ++p;
6129 { /* AIX XL C 1.02.0.0 rejects this saying
6130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6131 struct s { int j; const int *ap[3]; };
6132 struct s *b; b->j = 5;
6134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6135 const int foo = 10;
6138 ; return 0; }
6140 if { (eval echo configure:6141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6141 rm -rf conftest*
6142 ac_cv_c_const=yes
6143 else
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6146 rm -rf conftest*
6147 ac_cv_c_const=no
6149 rm -f conftest*
6152 echo "$ac_t""$ac_cv_c_const" 1>&6
6153 if test $ac_cv_c_const = no; then
6154 cat >> confdefs.h <<\EOF
6155 #define const
6160 echo $ac_n "checking for inline""... $ac_c" 1>&6
6161 echo "configure:6162: checking for inline" >&5
6162 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6164 else
6165 ac_cv_c_inline=no
6166 for ac_kw in inline __inline__ __inline; do
6167 cat > conftest.$ac_ext <<EOF
6168 #line 6169 "configure"
6169 #include "confdefs.h"
6171 int main() {
6172 } $ac_kw foo() {
6173 ; return 0; }
6175 if { (eval echo configure:6176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6176 rm -rf conftest*
6177 ac_cv_c_inline=$ac_kw; break
6178 else
6179 echo "configure: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6182 rm -f conftest*
6183 done
6187 echo "$ac_t""$ac_cv_c_inline" 1>&6
6188 case "$ac_cv_c_inline" in
6189 inline | yes) ;;
6190 no) cat >> confdefs.h <<\EOF
6191 #define inline
6194 *) cat >> confdefs.h <<EOF
6195 #define inline $ac_cv_c_inline
6198 esac
6200 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6201 echo "configure:6202: checking for ANSI C header files" >&5
6202 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6203 echo $ac_n "(cached) $ac_c" 1>&6
6204 else
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6208 #include <stdlib.h>
6209 #include <stdarg.h>
6210 #include <string.h>
6211 #include <float.h>
6213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6214 { (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6216 if test -z "$ac_err"; then
6217 rm -rf conftest*
6218 ac_cv_header_stdc=yes
6219 else
6220 echo "$ac_err" >&5
6221 echo "configure: failed program was:" >&5
6222 cat conftest.$ac_ext >&5
6223 rm -rf conftest*
6224 ac_cv_header_stdc=no
6226 rm -f conftest*
6228 if test $ac_cv_header_stdc = yes; then
6229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6230 cat > conftest.$ac_ext <<EOF
6231 #line 6232 "configure"
6232 #include "confdefs.h"
6233 #include <string.h>
6235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6236 egrep "memchr" >/dev/null 2>&1; then
6238 else
6239 rm -rf conftest*
6240 ac_cv_header_stdc=no
6242 rm -f conftest*
6246 if test $ac_cv_header_stdc = yes; then
6247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6248 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 #include <stdlib.h>
6253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6254 egrep "free" >/dev/null 2>&1; then
6256 else
6257 rm -rf conftest*
6258 ac_cv_header_stdc=no
6260 rm -f conftest*
6264 if test $ac_cv_header_stdc = yes; then
6265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6266 if test "$cross_compiling" = yes; then
6268 else
6269 cat > conftest.$ac_ext <<EOF
6270 #line 6271 "configure"
6271 #include "confdefs.h"
6272 #include <ctype.h>
6273 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6274 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6276 int main () { int i; for (i = 0; i < 256; i++)
6277 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6278 exit (0); }
6281 if { (eval echo configure:6282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6282 then
6284 else
6285 echo "configure: failed program was:" >&5
6286 cat conftest.$ac_ext >&5
6287 rm -fr conftest*
6288 ac_cv_header_stdc=no
6290 rm -fr conftest*
6296 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6297 if test $ac_cv_header_stdc = yes; then
6298 cat >> confdefs.h <<\EOF
6299 #define STDC_HEADERS 1
6304 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6305 echo "configure:6306: checking for size_t" >&5
6306 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6308 else
6309 cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6312 #include <sys/types.h>
6313 #if STDC_HEADERS
6314 #include <stdlib.h>
6315 #include <stddef.h>
6316 #endif
6318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6319 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6320 rm -rf conftest*
6321 ac_cv_type_size_t=yes
6322 else
6323 rm -rf conftest*
6324 ac_cv_type_size_t=no
6326 rm -f conftest*
6329 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6330 if test $ac_cv_type_size_t = no; then
6331 cat >> confdefs.h <<\EOF
6332 #define size_t unsigned
6337 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6338 echo "configure:6339: checking size of long long" >&5
6339 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6340 echo $ac_n "(cached) $ac_c" 1>&6
6341 else
6342 if test "$cross_compiling" = yes; then
6343 ac_cv_sizeof_long_long=0
6344 else
6345 cat > conftest.$ac_ext <<EOF
6346 #line 6347 "configure"
6347 #include "confdefs.h"
6348 #include <stdio.h>
6349 #include <sys/types.h>
6350 main()
6352 FILE *f=fopen("conftestval", "w");
6353 if (!f) exit(1);
6354 fprintf(f, "%d\n", sizeof(long long));
6355 exit(0);
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6359 then
6360 ac_cv_sizeof_long_long=`cat conftestval`
6361 else
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6364 rm -fr conftest*
6365 ac_cv_sizeof_long_long=0
6367 rm -fr conftest*
6371 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6372 cat >> confdefs.h <<EOF
6373 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6378 echo $ac_n "checking whether linux/input.h is for real""... $ac_c" 1>&6
6379 echo "configure:6380: checking whether linux/input.h is for real" >&5
6380 if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6382 else
6383 cat > conftest.$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6387 #include <linux/input.h>
6389 int main() {
6391 int foo = EVIOCGBIT(EV_ABS,42);
6392 int bar = BTN_PINKIE;
6393 int fortytwo = 42;
6395 ; return 0; }
6397 if { (eval echo configure:6398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6398 rm -rf conftest*
6399 wine_cv_linux_input_h=yes
6400 else
6401 echo "configure: failed program was:" >&5
6402 cat conftest.$ac_ext >&5
6403 rm -rf conftest*
6404 wine_cv_linux_input_h=no
6406 rm -f conftest*
6410 echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6411 if test "$wine_cv_linux_input_h" = "yes"
6412 then
6413 cat >> confdefs.h <<\EOF
6414 #define HAVE_CORRECT_LINUXINPUT_H 1
6420 echo $ac_n "checking whether we can use re-entrant gethostbyname_r Linux style""... $ac_c" 1>&6
6421 echo "configure:6422: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
6422 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6423 echo $ac_n "(cached) $ac_c" 1>&6
6424 else
6425 cat > conftest.$ac_ext <<EOF
6426 #line 6427 "configure"
6427 #include "confdefs.h"
6429 #include <netdb.h>
6431 int main() {
6433 char *name=NULL;
6434 struct hostent he;
6435 struct hostent *result;
6436 char *buf=NULL;
6437 int bufsize=0;
6438 int res,errnr;
6439 char *addr=NULL;
6440 int addrlen=0;
6441 int addrtype=0;
6442 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6443 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6445 ; return 0; }
6447 if { (eval echo configure:6448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6448 rm -rf conftest*
6449 wine_cv_linux_gethostbyname_r_6=yes
6450 else
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6453 rm -rf conftest*
6454 wine_cv_linux_gethostbyname_r_6=no
6457 rm -f conftest*
6461 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6462 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6463 then
6464 cat >> confdefs.h <<\EOF
6465 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6470 if test "$ac_cv_header_linux_joystick_h" = "yes"
6471 then
6472 echo $ac_n "checking whether linux/joystick.h uses the Linux 2.2+ API""... $ac_c" 1>&6
6473 echo "configure:6474: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
6474 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6475 echo $ac_n "(cached) $ac_c" 1>&6
6476 else
6477 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure"
6479 #include "confdefs.h"
6481 #include <sys/ioctl.h>
6482 #include <linux/joystick.h>
6484 struct js_event blub;
6485 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6486 #error "no 2.2 header"
6487 #endif
6489 int main() {
6490 /*empty*/
6491 ; return 0; }
6493 if { (eval echo configure:6494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6494 rm -rf conftest*
6495 wine_cv_linux_joystick_22_api=yes
6496 else
6497 echo "configure: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6499 rm -rf conftest*
6500 wine_cv_linux_joystick_22_api=no
6502 rm -f conftest*
6506 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6507 if test "$wine_cv_linux_joystick_22_api" = "yes"
6508 then
6509 cat >> confdefs.h <<\EOF
6510 #define HAVE_LINUX_22_JOYSTICK_API 1
6517 if test "$ac_cv_header_sys_vfs_h" = "yes"
6518 then
6519 echo $ac_n "checking whether sys/vfs.h defines statfs""... $ac_c" 1>&6
6520 echo "configure:6521: checking whether sys/vfs.h defines statfs" >&5
6521 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6522 echo $ac_n "(cached) $ac_c" 1>&6
6523 else
6524 cat > conftest.$ac_ext <<EOF
6525 #line 6526 "configure"
6526 #include "confdefs.h"
6528 #include <sys/types.h>
6529 #ifdef HAVE_SYS_PARAM_H
6530 # include <sys/param.h>
6531 #endif
6532 #include <sys/vfs.h>
6534 int main() {
6536 struct statfs stfs;
6538 memset(&stfs,0,sizeof(stfs));
6540 ; return 0; }
6542 if { (eval echo configure:6543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6543 rm -rf conftest*
6544 wine_cv_sys_vfs_has_statfs=yes
6545 else
6546 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6548 rm -rf conftest*
6549 wine_cv_sys_vfs_has_statfs=no
6552 rm -f conftest*
6556 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6557 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6558 then
6559 cat >> confdefs.h <<\EOF
6560 #define STATFS_DEFINED_BY_SYS_VFS 1
6566 if test "$ac_cv_header_sys_statfs_h" = "yes"
6567 then
6568 echo $ac_n "checking whether sys/statfs.h defines statfs""... $ac_c" 1>&6
6569 echo "configure:6570: checking whether sys/statfs.h defines statfs" >&5
6570 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6572 else
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6577 #include <sys/types.h>
6578 #ifdef HAVE_SYS_PARAM_H
6579 # include <sys/param.h>
6580 #endif
6581 #include <sys/statfs.h>
6583 int main() {
6585 struct statfs stfs;
6587 ; return 0; }
6589 if { (eval echo configure:6590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6590 rm -rf conftest*
6591 wine_cv_sys_statfs_has_statfs=yes
6592 else
6593 echo "configure: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 rm -rf conftest*
6596 wine_cv_sys_statfs_has_statfs=no
6599 rm -f conftest*
6603 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6604 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6605 then
6606 cat >> confdefs.h <<\EOF
6607 #define STATFS_DEFINED_BY_SYS_STATFS 1
6613 if test "$ac_cv_header_sys_mount_h" = "yes"
6614 then
6615 echo $ac_n "checking whether sys/mount.h defines statfs""... $ac_c" 1>&6
6616 echo "configure:6617: checking whether sys/mount.h defines statfs" >&5
6617 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6618 echo $ac_n "(cached) $ac_c" 1>&6
6619 else
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6624 #include <sys/types.h>
6625 #ifdef HAVE_SYS_PARAM_H
6626 # include <sys/param.h>
6627 #endif
6628 #include <sys/mount.h>
6630 int main() {
6632 struct statfs stfs;
6634 ; return 0; }
6636 if { (eval echo configure:6637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6637 rm -rf conftest*
6638 wine_cv_sys_mount_has_statfs=yes
6639 else
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6642 rm -rf conftest*
6643 wine_cv_sys_mount_has_statfs=no
6646 rm -f conftest*
6650 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6651 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6652 then
6653 cat >> confdefs.h <<\EOF
6654 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6661 echo $ac_n "checking for statfs.f_bfree""... $ac_c" 1>&6
6662 echo "configure:6663: checking for statfs.f_bfree" >&5
6663 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6665 else
6666 if test "x$statfs_bfree" = "xno"
6667 then
6668 wine_cv_statfs_bfree=no
6669 else
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6674 #include <sys/types.h>
6675 #ifdef HAVE_SYS_PARAM_H
6676 # include <sys/param.h>
6677 #endif
6678 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6679 # include <sys/mount.h>
6680 #else
6681 # ifdef STATFS_DEFINED_BY_SYS_VFS
6682 # include <sys/vfs.h>
6683 # else
6684 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6685 # include <sys/statfs.h>
6686 # endif
6687 # endif
6688 #endif
6690 int main() {
6692 struct statfs stfs;
6694 stfs.f_bfree++;
6696 ; return 0; }
6698 if { (eval echo configure:6699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6699 rm -rf conftest*
6700 wine_cv_statfs_bfree=yes
6701 else
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6704 rm -rf conftest*
6705 wine_cv_statfs_bfree=no
6708 rm -f conftest*
6712 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6713 if test "$wine_cv_statfs_bfree" = "yes"
6714 then
6715 cat >> confdefs.h <<\EOF
6716 #define STATFS_HAS_BFREE 1
6721 echo $ac_n "checking for statfs.f_bavail""... $ac_c" 1>&6
6722 echo "configure:6723: checking for statfs.f_bavail" >&5
6723 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6724 echo $ac_n "(cached) $ac_c" 1>&6
6725 else
6726 if test "x$statfs_bavail" = "xno"
6727 then
6728 wine_cv_statfs_bavail=no
6729 else
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6734 #include <sys/types.h>
6735 #ifdef HAVE_SYS_PARAM_H
6736 # include <sys/param.h>
6737 #endif
6738 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6739 # include <sys/mount.h>
6740 #else
6741 # ifdef STATFS_DEFINED_BY_SYS_VFS
6742 # include <sys/vfs.h>
6743 # else
6744 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6745 # include <sys/statfs.h>
6746 # endif
6747 # endif
6748 #endif
6750 int main() {
6752 struct statfs stfs;
6754 stfs.f_bavail++;
6756 ; return 0; }
6758 if { (eval echo configure:6759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6759 rm -rf conftest*
6760 wine_cv_statfs_bavail=yes
6761 else
6762 echo "configure: failed program was:" >&5
6763 cat conftest.$ac_ext >&5
6764 rm -rf conftest*
6765 wine_cv_statfs_bavail=no
6768 rm -f conftest*
6772 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6773 if test "$wine_cv_statfs_bavail" = "yes"
6774 then
6775 cat >> confdefs.h <<\EOF
6776 #define STATFS_HAS_BAVAIL 1
6782 echo $ac_n "checking for msg_accrights in struct msghdr""... $ac_c" 1>&6
6783 echo "configure:6784: checking for msg_accrights in struct msghdr" >&5
6784 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6785 echo $ac_n "(cached) $ac_c" 1>&6
6786 else
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 #include <sys/types.h>
6791 #include <sys/socket.h>
6792 int main() {
6793 struct msghdr hdr; hdr.msg_accrights=0
6794 ; return 0; }
6796 if { (eval echo configure:6797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6797 rm -rf conftest*
6798 ac_cv_c_msg_accrights="yes"
6799 else
6800 echo "configure: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6802 rm -rf conftest*
6803 ac_cv_c_msg_accrights="no"
6805 rm -f conftest*
6808 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6809 if test "$ac_cv_c_msg_accrights" = "yes"
6810 then
6811 cat >> confdefs.h <<\EOF
6812 #define HAVE_MSGHDR_ACCRIGHTS 1
6818 echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
6819 echo "configure:6820: checking for sa_len in struct sockaddr" >&5
6820 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
6821 echo $ac_n "(cached) $ac_c" 1>&6
6822 else
6823 cat > conftest.$ac_ext <<EOF
6824 #line 6825 "configure"
6825 #include "confdefs.h"
6826 #include <sys/types.h>
6827 #include <sys/socket.h>
6829 int main() {
6830 static struct sockaddr addr; addr.sa_len = 1
6831 ; return 0; }
6833 if { (eval echo configure:6834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6834 rm -rf conftest*
6835 ac_cv_c_sockaddr_sa_len="yes"
6836 else
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839 rm -rf conftest*
6840 ac_cv_c_sockaddr_sa_len="no"
6842 rm -f conftest*
6845 echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6846 if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6847 then
6848 cat >> confdefs.h <<\EOF
6849 #define HAVE_SOCKADDR_SA_LEN 1
6855 echo $ac_n "checking for sun_len in struct sockaddr_un""... $ac_c" 1>&6
6856 echo "configure:6857: checking for sun_len in struct sockaddr_un" >&5
6857 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6859 else
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6863 #include <sys/types.h>
6864 #include <sys/socket.h>
6865 #include <sys/un.h>
6866 int main() {
6867 static struct sockaddr_un addr; addr.sun_len = 1
6868 ; return 0; }
6870 if { (eval echo configure:6871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6871 rm -rf conftest*
6872 ac_cv_c_sockaddr_sun_len="yes"
6873 else
6874 echo "configure: failed program was:" >&5
6875 cat conftest.$ac_ext >&5
6876 rm -rf conftest*
6877 ac_cv_c_sockaddr_sun_len="no"
6879 rm -f conftest*
6882 echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6883 if test "$ac_cv_c_sockaddr_sun_len" = "yes"
6884 then
6885 cat >> confdefs.h <<\EOF
6886 #define HAVE_SOCKADDR_SUN_LEN 1
6892 echo $ac_n "checking whether we need to define __i386__""... $ac_c" 1>&6
6893 echo "configure:6894: checking whether we need to define __i386__" >&5
6894 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6895 echo $ac_n "(cached) $ac_c" 1>&6
6896 else
6897 cat > conftest.$ac_ext <<EOF
6898 #line 6899 "configure"
6899 #include "confdefs.h"
6900 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6902 #endif
6904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6905 egrep "yes" >/dev/null 2>&1; then
6906 rm -rf conftest*
6907 ac_cv_cpp_def_i386="yes"
6908 else
6909 rm -rf conftest*
6910 ac_cv_cpp_def_i386="no"
6912 rm -f conftest*
6916 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6917 if test "$ac_cv_cpp_def_i386" = "yes"
6918 then
6919 CFLAGS="$CFLAGS -D__i386__"
6920 LINTFLAGS="$LINTFLAGS -D__i386__"
6923 GCC_NO_BUILTIN=""
6924 if test "$GCC" = "yes"
6925 then
6926 GCC_NO_BUILTIN="-fno-builtin"
6933 MAKE_RULES=Make.rules
6936 MAKE_DLL_RULES=dlls/Makedll.rules
6939 MAKE_PROG_RULES=programs/Makeprog.rules
6942 trap '' 1 2 15
6943 cat > confcache <<\EOF
6944 # This file is a shell script that caches the results of configure
6945 # tests run on this system so they can be shared between configure
6946 # scripts and configure runs. It is not useful on other systems.
6947 # If it contains results you don't want to keep, you may remove or edit it.
6949 # By default, configure uses ./config.cache as the cache file,
6950 # creating it if it does not exist already. You can give configure
6951 # the --cache-file=FILE option to use a different cache file; that is
6952 # what configure does when it calls configure scripts in
6953 # subdirectories, so they share the cache.
6954 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6955 # config.status only pays attention to the cache file if you give it the
6956 # --recheck option to rerun configure.
6959 # The following way of writing the cache mishandles newlines in values,
6960 # but we know of no workaround that is simple, portable, and efficient.
6961 # So, don't put newlines in cache variables' values.
6962 # Ultrix sh set writes to stderr and can't be redirected directly,
6963 # and sets the high bit in the cache file unless we assign to the vars.
6964 (set) 2>&1 |
6965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6966 *ac_space=\ *)
6967 # `set' does not quote correctly, so add quotes (double-quote substitution
6968 # turns \\\\ into \\, and sed turns \\ into \).
6969 sed -n \
6970 -e "s/'/'\\\\''/g" \
6971 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6974 # `set' quotes correctly as required by POSIX, so do not add quotes.
6975 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6977 esac >> confcache
6978 if cmp -s $cache_file confcache; then
6980 else
6981 if test -w $cache_file; then
6982 echo "updating cache $cache_file"
6983 cat confcache > $cache_file
6984 else
6985 echo "not updating unwritable cache $cache_file"
6988 rm -f confcache
6990 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6993 # Let make expand exec_prefix.
6994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6996 # Any assignment to VPATH causes Sun make to only execute
6997 # the first set of double-colon rules, so remove it if not needed.
6998 # If there is a colon in the path, we need to keep it.
6999 if test "x$srcdir" = x.; then
7000 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7003 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7005 DEFS=-DHAVE_CONFIG_H
7007 # Without the "./", some shells look in PATH for config.status.
7008 : ${CONFIG_STATUS=./config.status}
7010 echo creating $CONFIG_STATUS
7011 rm -f $CONFIG_STATUS
7012 cat > $CONFIG_STATUS <<EOF
7013 #! /bin/sh
7014 # Generated automatically by configure.
7015 # Run this file to recreate the current configuration.
7016 # This directory was configured as follows,
7017 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7019 # $0 $ac_configure_args
7021 # Compiler output produced by configure, useful for debugging
7022 # configure, is in ./config.log if it exists.
7024 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7025 for ac_option
7027 case "\$ac_option" in
7028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7029 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7030 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7031 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7032 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7033 exit 0 ;;
7034 -help | --help | --hel | --he | --h)
7035 echo "\$ac_cs_usage"; exit 0 ;;
7036 *) echo "\$ac_cs_usage"; exit 1 ;;
7037 esac
7038 done
7040 ac_given_srcdir=$srcdir
7041 ac_given_INSTALL="$INSTALL"
7043 trap 'rm -fr `echo "
7044 Make.rules
7045 dlls/Makedll.rules
7046 programs/Makeprog.rules
7047 Makefile
7048 console/Makefile
7049 controls/Makefile
7050 debugger/Makefile
7051 dlls/Makefile
7052 dlls/advapi32/Makefile
7053 dlls/avifil32/Makefile
7054 dlls/comctl32/Makefile
7055 dlls/commdlg/Makefile
7056 dlls/crtdll/Makefile
7057 dlls/dciman32/Makefile
7058 dlls/ddraw/Makefile
7059 dlls/dinput/Makefile
7060 dlls/dplay/Makefile
7061 dlls/dplayx/Makefile
7062 dlls/dsound/Makefile
7063 dlls/gdi/Makefile
7064 dlls/glu32/Makefile
7065 dlls/icmp/Makefile
7066 dlls/imagehlp/Makefile
7067 dlls/imm32/Makefile
7068 dlls/kernel/Makefile
7069 dlls/lzexpand/Makefile
7070 dlls/mapi32/Makefile
7071 dlls/mpr/Makefile
7072 dlls/msacm/Makefile
7073 dlls/msimg32/Makefile
7074 dlls/msnet32/Makefile
7075 dlls/msvcrt/Makefile
7076 dlls/msvideo/Makefile
7077 dlls/ntdll/Makefile
7078 dlls/odbc32/Makefile
7079 dlls/ole32/Makefile
7080 dlls/oleaut32/Makefile
7081 dlls/olecli/Makefile
7082 dlls/oledlg/Makefile
7083 dlls/olepro32/Makefile
7084 dlls/olesvr/Makefile
7085 dlls/opengl32/Makefile
7086 dlls/psapi/Makefile
7087 dlls/quartz/Makefile
7088 dlls/rasapi32/Makefile
7089 dlls/richedit/Makefile
7090 dlls/rpcrt4/Makefile
7091 dlls/serialui/Makefile
7092 dlls/setupapi/Makefile
7093 dlls/shdocvw/Makefile
7094 dlls/shell32/Makefile
7095 dlls/shfolder/Makefile
7096 dlls/shlwapi/Makefile
7097 dlls/sti/Makefile
7098 dlls/tapi32/Makefile
7099 dlls/ttydrv/Makefile
7100 dlls/url/Makefile
7101 dlls/urlmon/Makefile
7102 dlls/user/Makefile
7103 dlls/version/Makefile
7104 dlls/win32s/Makefile
7105 dlls/winaspi/Makefile
7106 dlls/winedos/Makefile
7107 dlls/wineps/Makefile
7108 dlls/wininet/Makefile
7109 dlls/winmm/Makefile
7110 dlls/winmm/joystick/Makefile
7111 dlls/winmm/mcianim/Makefile
7112 dlls/winmm/mciavi/Makefile
7113 dlls/winmm/mcicda/Makefile
7114 dlls/winmm/mciseq/Makefile
7115 dlls/winmm/mciwave/Makefile
7116 dlls/winmm/midimap/Makefile
7117 dlls/winmm/wavemap/Makefile
7118 dlls/winmm/wineoss/Makefile
7119 dlls/winnls/Makefile
7120 dlls/winsock/Makefile
7121 dlls/winspool/Makefile
7122 dlls/wintrust/Makefile
7123 dlls/wow32/Makefile
7124 dlls/wsock32/Makefile
7125 dlls/x11drv/Makefile
7126 documentation/Makefile
7127 documentation/wine.conf.man
7128 documentation/wine.man
7129 files/Makefile
7130 graphics/Makefile
7131 graphics/enhmetafiledrv/Makefile
7132 graphics/metafiledrv/Makefile
7133 graphics/win16drv/Makefile
7134 graphics/x11drv/Makefile
7135 if1632/Makefile
7136 include/Makefile
7137 library/Makefile
7138 libtest/Makefile
7139 loader/Makefile
7140 loader/dos/Makefile
7141 loader/ne/Makefile
7142 memory/Makefile
7143 misc/Makefile
7144 miscemu/Makefile
7145 msdos/Makefile
7146 objects/Makefile
7147 ole/Makefile
7148 programs/Makefile
7149 programs/avitools/Makefile
7150 programs/clock/Makefile
7151 programs/cmdlgtst/Makefile
7152 programs/control/Makefile
7153 programs/notepad/Makefile
7154 programs/osversioncheck/Makefile
7155 programs/progman/Makefile
7156 programs/regapi/Makefile
7157 programs/regtest/Makefile
7158 programs/uninstaller/Makefile
7159 programs/view/Makefile
7160 programs/wcmd/Makefile
7161 programs/winemine/Makefile
7162 programs/winetest/Makefile
7163 programs/winhelp/Makefile
7164 programs/winver/Makefile
7165 relay32/Makefile
7166 scheduler/Makefile
7167 server/Makefile
7168 tools/Makefile
7169 tools/winapi/Makefile
7170 tools/winebuild/Makefile
7171 tools/winedump/Makefile
7172 tools/winelauncher
7173 tools/wmc/Makefile
7174 tools/wrc/Makefile
7175 tsx11/Makefile
7176 unicode/Makefile
7177 win32/Makefile
7178 windows/Makefile
7179 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7181 cat >> $CONFIG_STATUS <<EOF
7183 # Protect against being on the right side of a sed subst in config.status.
7184 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7185 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7186 $ac_vpsub
7187 $extrasub
7188 s%@SHELL@%$SHELL%g
7189 s%@CFLAGS@%$CFLAGS%g
7190 s%@CPPFLAGS@%$CPPFLAGS%g
7191 s%@CXXFLAGS@%$CXXFLAGS%g
7192 s%@FFLAGS@%$FFLAGS%g
7193 s%@DEFS@%$DEFS%g
7194 s%@LDFLAGS@%$LDFLAGS%g
7195 s%@LIBS@%$LIBS%g
7196 s%@exec_prefix@%$exec_prefix%g
7197 s%@prefix@%$prefix%g
7198 s%@program_transform_name@%$program_transform_name%g
7199 s%@bindir@%$bindir%g
7200 s%@sbindir@%$sbindir%g
7201 s%@libexecdir@%$libexecdir%g
7202 s%@datadir@%$datadir%g
7203 s%@sysconfdir@%$sysconfdir%g
7204 s%@sharedstatedir@%$sharedstatedir%g
7205 s%@localstatedir@%$localstatedir%g
7206 s%@libdir@%$libdir%g
7207 s%@includedir@%$includedir%g
7208 s%@oldincludedir@%$oldincludedir%g
7209 s%@infodir@%$infodir%g
7210 s%@mandir@%$mandir%g
7211 s%@OPTIONS@%$OPTIONS%g
7212 s%@SET_MAKE@%$SET_MAKE%g
7213 s%@CC@%$CC%g
7214 s%@CPP@%$CPP%g
7215 s%@X_CFLAGS@%$X_CFLAGS%g
7216 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7217 s%@X_LIBS@%$X_LIBS%g
7218 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7219 s%@YACC@%$YACC%g
7220 s%@LEX@%$LEX%g
7221 s%@LEXLIB@%$LEXLIB%g
7222 s%@XLEX@%$XLEX%g
7223 s%@RANLIB@%$RANLIB%g
7224 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7225 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7226 s%@INSTALL_DATA@%$INSTALL_DATA%g
7227 s%@LN_S@%$LN_S%g
7228 s%@C2MAN@%$C2MAN%g
7229 s%@LDCONFIG@%$LDCONFIG%g
7230 s%@DLLWRAP@%$DLLWRAP%g
7231 s%@LINT@%$LINT%g
7232 s%@LINTFLAGS@%$LINTFLAGS%g
7233 s%@LDCOMBINE@%$LDCOMBINE%g
7234 s%@JPEGLIB@%$JPEGLIB%g
7235 s%@XLIB@%$XLIB%g
7236 s%@XFILES@%$XFILES%g
7237 s%@OPENGLFILES@%$OPENGLFILES%g
7238 s%@GLU32FILES@%$GLU32FILES%g
7239 s%@CUPSLIBS@%$CUPSLIBS%g
7240 s%@ft_devel@%$ft_devel%g
7241 s%@ft_devel2@%$ft_devel2%g
7242 s%@FREETYPELIBS@%$FREETYPELIBS%g
7243 s%@FREETYPEINCL@%$FREETYPEINCL%g
7244 s%@DLLFLAGS@%$DLLFLAGS%g
7245 s%@LDSHARED@%$LDSHARED%g
7246 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7247 s%@LIBEXT@%$LIBEXT%g
7248 s%@LDPATH@%$LDPATH%g
7249 s%@ALLOCA@%$ALLOCA%g
7250 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7251 /@MAKE_RULES@/r $MAKE_RULES
7252 s%@MAKE_RULES@%%g
7253 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7254 s%@MAKE_DLL_RULES@%%g
7255 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7256 s%@MAKE_PROG_RULES@%%g
7258 CEOF
7261 cat >> $CONFIG_STATUS <<\EOF
7263 # Split the substitutions into bite-sized pieces for seds with
7264 # small command number limits, like on Digital OSF/1 and HP-UX.
7265 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7266 ac_file=1 # Number of current file.
7267 ac_beg=1 # First line for current file.
7268 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7269 ac_more_lines=:
7270 ac_sed_cmds=""
7271 while $ac_more_lines; do
7272 if test $ac_beg -gt 1; then
7273 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7274 else
7275 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7277 if test ! -s conftest.s$ac_file; then
7278 ac_more_lines=false
7279 rm -f conftest.s$ac_file
7280 else
7281 if test -z "$ac_sed_cmds"; then
7282 ac_sed_cmds="sed -f conftest.s$ac_file"
7283 else
7284 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7286 ac_file=`expr $ac_file + 1`
7287 ac_beg=$ac_end
7288 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7290 done
7291 if test -z "$ac_sed_cmds"; then
7292 ac_sed_cmds=cat
7296 cat >> $CONFIG_STATUS <<EOF
7298 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7299 dlls/Makedll.rules
7300 programs/Makeprog.rules
7301 Makefile
7302 console/Makefile
7303 controls/Makefile
7304 debugger/Makefile
7305 dlls/Makefile
7306 dlls/advapi32/Makefile
7307 dlls/avifil32/Makefile
7308 dlls/comctl32/Makefile
7309 dlls/commdlg/Makefile
7310 dlls/crtdll/Makefile
7311 dlls/dciman32/Makefile
7312 dlls/ddraw/Makefile
7313 dlls/dinput/Makefile
7314 dlls/dplay/Makefile
7315 dlls/dplayx/Makefile
7316 dlls/dsound/Makefile
7317 dlls/gdi/Makefile
7318 dlls/glu32/Makefile
7319 dlls/icmp/Makefile
7320 dlls/imagehlp/Makefile
7321 dlls/imm32/Makefile
7322 dlls/kernel/Makefile
7323 dlls/lzexpand/Makefile
7324 dlls/mapi32/Makefile
7325 dlls/mpr/Makefile
7326 dlls/msacm/Makefile
7327 dlls/msimg32/Makefile
7328 dlls/msnet32/Makefile
7329 dlls/msvcrt/Makefile
7330 dlls/msvideo/Makefile
7331 dlls/ntdll/Makefile
7332 dlls/odbc32/Makefile
7333 dlls/ole32/Makefile
7334 dlls/oleaut32/Makefile
7335 dlls/olecli/Makefile
7336 dlls/oledlg/Makefile
7337 dlls/olepro32/Makefile
7338 dlls/olesvr/Makefile
7339 dlls/opengl32/Makefile
7340 dlls/psapi/Makefile
7341 dlls/quartz/Makefile
7342 dlls/rasapi32/Makefile
7343 dlls/richedit/Makefile
7344 dlls/rpcrt4/Makefile
7345 dlls/serialui/Makefile
7346 dlls/setupapi/Makefile
7347 dlls/shdocvw/Makefile
7348 dlls/shell32/Makefile
7349 dlls/shfolder/Makefile
7350 dlls/shlwapi/Makefile
7351 dlls/sti/Makefile
7352 dlls/tapi32/Makefile
7353 dlls/ttydrv/Makefile
7354 dlls/url/Makefile
7355 dlls/urlmon/Makefile
7356 dlls/user/Makefile
7357 dlls/version/Makefile
7358 dlls/win32s/Makefile
7359 dlls/winaspi/Makefile
7360 dlls/winedos/Makefile
7361 dlls/wineps/Makefile
7362 dlls/wininet/Makefile
7363 dlls/winmm/Makefile
7364 dlls/winmm/joystick/Makefile
7365 dlls/winmm/mcianim/Makefile
7366 dlls/winmm/mciavi/Makefile
7367 dlls/winmm/mcicda/Makefile
7368 dlls/winmm/mciseq/Makefile
7369 dlls/winmm/mciwave/Makefile
7370 dlls/winmm/midimap/Makefile
7371 dlls/winmm/wavemap/Makefile
7372 dlls/winmm/wineoss/Makefile
7373 dlls/winnls/Makefile
7374 dlls/winsock/Makefile
7375 dlls/winspool/Makefile
7376 dlls/wintrust/Makefile
7377 dlls/wow32/Makefile
7378 dlls/wsock32/Makefile
7379 dlls/x11drv/Makefile
7380 documentation/Makefile
7381 documentation/wine.conf.man
7382 documentation/wine.man
7383 files/Makefile
7384 graphics/Makefile
7385 graphics/enhmetafiledrv/Makefile
7386 graphics/metafiledrv/Makefile
7387 graphics/win16drv/Makefile
7388 graphics/x11drv/Makefile
7389 if1632/Makefile
7390 include/Makefile
7391 library/Makefile
7392 libtest/Makefile
7393 loader/Makefile
7394 loader/dos/Makefile
7395 loader/ne/Makefile
7396 memory/Makefile
7397 misc/Makefile
7398 miscemu/Makefile
7399 msdos/Makefile
7400 objects/Makefile
7401 ole/Makefile
7402 programs/Makefile
7403 programs/avitools/Makefile
7404 programs/clock/Makefile
7405 programs/cmdlgtst/Makefile
7406 programs/control/Makefile
7407 programs/notepad/Makefile
7408 programs/osversioncheck/Makefile
7409 programs/progman/Makefile
7410 programs/regapi/Makefile
7411 programs/regtest/Makefile
7412 programs/uninstaller/Makefile
7413 programs/view/Makefile
7414 programs/wcmd/Makefile
7415 programs/winemine/Makefile
7416 programs/winetest/Makefile
7417 programs/winhelp/Makefile
7418 programs/winver/Makefile
7419 relay32/Makefile
7420 scheduler/Makefile
7421 server/Makefile
7422 tools/Makefile
7423 tools/winapi/Makefile
7424 tools/winebuild/Makefile
7425 tools/winedump/Makefile
7426 tools/winelauncher
7427 tools/wmc/Makefile
7428 tools/wrc/Makefile
7429 tsx11/Makefile
7430 unicode/Makefile
7431 win32/Makefile
7432 windows/Makefile
7433 windows/x11drv/Makefile "}
7435 cat >> $CONFIG_STATUS <<\EOF
7436 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7437 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7438 case "$ac_file" in
7439 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7440 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7441 *) ac_file_in="${ac_file}.in" ;;
7442 esac
7444 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7446 # Remove last slash and all that follows it. Not all systems have dirname.
7447 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7448 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7449 # The file is in a subdirectory.
7450 test ! -d "$ac_dir" && mkdir "$ac_dir"
7451 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7452 # A "../" for each directory in $ac_dir_suffix.
7453 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7454 else
7455 ac_dir_suffix= ac_dots=
7458 case "$ac_given_srcdir" in
7459 .) srcdir=.
7460 if test -z "$ac_dots"; then top_srcdir=.
7461 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7462 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7463 *) # Relative path.
7464 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7465 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7466 esac
7468 case "$ac_given_INSTALL" in
7469 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7470 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7471 esac
7473 echo creating "$ac_file"
7474 rm -f "$ac_file"
7475 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7476 case "$ac_file" in
7477 *Makefile*) ac_comsub="1i\\
7478 # $configure_input" ;;
7479 *) ac_comsub= ;;
7480 esac
7482 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7483 sed -e "$ac_comsub
7484 s%@configure_input@%$configure_input%g
7485 s%@srcdir@%$srcdir%g
7486 s%@top_srcdir@%$top_srcdir%g
7487 s%@INSTALL@%$INSTALL%g
7488 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7489 fi; done
7490 rm -f conftest.s*
7492 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7493 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7495 # ac_d sets the value in "#define NAME VALUE" lines.
7496 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7497 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7498 ac_dC='\3'
7499 ac_dD='%g'
7500 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7501 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7502 ac_uB='\([ ]\)%\1#\2define\3'
7503 ac_uC=' '
7504 ac_uD='\4%g'
7505 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7506 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7507 ac_eB='$%\1#\2define\3'
7508 ac_eC=' '
7509 ac_eD='%g'
7511 if test "${CONFIG_HEADERS+set}" != set; then
7513 cat >> $CONFIG_STATUS <<EOF
7514 CONFIG_HEADERS="include/config.h"
7516 cat >> $CONFIG_STATUS <<\EOF
7518 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7519 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7520 case "$ac_file" in
7521 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7522 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7523 *) ac_file_in="${ac_file}.in" ;;
7524 esac
7526 echo creating $ac_file
7528 rm -f conftest.frag conftest.in conftest.out
7529 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7530 cat $ac_file_inputs > conftest.in
7534 # Transform confdefs.h into a sed script conftest.vals that substitutes
7535 # the proper values into config.h.in to produce config.h. And first:
7536 # Protect against being on the right side of a sed subst in config.status.
7537 # Protect against being in an unquoted here document in config.status.
7538 rm -f conftest.vals
7539 cat > conftest.hdr <<\EOF
7540 s/[\\&%]/\\&/g
7541 s%[\\$`]%\\&%g
7542 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7543 s%ac_d%ac_u%gp
7544 s%ac_u%ac_e%gp
7546 sed -n -f conftest.hdr confdefs.h > conftest.vals
7547 rm -f conftest.hdr
7549 # This sed command replaces #undef with comments. This is necessary, for
7550 # example, in the case of _POSIX_SOURCE, which is predefined and required
7551 # on some systems where configure will not decide to define it.
7552 cat >> conftest.vals <<\EOF
7553 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7556 # Break up conftest.vals because some shells have a limit on
7557 # the size of here documents, and old seds have small limits too.
7559 rm -f conftest.tail
7560 while :
7562 ac_lines=`grep -c . conftest.vals`
7563 # grep -c gives empty output for an empty file on some AIX systems.
7564 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7565 # Write a limited-size here document to conftest.frag.
7566 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7567 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7568 echo 'CEOF
7569 sed -f conftest.frag conftest.in > conftest.out
7570 rm -f conftest.in
7571 mv conftest.out conftest.in
7572 ' >> $CONFIG_STATUS
7573 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7574 rm -f conftest.vals
7575 mv conftest.tail conftest.vals
7576 done
7577 rm -f conftest.vals
7579 cat >> $CONFIG_STATUS <<\EOF
7580 rm -f conftest.frag conftest.h
7581 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7582 cat conftest.in >> conftest.h
7583 rm -f conftest.in
7584 if cmp -s $ac_file conftest.h 2>/dev/null; then
7585 echo "$ac_file is unchanged"
7586 rm -f conftest.h
7587 else
7588 # Remove last slash and all that follows it. Not all systems have dirname.
7589 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7590 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7591 # The file is in a subdirectory.
7592 test ! -d "$ac_dir" && mkdir "$ac_dir"
7594 rm -f $ac_file
7595 mv conftest.h $ac_file
7597 fi; done
7600 cat >> $CONFIG_STATUS <<EOF
7604 cat >> $CONFIG_STATUS <<\EOF
7606 extra_subdirs="\
7607 dlls/ddraw/d3ddevice \
7608 dlls/ddraw/dclipper \
7609 dlls/ddraw/ddraw \
7610 dlls/ddraw/direct3d \
7611 dlls/ddraw/dpalette \
7612 dlls/ddraw/dsurface \
7613 dlls/dinput/joystick \
7614 dlls/dinput/keyboard \
7615 dlls/dinput/mouse \
7616 dlls/kernel/messages \
7617 dlls/user/dde \
7618 dlls/user/resources \
7619 dlls/wineps/data \
7621 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7623 exit 0
7625 chmod +x $CONFIG_STATUS
7626 rm -fr confdefs* $ac_clean_files
7627 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7630 if test "$have_x" = "no"
7631 then
7632 echo
7633 echo "*** Warning: X development files not found. Wine will be built without"
7634 echo "*** X support, which currently does not work, and would probably not be"
7635 echo "*** what you want anyway. You will need to install devel packages of"
7636 echo "*** Xlib/Xfree86 and Xpm at the very least."
7637 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7638 then
7639 echo
7640 echo "*** Warning: Xpm development files not found. Wine will be built without"
7641 echo "*** Xpm support, which currently does not work. You will need to install"
7642 echo "*** devel packages of Xpm."
7645 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7646 then
7647 echo
7648 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7649 echo "*** terminal resize support. Consider upgrading ncurses."
7652 if test "$wine_cv_libc_reentrant" = "no"
7653 then
7654 echo
7655 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7656 echo "*** thread support. Consider upgrading libc to a more recent"
7657 echo "*** reentrant version of libc."
7660 if test "$wine_cv_opengl_version_OK" = "no"
7661 then
7662 echo
7663 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7664 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7667 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7668 then
7669 echo
7670 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7671 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7672 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7673 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7676 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7677 then
7678 echo
7679 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7680 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7681 echo "*** support before reporting bugs."
7684 if test "$wine_cv_warn_cups_h" = "yes"
7685 then
7686 echo
7687 echo "*** Note: You have cups runtime libraries, but no development"
7688 echo "*** libraries. Install the cups-devel package or whichever package"
7689 echo "*** contains cups.h to enable CUPS support in WINE."
7692 if test "$wine_cv_msg_freetype" = "yes"
7693 then
7694 echo
7695 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7696 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7697 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7698 echo "*** enable Wine to use TrueType fonts."
7701 echo
7702 echo "Configure finished. Do 'make depend && make' to compile Wine."
7703 echo