Name of the structured storage file root node is path of the file, not
[wine/hacks.git] / configure
blobe3218aebb33fb7916b5ea9fdae82d5717b747b2e
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 OPTIONS="$OPTIONS -DNO_DEBUG_MSGS"
607 if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no"
608 then
609 OPTIONS="$OPTIONS -DNO_TRACE_MSGS"
613 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
614 echo "configure:615: checking whether ${MAKE-make} sets \${MAKE}" >&5
615 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
616 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
618 else
619 cat > conftestmake <<\EOF
620 all:
621 @echo 'ac_maketemp="${MAKE}"'
623 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
624 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
625 if test -n "$ac_maketemp"; then
626 eval ac_cv_prog_make_${ac_make}_set=yes
627 else
628 eval ac_cv_prog_make_${ac_make}_set=no
630 rm -f conftestmake
632 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
633 echo "$ac_t""yes" 1>&6
634 SET_MAKE=
635 else
636 echo "$ac_t""no" 1>&6
637 SET_MAKE="MAKE=${MAKE-make}"
640 # Extract the first word of "gcc", so it can be a program name with args.
641 set dummy gcc; ac_word=$2
642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
643 echo "configure:644: checking for $ac_word" >&5
644 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
645 echo $ac_n "(cached) $ac_c" 1>&6
646 else
647 if test -n "$CC"; then
648 ac_cv_prog_CC="$CC" # Let the user override the test.
649 else
650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
651 ac_dummy="$PATH"
652 for ac_dir in $ac_dummy; do
653 test -z "$ac_dir" && ac_dir=.
654 if test -f $ac_dir/$ac_word; then
655 ac_cv_prog_CC="gcc"
656 break
658 done
659 IFS="$ac_save_ifs"
662 CC="$ac_cv_prog_CC"
663 if test -n "$CC"; then
664 echo "$ac_t""$CC" 1>&6
665 else
666 echo "$ac_t""no" 1>&6
669 if test -z "$CC"; then
670 # Extract the first word of "cc", so it can be a program name with args.
671 set dummy cc; ac_word=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676 else
677 if test -n "$CC"; then
678 ac_cv_prog_CC="$CC" # Let the user override the test.
679 else
680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
681 ac_prog_rejected=no
682 ac_dummy="$PATH"
683 for ac_dir in $ac_dummy; do
684 test -z "$ac_dir" && ac_dir=.
685 if test -f $ac_dir/$ac_word; then
686 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
687 ac_prog_rejected=yes
688 continue
690 ac_cv_prog_CC="cc"
691 break
693 done
694 IFS="$ac_save_ifs"
695 if test $ac_prog_rejected = yes; then
696 # We found a bogon in the path, so make sure we never use it.
697 set dummy $ac_cv_prog_CC
698 shift
699 if test $# -gt 0; then
700 # We chose a different compiler from the bogus one.
701 # However, it has the same basename, so the bogon will be chosen
702 # first if we set CC to just the basename; use the full file name.
703 shift
704 set dummy "$ac_dir/$ac_word" "$@"
705 shift
706 ac_cv_prog_CC="$@"
711 CC="$ac_cv_prog_CC"
712 if test -n "$CC"; then
713 echo "$ac_t""$CC" 1>&6
714 else
715 echo "$ac_t""no" 1>&6
718 if test -z "$CC"; then
719 case "`uname -s`" in
720 *win32* | *WIN32*)
721 # Extract the first word of "cl", so it can be a program name with args.
722 set dummy cl; ac_word=$2
723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
724 echo "configure:725: checking for $ac_word" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
727 else
728 if test -n "$CC"; then
729 ac_cv_prog_CC="$CC" # Let the user override the test.
730 else
731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
732 ac_dummy="$PATH"
733 for ac_dir in $ac_dummy; do
734 test -z "$ac_dir" && ac_dir=.
735 if test -f $ac_dir/$ac_word; then
736 ac_cv_prog_CC="cl"
737 break
739 done
740 IFS="$ac_save_ifs"
743 CC="$ac_cv_prog_CC"
744 if test -n "$CC"; then
745 echo "$ac_t""$CC" 1>&6
746 else
747 echo "$ac_t""no" 1>&6
750 esac
752 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
756 echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
758 ac_ext=c
759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760 ac_cpp='$CPP $CPPFLAGS'
761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763 cross_compiling=$ac_cv_prog_cc_cross
765 cat > conftest.$ac_ext << EOF
767 #line 768 "configure"
768 #include "confdefs.h"
770 main(){return(0);}
772 if { (eval echo configure:773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
773 ac_cv_prog_cc_works=yes
774 # If we can't run a trivial program, we are probably using a cross compiler.
775 if (./conftest; exit) 2>/dev/null; then
776 ac_cv_prog_cc_cross=no
777 else
778 ac_cv_prog_cc_cross=yes
780 else
781 echo "configure: failed program was:" >&5
782 cat conftest.$ac_ext >&5
783 ac_cv_prog_cc_works=no
785 rm -fr conftest*
786 ac_ext=c
787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788 ac_cpp='$CPP $CPPFLAGS'
789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791 cross_compiling=$ac_cv_prog_cc_cross
793 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
794 if test $ac_cv_prog_cc_works = no; then
795 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
797 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
798 echo "configure:799: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
799 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
800 cross_compiling=$ac_cv_prog_cc_cross
802 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
803 echo "configure:804: checking whether we are using GNU C" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
806 else
807 cat > conftest.c <<EOF
808 #ifdef __GNUC__
809 yes;
810 #endif
812 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
813 ac_cv_prog_gcc=yes
814 else
815 ac_cv_prog_gcc=no
819 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
821 if test $ac_cv_prog_gcc = yes; then
822 GCC=yes
823 else
824 GCC=
827 ac_test_CFLAGS="${CFLAGS+set}"
828 ac_save_CFLAGS="$CFLAGS"
829 CFLAGS=
830 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
831 echo "configure:832: checking whether ${CC-cc} accepts -g" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
834 else
835 echo 'void f(){}' > conftest.c
836 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
837 ac_cv_prog_cc_g=yes
838 else
839 ac_cv_prog_cc_g=no
841 rm -f conftest*
845 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
846 if test "$ac_test_CFLAGS" = set; then
847 CFLAGS="$ac_save_CFLAGS"
848 elif test $ac_cv_prog_cc_g = yes; then
849 if test "$GCC" = yes; then
850 CFLAGS="-g -O2"
851 else
852 CFLAGS="-g"
854 else
855 if test "$GCC" = yes; then
856 CFLAGS="-O2"
857 else
858 CFLAGS=
862 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
863 echo "configure:864: checking how to run the C preprocessor" >&5
864 # On Suns, sometimes $CPP names a directory.
865 if test -n "$CPP" && test -d "$CPP"; then
866 CPP=
868 if test -z "$CPP"; then
869 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
871 else
872 # This must be in double quotes, not single quotes, because CPP may get
873 # substituted into the Makefile and "${CC-cc}" will confuse make.
874 CPP="${CC-cc} -E"
875 # On the NeXT, cc -E runs the code through the compiler's parser,
876 # not just through cpp.
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
880 #include <assert.h>
881 Syntax Error
883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
884 { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
886 if test -z "$ac_err"; then
888 else
889 echo "$ac_err" >&5
890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
892 rm -rf conftest*
893 CPP="${CC-cc} -E -traditional-cpp"
894 cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
897 #include <assert.h>
898 Syntax Error
900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
901 { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
903 if test -z "$ac_err"; then
905 else
906 echo "$ac_err" >&5
907 echo "configure: failed program was:" >&5
908 cat conftest.$ac_ext >&5
909 rm -rf conftest*
910 CPP="${CC-cc} -nologo -E"
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
914 #include <assert.h>
915 Syntax Error
917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918 { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
920 if test -z "$ac_err"; then
922 else
923 echo "$ac_err" >&5
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
926 rm -rf conftest*
927 CPP=/lib/cpp
929 rm -f conftest*
931 rm -f conftest*
933 rm -f conftest*
934 ac_cv_prog_CPP="$CPP"
936 CPP="$ac_cv_prog_CPP"
937 else
938 ac_cv_prog_CPP="$CPP"
940 echo "$ac_t""$CPP" 1>&6
942 # If we find X, set shell vars x_includes and x_libraries to the
943 # paths, otherwise set no_x=yes.
944 # Uses ac_ vars as temps to allow command line to override cache and checks.
945 # --without-x overrides everything else, but does not touch the cache.
946 echo $ac_n "checking for X""... $ac_c" 1>&6
947 echo "configure:948: checking for X" >&5
949 # Check whether --with-x or --without-x was given.
950 if test "${with_x+set}" = set; then
951 withval="$with_x"
955 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
956 if test "x$with_x" = xno; then
957 # The user explicitly disabled X.
958 have_x=disabled
959 else
960 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
961 # Both variables are already set.
962 have_x=yes
963 else
964 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
966 else
967 # One or both of the vars are not set, and there is no cached value.
968 ac_x_includes=NO ac_x_libraries=NO
969 rm -fr conftestdir
970 if mkdir conftestdir; then
971 cd conftestdir
972 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
973 cat > Imakefile <<'EOF'
974 acfindx:
975 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
977 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
981 for ac_extension in a so sl; do
982 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
983 test -f $ac_im_libdir/libX11.$ac_extension; then
984 ac_im_usrlibdir=$ac_im_libdir; break
986 done
987 # Screen out bogus values from the imake configuration. They are
988 # bogus both because they are the default anyway, and because
989 # using them would break gcc on systems where it needs fixed includes.
990 case "$ac_im_incroot" in
991 /usr/include) ;;
992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
993 esac
994 case "$ac_im_usrlibdir" in
995 /usr/lib | /lib) ;;
996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
997 esac
999 cd ..
1000 rm -fr conftestdir
1003 if test "$ac_x_includes" = NO; then
1004 # Guess where to find include files, by looking for this one X11 .h file.
1005 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1007 # First, try using that file with no special directory specified.
1008 cat > conftest.$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1011 #include <$x_direct_test_include>
1013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1014 { (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1016 if test -z "$ac_err"; then
1017 rm -rf conftest*
1018 # We can compile using X headers with no special include directory.
1019 ac_x_includes=
1020 else
1021 echo "$ac_err" >&5
1022 echo "configure: failed program was:" >&5
1023 cat conftest.$ac_ext >&5
1024 rm -rf conftest*
1025 # Look for the header file in a standard set of common directories.
1026 # Check X11 before X11Rn because it is often a symlink to the current release.
1027 for ac_dir in \
1028 /usr/X11/include \
1029 /usr/X11R6/include \
1030 /usr/X11R5/include \
1031 /usr/X11R4/include \
1033 /usr/include/X11 \
1034 /usr/include/X11R6 \
1035 /usr/include/X11R5 \
1036 /usr/include/X11R4 \
1038 /usr/local/X11/include \
1039 /usr/local/X11R6/include \
1040 /usr/local/X11R5/include \
1041 /usr/local/X11R4/include \
1043 /usr/local/include/X11 \
1044 /usr/local/include/X11R6 \
1045 /usr/local/include/X11R5 \
1046 /usr/local/include/X11R4 \
1048 /usr/X386/include \
1049 /usr/x386/include \
1050 /usr/XFree86/include/X11 \
1052 /usr/include \
1053 /usr/local/include \
1054 /usr/unsupported/include \
1055 /usr/athena/include \
1056 /usr/local/x11r5/include \
1057 /usr/lpp/Xamples/include \
1059 /usr/openwin/include \
1060 /usr/openwin/share/include \
1063 if test -r "$ac_dir/$x_direct_test_include"; then
1064 ac_x_includes=$ac_dir
1065 break
1067 done
1069 rm -f conftest*
1070 fi # $ac_x_includes = NO
1072 if test "$ac_x_libraries" = NO; then
1073 # Check for the libraries.
1075 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1076 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1078 # See if we find them without any special options.
1079 # Don't add to $LIBS permanently.
1080 ac_save_LIBS="$LIBS"
1081 LIBS="-l$x_direct_test_library $LIBS"
1082 cat > conftest.$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1086 int main() {
1087 ${x_direct_test_function}()
1088 ; return 0; }
1090 if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1091 rm -rf conftest*
1092 LIBS="$ac_save_LIBS"
1093 # We can link X programs with no special library path.
1094 ac_x_libraries=
1095 else
1096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
1098 rm -rf conftest*
1099 LIBS="$ac_save_LIBS"
1100 # First see if replacing the include by lib works.
1101 # Check X11 before X11Rn because it is often a symlink to the current release.
1102 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1103 /usr/X11/lib \
1104 /usr/X11R6/lib \
1105 /usr/X11R5/lib \
1106 /usr/X11R4/lib \
1108 /usr/lib/X11 \
1109 /usr/lib/X11R6 \
1110 /usr/lib/X11R5 \
1111 /usr/lib/X11R4 \
1113 /usr/local/X11/lib \
1114 /usr/local/X11R6/lib \
1115 /usr/local/X11R5/lib \
1116 /usr/local/X11R4/lib \
1118 /usr/local/lib/X11 \
1119 /usr/local/lib/X11R6 \
1120 /usr/local/lib/X11R5 \
1121 /usr/local/lib/X11R4 \
1123 /usr/X386/lib \
1124 /usr/x386/lib \
1125 /usr/XFree86/lib/X11 \
1127 /usr/lib \
1128 /usr/local/lib \
1129 /usr/unsupported/lib \
1130 /usr/athena/lib \
1131 /usr/local/x11r5/lib \
1132 /usr/lpp/Xamples/lib \
1133 /lib/usr/lib/X11 \
1135 /usr/openwin/lib \
1136 /usr/openwin/share/lib \
1139 for ac_extension in a so sl; do
1140 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1141 ac_x_libraries=$ac_dir
1142 break 2
1144 done
1145 done
1147 rm -f conftest*
1148 fi # $ac_x_libraries = NO
1150 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1151 # Didn't find X anywhere. Cache the known absence of X.
1152 ac_cv_have_x="have_x=no"
1153 else
1154 # Record where we found X for the cache.
1155 ac_cv_have_x="have_x=yes \
1156 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1160 eval "$ac_cv_have_x"
1161 fi # $with_x != no
1163 if test "$have_x" != yes; then
1164 echo "$ac_t""$have_x" 1>&6
1165 no_x=yes
1166 else
1167 # If each of the values was on the command line, it overrides each guess.
1168 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1169 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1170 # Update the cache value to reflect the command line values.
1171 ac_cv_have_x="have_x=yes \
1172 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1173 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1176 if test "$no_x" = yes; then
1177 # Not all programs may use this symbol, but it does not hurt to define it.
1178 cat >> confdefs.h <<\EOF
1179 #define X_DISPLAY_MISSING 1
1182 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1183 else
1184 if test -n "$x_includes"; then
1185 X_CFLAGS="$X_CFLAGS -I$x_includes"
1188 # It would also be nice to do this for all -L options, not just this one.
1189 if test -n "$x_libraries"; then
1190 X_LIBS="$X_LIBS -L$x_libraries"
1191 # For Solaris; some versions of Sun CC require a space after -R and
1192 # others require no space. Words are not sufficient . . . .
1193 case "`(uname -sr) 2>/dev/null`" in
1194 "SunOS 5"*)
1195 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether -R must be followed by a space" >&5
1197 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1198 cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1202 int main() {
1204 ; return 0; }
1206 if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1207 rm -rf conftest*
1208 ac_R_nospace=yes
1209 else
1210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
1212 rm -rf conftest*
1213 ac_R_nospace=no
1215 rm -f conftest*
1216 if test $ac_R_nospace = yes; then
1217 echo "$ac_t""no" 1>&6
1218 X_LIBS="$X_LIBS -R$x_libraries"
1219 else
1220 LIBS="$ac_xsave_LIBS -R $x_libraries"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1225 int main() {
1227 ; return 0; }
1229 if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1230 rm -rf conftest*
1231 ac_R_space=yes
1232 else
1233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1235 rm -rf conftest*
1236 ac_R_space=no
1238 rm -f conftest*
1239 if test $ac_R_space = yes; then
1240 echo "$ac_t""yes" 1>&6
1241 X_LIBS="$X_LIBS -R $x_libraries"
1242 else
1243 echo "$ac_t""neither works" 1>&6
1246 LIBS="$ac_xsave_LIBS"
1247 esac
1250 # Check for system-dependent libraries X programs must link with.
1251 # Do this before checking for the system-independent R6 libraries
1252 # (-lICE), since we may need -lsocket or whatever for X linking.
1254 if test "$ISC" = yes; then
1255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1256 else
1257 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1258 # libraries were built with DECnet support. And karl@cs.umb.edu says
1259 # the Alpha needs dnet_stub (dnet does not exist).
1260 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1261 echo "configure:1262: checking for dnet_ntoa in -ldnet" >&5
1262 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1265 else
1266 ac_save_LIBS="$LIBS"
1267 LIBS="-ldnet $LIBS"
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 /* Override any gcc2 internal prototype to avoid an error. */
1272 /* We use char because int might match the return type of a gcc2
1273 builtin and then its argument prototype would still apply. */
1274 char dnet_ntoa();
1276 int main() {
1277 dnet_ntoa()
1278 ; return 0; }
1280 if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1281 rm -rf conftest*
1282 eval "ac_cv_lib_$ac_lib_var=yes"
1283 else
1284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
1286 rm -rf conftest*
1287 eval "ac_cv_lib_$ac_lib_var=no"
1289 rm -f conftest*
1290 LIBS="$ac_save_LIBS"
1293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1294 echo "$ac_t""yes" 1>&6
1295 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1296 else
1297 echo "$ac_t""no" 1>&6
1300 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1301 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1302 echo "configure:1303: checking for dnet_ntoa in -ldnet_stub" >&5
1303 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1306 else
1307 ac_save_LIBS="$LIBS"
1308 LIBS="-ldnet_stub $LIBS"
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1315 char dnet_ntoa();
1317 int main() {
1318 dnet_ntoa()
1319 ; return 0; }
1321 if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1322 rm -rf conftest*
1323 eval "ac_cv_lib_$ac_lib_var=yes"
1324 else
1325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
1327 rm -rf conftest*
1328 eval "ac_cv_lib_$ac_lib_var=no"
1330 rm -f conftest*
1331 LIBS="$ac_save_LIBS"
1334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1335 echo "$ac_t""yes" 1>&6
1336 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1337 else
1338 echo "$ac_t""no" 1>&6
1343 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1344 # to get the SysV transport functions.
1345 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1346 # needs -lnsl.
1347 # The nsl library prevents programs from opening the X display
1348 # on Irix 5.2, according to dickey@clark.net.
1349 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1350 echo "configure:1351: checking for gethostbyname" >&5
1351 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 /* System header to define __stub macros and hopefully few prototypes,
1358 which can conflict with char gethostbyname(); below. */
1359 #include <assert.h>
1360 /* Override any gcc2 internal prototype to avoid an error. */
1361 /* We use char because int might match the return type of a gcc2
1362 builtin and then its argument prototype would still apply. */
1363 char gethostbyname();
1365 int main() {
1367 /* The GNU C library defines this for functions which it implements
1368 to always fail with ENOSYS. Some functions are actually named
1369 something starting with __ and the normal name is an alias. */
1370 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1371 choke me
1372 #else
1373 gethostbyname();
1374 #endif
1376 ; return 0; }
1378 if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1379 rm -rf conftest*
1380 eval "ac_cv_func_gethostbyname=yes"
1381 else
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1384 rm -rf conftest*
1385 eval "ac_cv_func_gethostbyname=no"
1387 rm -f conftest*
1390 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1393 else
1394 echo "$ac_t""no" 1>&6
1397 if test $ac_cv_func_gethostbyname = no; then
1398 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1399 echo "configure:1400: checking for gethostbyname in -lnsl" >&5
1400 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 ac_save_LIBS="$LIBS"
1405 LIBS="-lnsl $LIBS"
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1409 /* Override any gcc2 internal prototype to avoid an error. */
1410 /* We use char because int might match the return type of a gcc2
1411 builtin and then its argument prototype would still apply. */
1412 char gethostbyname();
1414 int main() {
1415 gethostbyname()
1416 ; return 0; }
1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1419 rm -rf conftest*
1420 eval "ac_cv_lib_$ac_lib_var=yes"
1421 else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425 eval "ac_cv_lib_$ac_lib_var=no"
1427 rm -f conftest*
1428 LIBS="$ac_save_LIBS"
1431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1432 echo "$ac_t""yes" 1>&6
1433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1434 else
1435 echo "$ac_t""no" 1>&6
1440 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1441 # socket/setsockopt and other routines are undefined under SCO ODT
1442 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1443 # on later versions), says simon@lia.di.epfl.ch: it contains
1444 # gethostby* variants that don't use the nameserver (or something).
1445 # -lsocket must be given before -lnsl if both are needed.
1446 # We assume that if connect needs -lnsl, so does gethostbyname.
1447 echo $ac_n "checking for connect""... $ac_c" 1>&6
1448 echo "configure:1449: checking for connect" >&5
1449 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 /* System header to define __stub macros and hopefully few prototypes,
1456 which can conflict with char connect(); below. */
1457 #include <assert.h>
1458 /* Override any gcc2 internal prototype to avoid an error. */
1459 /* We use char because int might match the return type of a gcc2
1460 builtin and then its argument prototype would still apply. */
1461 char connect();
1463 int main() {
1465 /* The GNU C library defines this for functions which it implements
1466 to always fail with ENOSYS. Some functions are actually named
1467 something starting with __ and the normal name is an alias. */
1468 #if defined (__stub_connect) || defined (__stub___connect)
1469 choke me
1470 #else
1471 connect();
1472 #endif
1474 ; return 0; }
1476 if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1477 rm -rf conftest*
1478 eval "ac_cv_func_connect=yes"
1479 else
1480 echo "configure: failed program was:" >&5
1481 cat conftest.$ac_ext >&5
1482 rm -rf conftest*
1483 eval "ac_cv_func_connect=no"
1485 rm -f conftest*
1488 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1489 echo "$ac_t""yes" 1>&6
1491 else
1492 echo "$ac_t""no" 1>&6
1495 if test $ac_cv_func_connect = no; then
1496 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1497 echo "configure:1498: checking for connect in -lsocket" >&5
1498 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1501 else
1502 ac_save_LIBS="$LIBS"
1503 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1507 /* Override any gcc2 internal prototype to avoid an error. */
1508 /* We use char because int might match the return type of a gcc2
1509 builtin and then its argument prototype would still apply. */
1510 char connect();
1512 int main() {
1513 connect()
1514 ; return 0; }
1516 if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1517 rm -rf conftest*
1518 eval "ac_cv_lib_$ac_lib_var=yes"
1519 else
1520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
1522 rm -rf conftest*
1523 eval "ac_cv_lib_$ac_lib_var=no"
1525 rm -f conftest*
1526 LIBS="$ac_save_LIBS"
1529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1530 echo "$ac_t""yes" 1>&6
1531 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1532 else
1533 echo "$ac_t""no" 1>&6
1538 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1539 echo $ac_n "checking for remove""... $ac_c" 1>&6
1540 echo "configure:1541: checking for remove" >&5
1541 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1543 else
1544 cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 /* System header to define __stub macros and hopefully few prototypes,
1548 which can conflict with char remove(); below. */
1549 #include <assert.h>
1550 /* Override any gcc2 internal prototype to avoid an error. */
1551 /* We use char because int might match the return type of a gcc2
1552 builtin and then its argument prototype would still apply. */
1553 char remove();
1555 int main() {
1557 /* The GNU C library defines this for functions which it implements
1558 to always fail with ENOSYS. Some functions are actually named
1559 something starting with __ and the normal name is an alias. */
1560 #if defined (__stub_remove) || defined (__stub___remove)
1561 choke me
1562 #else
1563 remove();
1564 #endif
1566 ; return 0; }
1568 if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1569 rm -rf conftest*
1570 eval "ac_cv_func_remove=yes"
1571 else
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 rm -rf conftest*
1575 eval "ac_cv_func_remove=no"
1577 rm -f conftest*
1580 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1583 else
1584 echo "$ac_t""no" 1>&6
1587 if test $ac_cv_func_remove = no; then
1588 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1589 echo "configure:1590: checking for remove in -lposix" >&5
1590 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1593 else
1594 ac_save_LIBS="$LIBS"
1595 LIBS="-lposix $LIBS"
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 /* Override any gcc2 internal prototype to avoid an error. */
1600 /* We use char because int might match the return type of a gcc2
1601 builtin and then its argument prototype would still apply. */
1602 char remove();
1604 int main() {
1605 remove()
1606 ; return 0; }
1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1609 rm -rf conftest*
1610 eval "ac_cv_lib_$ac_lib_var=yes"
1611 else
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1614 rm -rf conftest*
1615 eval "ac_cv_lib_$ac_lib_var=no"
1617 rm -f conftest*
1618 LIBS="$ac_save_LIBS"
1621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1622 echo "$ac_t""yes" 1>&6
1623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1624 else
1625 echo "$ac_t""no" 1>&6
1630 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1631 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1632 echo "configure:1633: checking for shmat" >&5
1633 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635 else
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1639 /* System header to define __stub macros and hopefully few prototypes,
1640 which can conflict with char shmat(); below. */
1641 #include <assert.h>
1642 /* Override any gcc2 internal prototype to avoid an error. */
1643 /* We use char because int might match the return type of a gcc2
1644 builtin and then its argument prototype would still apply. */
1645 char shmat();
1647 int main() {
1649 /* The GNU C library defines this for functions which it implements
1650 to always fail with ENOSYS. Some functions are actually named
1651 something starting with __ and the normal name is an alias. */
1652 #if defined (__stub_shmat) || defined (__stub___shmat)
1653 choke me
1654 #else
1655 shmat();
1656 #endif
1658 ; return 0; }
1660 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1661 rm -rf conftest*
1662 eval "ac_cv_func_shmat=yes"
1663 else
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 rm -rf conftest*
1667 eval "ac_cv_func_shmat=no"
1669 rm -f conftest*
1672 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1673 echo "$ac_t""yes" 1>&6
1675 else
1676 echo "$ac_t""no" 1>&6
1679 if test $ac_cv_func_shmat = no; then
1680 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1681 echo "configure:1682: checking for shmat in -lipc" >&5
1682 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685 else
1686 ac_save_LIBS="$LIBS"
1687 LIBS="-lipc $LIBS"
1688 cat > conftest.$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1691 /* Override any gcc2 internal prototype to avoid an error. */
1692 /* We use char because int might match the return type of a gcc2
1693 builtin and then its argument prototype would still apply. */
1694 char shmat();
1696 int main() {
1697 shmat()
1698 ; return 0; }
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1701 rm -rf conftest*
1702 eval "ac_cv_lib_$ac_lib_var=yes"
1703 else
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1706 rm -rf conftest*
1707 eval "ac_cv_lib_$ac_lib_var=no"
1709 rm -f conftest*
1710 LIBS="$ac_save_LIBS"
1713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1716 else
1717 echo "$ac_t""no" 1>&6
1723 # Check for libraries that X11R6 Xt/Xaw programs need.
1724 ac_save_LDFLAGS="$LDFLAGS"
1725 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1726 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1727 # check for ICE first), but we must link in the order -lSM -lICE or
1728 # we get undefined symbols. So assume we have SM if we have ICE.
1729 # These have to be linked with before -lX11, unlike the other
1730 # libraries we check for below, so use a different variable.
1731 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1732 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1733 echo "configure:1734: checking for IceConnectionNumber in -lICE" >&5
1734 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1737 else
1738 ac_save_LIBS="$LIBS"
1739 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 /* Override any gcc2 internal prototype to avoid an error. */
1744 /* We use char because int might match the return type of a gcc2
1745 builtin and then its argument prototype would still apply. */
1746 char IceConnectionNumber();
1748 int main() {
1749 IceConnectionNumber()
1750 ; return 0; }
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1753 rm -rf conftest*
1754 eval "ac_cv_lib_$ac_lib_var=yes"
1755 else
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1758 rm -rf conftest*
1759 eval "ac_cv_lib_$ac_lib_var=no"
1761 rm -f conftest*
1762 LIBS="$ac_save_LIBS"
1765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1766 echo "$ac_t""yes" 1>&6
1767 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1768 else
1769 echo "$ac_t""no" 1>&6
1772 LDFLAGS="$ac_save_LDFLAGS"
1776 for ac_prog in 'bison -y' byacc
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779 set dummy $ac_prog; ac_word=$2
1780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1781 echo "configure:1782: checking for $ac_word" >&5
1782 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1784 else
1785 if test -n "$YACC"; then
1786 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1787 else
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1789 ac_dummy="$PATH"
1790 for ac_dir in $ac_dummy; do
1791 test -z "$ac_dir" && ac_dir=.
1792 if test -f $ac_dir/$ac_word; then
1793 ac_cv_prog_YACC="$ac_prog"
1794 break
1796 done
1797 IFS="$ac_save_ifs"
1800 YACC="$ac_cv_prog_YACC"
1801 if test -n "$YACC"; then
1802 echo "$ac_t""$YACC" 1>&6
1803 else
1804 echo "$ac_t""no" 1>&6
1807 test -n "$YACC" && break
1808 done
1809 test -n "$YACC" || YACC="yacc"
1811 # Extract the first word of "flex", so it can be a program name with args.
1812 set dummy flex; ac_word=$2
1813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1814 echo "configure:1815: checking for $ac_word" >&5
1815 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817 else
1818 if test -n "$LEX"; then
1819 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1820 else
1821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1822 ac_dummy="$PATH"
1823 for ac_dir in $ac_dummy; do
1824 test -z "$ac_dir" && ac_dir=.
1825 if test -f $ac_dir/$ac_word; then
1826 ac_cv_prog_LEX="flex"
1827 break
1829 done
1830 IFS="$ac_save_ifs"
1831 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1834 LEX="$ac_cv_prog_LEX"
1835 if test -n "$LEX"; then
1836 echo "$ac_t""$LEX" 1>&6
1837 else
1838 echo "$ac_t""no" 1>&6
1841 if test -z "$LEXLIB"
1842 then
1843 case "$LEX" in
1844 flex*) ac_lib=fl ;;
1845 *) ac_lib=l ;;
1846 esac
1847 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1848 echo "configure:1849: checking for yywrap in -l$ac_lib" >&5
1849 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853 ac_save_LIBS="$LIBS"
1854 LIBS="-l$ac_lib $LIBS"
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1858 /* Override any gcc2 internal prototype to avoid an error. */
1859 /* We use char because int might match the return type of a gcc2
1860 builtin and then its argument prototype would still apply. */
1861 char yywrap();
1863 int main() {
1864 yywrap()
1865 ; return 0; }
1867 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1868 rm -rf conftest*
1869 eval "ac_cv_lib_$ac_lib_var=yes"
1870 else
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1873 rm -rf conftest*
1874 eval "ac_cv_lib_$ac_lib_var=no"
1876 rm -f conftest*
1877 LIBS="$ac_save_LIBS"
1880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1881 echo "$ac_t""yes" 1>&6
1882 LEXLIB="-l$ac_lib"
1883 else
1884 echo "$ac_t""no" 1>&6
1889 for ac_prog in $LEX flex lex
1891 # Extract the first word of "$ac_prog", so it can be a program name with args.
1892 set dummy $ac_prog; ac_word=$2
1893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_word" >&5
1895 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 if test -n "$XLEX"; then
1899 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1900 else
1901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1902 ac_dummy="$PATH"
1903 for ac_dir in $ac_dummy; do
1904 test -z "$ac_dir" && ac_dir=.
1905 if test -f $ac_dir/$ac_word; then
1906 ac_cv_prog_XLEX="$ac_prog"
1907 break
1909 done
1910 IFS="$ac_save_ifs"
1913 XLEX="$ac_cv_prog_XLEX"
1914 if test -n "$XLEX"; then
1915 echo "$ac_t""$XLEX" 1>&6
1916 else
1917 echo "$ac_t""no" 1>&6
1920 test -n "$XLEX" && break
1921 done
1922 test -n "$XLEX" || XLEX="none"
1924 if test "$XLEX" = "none"
1925 then
1926 echo "*** Error: No suitable lex found. ***"
1927 echo " Please install the 'flex' package."
1928 exit 1
1930 # Extract the first word of "ranlib", so it can be a program name with args.
1931 set dummy ranlib; ac_word=$2
1932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1933 echo "configure:1934: checking for $ac_word" >&5
1934 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1936 else
1937 if test -n "$RANLIB"; then
1938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1939 else
1940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1941 ac_dummy="$PATH"
1942 for ac_dir in $ac_dummy; do
1943 test -z "$ac_dir" && ac_dir=.
1944 if test -f $ac_dir/$ac_word; then
1945 ac_cv_prog_RANLIB="ranlib"
1946 break
1948 done
1949 IFS="$ac_save_ifs"
1950 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1953 RANLIB="$ac_cv_prog_RANLIB"
1954 if test -n "$RANLIB"; then
1955 echo "$ac_t""$RANLIB" 1>&6
1956 else
1957 echo "$ac_t""no" 1>&6
1960 # Find a good install program. We prefer a C program (faster),
1961 # so one script is as good as another. But avoid the broken or
1962 # incompatible versions:
1963 # SysV /etc/install, /usr/sbin/install
1964 # SunOS /usr/etc/install
1965 # IRIX /sbin/install
1966 # AIX /bin/install
1967 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1968 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1969 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1970 # ./install, which can be erroneously created by make from ./install.sh.
1971 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1972 echo "configure:1973: checking for a BSD compatible install" >&5
1973 if test -z "$INSTALL"; then
1974 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1976 else
1977 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1978 for ac_dir in $PATH; do
1979 # Account for people who put trailing slashes in PATH elements.
1980 case "$ac_dir/" in
1981 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1983 # OSF1 and SCO ODT 3.0 have their own names for install.
1984 # Don't use installbsd from OSF since it installs stuff as root
1985 # by default.
1986 for ac_prog in ginstall scoinst install; do
1987 if test -f $ac_dir/$ac_prog; then
1988 if test $ac_prog = install &&
1989 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1990 # AIX install. It has an incompatible calling convention.
1992 else
1993 ac_cv_path_install="$ac_dir/$ac_prog -c"
1994 break 2
1997 done
1999 esac
2000 done
2001 IFS="$ac_save_IFS"
2004 if test "${ac_cv_path_install+set}" = set; then
2005 INSTALL="$ac_cv_path_install"
2006 else
2007 # As a last resort, use the slow shell script. We don't cache a
2008 # path for INSTALL within a source directory, because that will
2009 # break other packages using the cache if that directory is
2010 # removed, or if the path is relative.
2011 INSTALL="$ac_install_sh"
2014 echo "$ac_t""$INSTALL" 1>&6
2016 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2017 # It thinks the first close brace ends the variable substitution.
2018 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2020 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2022 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2024 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2025 echo "configure:2026: checking whether ln -s works" >&5
2026 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2028 else
2029 rm -f conftestdata
2030 if ln -s X conftestdata 2>/dev/null
2031 then
2032 rm -f conftestdata
2033 ac_cv_prog_LN_S="ln -s"
2034 else
2035 ac_cv_prog_LN_S=ln
2038 LN_S="$ac_cv_prog_LN_S"
2039 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2040 echo "$ac_t""yes" 1>&6
2041 else
2042 echo "$ac_t""no" 1>&6
2045 # Extract the first word of "c2man", so it can be a program name with args.
2046 set dummy c2man; ac_word=$2
2047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_word" >&5
2049 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2051 else
2052 if test -n "$C2MAN"; then
2053 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2054 else
2055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2056 ac_dummy="$PATH"
2057 for ac_dir in $ac_dummy; do
2058 test -z "$ac_dir" && ac_dir=.
2059 if test -f $ac_dir/$ac_word; then
2060 ac_cv_prog_C2MAN="c2man"
2061 break
2063 done
2064 IFS="$ac_save_ifs"
2065 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
2068 C2MAN="$ac_cv_prog_C2MAN"
2069 if test -n "$C2MAN"; then
2070 echo "$ac_t""$C2MAN" 1>&6
2071 else
2072 echo "$ac_t""no" 1>&6
2075 # Extract the first word of "ldconfig", so it can be a program name with args.
2076 set dummy ldconfig; ac_word=$2
2077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_word" >&5
2079 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2081 else
2082 case "$LDCONFIG" in
2084 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2086 ?:/*)
2087 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2091 ac_dummy="/sbin:/usr/sbin:$PATH"
2092 for ac_dir in $ac_dummy; do
2093 test -z "$ac_dir" && ac_dir=.
2094 if test -f $ac_dir/$ac_word; then
2095 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2096 break
2098 done
2099 IFS="$ac_save_ifs"
2100 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2102 esac
2104 LDCONFIG="$ac_cv_path_LDCONFIG"
2105 if test -n "$LDCONFIG"; then
2106 echo "$ac_t""$LDCONFIG" 1>&6
2107 else
2108 echo "$ac_t""no" 1>&6
2111 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2112 echo "configure:2113: checking for Cygwin environment" >&5
2113 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2115 else
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2120 int main() {
2122 #ifndef __CYGWIN__
2123 #define __CYGWIN__ __CYGWIN32__
2124 #endif
2125 return __CYGWIN__;
2126 ; return 0; }
2128 if { (eval echo configure:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2129 rm -rf conftest*
2130 ac_cv_cygwin=yes
2131 else
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2134 rm -rf conftest*
2135 ac_cv_cygwin=no
2137 rm -f conftest*
2138 rm -f conftest*
2141 echo "$ac_t""$ac_cv_cygwin" 1>&6
2142 CYGWIN=
2143 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2144 # Extract the first word of "dllwrap", so it can be a program name with args.
2145 set dummy dllwrap; ac_word=$2
2146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_word" >&5
2148 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2150 else
2151 if test -n "$DLLWRAP"; then
2152 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2153 else
2154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2155 ac_dummy="$PATH"
2156 for ac_dir in $ac_dummy; do
2157 test -z "$ac_dir" && ac_dir=.
2158 if test -f $ac_dir/$ac_word; then
2159 ac_cv_prog_DLLWRAP="dllwrap"
2160 break
2162 done
2163 IFS="$ac_save_ifs"
2164 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2167 DLLWRAP="$ac_cv_prog_DLLWRAP"
2168 if test -n "$DLLWRAP"; then
2169 echo "$ac_t""$DLLWRAP" 1>&6
2170 else
2171 echo "$ac_t""no" 1>&6
2175 for ac_prog in lclint lint
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy $ac_prog; ac_word=$2
2179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_word" >&5
2181 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2183 else
2184 if test -n "$LINT"; then
2185 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2186 else
2187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2188 ac_dummy="$PATH"
2189 for ac_dir in $ac_dummy; do
2190 test -z "$ac_dir" && ac_dir=.
2191 if test -f $ac_dir/$ac_word; then
2192 ac_cv_prog_LINT="$ac_prog"
2193 break
2195 done
2196 IFS="$ac_save_ifs"
2199 LINT="$ac_cv_prog_LINT"
2200 if test -n "$LINT"; then
2201 echo "$ac_t""$LINT" 1>&6
2202 else
2203 echo "$ac_t""no" 1>&6
2206 test -n "$LINT" && break
2207 done
2209 if test "$LINT" = "lint"
2210 then
2211 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2216 if test "$CYGWIN" = "yes"
2217 then
2218 LDCOMBINE="ld -r --enable-stdcall-fixup"
2219 else
2220 LDCOMBINE="ld -r"
2225 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2226 echo "configure:2227: checking for sqrt in -lm" >&5
2227 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231 ac_save_LIBS="$LIBS"
2232 LIBS="-lm $LIBS"
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 /* Override any gcc2 internal prototype to avoid an error. */
2237 /* We use char because int might match the return type of a gcc2
2238 builtin and then its argument prototype would still apply. */
2239 char sqrt();
2241 int main() {
2242 sqrt()
2243 ; return 0; }
2245 if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2246 rm -rf conftest*
2247 eval "ac_cv_lib_$ac_lib_var=yes"
2248 else
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 rm -rf conftest*
2252 eval "ac_cv_lib_$ac_lib_var=no"
2254 rm -f conftest*
2255 LIBS="$ac_save_LIBS"
2258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2262 cat >> confdefs.h <<EOF
2263 #define $ac_tr_lib 1
2266 LIBS="-lm $LIBS"
2268 else
2269 echo "$ac_t""no" 1>&6
2272 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2273 echo "configure:2274: checking for i386_set_ldt in -li386" >&5
2274 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2277 else
2278 ac_save_LIBS="$LIBS"
2279 LIBS="-li386 $LIBS"
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 /* Override any gcc2 internal prototype to avoid an error. */
2284 /* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2286 char i386_set_ldt();
2288 int main() {
2289 i386_set_ldt()
2290 ; return 0; }
2292 if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2293 rm -rf conftest*
2294 eval "ac_cv_lib_$ac_lib_var=yes"
2295 else
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 rm -rf conftest*
2299 eval "ac_cv_lib_$ac_lib_var=no"
2301 rm -f conftest*
2302 LIBS="$ac_save_LIBS"
2305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2307 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2309 cat >> confdefs.h <<EOF
2310 #define $ac_tr_lib 1
2313 LIBS="-li386 $LIBS"
2315 else
2316 echo "$ac_t""no" 1>&6
2319 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2320 echo "configure:2321: checking for _oss_ioctl in -lossaudio" >&5
2321 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2324 else
2325 ac_save_LIBS="$LIBS"
2326 LIBS="-lossaudio $LIBS"
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* Override any gcc2 internal prototype to avoid an error. */
2331 /* We use char because int might match the return type of a gcc2
2332 builtin and then its argument prototype would still apply. */
2333 char _oss_ioctl();
2335 int main() {
2336 _oss_ioctl()
2337 ; return 0; }
2339 if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2340 rm -rf conftest*
2341 eval "ac_cv_lib_$ac_lib_var=yes"
2342 else
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2345 rm -rf conftest*
2346 eval "ac_cv_lib_$ac_lib_var=no"
2348 rm -f conftest*
2349 LIBS="$ac_save_LIBS"
2352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2353 echo "$ac_t""yes" 1>&6
2354 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2355 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2356 cat >> confdefs.h <<EOF
2357 #define $ac_tr_lib 1
2360 LIBS="-lossaudio $LIBS"
2362 else
2363 echo "$ac_t""no" 1>&6
2366 for ac_func in iswalnum
2368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2369 echo "configure:2370: checking for $ac_func" >&5
2370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2372 else
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 /* System header to define __stub macros and hopefully few prototypes,
2377 which can conflict with char $ac_func(); below. */
2378 #include <assert.h>
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char $ac_func();
2384 int main() {
2386 /* The GNU C library defines this for functions which it implements
2387 to always fail with ENOSYS. Some functions are actually named
2388 something starting with __ and the normal name is an alias. */
2389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2390 choke me
2391 #else
2392 $ac_func();
2393 #endif
2395 ; return 0; }
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2398 rm -rf conftest*
2399 eval "ac_cv_func_$ac_func=yes"
2400 else
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 rm -rf conftest*
2404 eval "ac_cv_func_$ac_func=no"
2406 rm -f conftest*
2409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2412 cat >> confdefs.h <<EOF
2413 #define $ac_tr_func 1
2416 else
2417 echo "$ac_t""no" 1>&6
2418 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2419 echo "configure:2420: checking for iswalnum in -lw" >&5
2420 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2423 else
2424 ac_save_LIBS="$LIBS"
2425 LIBS="-lw $LIBS"
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429 /* Override any gcc2 internal prototype to avoid an error. */
2430 /* We use char because int might match the return type of a gcc2
2431 builtin and then its argument prototype would still apply. */
2432 char iswalnum();
2434 int main() {
2435 iswalnum()
2436 ; return 0; }
2438 if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2439 rm -rf conftest*
2440 eval "ac_cv_lib_$ac_lib_var=yes"
2441 else
2442 echo "configure: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2444 rm -rf conftest*
2445 eval "ac_cv_lib_$ac_lib_var=no"
2447 rm -f conftest*
2448 LIBS="$ac_save_LIBS"
2451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2455 cat >> confdefs.h <<EOF
2456 #define $ac_tr_lib 1
2459 LIBS="-lw $LIBS"
2461 else
2462 echo "$ac_t""no" 1>&6
2466 done
2468 for ac_func in gethostbyname
2470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2471 echo "configure:2472: checking for $ac_func" >&5
2472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2474 else
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 /* System header to define __stub macros and hopefully few prototypes,
2479 which can conflict with char $ac_func(); below. */
2480 #include <assert.h>
2481 /* Override any gcc2 internal prototype to avoid an error. */
2482 /* We use char because int might match the return type of a gcc2
2483 builtin and then its argument prototype would still apply. */
2484 char $ac_func();
2486 int main() {
2488 /* The GNU C library defines this for functions which it implements
2489 to always fail with ENOSYS. Some functions are actually named
2490 something starting with __ and the normal name is an alias. */
2491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2492 choke me
2493 #else
2494 $ac_func();
2495 #endif
2497 ; return 0; }
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2500 rm -rf conftest*
2501 eval "ac_cv_func_$ac_func=yes"
2502 else
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 rm -rf conftest*
2506 eval "ac_cv_func_$ac_func=no"
2508 rm -f conftest*
2511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2512 echo "$ac_t""yes" 1>&6
2513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2514 cat >> confdefs.h <<EOF
2515 #define $ac_tr_func 1
2518 else
2519 echo "$ac_t""no" 1>&6
2520 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2521 echo "configure:2522: checking for gethostbyname in -lnsl" >&5
2522 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2525 else
2526 ac_save_LIBS="$LIBS"
2527 LIBS="-lnsl $LIBS"
2528 cat > conftest.$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2531 /* Override any gcc2 internal prototype to avoid an error. */
2532 /* We use char because int might match the return type of a gcc2
2533 builtin and then its argument prototype would still apply. */
2534 char gethostbyname();
2536 int main() {
2537 gethostbyname()
2538 ; return 0; }
2540 if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2541 rm -rf conftest*
2542 eval "ac_cv_lib_$ac_lib_var=yes"
2543 else
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 rm -rf conftest*
2547 eval "ac_cv_lib_$ac_lib_var=no"
2549 rm -f conftest*
2550 LIBS="$ac_save_LIBS"
2553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2557 cat >> confdefs.h <<EOF
2558 #define $ac_tr_lib 1
2561 LIBS="-lnsl $LIBS"
2563 else
2564 echo "$ac_t""no" 1>&6
2568 done
2570 for ac_func in connect
2572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_func" >&5
2574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2576 else
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2580 /* System header to define __stub macros and hopefully few prototypes,
2581 which can conflict with char $ac_func(); below. */
2582 #include <assert.h>
2583 /* Override any gcc2 internal prototype to avoid an error. */
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586 char $ac_func();
2588 int main() {
2590 /* The GNU C library defines this for functions which it implements
2591 to always fail with ENOSYS. Some functions are actually named
2592 something starting with __ and the normal name is an alias. */
2593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2594 choke me
2595 #else
2596 $ac_func();
2597 #endif
2599 ; return 0; }
2601 if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2602 rm -rf conftest*
2603 eval "ac_cv_func_$ac_func=yes"
2604 else
2605 echo "configure: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2607 rm -rf conftest*
2608 eval "ac_cv_func_$ac_func=no"
2610 rm -f conftest*
2613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2616 cat >> confdefs.h <<EOF
2617 #define $ac_tr_func 1
2620 else
2621 echo "$ac_t""no" 1>&6
2622 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2623 echo "configure:2624: checking for connect in -lsocket" >&5
2624 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2627 else
2628 ac_save_LIBS="$LIBS"
2629 LIBS="-lsocket $LIBS"
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 /* Override any gcc2 internal prototype to avoid an error. */
2634 /* We use char because int might match the return type of a gcc2
2635 builtin and then its argument prototype would still apply. */
2636 char connect();
2638 int main() {
2639 connect()
2640 ; return 0; }
2642 if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2643 rm -rf conftest*
2644 eval "ac_cv_lib_$ac_lib_var=yes"
2645 else
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 rm -rf conftest*
2649 eval "ac_cv_lib_$ac_lib_var=no"
2651 rm -f conftest*
2652 LIBS="$ac_save_LIBS"
2655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2656 echo "$ac_t""yes" 1>&6
2657 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2659 cat >> confdefs.h <<EOF
2660 #define $ac_tr_lib 1
2663 LIBS="-lsocket $LIBS"
2665 else
2666 echo "$ac_t""no" 1>&6
2670 done
2672 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
2673 echo "configure:2674: checking for _xpg4_setrunelocale in -lxpg4" >&5
2674 ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
2675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2677 else
2678 ac_save_LIBS="$LIBS"
2679 LIBS="-lxpg4 $LIBS"
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 /* Override any gcc2 internal prototype to avoid an error. */
2684 /* We use char because int might match the return type of a gcc2
2685 builtin and then its argument prototype would still apply. */
2686 char _xpg4_setrunelocale();
2688 int main() {
2689 _xpg4_setrunelocale()
2690 ; return 0; }
2692 if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2693 rm -rf conftest*
2694 eval "ac_cv_lib_$ac_lib_var=yes"
2695 else
2696 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2698 rm -rf conftest*
2699 eval "ac_cv_lib_$ac_lib_var=no"
2701 rm -f conftest*
2702 LIBS="$ac_save_LIBS"
2705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2708 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2709 cat >> confdefs.h <<EOF
2710 #define $ac_tr_lib 1
2713 LIBS="-lxpg4 $LIBS"
2715 else
2716 echo "$ac_t""no" 1>&6
2719 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2720 echo "configure:2721: checking for mmap in -lmmap" >&5
2721 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2724 else
2725 ac_save_LIBS="$LIBS"
2726 LIBS="-lmmap $LIBS"
2727 cat > conftest.$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2730 /* Override any gcc2 internal prototype to avoid an error. */
2731 /* We use char because int might match the return type of a gcc2
2732 builtin and then its argument prototype would still apply. */
2733 char mmap();
2735 int main() {
2736 mmap()
2737 ; return 0; }
2739 if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2740 rm -rf conftest*
2741 eval "ac_cv_lib_$ac_lib_var=yes"
2742 else
2743 echo "configure: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2745 rm -rf conftest*
2746 eval "ac_cv_lib_$ac_lib_var=no"
2748 rm -f conftest*
2749 LIBS="$ac_save_LIBS"
2752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2753 echo "$ac_t""yes" 1>&6
2754 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2755 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2756 cat >> confdefs.h <<EOF
2757 #define $ac_tr_lib 1
2760 LIBS="-lmmap $LIBS"
2762 else
2763 echo "$ac_t""no" 1>&6
2766 for ac_func in openpty
2768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2769 echo "configure:2770: checking for $ac_func" >&5
2770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2772 else
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 /* System header to define __stub macros and hopefully few prototypes,
2777 which can conflict with char $ac_func(); below. */
2778 #include <assert.h>
2779 /* Override any gcc2 internal prototype to avoid an error. */
2780 /* We use char because int might match the return type of a gcc2
2781 builtin and then its argument prototype would still apply. */
2782 char $ac_func();
2784 int main() {
2786 /* The GNU C library defines this for functions which it implements
2787 to always fail with ENOSYS. Some functions are actually named
2788 something starting with __ and the normal name is an alias. */
2789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2790 choke me
2791 #else
2792 $ac_func();
2793 #endif
2795 ; return 0; }
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2798 rm -rf conftest*
2799 eval "ac_cv_func_$ac_func=yes"
2800 else
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2803 rm -rf conftest*
2804 eval "ac_cv_func_$ac_func=no"
2806 rm -f conftest*
2809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2812 cat >> confdefs.h <<EOF
2813 #define $ac_tr_func 1
2816 else
2817 echo "$ac_t""no" 1>&6
2818 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2819 echo "configure:2820: checking for openpty in -lutil" >&5
2820 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2823 else
2824 ac_save_LIBS="$LIBS"
2825 LIBS="-lutil $LIBS"
2826 cat > conftest.$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 /* Override any gcc2 internal prototype to avoid an error. */
2830 /* We use char because int might match the return type of a gcc2
2831 builtin and then its argument prototype would still apply. */
2832 char openpty();
2834 int main() {
2835 openpty()
2836 ; return 0; }
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2839 rm -rf conftest*
2840 eval "ac_cv_lib_$ac_lib_var=yes"
2841 else
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2844 rm -rf conftest*
2845 eval "ac_cv_lib_$ac_lib_var=no"
2847 rm -f conftest*
2848 LIBS="$ac_save_LIBS"
2851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 cat >> confdefs.h <<\EOF
2854 #define HAVE_OPENPTY 1
2857 LIBS="$LIBS -lutil"
2859 else
2860 echo "$ac_t""no" 1>&6
2864 done
2867 DLLIBS=""
2869 for ac_hdr in dlfcn.h
2871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2873 echo "configure:2874: checking for $ac_hdr" >&5
2874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2876 else
2877 cat > conftest.$ac_ext <<EOF
2878 #line 2879 "configure"
2879 #include "confdefs.h"
2880 #include <$ac_hdr>
2882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2883 { (eval echo configure:2884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2885 if test -z "$ac_err"; then
2886 rm -rf conftest*
2887 eval "ac_cv_header_$ac_safe=yes"
2888 else
2889 echo "$ac_err" >&5
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2892 rm -rf conftest*
2893 eval "ac_cv_header_$ac_safe=no"
2895 rm -f conftest*
2897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2898 echo "$ac_t""yes" 1>&6
2899 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2900 cat >> confdefs.h <<EOF
2901 #define $ac_tr_hdr 1
2903 for ac_func in dlopen
2905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_func" >&5
2907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2909 else
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 /* System header to define __stub macros and hopefully few prototypes,
2914 which can conflict with char $ac_func(); below. */
2915 #include <assert.h>
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2919 char $ac_func();
2921 int main() {
2923 /* The GNU C library defines this for functions which it implements
2924 to always fail with ENOSYS. Some functions are actually named
2925 something starting with __ and the normal name is an alias. */
2926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2927 choke me
2928 #else
2929 $ac_func();
2930 #endif
2932 ; return 0; }
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2935 rm -rf conftest*
2936 eval "ac_cv_func_$ac_func=yes"
2937 else
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 rm -rf conftest*
2941 eval "ac_cv_func_$ac_func=no"
2943 rm -f conftest*
2946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2949 cat >> confdefs.h <<EOF
2950 #define $ac_tr_func 1
2953 else
2954 echo "$ac_t""no" 1>&6
2955 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2956 echo "configure:2957: checking for dlopen in -ldl" >&5
2957 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2960 else
2961 ac_save_LIBS="$LIBS"
2962 LIBS="-ldl $LIBS"
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 /* Override any gcc2 internal prototype to avoid an error. */
2967 /* We use char because int might match the return type of a gcc2
2968 builtin and then its argument prototype would still apply. */
2969 char dlopen();
2971 int main() {
2972 dlopen()
2973 ; return 0; }
2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2976 rm -rf conftest*
2977 eval "ac_cv_lib_$ac_lib_var=yes"
2978 else
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2981 rm -rf conftest*
2982 eval "ac_cv_lib_$ac_lib_var=no"
2984 rm -f conftest*
2985 LIBS="$ac_save_LIBS"
2988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2989 echo "$ac_t""yes" 1>&6
2990 cat >> confdefs.h <<\EOF
2991 #define HAVE_DLOPEN 1
2994 DLLIBS="-ldl"
2995 else
2996 echo "$ac_t""no" 1>&6
2997 LIBEXT="a"
3002 done
3004 else
3005 echo "$ac_t""no" 1>&6
3006 LIBEXT="a"
3009 done
3012 JPEGLIB=""
3014 for ac_hdr in jpeglib.h
3016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3018 echo "configure:3019: checking for $ac_hdr" >&5
3019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3021 else
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025 #include <$ac_hdr>
3027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3028 { (eval echo configure:3029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3030 if test -z "$ac_err"; then
3031 rm -rf conftest*
3032 eval "ac_cv_header_$ac_safe=yes"
3033 else
3034 echo "$ac_err" >&5
3035 echo "configure: failed program was:" >&5
3036 cat conftest.$ac_ext >&5
3037 rm -rf conftest*
3038 eval "ac_cv_header_$ac_safe=no"
3040 rm -f conftest*
3042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3043 echo "$ac_t""yes" 1>&6
3044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3045 cat >> confdefs.h <<EOF
3046 #define $ac_tr_hdr 1
3048 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
3049 echo "configure:3050: checking for jpeg_start_decompress in -ljpeg" >&5
3050 ac_lib_var=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3053 else
3054 ac_save_LIBS="$LIBS"
3055 LIBS="-ljpeg $LIBS"
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059 /* Override any gcc2 internal prototype to avoid an error. */
3060 /* We use char because int might match the return type of a gcc2
3061 builtin and then its argument prototype would still apply. */
3062 char jpeg_start_decompress();
3064 int main() {
3065 jpeg_start_decompress()
3066 ; return 0; }
3068 if { (eval echo configure:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3069 rm -rf conftest*
3070 eval "ac_cv_lib_$ac_lib_var=yes"
3071 else
3072 echo "configure: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3074 rm -rf conftest*
3075 eval "ac_cv_lib_$ac_lib_var=no"
3077 rm -f conftest*
3078 LIBS="$ac_save_LIBS"
3081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3082 echo "$ac_t""yes" 1>&6
3083 cat >> confdefs.h <<\EOF
3084 #define HAVE_LIBJPEG 1
3087 JPEGLIB="-ljpeg"
3089 else
3090 echo "$ac_t""no" 1>&6
3094 else
3095 echo "$ac_t""no" 1>&6
3097 done
3103 XFILES=""
3105 OPENGLFILES=""
3107 GLU32FILES=""
3108 if test "$have_x" = "yes"
3109 then
3110 XLIB="-lXext -lX11"
3111 ac_save_CPPFLAGS="$CPPFLAGS"
3112 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3114 for ac_hdr in X11/xpm.h
3116 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3117 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_hdr" >&5
3119 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3121 else
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3125 #include <$ac_hdr>
3127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3128 { (eval echo configure:3129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3130 if test -z "$ac_err"; then
3131 rm -rf conftest*
3132 eval "ac_cv_header_$ac_safe=yes"
3133 else
3134 echo "$ac_err" >&5
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3137 rm -rf conftest*
3138 eval "ac_cv_header_$ac_safe=no"
3140 rm -f conftest*
3142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3143 echo "$ac_t""yes" 1>&6
3144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3145 cat >> confdefs.h <<EOF
3146 #define $ac_tr_hdr 1
3148 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3149 echo "configure:3150: checking for XpmCreatePixmapFromData in -lXpm" >&5
3150 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3153 else
3154 ac_save_LIBS="$LIBS"
3155 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3156 $LIBS"
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 /* Override any gcc2 internal prototype to avoid an error. */
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3163 char XpmCreatePixmapFromData();
3165 int main() {
3166 XpmCreatePixmapFromData()
3167 ; return 0; }
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3170 rm -rf conftest*
3171 eval "ac_cv_lib_$ac_lib_var=yes"
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 eval "ac_cv_lib_$ac_lib_var=no"
3178 rm -f conftest*
3179 LIBS="$ac_save_LIBS"
3182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3183 echo "$ac_t""yes" 1>&6
3184 cat >> confdefs.h <<\EOF
3185 #define HAVE_LIBXXPM 1
3188 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3189 else
3190 echo "$ac_t""no" 1>&6
3194 else
3195 echo "$ac_t""no" 1>&6
3196 echo "Couldn't find the xpm development header X11/xpm.h"
3197 echo "Install the following packages:"
3198 echo "Red Hat < 7.1 : xpm xpm-devel"
3199 echo "Red Hat >= 7.1 : XFree86-devel"
3200 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3201 echo "SuSE : xpm"
3202 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3203 echo "Solaris 8 : SFWxpm"
3204 echo
3205 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3206 echo "the directory /contrib/libraries."
3207 echo
3208 exit 1
3212 done
3215 for ac_hdr in X11/Xlib.h
3217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3219 echo "configure:3220: checking for $ac_hdr" >&5
3220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3222 else
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <$ac_hdr>
3228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3229 { (eval echo configure:3230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3231 if test -z "$ac_err"; then
3232 rm -rf conftest*
3233 eval "ac_cv_header_$ac_safe=yes"
3234 else
3235 echo "$ac_err" >&5
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3238 rm -rf conftest*
3239 eval "ac_cv_header_$ac_safe=no"
3241 rm -f conftest*
3243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3246 cat >> confdefs.h <<EOF
3247 #define $ac_tr_hdr 1
3250 for ac_hdr in X11/XKBlib.h
3252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3254 echo "configure:3255: checking for $ac_hdr" >&5
3255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3257 else
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 #include <$ac_hdr>
3263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3264 { (eval echo configure:3265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3266 if test -z "$ac_err"; then
3267 rm -rf conftest*
3268 eval "ac_cv_header_$ac_safe=yes"
3269 else
3270 echo "$ac_err" >&5
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 rm -rf conftest*
3274 eval "ac_cv_header_$ac_safe=no"
3276 rm -f conftest*
3278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3279 echo "$ac_t""yes" 1>&6
3280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3281 cat >> confdefs.h <<EOF
3282 #define $ac_tr_hdr 1
3284 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3285 echo "configure:3286: checking for XkbQueryExtension in -lX11" >&5
3286 ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3289 else
3290 ac_save_LIBS="$LIBS"
3291 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298 char XkbQueryExtension();
3300 int main() {
3301 XkbQueryExtension()
3302 ; return 0; }
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3305 rm -rf conftest*
3306 eval "ac_cv_lib_$ac_lib_var=yes"
3307 else
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3310 rm -rf conftest*
3311 eval "ac_cv_lib_$ac_lib_var=no"
3313 rm -f conftest*
3314 LIBS="$ac_save_LIBS"
3317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3318 echo "$ac_t""yes" 1>&6
3319 cat >> confdefs.h <<\EOF
3320 #define HAVE_XKB 1
3323 else
3324 echo "$ac_t""no" 1>&6
3328 else
3329 echo "$ac_t""no" 1>&6
3330 echo "configure: warning: XKB extension not found!!" 1>&2
3333 done
3336 for ac_hdr in X11/extensions/XShm.h
3338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3340 echo "configure:3341: checking for $ac_hdr" >&5
3341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3343 else
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 #include <$ac_hdr>
3349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3350 { (eval echo configure:3351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3352 if test -z "$ac_err"; then
3353 rm -rf conftest*
3354 eval "ac_cv_header_$ac_safe=yes"
3355 else
3356 echo "$ac_err" >&5
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 rm -rf conftest*
3360 eval "ac_cv_header_$ac_safe=no"
3362 rm -f conftest*
3364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3365 echo "$ac_t""yes" 1>&6
3366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3367 cat >> confdefs.h <<EOF
3368 #define $ac_tr_hdr 1
3370 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3371 echo "configure:3372: checking for XShmQueryExtension in -lXext" >&5
3372 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3375 else
3376 ac_save_LIBS="$LIBS"
3377 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* Override any gcc2 internal prototype to avoid an error. */
3382 /* We use char because int might match the return type of a gcc2
3383 builtin and then its argument prototype would still apply. */
3384 char XShmQueryExtension();
3386 int main() {
3387 XShmQueryExtension()
3388 ; return 0; }
3390 if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3391 rm -rf conftest*
3392 eval "ac_cv_lib_$ac_lib_var=yes"
3393 else
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 rm -rf conftest*
3397 eval "ac_cv_lib_$ac_lib_var=no"
3399 rm -f conftest*
3400 LIBS="$ac_save_LIBS"
3403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3404 echo "$ac_t""yes" 1>&6
3405 cat >> confdefs.h <<\EOF
3406 #define HAVE_LIBXXSHM 1
3409 else
3410 echo "$ac_t""no" 1>&6
3414 else
3415 echo "$ac_t""no" 1>&6
3416 echo "configure: warning: Xshm extension not found!!" 1>&2
3419 done
3422 for ac_hdr in X11/extensions/shape.h
3424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3426 echo "configure:3427: checking for $ac_hdr" >&5
3427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3429 else
3430 cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <$ac_hdr>
3435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3436 { (eval echo configure:3437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3438 if test -z "$ac_err"; then
3439 rm -rf conftest*
3440 eval "ac_cv_header_$ac_safe=yes"
3441 else
3442 echo "$ac_err" >&5
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3445 rm -rf conftest*
3446 eval "ac_cv_header_$ac_safe=no"
3448 rm -f conftest*
3450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3451 echo "$ac_t""yes" 1>&6
3452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3453 cat >> confdefs.h <<EOF
3454 #define $ac_tr_hdr 1
3456 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3457 echo "configure:3458: checking for XShapeQueryExtension in -lXext" >&5
3458 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461 else
3462 ac_save_LIBS="$LIBS"
3463 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3464 cat > conftest.$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3467 /* Override any gcc2 internal prototype to avoid an error. */
3468 /* We use char because int might match the return type of a gcc2
3469 builtin and then its argument prototype would still apply. */
3470 char XShapeQueryExtension();
3472 int main() {
3473 XShapeQueryExtension()
3474 ; return 0; }
3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3477 rm -rf conftest*
3478 eval "ac_cv_lib_$ac_lib_var=yes"
3479 else
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3482 rm -rf conftest*
3483 eval "ac_cv_lib_$ac_lib_var=no"
3485 rm -f conftest*
3486 LIBS="$ac_save_LIBS"
3489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3490 echo "$ac_t""yes" 1>&6
3491 cat >> confdefs.h <<\EOF
3492 #define HAVE_LIBXSHAPE 1
3495 else
3496 echo "$ac_t""no" 1>&6
3500 else
3501 echo "$ac_t""no" 1>&6
3502 echo "configure: warning: XShape extension not found!!" 1>&2
3505 done
3508 for ac_hdr in X11/extensions/xf86dga.h
3510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3512 echo "configure:3513: checking for $ac_hdr" >&5
3513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3515 else
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 #include <$ac_hdr>
3521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3522 { (eval echo configure:3523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3524 if test -z "$ac_err"; then
3525 rm -rf conftest*
3526 eval "ac_cv_header_$ac_safe=yes"
3527 else
3528 echo "$ac_err" >&5
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3531 rm -rf conftest*
3532 eval "ac_cv_header_$ac_safe=no"
3534 rm -f conftest*
3536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
3538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3539 cat >> confdefs.h <<EOF
3540 #define $ac_tr_hdr 1
3542 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3543 echo "configure:3544: checking for XDGAQueryExtension in -lXxf86dga" >&5
3544 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3547 else
3548 ac_save_LIBS="$LIBS"
3549 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3550 $LIBS"
3551 cat > conftest.$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3554 /* Override any gcc2 internal prototype to avoid an error. */
3555 /* We use char because int might match the return type of a gcc2
3556 builtin and then its argument prototype would still apply. */
3557 char XDGAQueryExtension();
3559 int main() {
3560 XDGAQueryExtension()
3561 ; return 0; }
3563 if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3564 rm -rf conftest*
3565 eval "ac_cv_lib_$ac_lib_var=yes"
3566 else
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3569 rm -rf conftest*
3570 eval "ac_cv_lib_$ac_lib_var=no"
3572 rm -f conftest*
3573 LIBS="$ac_save_LIBS"
3576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3578 cat >> confdefs.h <<\EOF
3579 #define HAVE_LIBXXF86DGA2 1
3582 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3584 else
3585 echo "$ac_t""no" 1>&6
3586 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3587 echo "configure:3588: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3588 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3591 else
3592 ac_save_LIBS="$LIBS"
3593 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3594 $LIBS"
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3601 char XF86DGAQueryExtension();
3603 int main() {
3604 XF86DGAQueryExtension()
3605 ; return 0; }
3607 if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3608 rm -rf conftest*
3609 eval "ac_cv_lib_$ac_lib_var=yes"
3610 else
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3613 rm -rf conftest*
3614 eval "ac_cv_lib_$ac_lib_var=no"
3616 rm -f conftest*
3617 LIBS="$ac_save_LIBS"
3620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 cat >> confdefs.h <<\EOF
3623 #define HAVE_LIBXXF86DGA 1
3626 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3628 else
3629 echo "$ac_t""no" 1>&6
3636 else
3637 echo "$ac_t""no" 1>&6
3638 echo "configure: warning: DGA extension not found!!" 1>&2
3641 done
3644 for ac_hdr in X11/extensions/xf86vmode.h
3646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3648 echo "configure:3649: checking for $ac_hdr" >&5
3649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3651 else
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 #include <$ac_hdr>
3657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3658 { (eval echo configure:3659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3660 if test -z "$ac_err"; then
3661 rm -rf conftest*
3662 eval "ac_cv_header_$ac_safe=yes"
3663 else
3664 echo "$ac_err" >&5
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 rm -rf conftest*
3668 eval "ac_cv_header_$ac_safe=no"
3670 rm -f conftest*
3672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3673 echo "$ac_t""yes" 1>&6
3674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3675 cat >> confdefs.h <<EOF
3676 #define $ac_tr_hdr 1
3678 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3679 echo "configure:3680: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3680 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3683 else
3684 ac_save_LIBS="$LIBS"
3685 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3686 $LIBS"
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 /* We use char because int might match the return type of a gcc2
3692 builtin and then its argument prototype would still apply. */
3693 char XF86VidModeQueryExtension();
3695 int main() {
3696 XF86VidModeQueryExtension()
3697 ; return 0; }
3699 if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3700 rm -rf conftest*
3701 eval "ac_cv_lib_$ac_lib_var=yes"
3702 else
3703 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3705 rm -rf conftest*
3706 eval "ac_cv_lib_$ac_lib_var=no"
3708 rm -f conftest*
3709 LIBS="$ac_save_LIBS"
3712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3713 echo "$ac_t""yes" 1>&6
3714 cat >> confdefs.h <<\EOF
3715 #define HAVE_LIBXXF86VM 1
3718 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3720 else
3721 echo "$ac_t""no" 1>&6
3725 else
3726 echo "$ac_t""no" 1>&6
3727 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3730 done
3733 for ac_hdr in X11/extensions/Xvlib.h
3735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3737 echo "configure:3738: checking for $ac_hdr" >&5
3738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3740 else
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 #include <$ac_hdr>
3746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3747 { (eval echo configure:3748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3749 if test -z "$ac_err"; then
3750 rm -rf conftest*
3751 eval "ac_cv_header_$ac_safe=yes"
3752 else
3753 echo "$ac_err" >&5
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3756 rm -rf conftest*
3757 eval "ac_cv_header_$ac_safe=no"
3759 rm -f conftest*
3761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3762 echo "$ac_t""yes" 1>&6
3763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3764 cat >> confdefs.h <<EOF
3765 #define $ac_tr_hdr 1
3767 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3768 echo "configure:3769: checking for XvShmCreateImage in -lXv" >&5
3769 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3772 else
3773 ac_save_LIBS="$LIBS"
3774 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3775 $LIBS"
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 /* Override any gcc2 internal prototype to avoid an error. */
3780 /* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3782 char XvShmCreateImage();
3784 int main() {
3785 XvShmCreateImage()
3786 ; return 0; }
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3789 rm -rf conftest*
3790 eval "ac_cv_lib_$ac_lib_var=yes"
3791 else
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3794 rm -rf conftest*
3795 eval "ac_cv_lib_$ac_lib_var=no"
3797 rm -f conftest*
3798 LIBS="$ac_save_LIBS"
3801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 cat >> confdefs.h <<\EOF
3804 #define HAVE_XVIDEO 1
3807 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3809 else
3810 echo "$ac_t""no" 1>&6
3814 else
3815 echo "$ac_t""no" 1>&6
3816 echo "configure: warning: XVideo extension not found !!" 1>&2
3819 done
3822 for ac_hdr in X11/extensions/Xrender.h
3824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_hdr" >&5
3827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3829 else
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <$ac_hdr>
3835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3836 { (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3838 if test -z "$ac_err"; then
3839 rm -rf conftest*
3840 eval "ac_cv_header_$ac_safe=yes"
3841 else
3842 echo "$ac_err" >&5
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3845 rm -rf conftest*
3846 eval "ac_cv_header_$ac_safe=no"
3848 rm -f conftest*
3850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3853 cat >> confdefs.h <<EOF
3854 #define $ac_tr_hdr 1
3856 echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
3857 echo "configure:3858: checking for XRenderQueryExtension in -lXrender" >&5
3858 ac_lib_var=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
3859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3861 else
3862 ac_save_LIBS="$LIBS"
3863 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3864 $LIBS"
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3868 /* Override any gcc2 internal prototype to avoid an error. */
3869 /* We use char because int might match the return type of a gcc2
3870 builtin and then its argument prototype would still apply. */
3871 char XRenderQueryExtension();
3873 int main() {
3874 XRenderQueryExtension()
3875 ; return 0; }
3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3878 rm -rf conftest*
3879 eval "ac_cv_lib_$ac_lib_var=yes"
3880 else
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 rm -rf conftest*
3884 eval "ac_cv_lib_$ac_lib_var=no"
3886 rm -f conftest*
3887 LIBS="$ac_save_LIBS"
3890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3891 echo "$ac_t""yes" 1>&6
3892 cat >> confdefs.h <<\EOF
3893 #define HAVE_LIBXRENDER 1
3896 X_PRE_LIBS="$X_PRE_LIBS -lXrender"
3898 else
3899 echo "$ac_t""no" 1>&6
3903 else
3904 echo "$ac_t""no" 1>&6
3905 echo "configure: warning: XRender extension not found !!" 1>&2
3908 done
3913 else
3914 echo "$ac_t""no" 1>&6
3916 done
3918 if test $OPENGL = "yes" -o $OPENGL = "normal"
3919 then
3920 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_hdr" >&5
3925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3927 else
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 #include <$ac_hdr>
3933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3934 { (eval echo configure:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3936 if test -z "$ac_err"; then
3937 rm -rf conftest*
3938 eval "ac_cv_header_$ac_safe=yes"
3939 else
3940 echo "$ac_err" >&5
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3943 rm -rf conftest*
3944 eval "ac_cv_header_$ac_safe=no"
3946 rm -f conftest*
3948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3951 cat >> confdefs.h <<EOF
3952 #define $ac_tr_hdr 1
3955 else
3956 echo "$ac_t""no" 1>&6
3958 done
3960 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3961 then
3962 echo $ac_n "checking for up-to-date OpenGL version""... $ac_c" 1>&6
3963 echo "configure:3964: checking for up-to-date OpenGL version" >&5
3964 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3966 else
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 #include <GL/gl.h>
3971 int main() {
3972 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3973 ; return 0; }
3975 if { (eval echo configure:3976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3976 rm -rf conftest*
3977 wine_cv_opengl_version_OK="yes"
3978 else
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3981 rm -rf conftest*
3982 wine_cv_opengl_version_OK="no"
3985 rm -f conftest*
3989 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3991 echo $ac_n "checking for thread-safe OpenGL version""... $ac_c" 1>&6
3992 echo "configure:3993: checking for thread-safe OpenGL version" >&5
3993 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3995 else
3996 saved_libs=$LIBS
3997 LIBS="$X_LIBS -lGL"
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4002 int main() {
4003 pthread_getspecific();
4004 ; return 0; }
4006 if { (eval echo configure:4007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4007 rm -rf conftest*
4008 wine_cv_opengl_version_threadsafe="yes"
4009 else
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4012 rm -rf conftest*
4013 wine_cv_opengl_version_threadsafe="no"
4015 rm -f conftest*
4016 LIBS=$saved_libs
4020 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
4022 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
4023 then
4024 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
4025 echo "configure:4026: checking for glXCreateContext in -lGL" >&5
4026 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
4027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4029 else
4030 ac_save_LIBS="$LIBS"
4031 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4035 /* Override any gcc2 internal prototype to avoid an error. */
4036 /* We use char because int might match the return type of a gcc2
4037 builtin and then its argument prototype would still apply. */
4038 char glXCreateContext();
4040 int main() {
4041 glXCreateContext()
4042 ; return 0; }
4044 if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4045 rm -rf conftest*
4046 eval "ac_cv_lib_$ac_lib_var=yes"
4047 else
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 rm -rf conftest*
4051 eval "ac_cv_lib_$ac_lib_var=no"
4053 rm -f conftest*
4054 LIBS="$ac_save_LIBS"
4057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 X_PRE_LIBS="$X_PRE_LIBS -lGL"
4061 else
4062 echo "$ac_t""no" 1>&6
4066 if test $ac_cv_lib_GL_glXCreateContext = "yes"
4067 then
4069 OPENGLFILES='$(OPENGLFILES)'
4070 cat >> confdefs.h <<\EOF
4071 #define HAVE_OPENGL 1
4075 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
4076 echo "configure:4077: checking for glXGetProcAddressARB in -lGL" >&5
4077 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
4078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4080 else
4081 ac_save_LIBS="$LIBS"
4082 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4089 char glXGetProcAddressARB();
4091 int main() {
4092 glXGetProcAddressARB()
4093 ; return 0; }
4095 if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4096 rm -rf conftest*
4097 eval "ac_cv_lib_$ac_lib_var=yes"
4098 else
4099 echo "configure: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4101 rm -rf conftest*
4102 eval "ac_cv_lib_$ac_lib_var=no"
4104 rm -f conftest*
4105 LIBS="$ac_save_LIBS"
4108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4110 cat >> confdefs.h <<\EOF
4111 #define HAVE_GLX_GETPROCADDRESS 1
4114 else
4115 echo "$ac_t""no" 1>&6
4119 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
4120 then
4121 echo $ac_n "checking for OpenGL extension functions prototypes""... $ac_c" 1>&6
4122 echo "configure:4123: checking for OpenGL extension functions prototypes" >&5
4123 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4124 echo $ac_n "(cached) $ac_c" 1>&6
4125 else
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4129 #include <GL/gl.h>
4130 #ifdef HAVE_GL_GLEXT_H
4131 # include <GL/glext.h>
4132 #endif
4134 int main() {
4135 PFNGLCOLORTABLEEXTPROC test_proc;
4136 ; return 0; }
4138 if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4139 rm -rf conftest*
4140 wine_cv_extension_prototypes="yes"
4141 else
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4144 rm -rf conftest*
4145 wine_cv_extension_prototypes="no"
4148 rm -f conftest*
4152 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
4153 if test $wine_cv_extension_prototypes = "yes"
4154 then
4155 cat >> confdefs.h <<\EOF
4156 #define HAVE_GLEXT_PROTOTYPES 1
4163 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
4164 echo "configure:4165: checking for gluLookAt in -lGLU" >&5
4165 ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
4166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4168 else
4169 ac_save_LIBS="$LIBS"
4170 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4171 $LIBS"
4172 cat > conftest.$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4175 /* Override any gcc2 internal prototype to avoid an error. */
4176 /* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */
4178 char gluLookAt();
4180 int main() {
4181 gluLookAt()
4182 ; return 0; }
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4185 rm -rf conftest*
4186 eval "ac_cv_lib_$ac_lib_var=yes"
4187 else
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4190 rm -rf conftest*
4191 eval "ac_cv_lib_$ac_lib_var=no"
4193 rm -f conftest*
4194 LIBS="$ac_save_LIBS"
4197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4198 echo "$ac_t""yes" 1>&6
4199 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4200 GLU32FILES='$(GLU32FILES)'
4202 else
4203 echo "$ac_t""no" 1>&6
4210 CPPFLAGS="$ac_save_CPPFLAGS"
4211 XFILES='$(XFILES)'
4212 else
4213 XLIB=""
4214 X_CFLAGS=""
4215 X_LIBS=""
4218 CURSESLIBS=""
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 cat >> confdefs.h <<\EOF
4291 #define HAVE_LIBNCURSES 1
4294 CURSESLIBS="-lncurses"
4295 else
4296 echo "$ac_t""no" 1>&6
4297 for ac_hdr in curses.h
4299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4301 echo "configure:4302: checking for $ac_hdr" >&5
4302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4304 else
4305 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4308 #include <$ac_hdr>
4310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4311 { (eval echo configure:4312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4313 if test -z "$ac_err"; then
4314 rm -rf conftest*
4315 eval "ac_cv_header_$ac_safe=yes"
4316 else
4317 echo "$ac_err" >&5
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4320 rm -rf conftest*
4321 eval "ac_cv_header_$ac_safe=no"
4323 rm -f conftest*
4325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4326 echo "$ac_t""yes" 1>&6
4327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4328 cat >> confdefs.h <<EOF
4329 #define $ac_tr_hdr 1
4331 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4332 echo "configure:4333: checking for waddch in -lcurses" >&5
4333 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336 else
4337 ac_save_LIBS="$LIBS"
4338 LIBS="-lcurses $LIBS"
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 /* Override any gcc2 internal prototype to avoid an error. */
4343 /* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4345 char waddch();
4347 int main() {
4348 waddch()
4349 ; return 0; }
4351 if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4352 rm -rf conftest*
4353 eval "ac_cv_lib_$ac_lib_var=yes"
4354 else
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4357 rm -rf conftest*
4358 eval "ac_cv_lib_$ac_lib_var=no"
4360 rm -f conftest*
4361 LIBS="$ac_save_LIBS"
4364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4366 cat >> confdefs.h <<\EOF
4367 #define HAVE_LIBCURSES 1
4370 CURSESLIBS="-lcurses"
4371 else
4372 echo "$ac_t""no" 1>&6
4375 else
4376 echo "$ac_t""no" 1>&6
4378 done
4382 else
4383 echo "$ac_t""no" 1>&6
4385 done
4387 saved_libs="$LIBS"
4388 LIBS="$CURSESLIBS $LIBS"
4389 for ac_func in getbkgd resizeterm
4391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4392 echo "configure:4393: checking for $ac_func" >&5
4393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4395 else
4396 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4399 /* System header to define __stub macros and hopefully few prototypes,
4400 which can conflict with char $ac_func(); below. */
4401 #include <assert.h>
4402 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4405 char $ac_func();
4407 int main() {
4409 /* The GNU C library defines this for functions which it implements
4410 to always fail with ENOSYS. Some functions are actually named
4411 something starting with __ and the normal name is an alias. */
4412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4413 choke me
4414 #else
4415 $ac_func();
4416 #endif
4418 ; return 0; }
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4421 rm -rf conftest*
4422 eval "ac_cv_func_$ac_func=yes"
4423 else
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4426 rm -rf conftest*
4427 eval "ac_cv_func_$ac_func=no"
4429 rm -f conftest*
4432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4435 cat >> confdefs.h <<EOF
4436 #define $ac_tr_func 1
4439 else
4440 echo "$ac_t""no" 1>&6
4442 done
4444 LIBS="$saved_libs"
4448 CUPSLIBS=""
4449 wine_cv_warn_cups_h=no
4450 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4451 echo "configure:4452: checking for cupsGetPPD in -lcups" >&5
4452 ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4455 else
4456 ac_save_LIBS="$LIBS"
4457 LIBS="-lcups $LIBS"
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* Override any gcc2 internal prototype to avoid an error. */
4462 /* We use char because int might match the return type of a gcc2
4463 builtin and then its argument prototype would still apply. */
4464 char cupsGetPPD();
4466 int main() {
4467 cupsGetPPD()
4468 ; return 0; }
4470 if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4471 rm -rf conftest*
4472 eval "ac_cv_lib_$ac_lib_var=yes"
4473 else
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4476 rm -rf conftest*
4477 eval "ac_cv_lib_$ac_lib_var=no"
4479 rm -f conftest*
4480 LIBS="$ac_save_LIBS"
4483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4486 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4487 echo "configure:4488: checking for cups/cups.h" >&5
4488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4490 else
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4494 #include <cups/cups.h>
4496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4497 { (eval echo configure:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4499 if test -z "$ac_err"; then
4500 rm -rf conftest*
4501 eval "ac_cv_header_$ac_safe=yes"
4502 else
4503 echo "$ac_err" >&5
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4506 rm -rf conftest*
4507 eval "ac_cv_header_$ac_safe=no"
4509 rm -f conftest*
4511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 cat >> confdefs.h <<\EOF
4514 #define HAVE_CUPS 1
4517 CUPSLIBS="-lcups"
4518 else
4519 echo "$ac_t""no" 1>&6
4520 wine_cv_warn_cups_h=yes
4524 else
4525 echo "$ac_t""no" 1>&6
4530 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4531 echo "configure:4532: checking for FT_Init_FreeType in -lfreetype" >&5
4532 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4535 else
4536 ac_save_LIBS="$LIBS"
4537 LIBS="-lfreetype $X_LIBS $LIBS"
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4544 char FT_Init_FreeType();
4546 int main() {
4547 FT_Init_FreeType()
4548 ; return 0; }
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 rm -rf conftest*
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4553 else
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 rm -rf conftest*
4557 eval "ac_cv_lib_$ac_lib_var=no"
4559 rm -f conftest*
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 ft_lib=yes
4566 else
4567 echo "$ac_t""no" 1>&6
4568 ft_lib=no
4571 if test "$ft_lib" = "no"
4572 then
4573 FREETYPELIBS=""
4574 FREETYPEINCL=""
4575 wine_cv_msg_freetype=no
4576 else
4577 # Extract the first word of "freetype-config", so it can be a program name with args.
4578 set dummy freetype-config; ac_word=$2
4579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4580 echo "configure:4581: checking for $ac_word" >&5
4581 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4583 else
4584 if test -n "$ft_devel"; then
4585 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4586 else
4587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4588 ac_dummy="$PATH"
4589 for ac_dir in $ac_dummy; do
4590 test -z "$ac_dir" && ac_dir=.
4591 if test -f $ac_dir/$ac_word; then
4592 ac_cv_prog_ft_devel="freetype-config"
4593 break
4595 done
4596 IFS="$ac_save_ifs"
4597 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4600 ft_devel="$ac_cv_prog_ft_devel"
4601 if test -n "$ft_devel"; then
4602 echo "$ac_t""$ft_devel" 1>&6
4603 else
4604 echo "$ac_t""no" 1>&6
4607 if test "$ft_devel" = "no"
4608 then
4609 # Extract the first word of "freetype2-config", so it can be a program name with args.
4610 set dummy freetype2-config; ac_word=$2
4611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4612 echo "configure:4613: checking for $ac_word" >&5
4613 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4615 else
4616 if test -n "$ft_devel2"; then
4617 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4618 else
4619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4620 ac_dummy="$PATH"
4621 for ac_dir in $ac_dummy; do
4622 test -z "$ac_dir" && ac_dir=.
4623 if test -f $ac_dir/$ac_word; then
4624 ac_cv_prog_ft_devel2="freetype2-config"
4625 break
4627 done
4628 IFS="$ac_save_ifs"
4629 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4632 ft_devel2="$ac_cv_prog_ft_devel2"
4633 if test -n "$ft_devel2"; then
4634 echo "$ac_t""$ft_devel2" 1>&6
4635 else
4636 echo "$ac_t""no" 1>&6
4639 if test "$ft_devel2" = "freetype2-config"
4640 then
4641 ft_devel=$ft_devel2
4644 if test "$ft_devel" = "no"
4645 then
4646 FREETYPELIBS=""
4647 FREETYPEINCL=""
4648 wine_cv_msg_freetype=yes
4649 else
4650 cat >> confdefs.h <<\EOF
4651 #define HAVE_FREETYPE 1
4654 FREETYPELIBS=`$ft_devel --libs`
4655 FREETYPEINCL=`$ft_devel --cflags`
4656 ac_save_CPPFLAGS="$CPPFLAGS"
4657 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4658 for ac_hdr in freetype/freetype.h \
4659 freetype/ftglyph.h \
4660 freetype/tttables.h \
4661 freetype/ftnames.h \
4662 freetype/ftsnames.h \
4663 freetype/ttnameid.h \
4664 freetype/ftoutln.h \
4665 freetype/internal/sfnt.h
4667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4669 echo "configure:4670: checking for $ac_hdr" >&5
4670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4672 else
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 #include <$ac_hdr>
4678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4679 { (eval echo configure:4680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4681 if test -z "$ac_err"; then
4682 rm -rf conftest*
4683 eval "ac_cv_header_$ac_safe=yes"
4684 else
4685 echo "$ac_err" >&5
4686 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5
4688 rm -rf conftest*
4689 eval "ac_cv_header_$ac_safe=no"
4691 rm -f conftest*
4693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4694 echo "$ac_t""yes" 1>&6
4695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4696 cat >> confdefs.h <<EOF
4697 #define $ac_tr_hdr 1
4700 else
4701 echo "$ac_t""no" 1>&6
4703 done
4705 CPPFLAGS="$ac_save_CPPFLAGS"
4706 wine_cv_msg_freetype=no
4712 echo $ac_n "checking for parport header/ppdev.h""... $ac_c" 1>&6
4713 echo "configure:4714: checking for parport header/ppdev.h" >&5
4714 if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4716 else
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4720 #include <linux/ppdev.h>
4721 int main() {
4722 ioctl (1,PPCLAIM,0)
4723 ; return 0; }
4725 if { (eval echo configure:4726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4726 rm -rf conftest*
4727 ac_cv_c_ppdev="yes"
4728 else
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 rm -rf conftest*
4732 ac_cv_c_ppdev="no"
4734 rm -f conftest*
4738 echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4739 if test "$ac_cv_c_ppdev" = "yes"
4740 then
4741 cat >> confdefs.h <<\EOF
4742 #define HAVE_PPDEV 1
4747 echo $ac_n "checking for GNU style IPX support""... $ac_c" 1>&6
4748 echo "configure:4749: checking for GNU style IPX support" >&5
4749 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4751 else
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 #include <sys/socket.h>
4756 #include <netipx/ipx.h>
4757 int main() {
4758 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4759 ; return 0; }
4761 if { (eval echo configure:4762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4762 rm -rf conftest*
4763 ac_cv_c_ipx_gnu="yes"
4764 else
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4767 rm -rf conftest*
4768 ac_cv_c_ipx_gnu="no"
4770 rm -f conftest*
4774 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4775 if test "$ac_cv_c_ipx_gnu" = "yes"
4776 then
4777 cat >> confdefs.h <<\EOF
4778 #define HAVE_IPX_GNU 1
4783 if test "$ac_cv_c_ipx_gnu" = "no"
4784 then
4785 echo $ac_n "checking for linux style IPX support""... $ac_c" 1>&6
4786 echo "configure:4787: checking for linux style IPX support" >&5
4787 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4789 else
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4793 #include <sys/socket.h>
4794 #include <asm/types.h>
4795 #include <linux/ipx.h>
4796 int main() {
4797 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4798 ; return 0; }
4800 if { (eval echo configure:4801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4801 rm -rf conftest*
4802 ac_cv_c_ipx_linux="yes"
4803 else
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4806 rm -rf conftest*
4807 ac_cv_c_ipx_linux="no"
4809 rm -f conftest*
4813 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4814 if test "$ac_cv_c_ipx_linux" = "yes"
4815 then
4816 cat >> confdefs.h <<\EOF
4817 #define HAVE_IPX_LINUX 1
4823 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4827 echo "configure:4828: checking for $ac_hdr" >&5
4828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4830 else
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 #include <$ac_hdr>
4836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4837 { (eval echo configure:4838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4839 if test -z "$ac_err"; then
4840 rm -rf conftest*
4841 eval "ac_cv_header_$ac_safe=yes"
4842 else
4843 echo "$ac_err" >&5
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4846 rm -rf conftest*
4847 eval "ac_cv_header_$ac_safe=no"
4849 rm -f conftest*
4851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4852 echo "$ac_t""yes" 1>&6
4853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4854 cat >> confdefs.h <<EOF
4855 #define $ac_tr_hdr 1
4857 break
4858 else
4859 echo "$ac_t""no" 1>&6
4861 done
4864 echo $ac_n "checking for Open Sound System""... $ac_c" 1>&6
4865 echo "configure:4866: checking for Open Sound System" >&5
4866 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4868 else
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4873 #if defined(HAVE_SYS_SOUNDCARD_H)
4874 #include <sys/soundcard.h>
4875 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4876 #include <machine/soundcard.h>
4877 #elif defined(HAVE_SOUNDCARD_H)
4878 #include <soundcard.h>
4879 #endif
4881 int main() {
4884 /* check for one of the Open Sound System specific SNDCTL_ defines */
4885 #if !defined(SNDCTL_DSP_STEREO)
4886 #error No open sound system
4887 #endif
4889 ; return 0; }
4891 if { (eval echo configure:4892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4892 rm -rf conftest*
4893 ac_cv_c_opensoundsystem="yes"
4894 else
4895 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4897 rm -rf conftest*
4898 ac_cv_c_opensoundsystem="no"
4900 rm -f conftest*
4903 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4905 if test "$ac_cv_c_opensoundsystem" = "yes"
4906 then
4907 cat >> confdefs.h <<\EOF
4908 #define HAVE_OSS 1
4913 echo $ac_n "checking for Open Sound System/MIDI interface""... $ac_c" 1>&6
4914 echo "configure:4915: checking for Open Sound System/MIDI interface" >&5
4915 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4916 echo $ac_n "(cached) $ac_c" 1>&6
4917 else
4918 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4922 #if defined(HAVE_SYS_SOUNDCARD_H)
4923 #include <sys/soundcard.h>
4924 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4925 #include <machine/soundcard.h>
4926 #elif defined(HAVE_SOUNDCARD_H)
4927 #include <soundcard.h>
4928 #endif
4930 int main() {
4933 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4934 #if !defined(SNDCTL_SEQ_SYNC)
4935 #error No open sound system MIDI interface
4936 #endif
4938 ; return 0; }
4940 if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4941 rm -rf conftest*
4942 ac_cv_c_opensoundsystem_midi="yes"
4943 else
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 rm -rf conftest*
4947 ac_cv_c_opensoundsystem_midi="no"
4949 rm -f conftest*
4952 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4954 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4955 then
4956 cat >> confdefs.h <<\EOF
4957 #define HAVE_OSS_MIDI 1
4962 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4965 echo $ac_n "checking whether mmap64 works defined as mmap""... $ac_c" 1>&6
4966 echo "configure:4967: checking whether mmap64 works defined as mmap" >&5
4967 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4968 echo $ac_n "(cached) $ac_c" 1>&6
4969 else
4970 if test "$cross_compiling" = yes; then
4971 ac_cv_mmap64_works="no"
4972 else
4973 cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4977 #define _FILE_OFFSET_BITS 64
4978 #include <stdio.h>
4979 #include <unistd.h>
4980 #include <fcntl.h>
4981 #include <sys/mman.h>
4982 #include <errno.h>
4984 int main(int argc,char **argv) {
4985 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4986 if (fd == -1) exit(1);
4988 unlink("conftest.map");
4990 write(fd,"test",4);
4992 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
4993 (errno == EINVAL)
4995 exit(1);
4997 close(fd);
4998 fprintf(stderr,"success!\n");
4999 exit(0);
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5005 then
5006 ac_cv_mmap64_works="yes"
5007 else
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5010 rm -fr conftest*
5011 ac_cv_mmap64_works="no"
5013 rm -fr conftest*
5018 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
5020 if test "$ac_cv_mmap64_works" = "yes"
5021 then
5022 cat >> confdefs.h <<\EOF
5023 #define _FILE_OFFSET_BITS 64
5029 if test "x${GCC}" = "xyes"
5030 then
5031 CFLAGS="$CFLAGS -Wall"
5032 echo $ac_n "checking for gcc strength-reduce bug""... $ac_c" 1>&6
5033 echo "configure:5034: checking for gcc strength-reduce bug" >&5
5034 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5036 else
5037 if test "$cross_compiling" = yes; then
5038 ac_cv_c_gcc_strength_bug="yes"
5039 else
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5044 int L[4] = {0,1,2,3};
5045 int main(void) {
5046 static int Array[3];
5047 unsigned int B = 3;
5048 int i;
5049 for(i=0; i<B; i++) Array[i] = i - 3;
5050 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5051 L[i] = 4;
5053 exit( Array[1] != -2 || L[2] != 3);
5056 if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5057 then
5058 ac_cv_c_gcc_strength_bug="no"
5059 else
5060 echo "configure: failed program was:" >&5
5061 cat conftest.$ac_ext >&5
5062 rm -fr conftest*
5063 ac_cv_c_gcc_strength_bug="yes"
5065 rm -fr conftest*
5070 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5071 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5072 then
5073 CFLAGS="$CFLAGS -fno-strength-reduce"
5076 echo $ac_n "checking for gcc -mpreferred-stack-boundary=2 support""... $ac_c" 1>&6
5077 echo "configure:5078: checking for gcc -mpreferred-stack-boundary=2 support" >&5
5078 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5080 else
5081 saved_cflags=$CFLAGS
5082 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5083 cat > conftest.$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5087 int main() {
5088 return 0
5089 ; return 0; }
5091 if { (eval echo configure:5092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5092 rm -rf conftest*
5093 ac_cv_c_gcc_stack_boundary="yes"
5094 else
5095 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5097 rm -rf conftest*
5098 ac_cv_c_gcc_stack_boundary="no"
5100 rm -f conftest*
5101 CFLAGS=$saved_cflags
5105 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5106 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5107 then
5108 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5113 echo $ac_n "checking whether .type must sit inside a .def directive""... $ac_c" 1>&6
5114 echo "configure:5115: checking whether .type must sit inside a .def directive" >&5
5115 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5117 else
5118 saved_libs=$LIBS
5119 LIBS="conftest_asm.s $LIBS"
5120 cat > conftest_asm.s <<EOF
5121 .globl _ac_test
5122 .def _ac_test; .scl 2; .type 32; .endef
5123 _ac_test:
5124 .long 0
5126 cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5130 int main() {
5132 ; return 0; }
5134 if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5135 rm -rf conftest*
5136 ac_cv_c_type_in_def="yes"
5137 else
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 rm -rf conftest*
5141 ac_cv_c_type_in_def="no"
5143 rm -f conftest*
5144 LIBS=$saved_libs
5147 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5148 if test "$ac_cv_c_type_in_def" = "yes"
5149 then
5150 cat >> confdefs.h <<\EOF
5151 #define NEED_TYPE_IN_DEF 1
5157 echo $ac_n "checking whether external symbols need an underscore prefix""... $ac_c" 1>&6
5158 echo "configure:5159: checking whether external symbols need an underscore prefix" >&5
5159 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5161 else
5162 saved_libs=$LIBS
5163 LIBS="conftest_asm.s $LIBS"
5164 cat > conftest_asm.s <<EOF
5165 .globl _ac_test
5166 _ac_test:
5167 .long 0
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172 extern int ac_test;
5173 int main() {
5174 if (ac_test) return 1
5175 ; return 0; }
5177 if { (eval echo configure:5178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5178 rm -rf conftest*
5179 ac_cv_c_extern_prefix="yes"
5180 else
5181 echo "configure: failed program was:" >&5
5182 cat conftest.$ac_ext >&5
5183 rm -rf conftest*
5184 ac_cv_c_extern_prefix="no"
5186 rm -f conftest*
5187 LIBS=$saved_libs
5190 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5191 if test "$ac_cv_c_extern_prefix" = "yes"
5192 then
5193 cat >> confdefs.h <<\EOF
5194 #define NEED_UNDERSCORE_PREFIX 1
5200 echo $ac_n "checking whether assembler accepts .string""... $ac_c" 1>&6
5201 echo "configure:5202: checking whether assembler accepts .string" >&5
5202 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5204 else
5205 saved_libs=$LIBS
5206 LIBS="conftest_asm.s $LIBS"
5207 cat > conftest_asm.s <<EOF
5208 .string "test"
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5214 int main() {
5216 ; return 0; }
5218 if { (eval echo configure:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5219 rm -rf conftest*
5220 ac_cv_c_asm_string="yes"
5221 else
5222 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5224 rm -rf conftest*
5225 ac_cv_c_asm_string="no"
5227 rm -f conftest*
5228 LIBS=$saved_libs
5231 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5232 if test "$ac_cv_c_asm_string" = "yes"
5233 then
5234 cat >> confdefs.h <<\EOF
5235 #define HAVE_ASM_STRING 1
5241 LDSHARED=""
5242 LDDLLFLAGS=""
5243 if test "$LIBEXT" = "so"
5244 then
5245 echo $ac_n "checking whether we can build a GNU style ELF dll""... $ac_c" 1>&6
5246 echo "configure:5247: checking whether we can build a GNU style ELF dll" >&5
5247 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5249 else
5250 saved_cflags=$CFLAGS
5251 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5252 cat > conftest.$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5256 int main() {
5257 return 1
5258 ; return 0; }
5260 if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5261 rm -rf conftest*
5262 ac_cv_c_dll_gnuelf="yes"
5263 else
5264 echo "configure: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5266 rm -rf conftest*
5267 ac_cv_c_dll_gnuelf="no"
5269 rm -f conftest*
5270 CFLAGS=$saved_cflags
5274 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5275 if test "$ac_cv_c_dll_gnuelf" = "yes"
5276 then
5277 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
5278 LDDLLFLAGS="-Wl,-Bsymbolic"
5279 else
5280 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5281 echo "configure:5282: checking whether we can build a UnixWare (Solaris) dll" >&5
5282 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5284 else
5285 saved_cflags=$CFLAGS
5286 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5291 int main() {
5292 return 1
5293 ; return 0; }
5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5296 rm -rf conftest*
5297 ac_cv_c_dll_unixware="yes"
5298 else
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5301 rm -rf conftest*
5302 ac_cv_c_dll_unixware="no"
5304 rm -f conftest*
5305 CFLAGS=$saved_cflags
5309 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5310 if test "$ac_cv_c_dll_unixware" = "yes"
5311 then
5312 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
5313 LDDLLFLAGS="-Wl,-B,symbolic"
5316 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5317 then
5318 LIBEXT="a"
5319 if test "$DLLWRAP" = "dllwrap"; then
5320 if test "$CYGWIN" = "yes"; then
5321 echo "*** use dllwrap for building shared library."
5322 LIBEXT="dll"
5328 if test "$LIBEXT" = "a"; then
5329 echo "*** It is currently not possible to build WINE without shared"
5330 echo "*** library (.so) support to allow transparent switch between .so"
5331 echo "*** and .dll files."
5332 echo "*** If you are using Linux, you will need a newer binutils."
5333 exit 1
5336 DLLFLAGS=""
5337 LDPATH=""
5339 if test "$LIBEXT" = "so"; then
5340 DLLFLAGS="-fPIC"
5341 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5342 elif test "$LIBEXT" = "dll"; then
5343 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5344 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5356 wine_cv_libc_reentrant=no
5358 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5359 echo "configure:5360: checking for reentrant libc: __errno_location" >&5
5360 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5362 else
5363 if test "$cross_compiling" = yes; then
5364 wine_cv_libc_r___errno_location=yes
5365 else
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 int myerrno = 0;
5370 char buf[256];
5371 int *__errno_location(){return &myerrno;}
5372 main(){connect(0,buf,255); exit(!myerrno);}
5374 if { (eval echo configure:5375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5375 then
5376 wine_cv_libc_r___errno_location=yes
5377 else
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5380 rm -fr conftest*
5381 wine_cv_libc_r___errno_location=no
5383 rm -fr conftest*
5389 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5390 if test "$wine_cv_libc_r___errno_location" = "yes"
5391 then
5392 wine_cv_libc_reentrant=__errno_location
5396 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5397 echo "configure:5398: checking for reentrant libc: __error" >&5
5398 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5399 echo $ac_n "(cached) $ac_c" 1>&6
5400 else
5401 if test "$cross_compiling" = yes; then
5402 wine_cv_libc_r___error=yes
5403 else
5404 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5407 int myerrno = 0;
5408 char buf[256];
5409 int *__error(){return &myerrno;}
5410 main(){connect(0,buf,255); exit(!myerrno);}
5412 if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5413 then
5414 wine_cv_libc_r___error=yes
5415 else
5416 echo "configure: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5418 rm -fr conftest*
5419 wine_cv_libc_r___error=no
5421 rm -fr conftest*
5427 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5428 if test "$wine_cv_libc_r___error" = "yes"
5429 then
5430 wine_cv_libc_reentrant=__error
5434 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5435 echo "configure:5436: checking for reentrant libc: ___errno" >&5
5436 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5438 else
5439 if test "$cross_compiling" = yes; then
5440 wine_cv_libc_r____errno=yes
5441 else
5442 cat > conftest.$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5445 int myerrno = 0;
5446 char buf[256];
5447 int *___errno(){return &myerrno;}
5448 main(){connect(0,buf,255); exit(!myerrno);}
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5451 then
5452 wine_cv_libc_r____errno=yes
5453 else
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5456 rm -fr conftest*
5457 wine_cv_libc_r____errno=no
5459 rm -fr conftest*
5465 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5466 if test "$wine_cv_libc_r____errno" = "yes"
5467 then
5468 wine_cv_libc_reentrant=___errno
5472 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5473 echo "configure:5474: checking for reentrant libc: __thr_errno" >&5
5474 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5476 else
5477 if test "$cross_compiling" = yes; then
5478 wine_cv_libc_r___thr_errno=yes
5479 else
5480 cat > conftest.$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5483 int myerrno = 0;
5484 char buf[256];
5485 int *__thr_errno(){return &myerrno;}
5486 main(){connect(0,buf,255); exit(!myerrno);}
5488 if { (eval echo configure:5489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5489 then
5490 wine_cv_libc_r___thr_errno=yes
5491 else
5492 echo "configure: failed program was:" >&5
5493 cat conftest.$ac_ext >&5
5494 rm -fr conftest*
5495 wine_cv_libc_r___thr_errno=no
5497 rm -fr conftest*
5503 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5504 if test "$wine_cv_libc_r___thr_errno" = "yes"
5505 then
5506 wine_cv_libc_reentrant=__thr_errno
5510 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5511 echo "configure:5512: checking for reentrant libc: __errno" >&5
5512 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5513 echo $ac_n "(cached) $ac_c" 1>&6
5514 else
5515 if test "$cross_compiling" = yes; then
5516 wine_cv_libc_r___errno=yes
5517 else
5518 cat > conftest.$ac_ext <<EOF
5519 #line 5520 "configure"
5520 #include "confdefs.h"
5521 int myerrno = 0;
5522 char buf[256];
5523 int *__errno(){return &myerrno;}
5524 main(){connect(0,buf,255); exit(!myerrno);}
5526 if { (eval echo configure:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5527 then
5528 wine_cv_libc_r___errno=yes
5529 else
5530 echo "configure: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5532 rm -fr conftest*
5533 wine_cv_libc_r___errno=no
5535 rm -fr conftest*
5541 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5542 if test "$wine_cv_libc_r___errno" = "yes"
5543 then
5544 wine_cv_libc_reentrant=__errno
5548 if test "$wine_cv_libc_reentrant" != "no"
5549 then
5550 cat >> confdefs.h <<EOF
5551 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5557 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5558 then
5559 echo $ac_n "checking for reentrant X libraries""... $ac_c" 1>&6
5560 echo "configure:5561: checking for reentrant X libraries" >&5
5561 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5563 else
5564 if test "x$with_reentrant_x" = "xno"
5565 then
5566 wine_cv_x_reentrant=no
5567 else
5568 libX11_check=none
5569 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5570 if test -r $dir/libX11.so; then
5571 libX11_check="-D $dir/libX11.so"
5572 break 1
5574 if test -r $dir/libX11.a; then
5575 libX11_check="$dir/libX11.a"
5576 break 1
5578 done
5579 if test "$libX11_check" != "none"; then
5580 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5581 then
5582 wine_cv_x_reentrant=yes
5583 else
5584 wine_cv_x_reentrant=no
5586 else
5587 wine_cv_x_reentrant=unknown
5592 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5593 else
5594 wine_cv_x_reentrant=no
5596 if test "$wine_cv_x_reentrant" = "no"
5597 then
5598 cat >> confdefs.h <<\EOF
5599 #define NO_REENTRANT_X11 1
5606 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5607 # for constant arguments. Useless!
5608 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5609 echo "configure:5610: checking for working alloca.h" >&5
5610 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5612 else
5613 cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5616 #include <alloca.h>
5617 int main() {
5618 char *p = alloca(2 * sizeof(int));
5619 ; return 0; }
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5622 rm -rf conftest*
5623 ac_cv_header_alloca_h=yes
5624 else
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5627 rm -rf conftest*
5628 ac_cv_header_alloca_h=no
5630 rm -f conftest*
5633 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5634 if test $ac_cv_header_alloca_h = yes; then
5635 cat >> confdefs.h <<\EOF
5636 #define HAVE_ALLOCA_H 1
5641 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5642 echo "configure:5643: checking for alloca" >&5
5643 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5644 echo $ac_n "(cached) $ac_c" 1>&6
5645 else
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5650 #ifdef __GNUC__
5651 # define alloca __builtin_alloca
5652 #else
5653 # ifdef _MSC_VER
5654 # include <malloc.h>
5655 # define alloca _alloca
5656 # else
5657 # if HAVE_ALLOCA_H
5658 # include <alloca.h>
5659 # else
5660 # ifdef _AIX
5661 #pragma alloca
5662 # else
5663 # ifndef alloca /* predefined by HP cc +Olibcalls */
5664 char *alloca ();
5665 # endif
5666 # endif
5667 # endif
5668 # endif
5669 #endif
5671 int main() {
5672 char *p = (char *) alloca(1);
5673 ; return 0; }
5675 if { (eval echo configure:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5676 rm -rf conftest*
5677 ac_cv_func_alloca_works=yes
5678 else
5679 echo "configure: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5681 rm -rf conftest*
5682 ac_cv_func_alloca_works=no
5684 rm -f conftest*
5687 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5688 if test $ac_cv_func_alloca_works = yes; then
5689 cat >> confdefs.h <<\EOF
5690 #define HAVE_ALLOCA 1
5695 if test $ac_cv_func_alloca_works = no; then
5696 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5697 # that cause trouble. Some versions do not even contain alloca or
5698 # contain a buggy version. If you still want to use their alloca,
5699 # use ar to extract alloca.o from them instead of compiling alloca.c.
5700 ALLOCA=alloca.${ac_objext}
5701 cat >> confdefs.h <<\EOF
5702 #define C_ALLOCA 1
5706 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5707 echo "configure:5708: checking whether alloca needs Cray hooks" >&5
5708 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5710 else
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714 #if defined(CRAY) && ! defined(CRAY2)
5715 webecray
5716 #else
5717 wenotbecray
5718 #endif
5721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5722 egrep "webecray" >/dev/null 2>&1; then
5723 rm -rf conftest*
5724 ac_cv_os_cray=yes
5725 else
5726 rm -rf conftest*
5727 ac_cv_os_cray=no
5729 rm -f conftest*
5733 echo "$ac_t""$ac_cv_os_cray" 1>&6
5734 if test $ac_cv_os_cray = yes; then
5735 for ac_func in _getb67 GETB67 getb67; do
5736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5737 echo "configure:5738: checking for $ac_func" >&5
5738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5740 else
5741 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5744 /* System header to define __stub macros and hopefully few prototypes,
5745 which can conflict with char $ac_func(); below. */
5746 #include <assert.h>
5747 /* Override any gcc2 internal prototype to avoid an error. */
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5750 char $ac_func();
5752 int main() {
5754 /* The GNU C library defines this for functions which it implements
5755 to always fail with ENOSYS. Some functions are actually named
5756 something starting with __ and the normal name is an alias. */
5757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5758 choke me
5759 #else
5760 $ac_func();
5761 #endif
5763 ; return 0; }
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766 rm -rf conftest*
5767 eval "ac_cv_func_$ac_func=yes"
5768 else
5769 echo "configure: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5771 rm -rf conftest*
5772 eval "ac_cv_func_$ac_func=no"
5774 rm -f conftest*
5777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5778 echo "$ac_t""yes" 1>&6
5779 cat >> confdefs.h <<EOF
5780 #define CRAY_STACKSEG_END $ac_func
5783 break
5784 else
5785 echo "$ac_t""no" 1>&6
5788 done
5791 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5792 echo "configure:5793: checking stack direction for C alloca" >&5
5793 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5794 echo $ac_n "(cached) $ac_c" 1>&6
5795 else
5796 if test "$cross_compiling" = yes; then
5797 ac_cv_c_stack_direction=0
5798 else
5799 cat > conftest.$ac_ext <<EOF
5800 #line 5801 "configure"
5801 #include "confdefs.h"
5802 find_stack_direction ()
5804 static char *addr = 0;
5805 auto char dummy;
5806 if (addr == 0)
5808 addr = &dummy;
5809 return find_stack_direction ();
5811 else
5812 return (&dummy > addr) ? 1 : -1;
5814 main ()
5816 exit (find_stack_direction() < 0);
5819 if { (eval echo configure:5820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5820 then
5821 ac_cv_c_stack_direction=1
5822 else
5823 echo "configure: failed program was:" >&5
5824 cat conftest.$ac_ext >&5
5825 rm -fr conftest*
5826 ac_cv_c_stack_direction=-1
5828 rm -fr conftest*
5833 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5834 cat >> confdefs.h <<EOF
5835 #define STACK_DIRECTION $ac_cv_c_stack_direction
5840 for ac_func in \
5841 __libc_fork \
5842 _lwp_create \
5843 clone \
5844 ecvt \
5845 finite \
5846 fpclass \
5847 ftruncate64 \
5848 getnetbyaddr \
5849 getnetbyname \
5850 getpagesize \
5851 getprotobyname \
5852 getprotobynumber \
5853 getrlimit \
5854 getservbyport \
5855 getsockopt \
5856 inet_network \
5857 lseek64 \
5858 lstat \
5859 memmove \
5860 mmap \
5861 rfork \
5862 select \
5863 sendmsg \
5864 settimeofday \
5865 sigaltstack \
5866 statfs \
5867 strcasecmp \
5868 strerror \
5869 strncasecmp \
5870 tcgetattr \
5871 timegm \
5872 usleep \
5873 vfscanf \
5874 wait4 \
5875 waitpid \
5878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5879 echo "configure:5880: checking for $ac_func" >&5
5880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5882 else
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 /* System header to define __stub macros and hopefully few prototypes,
5887 which can conflict with char $ac_func(); below. */
5888 #include <assert.h>
5889 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */
5892 char $ac_func();
5894 int main() {
5896 /* The GNU C library defines this for functions which it implements
5897 to always fail with ENOSYS. Some functions are actually named
5898 something starting with __ and the normal name is an alias. */
5899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5900 choke me
5901 #else
5902 $ac_func();
5903 #endif
5905 ; return 0; }
5907 if { (eval echo configure:5908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5908 rm -rf conftest*
5909 eval "ac_cv_func_$ac_func=yes"
5910 else
5911 echo "configure: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5913 rm -rf conftest*
5914 eval "ac_cv_func_$ac_func=no"
5916 rm -f conftest*
5919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5920 echo "$ac_t""yes" 1>&6
5921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5922 cat >> confdefs.h <<EOF
5923 #define $ac_tr_func 1
5926 else
5927 echo "$ac_t""no" 1>&6
5929 done
5933 for ac_hdr in \
5934 arpa/inet.h \
5935 arpa/nameser.h \
5936 elf.h \
5937 float.h \
5938 ieeefp.h \
5939 libio.h \
5940 libutil.h \
5941 link.h \
5942 linux/cdrom.h \
5943 linux/input.h \
5944 linux/joystick.h \
5945 linux/ucdrom.h \
5946 net/if.h \
5947 netdb.h \
5948 netinet/in.h \
5949 netinet/in_systm.h \
5950 netinet/ip.h \
5951 netinet/tcp.h \
5952 pty.h \
5953 resolv.h \
5954 sched.h \
5955 socket.h \
5956 stdint.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"
6931 cat >> confdefs.h <<\EOF
6932 #define __WINE_CONFIG_H 1
6938 MAKE_RULES=Make.rules
6941 MAKE_DLL_RULES=dlls/Makedll.rules
6944 MAKE_PROG_RULES=programs/Makeprog.rules
6947 trap '' 1 2 15
6948 cat > confcache <<\EOF
6949 # This file is a shell script that caches the results of configure
6950 # tests run on this system so they can be shared between configure
6951 # scripts and configure runs. It is not useful on other systems.
6952 # If it contains results you don't want to keep, you may remove or edit it.
6954 # By default, configure uses ./config.cache as the cache file,
6955 # creating it if it does not exist already. You can give configure
6956 # the --cache-file=FILE option to use a different cache file; that is
6957 # what configure does when it calls configure scripts in
6958 # subdirectories, so they share the cache.
6959 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6960 # config.status only pays attention to the cache file if you give it the
6961 # --recheck option to rerun configure.
6964 # The following way of writing the cache mishandles newlines in values,
6965 # but we know of no workaround that is simple, portable, and efficient.
6966 # So, don't put newlines in cache variables' values.
6967 # Ultrix sh set writes to stderr and can't be redirected directly,
6968 # and sets the high bit in the cache file unless we assign to the vars.
6969 (set) 2>&1 |
6970 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6971 *ac_space=\ *)
6972 # `set' does not quote correctly, so add quotes (double-quote substitution
6973 # turns \\\\ into \\, and sed turns \\ into \).
6974 sed -n \
6975 -e "s/'/'\\\\''/g" \
6976 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6979 # `set' quotes correctly as required by POSIX, so do not add quotes.
6980 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6982 esac >> confcache
6983 if cmp -s $cache_file confcache; then
6985 else
6986 if test -w $cache_file; then
6987 echo "updating cache $cache_file"
6988 cat confcache > $cache_file
6989 else
6990 echo "not updating unwritable cache $cache_file"
6993 rm -f confcache
6995 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6997 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6998 # Let make expand exec_prefix.
6999 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7001 # Any assignment to VPATH causes Sun make to only execute
7002 # the first set of double-colon rules, so remove it if not needed.
7003 # If there is a colon in the path, we need to keep it.
7004 if test "x$srcdir" = x.; then
7005 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7008 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7010 DEFS=-DHAVE_CONFIG_H
7012 # Without the "./", some shells look in PATH for config.status.
7013 : ${CONFIG_STATUS=./config.status}
7015 echo creating $CONFIG_STATUS
7016 rm -f $CONFIG_STATUS
7017 cat > $CONFIG_STATUS <<EOF
7018 #! /bin/sh
7019 # Generated automatically by configure.
7020 # Run this file to recreate the current configuration.
7021 # This directory was configured as follows,
7022 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7024 # $0 $ac_configure_args
7026 # Compiler output produced by configure, useful for debugging
7027 # configure, is in ./config.log if it exists.
7029 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7030 for ac_option
7032 case "\$ac_option" in
7033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7034 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7035 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7036 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7037 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7038 exit 0 ;;
7039 -help | --help | --hel | --he | --h)
7040 echo "\$ac_cs_usage"; exit 0 ;;
7041 *) echo "\$ac_cs_usage"; exit 1 ;;
7042 esac
7043 done
7045 ac_given_srcdir=$srcdir
7046 ac_given_INSTALL="$INSTALL"
7048 trap 'rm -fr `echo "
7049 Make.rules
7050 dlls/Makedll.rules
7051 programs/Makeprog.rules
7052 Makefile
7053 console/Makefile
7054 controls/Makefile
7055 debugger/Makefile
7056 dlls/Makefile
7057 dlls/advapi32/Makefile
7058 dlls/avicap32/Makefile
7059 dlls/avifil32/Makefile
7060 dlls/comctl32/Makefile
7061 dlls/commdlg/Makefile
7062 dlls/crtdll/Makefile
7063 dlls/dciman32/Makefile
7064 dlls/ddraw/Makefile
7065 dlls/devenum/Makefile
7066 dlls/dinput/Makefile
7067 dlls/dplay/Makefile
7068 dlls/dplayx/Makefile
7069 dlls/dsound/Makefile
7070 dlls/gdi/Makefile
7071 dlls/glu32/Makefile
7072 dlls/icmp/Makefile
7073 dlls/imagehlp/Makefile
7074 dlls/imm32/Makefile
7075 dlls/kernel/Makefile
7076 dlls/lzexpand/Makefile
7077 dlls/mapi32/Makefile
7078 dlls/mpr/Makefile
7079 dlls/msacm/Makefile
7080 dlls/msdmo/Makefile
7081 dlls/msimg32/Makefile
7082 dlls/msnet32/Makefile
7083 dlls/msrle32/Makefile
7084 dlls/msvcrt/Makefile
7085 dlls/msvideo/Makefile
7086 dlls/netapi32/Makefile
7087 dlls/ntdll/Makefile
7088 dlls/odbc32/Makefile
7089 dlls/ole32/Makefile
7090 dlls/oleaut32/Makefile
7091 dlls/olecli/Makefile
7092 dlls/oledlg/Makefile
7093 dlls/olepro32/Makefile
7094 dlls/olesvr/Makefile
7095 dlls/opengl32/Makefile
7096 dlls/psapi/Makefile
7097 dlls/qcap/Makefile
7098 dlls/quartz/Makefile
7099 dlls/rasapi32/Makefile
7100 dlls/richedit/Makefile
7101 dlls/rpcrt4/Makefile
7102 dlls/serialui/Makefile
7103 dlls/setupapi/Makefile
7104 dlls/shdocvw/Makefile
7105 dlls/shell32/Makefile
7106 dlls/shfolder/Makefile
7107 dlls/shlwapi/Makefile
7108 dlls/sti/Makefile
7109 dlls/tapi32/Makefile
7110 dlls/ttydrv/Makefile
7111 dlls/url/Makefile
7112 dlls/urlmon/Makefile
7113 dlls/user/Makefile
7114 dlls/version/Makefile
7115 dlls/win32s/Makefile
7116 dlls/winaspi/Makefile
7117 dlls/winedos/Makefile
7118 dlls/wineps/Makefile
7119 dlls/wininet/Makefile
7120 dlls/winmm/Makefile
7121 dlls/winmm/joystick/Makefile
7122 dlls/winmm/mcianim/Makefile
7123 dlls/winmm/mciavi/Makefile
7124 dlls/winmm/mcicda/Makefile
7125 dlls/winmm/mciseq/Makefile
7126 dlls/winmm/mciwave/Makefile
7127 dlls/winmm/midimap/Makefile
7128 dlls/winmm/wavemap/Makefile
7129 dlls/winmm/wineoss/Makefile
7130 dlls/winnls/Makefile
7131 dlls/winsock/Makefile
7132 dlls/winspool/Makefile
7133 dlls/wintrust/Makefile
7134 dlls/wow32/Makefile
7135 dlls/wsock32/Makefile
7136 dlls/x11drv/Makefile
7137 documentation/Makefile
7138 documentation/wine.conf.man
7139 documentation/wine.man
7140 files/Makefile
7141 graphics/Makefile
7142 graphics/enhmetafiledrv/Makefile
7143 graphics/metafiledrv/Makefile
7144 graphics/win16drv/Makefile
7145 graphics/x11drv/Makefile
7146 if1632/Makefile
7147 include/Makefile
7148 library/Makefile
7149 libtest/Makefile
7150 loader/Makefile
7151 loader/dos/Makefile
7152 loader/ne/Makefile
7153 memory/Makefile
7154 misc/Makefile
7155 miscemu/Makefile
7156 msdos/Makefile
7157 objects/Makefile
7158 ole/Makefile
7159 programs/Makefile
7160 programs/avitools/Makefile
7161 programs/clock/Makefile
7162 programs/cmdlgtst/Makefile
7163 programs/control/Makefile
7164 programs/notepad/Makefile
7165 programs/osversioncheck/Makefile
7166 programs/progman/Makefile
7167 programs/regapi/Makefile
7168 programs/regtest/Makefile
7169 programs/uninstaller/Makefile
7170 programs/view/Makefile
7171 programs/wcmd/Makefile
7172 programs/wineconsole/Makefile
7173 programs/winemine/Makefile
7174 programs/winetest/Makefile
7175 programs/winhelp/Makefile
7176 programs/winver/Makefile
7177 relay32/Makefile
7178 scheduler/Makefile
7179 server/Makefile
7180 tools/Makefile
7181 tools/winapi/Makefile
7182 tools/winebuild/Makefile
7183 tools/winedump/Makefile
7184 tools/winelauncher
7185 tools/wmc/Makefile
7186 tools/wrc/Makefile
7187 tsx11/Makefile
7188 unicode/Makefile
7189 win32/Makefile
7190 windows/Makefile
7191 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7193 cat >> $CONFIG_STATUS <<EOF
7195 # Protect against being on the right side of a sed subst in config.status.
7196 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7197 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7198 $ac_vpsub
7199 $extrasub
7200 s%@SHELL@%$SHELL%g
7201 s%@CFLAGS@%$CFLAGS%g
7202 s%@CPPFLAGS@%$CPPFLAGS%g
7203 s%@CXXFLAGS@%$CXXFLAGS%g
7204 s%@FFLAGS@%$FFLAGS%g
7205 s%@DEFS@%$DEFS%g
7206 s%@LDFLAGS@%$LDFLAGS%g
7207 s%@LIBS@%$LIBS%g
7208 s%@exec_prefix@%$exec_prefix%g
7209 s%@prefix@%$prefix%g
7210 s%@program_transform_name@%$program_transform_name%g
7211 s%@bindir@%$bindir%g
7212 s%@sbindir@%$sbindir%g
7213 s%@libexecdir@%$libexecdir%g
7214 s%@datadir@%$datadir%g
7215 s%@sysconfdir@%$sysconfdir%g
7216 s%@sharedstatedir@%$sharedstatedir%g
7217 s%@localstatedir@%$localstatedir%g
7218 s%@libdir@%$libdir%g
7219 s%@includedir@%$includedir%g
7220 s%@oldincludedir@%$oldincludedir%g
7221 s%@infodir@%$infodir%g
7222 s%@mandir@%$mandir%g
7223 s%@OPTIONS@%$OPTIONS%g
7224 s%@SET_MAKE@%$SET_MAKE%g
7225 s%@CC@%$CC%g
7226 s%@CPP@%$CPP%g
7227 s%@X_CFLAGS@%$X_CFLAGS%g
7228 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7229 s%@X_LIBS@%$X_LIBS%g
7230 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7231 s%@YACC@%$YACC%g
7232 s%@LEX@%$LEX%g
7233 s%@LEXLIB@%$LEXLIB%g
7234 s%@XLEX@%$XLEX%g
7235 s%@RANLIB@%$RANLIB%g
7236 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7237 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7238 s%@INSTALL_DATA@%$INSTALL_DATA%g
7239 s%@LN_S@%$LN_S%g
7240 s%@C2MAN@%$C2MAN%g
7241 s%@LDCONFIG@%$LDCONFIG%g
7242 s%@DLLWRAP@%$DLLWRAP%g
7243 s%@LINT@%$LINT%g
7244 s%@LINTFLAGS@%$LINTFLAGS%g
7245 s%@LDCOMBINE@%$LDCOMBINE%g
7246 s%@DLLIBS@%$DLLIBS%g
7247 s%@JPEGLIB@%$JPEGLIB%g
7248 s%@XLIB@%$XLIB%g
7249 s%@XFILES@%$XFILES%g
7250 s%@OPENGLFILES@%$OPENGLFILES%g
7251 s%@GLU32FILES@%$GLU32FILES%g
7252 s%@CURSESLIBS@%$CURSESLIBS%g
7253 s%@CUPSLIBS@%$CUPSLIBS%g
7254 s%@ft_devel@%$ft_devel%g
7255 s%@ft_devel2@%$ft_devel2%g
7256 s%@FREETYPELIBS@%$FREETYPELIBS%g
7257 s%@FREETYPEINCL@%$FREETYPEINCL%g
7258 s%@DLLFLAGS@%$DLLFLAGS%g
7259 s%@LDSHARED@%$LDSHARED%g
7260 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7261 s%@LIBEXT@%$LIBEXT%g
7262 s%@LDPATH@%$LDPATH%g
7263 s%@ALLOCA@%$ALLOCA%g
7264 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7265 /@MAKE_RULES@/r $MAKE_RULES
7266 s%@MAKE_RULES@%%g
7267 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7268 s%@MAKE_DLL_RULES@%%g
7269 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7270 s%@MAKE_PROG_RULES@%%g
7272 CEOF
7275 cat >> $CONFIG_STATUS <<\EOF
7277 # Split the substitutions into bite-sized pieces for seds with
7278 # small command number limits, like on Digital OSF/1 and HP-UX.
7279 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7280 ac_file=1 # Number of current file.
7281 ac_beg=1 # First line for current file.
7282 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7283 ac_more_lines=:
7284 ac_sed_cmds=""
7285 while $ac_more_lines; do
7286 if test $ac_beg -gt 1; then
7287 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7288 else
7289 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7291 if test ! -s conftest.s$ac_file; then
7292 ac_more_lines=false
7293 rm -f conftest.s$ac_file
7294 else
7295 if test -z "$ac_sed_cmds"; then
7296 ac_sed_cmds="sed -f conftest.s$ac_file"
7297 else
7298 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7300 ac_file=`expr $ac_file + 1`
7301 ac_beg=$ac_end
7302 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7304 done
7305 if test -z "$ac_sed_cmds"; then
7306 ac_sed_cmds=cat
7310 cat >> $CONFIG_STATUS <<EOF
7312 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7313 dlls/Makedll.rules
7314 programs/Makeprog.rules
7315 Makefile
7316 console/Makefile
7317 controls/Makefile
7318 debugger/Makefile
7319 dlls/Makefile
7320 dlls/advapi32/Makefile
7321 dlls/avicap32/Makefile
7322 dlls/avifil32/Makefile
7323 dlls/comctl32/Makefile
7324 dlls/commdlg/Makefile
7325 dlls/crtdll/Makefile
7326 dlls/dciman32/Makefile
7327 dlls/ddraw/Makefile
7328 dlls/devenum/Makefile
7329 dlls/dinput/Makefile
7330 dlls/dplay/Makefile
7331 dlls/dplayx/Makefile
7332 dlls/dsound/Makefile
7333 dlls/gdi/Makefile
7334 dlls/glu32/Makefile
7335 dlls/icmp/Makefile
7336 dlls/imagehlp/Makefile
7337 dlls/imm32/Makefile
7338 dlls/kernel/Makefile
7339 dlls/lzexpand/Makefile
7340 dlls/mapi32/Makefile
7341 dlls/mpr/Makefile
7342 dlls/msacm/Makefile
7343 dlls/msdmo/Makefile
7344 dlls/msimg32/Makefile
7345 dlls/msnet32/Makefile
7346 dlls/msrle32/Makefile
7347 dlls/msvcrt/Makefile
7348 dlls/msvideo/Makefile
7349 dlls/netapi32/Makefile
7350 dlls/ntdll/Makefile
7351 dlls/odbc32/Makefile
7352 dlls/ole32/Makefile
7353 dlls/oleaut32/Makefile
7354 dlls/olecli/Makefile
7355 dlls/oledlg/Makefile
7356 dlls/olepro32/Makefile
7357 dlls/olesvr/Makefile
7358 dlls/opengl32/Makefile
7359 dlls/psapi/Makefile
7360 dlls/qcap/Makefile
7361 dlls/quartz/Makefile
7362 dlls/rasapi32/Makefile
7363 dlls/richedit/Makefile
7364 dlls/rpcrt4/Makefile
7365 dlls/serialui/Makefile
7366 dlls/setupapi/Makefile
7367 dlls/shdocvw/Makefile
7368 dlls/shell32/Makefile
7369 dlls/shfolder/Makefile
7370 dlls/shlwapi/Makefile
7371 dlls/sti/Makefile
7372 dlls/tapi32/Makefile
7373 dlls/ttydrv/Makefile
7374 dlls/url/Makefile
7375 dlls/urlmon/Makefile
7376 dlls/user/Makefile
7377 dlls/version/Makefile
7378 dlls/win32s/Makefile
7379 dlls/winaspi/Makefile
7380 dlls/winedos/Makefile
7381 dlls/wineps/Makefile
7382 dlls/wininet/Makefile
7383 dlls/winmm/Makefile
7384 dlls/winmm/joystick/Makefile
7385 dlls/winmm/mcianim/Makefile
7386 dlls/winmm/mciavi/Makefile
7387 dlls/winmm/mcicda/Makefile
7388 dlls/winmm/mciseq/Makefile
7389 dlls/winmm/mciwave/Makefile
7390 dlls/winmm/midimap/Makefile
7391 dlls/winmm/wavemap/Makefile
7392 dlls/winmm/wineoss/Makefile
7393 dlls/winnls/Makefile
7394 dlls/winsock/Makefile
7395 dlls/winspool/Makefile
7396 dlls/wintrust/Makefile
7397 dlls/wow32/Makefile
7398 dlls/wsock32/Makefile
7399 dlls/x11drv/Makefile
7400 documentation/Makefile
7401 documentation/wine.conf.man
7402 documentation/wine.man
7403 files/Makefile
7404 graphics/Makefile
7405 graphics/enhmetafiledrv/Makefile
7406 graphics/metafiledrv/Makefile
7407 graphics/win16drv/Makefile
7408 graphics/x11drv/Makefile
7409 if1632/Makefile
7410 include/Makefile
7411 library/Makefile
7412 libtest/Makefile
7413 loader/Makefile
7414 loader/dos/Makefile
7415 loader/ne/Makefile
7416 memory/Makefile
7417 misc/Makefile
7418 miscemu/Makefile
7419 msdos/Makefile
7420 objects/Makefile
7421 ole/Makefile
7422 programs/Makefile
7423 programs/avitools/Makefile
7424 programs/clock/Makefile
7425 programs/cmdlgtst/Makefile
7426 programs/control/Makefile
7427 programs/notepad/Makefile
7428 programs/osversioncheck/Makefile
7429 programs/progman/Makefile
7430 programs/regapi/Makefile
7431 programs/regtest/Makefile
7432 programs/uninstaller/Makefile
7433 programs/view/Makefile
7434 programs/wcmd/Makefile
7435 programs/wineconsole/Makefile
7436 programs/winemine/Makefile
7437 programs/winetest/Makefile
7438 programs/winhelp/Makefile
7439 programs/winver/Makefile
7440 relay32/Makefile
7441 scheduler/Makefile
7442 server/Makefile
7443 tools/Makefile
7444 tools/winapi/Makefile
7445 tools/winebuild/Makefile
7446 tools/winedump/Makefile
7447 tools/winelauncher
7448 tools/wmc/Makefile
7449 tools/wrc/Makefile
7450 tsx11/Makefile
7451 unicode/Makefile
7452 win32/Makefile
7453 windows/Makefile
7454 windows/x11drv/Makefile "}
7456 cat >> $CONFIG_STATUS <<\EOF
7457 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7459 case "$ac_file" in
7460 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7461 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7462 *) ac_file_in="${ac_file}.in" ;;
7463 esac
7465 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7467 # Remove last slash and all that follows it. Not all systems have dirname.
7468 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7469 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7470 # The file is in a subdirectory.
7471 test ! -d "$ac_dir" && mkdir "$ac_dir"
7472 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7473 # A "../" for each directory in $ac_dir_suffix.
7474 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7475 else
7476 ac_dir_suffix= ac_dots=
7479 case "$ac_given_srcdir" in
7480 .) srcdir=.
7481 if test -z "$ac_dots"; then top_srcdir=.
7482 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7483 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7484 *) # Relative path.
7485 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7486 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7487 esac
7489 case "$ac_given_INSTALL" in
7490 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7491 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7492 esac
7494 echo creating "$ac_file"
7495 rm -f "$ac_file"
7496 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7497 case "$ac_file" in
7498 *Makefile*) ac_comsub="1i\\
7499 # $configure_input" ;;
7500 *) ac_comsub= ;;
7501 esac
7503 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7504 sed -e "$ac_comsub
7505 s%@configure_input@%$configure_input%g
7506 s%@srcdir@%$srcdir%g
7507 s%@top_srcdir@%$top_srcdir%g
7508 s%@INSTALL@%$INSTALL%g
7509 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7510 fi; done
7511 rm -f conftest.s*
7513 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7514 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7516 # ac_d sets the value in "#define NAME VALUE" lines.
7517 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7518 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7519 ac_dC='\3'
7520 ac_dD='%g'
7521 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7522 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7523 ac_uB='\([ ]\)%\1#\2define\3'
7524 ac_uC=' '
7525 ac_uD='\4%g'
7526 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7527 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7528 ac_eB='$%\1#\2define\3'
7529 ac_eC=' '
7530 ac_eD='%g'
7532 if test "${CONFIG_HEADERS+set}" != set; then
7534 cat >> $CONFIG_STATUS <<EOF
7535 CONFIG_HEADERS="include/config.h"
7537 cat >> $CONFIG_STATUS <<\EOF
7539 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7540 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7541 case "$ac_file" in
7542 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7543 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7544 *) ac_file_in="${ac_file}.in" ;;
7545 esac
7547 echo creating $ac_file
7549 rm -f conftest.frag conftest.in conftest.out
7550 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7551 cat $ac_file_inputs > conftest.in
7555 # Transform confdefs.h into a sed script conftest.vals that substitutes
7556 # the proper values into config.h.in to produce config.h. And first:
7557 # Protect against being on the right side of a sed subst in config.status.
7558 # Protect against being in an unquoted here document in config.status.
7559 rm -f conftest.vals
7560 cat > conftest.hdr <<\EOF
7561 s/[\\&%]/\\&/g
7562 s%[\\$`]%\\&%g
7563 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7564 s%ac_d%ac_u%gp
7565 s%ac_u%ac_e%gp
7567 sed -n -f conftest.hdr confdefs.h > conftest.vals
7568 rm -f conftest.hdr
7570 # This sed command replaces #undef with comments. This is necessary, for
7571 # example, in the case of _POSIX_SOURCE, which is predefined and required
7572 # on some systems where configure will not decide to define it.
7573 cat >> conftest.vals <<\EOF
7574 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7577 # Break up conftest.vals because some shells have a limit on
7578 # the size of here documents, and old seds have small limits too.
7580 rm -f conftest.tail
7581 while :
7583 ac_lines=`grep -c . conftest.vals`
7584 # grep -c gives empty output for an empty file on some AIX systems.
7585 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7586 # Write a limited-size here document to conftest.frag.
7587 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7588 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7589 echo 'CEOF
7590 sed -f conftest.frag conftest.in > conftest.out
7591 rm -f conftest.in
7592 mv conftest.out conftest.in
7593 ' >> $CONFIG_STATUS
7594 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7595 rm -f conftest.vals
7596 mv conftest.tail conftest.vals
7597 done
7598 rm -f conftest.vals
7600 cat >> $CONFIG_STATUS <<\EOF
7601 rm -f conftest.frag conftest.h
7602 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7603 cat conftest.in >> conftest.h
7604 rm -f conftest.in
7605 if cmp -s $ac_file conftest.h 2>/dev/null; then
7606 echo "$ac_file is unchanged"
7607 rm -f conftest.h
7608 else
7609 # Remove last slash and all that follows it. Not all systems have dirname.
7610 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7611 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7612 # The file is in a subdirectory.
7613 test ! -d "$ac_dir" && mkdir "$ac_dir"
7615 rm -f $ac_file
7616 mv conftest.h $ac_file
7618 fi; done
7621 cat >> $CONFIG_STATUS <<EOF
7625 cat >> $CONFIG_STATUS <<\EOF
7627 extra_subdirs="\
7628 dlls/ddraw/d3ddevice \
7629 dlls/ddraw/dclipper \
7630 dlls/ddraw/ddraw \
7631 dlls/ddraw/direct3d \
7632 dlls/ddraw/dpalette \
7633 dlls/ddraw/dsurface \
7634 dlls/dinput/joystick \
7635 dlls/dinput/keyboard \
7636 dlls/dinput/mouse \
7637 dlls/kernel/messages \
7638 dlls/user/dde \
7639 dlls/user/resources \
7640 dlls/wineps/data \
7642 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7644 exit 0
7646 chmod +x $CONFIG_STATUS
7647 rm -fr confdefs* $ac_clean_files
7648 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7651 if test "$have_x" = "no"
7652 then
7653 echo
7654 echo "*** Warning: X development files not found. Wine will be built without"
7655 echo "*** X support, which currently does not work, and would probably not be"
7656 echo "*** what you want anyway. You will need to install devel packages of"
7657 echo "*** Xlib/Xfree86 and Xpm at the very least."
7658 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7659 then
7660 echo
7661 echo "*** Warning: Xpm development files not found. Wine will be built without"
7662 echo "*** Xpm support, which currently does not work. You will need to install"
7663 echo "*** devel packages of Xpm."
7666 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7667 then
7668 echo
7669 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7670 echo "*** terminal resize support. Consider upgrading ncurses."
7673 if test "$wine_cv_libc_reentrant" = "no"
7674 then
7675 echo
7676 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7677 echo "*** thread support. Consider upgrading libc to a more recent"
7678 echo "*** reentrant version of libc."
7681 if test "$wine_cv_opengl_version_OK" = "no"
7682 then
7683 echo
7684 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7685 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7688 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7689 then
7690 echo
7691 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7692 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7693 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7694 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7697 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7698 then
7699 echo
7700 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7701 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7702 echo "*** support before reporting bugs."
7705 if test "$wine_cv_warn_cups_h" = "yes"
7706 then
7707 echo
7708 echo "*** Note: You have cups runtime libraries, but no development"
7709 echo "*** libraries. Install the cups-devel package or whichever package"
7710 echo "*** contains cups.h to enable CUPS support in WINE."
7713 if test "$wine_cv_msg_freetype" = "yes"
7714 then
7715 echo
7716 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7717 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7718 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7719 echo "*** enable Wine to use TrueType fonts."
7722 echo
7723 echo "Configure finished. Do 'make depend && make' to compile Wine."
7724 echo