Comment out/ifdef out unused code and variables.
[wine/gsoc_dplay.git] / configure
blob0076faab6c7cbbcc080a8724cd834a211145e9a8
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
2767 UTILLIBS=""
2769 for ac_func in openpty
2771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2772 echo "configure:2773: checking for $ac_func" >&5
2773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2775 else
2776 cat > conftest.$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2779 /* System header to define __stub macros and hopefully few prototypes,
2780 which can conflict with char $ac_func(); below. */
2781 #include <assert.h>
2782 /* Override any gcc2 internal prototype to avoid an error. */
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2785 char $ac_func();
2787 int main() {
2789 /* The GNU C library defines this for functions which it implements
2790 to always fail with ENOSYS. Some functions are actually named
2791 something starting with __ and the normal name is an alias. */
2792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2793 choke me
2794 #else
2795 $ac_func();
2796 #endif
2798 ; return 0; }
2800 if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2801 rm -rf conftest*
2802 eval "ac_cv_func_$ac_func=yes"
2803 else
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2806 rm -rf conftest*
2807 eval "ac_cv_func_$ac_func=no"
2809 rm -f conftest*
2812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2815 cat >> confdefs.h <<EOF
2816 #define $ac_tr_func 1
2819 else
2820 echo "$ac_t""no" 1>&6
2821 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2822 echo "configure:2823: checking for openpty in -lutil" >&5
2823 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2826 else
2827 ac_save_LIBS="$LIBS"
2828 LIBS="-lutil $LIBS"
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 /* Override any gcc2 internal prototype to avoid an error. */
2833 /* We use char because int might match the return type of a gcc2
2834 builtin and then its argument prototype would still apply. */
2835 char openpty();
2837 int main() {
2838 openpty()
2839 ; return 0; }
2841 if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2842 rm -rf conftest*
2843 eval "ac_cv_lib_$ac_lib_var=yes"
2844 else
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2847 rm -rf conftest*
2848 eval "ac_cv_lib_$ac_lib_var=no"
2850 rm -f conftest*
2851 LIBS="$ac_save_LIBS"
2854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 cat >> confdefs.h <<\EOF
2857 #define HAVE_OPENPTY 1
2860 UTILLIBS="-lutil"
2862 else
2863 echo "$ac_t""no" 1>&6
2867 done
2870 DLLIBS=""
2872 for ac_hdr in dlfcn.h
2874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2876 echo "configure:2877: checking for $ac_hdr" >&5
2877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2879 else
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 #include <$ac_hdr>
2885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2886 { (eval echo configure:2887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2888 if test -z "$ac_err"; then
2889 rm -rf conftest*
2890 eval "ac_cv_header_$ac_safe=yes"
2891 else
2892 echo "$ac_err" >&5
2893 echo "configure: failed program was:" >&5
2894 cat conftest.$ac_ext >&5
2895 rm -rf conftest*
2896 eval "ac_cv_header_$ac_safe=no"
2898 rm -f conftest*
2900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2901 echo "$ac_t""yes" 1>&6
2902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2903 cat >> confdefs.h <<EOF
2904 #define $ac_tr_hdr 1
2906 for ac_func in dlopen
2908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2909 echo "configure:2910: checking for $ac_func" >&5
2910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2912 else
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 /* System header to define __stub macros and hopefully few prototypes,
2917 which can conflict with char $ac_func(); below. */
2918 #include <assert.h>
2919 /* Override any gcc2 internal prototype to avoid an error. */
2920 /* We use char because int might match the return type of a gcc2
2921 builtin and then its argument prototype would still apply. */
2922 char $ac_func();
2924 int main() {
2926 /* The GNU C library defines this for functions which it implements
2927 to always fail with ENOSYS. Some functions are actually named
2928 something starting with __ and the normal name is an alias. */
2929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2930 choke me
2931 #else
2932 $ac_func();
2933 #endif
2935 ; return 0; }
2937 if { (eval echo configure:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2938 rm -rf conftest*
2939 eval "ac_cv_func_$ac_func=yes"
2940 else
2941 echo "configure: failed program was:" >&5
2942 cat conftest.$ac_ext >&5
2943 rm -rf conftest*
2944 eval "ac_cv_func_$ac_func=no"
2946 rm -f conftest*
2949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2950 echo "$ac_t""yes" 1>&6
2951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2952 cat >> confdefs.h <<EOF
2953 #define $ac_tr_func 1
2956 else
2957 echo "$ac_t""no" 1>&6
2958 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2959 echo "configure:2960: checking for dlopen in -ldl" >&5
2960 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2963 else
2964 ac_save_LIBS="$LIBS"
2965 LIBS="-ldl $LIBS"
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 /* Override any gcc2 internal prototype to avoid an error. */
2970 /* We use char because int might match the return type of a gcc2
2971 builtin and then its argument prototype would still apply. */
2972 char dlopen();
2974 int main() {
2975 dlopen()
2976 ; return 0; }
2978 if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2979 rm -rf conftest*
2980 eval "ac_cv_lib_$ac_lib_var=yes"
2981 else
2982 echo "configure: failed program was:" >&5
2983 cat conftest.$ac_ext >&5
2984 rm -rf conftest*
2985 eval "ac_cv_lib_$ac_lib_var=no"
2987 rm -f conftest*
2988 LIBS="$ac_save_LIBS"
2991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 cat >> confdefs.h <<\EOF
2994 #define HAVE_DLOPEN 1
2997 DLLIBS="-ldl"
2998 else
2999 echo "$ac_t""no" 1>&6
3000 LIBEXT="a"
3005 done
3007 else
3008 echo "$ac_t""no" 1>&6
3009 LIBEXT="a"
3012 done
3015 JPEGLIB=""
3017 for ac_hdr in jpeglib.h
3019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_hdr" >&5
3022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 #include <$ac_hdr>
3030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3031 { (eval echo configure:3032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3033 if test -z "$ac_err"; then
3034 rm -rf conftest*
3035 eval "ac_cv_header_$ac_safe=yes"
3036 else
3037 echo "$ac_err" >&5
3038 echo "configure: failed program was:" >&5
3039 cat conftest.$ac_ext >&5
3040 rm -rf conftest*
3041 eval "ac_cv_header_$ac_safe=no"
3043 rm -f conftest*
3045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3048 cat >> confdefs.h <<EOF
3049 #define $ac_tr_hdr 1
3051 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
3052 echo "configure:3053: checking for jpeg_start_decompress in -ljpeg" >&5
3053 ac_lib_var=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3056 else
3057 ac_save_LIBS="$LIBS"
3058 LIBS="-ljpeg $LIBS"
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3062 /* Override any gcc2 internal prototype to avoid an error. */
3063 /* We use char because int might match the return type of a gcc2
3064 builtin and then its argument prototype would still apply. */
3065 char jpeg_start_decompress();
3067 int main() {
3068 jpeg_start_decompress()
3069 ; return 0; }
3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3072 rm -rf conftest*
3073 eval "ac_cv_lib_$ac_lib_var=yes"
3074 else
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3077 rm -rf conftest*
3078 eval "ac_cv_lib_$ac_lib_var=no"
3080 rm -f conftest*
3081 LIBS="$ac_save_LIBS"
3084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3085 echo "$ac_t""yes" 1>&6
3086 cat >> confdefs.h <<\EOF
3087 #define HAVE_LIBJPEG 1
3090 JPEGLIB="-ljpeg"
3092 else
3093 echo "$ac_t""no" 1>&6
3097 else
3098 echo "$ac_t""no" 1>&6
3100 done
3106 XFILES=""
3108 OPENGLFILES=""
3110 GLU32FILES=""
3111 if test "$have_x" = "yes"
3112 then
3113 XLIB="-lXext -lX11"
3114 ac_save_CPPFLAGS="$CPPFLAGS"
3115 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3117 for ac_hdr in X11/Xlib.h
3119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_hdr" >&5
3122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3124 else
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 #include <$ac_hdr>
3130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3131 { (eval echo configure:3132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3133 if test -z "$ac_err"; then
3134 rm -rf conftest*
3135 eval "ac_cv_header_$ac_safe=yes"
3136 else
3137 echo "$ac_err" >&5
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3140 rm -rf conftest*
3141 eval "ac_cv_header_$ac_safe=no"
3143 rm -f conftest*
3145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3146 echo "$ac_t""yes" 1>&6
3147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3148 cat >> confdefs.h <<EOF
3149 #define $ac_tr_hdr 1
3152 for ac_hdr in X11/XKBlib.h
3154 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3155 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3156 echo "configure:3157: checking for $ac_hdr" >&5
3157 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3159 else
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3163 #include <$ac_hdr>
3165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3166 { (eval echo configure:3167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3168 if test -z "$ac_err"; then
3169 rm -rf conftest*
3170 eval "ac_cv_header_$ac_safe=yes"
3171 else
3172 echo "$ac_err" >&5
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 eval "ac_cv_header_$ac_safe=no"
3178 rm -f conftest*
3180 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3181 echo "$ac_t""yes" 1>&6
3182 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3183 cat >> confdefs.h <<EOF
3184 #define $ac_tr_hdr 1
3186 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3187 echo "configure:3188: checking for XkbQueryExtension in -lX11" >&5
3188 ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3191 else
3192 ac_save_LIBS="$LIBS"
3193 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 /* Override any gcc2 internal prototype to avoid an error. */
3198 /* We use char because int might match the return type of a gcc2
3199 builtin and then its argument prototype would still apply. */
3200 char XkbQueryExtension();
3202 int main() {
3203 XkbQueryExtension()
3204 ; return 0; }
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3207 rm -rf conftest*
3208 eval "ac_cv_lib_$ac_lib_var=yes"
3209 else
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 rm -rf conftest*
3213 eval "ac_cv_lib_$ac_lib_var=no"
3215 rm -f conftest*
3216 LIBS="$ac_save_LIBS"
3219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3220 echo "$ac_t""yes" 1>&6
3221 cat >> confdefs.h <<\EOF
3222 #define HAVE_XKB 1
3225 else
3226 echo "$ac_t""no" 1>&6
3230 else
3231 echo "$ac_t""no" 1>&6
3232 echo "configure: warning: XKB extension not found!!" 1>&2
3235 done
3238 for ac_hdr in X11/extensions/XShm.h
3240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3242 echo "configure:3243: checking for $ac_hdr" >&5
3243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3245 else
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <$ac_hdr>
3251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3252 { (eval echo configure:3253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3254 if test -z "$ac_err"; then
3255 rm -rf conftest*
3256 eval "ac_cv_header_$ac_safe=yes"
3257 else
3258 echo "$ac_err" >&5
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 rm -rf conftest*
3262 eval "ac_cv_header_$ac_safe=no"
3264 rm -f conftest*
3266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3267 echo "$ac_t""yes" 1>&6
3268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3269 cat >> confdefs.h <<EOF
3270 #define $ac_tr_hdr 1
3272 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3273 echo "configure:3274: checking for XShmQueryExtension in -lXext" >&5
3274 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3277 else
3278 ac_save_LIBS="$LIBS"
3279 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 /* Override any gcc2 internal prototype to avoid an error. */
3284 /* We use char because int might match the return type of a gcc2
3285 builtin and then its argument prototype would still apply. */
3286 char XShmQueryExtension();
3288 int main() {
3289 XShmQueryExtension()
3290 ; return 0; }
3292 if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3293 rm -rf conftest*
3294 eval "ac_cv_lib_$ac_lib_var=yes"
3295 else
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3298 rm -rf conftest*
3299 eval "ac_cv_lib_$ac_lib_var=no"
3301 rm -f conftest*
3302 LIBS="$ac_save_LIBS"
3305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3306 echo "$ac_t""yes" 1>&6
3307 cat >> confdefs.h <<\EOF
3308 #define HAVE_LIBXXSHM 1
3311 else
3312 echo "$ac_t""no" 1>&6
3316 else
3317 echo "$ac_t""no" 1>&6
3318 echo "configure: warning: Xshm extension not found!!" 1>&2
3321 done
3324 for ac_hdr in X11/extensions/shape.h
3326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3328 echo "configure:3329: checking for $ac_hdr" >&5
3329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3331 else
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <$ac_hdr>
3337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3338 { (eval echo configure:3339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3340 if test -z "$ac_err"; then
3341 rm -rf conftest*
3342 eval "ac_cv_header_$ac_safe=yes"
3343 else
3344 echo "$ac_err" >&5
3345 echo "configure: failed program was:" >&5
3346 cat conftest.$ac_ext >&5
3347 rm -rf conftest*
3348 eval "ac_cv_header_$ac_safe=no"
3350 rm -f conftest*
3352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3353 echo "$ac_t""yes" 1>&6
3354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3355 cat >> confdefs.h <<EOF
3356 #define $ac_tr_hdr 1
3358 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3359 echo "configure:3360: checking for XShapeQueryExtension in -lXext" >&5
3360 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 ac_save_LIBS="$LIBS"
3365 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 /* Override any gcc2 internal prototype to avoid an error. */
3370 /* We use char because int might match the return type of a gcc2
3371 builtin and then its argument prototype would still apply. */
3372 char XShapeQueryExtension();
3374 int main() {
3375 XShapeQueryExtension()
3376 ; return 0; }
3378 if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3379 rm -rf conftest*
3380 eval "ac_cv_lib_$ac_lib_var=yes"
3381 else
3382 echo "configure: failed program was:" >&5
3383 cat conftest.$ac_ext >&5
3384 rm -rf conftest*
3385 eval "ac_cv_lib_$ac_lib_var=no"
3387 rm -f conftest*
3388 LIBS="$ac_save_LIBS"
3391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 cat >> confdefs.h <<\EOF
3394 #define HAVE_LIBXSHAPE 1
3397 else
3398 echo "$ac_t""no" 1>&6
3402 else
3403 echo "$ac_t""no" 1>&6
3404 echo "configure: warning: XShape extension not found!!" 1>&2
3407 done
3410 for ac_hdr in X11/extensions/xf86dga.h
3412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3414 echo "configure:3415: checking for $ac_hdr" >&5
3415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3417 else
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 #include <$ac_hdr>
3423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3424 { (eval echo configure:3425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3426 if test -z "$ac_err"; then
3427 rm -rf conftest*
3428 eval "ac_cv_header_$ac_safe=yes"
3429 else
3430 echo "$ac_err" >&5
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 rm -rf conftest*
3434 eval "ac_cv_header_$ac_safe=no"
3436 rm -f conftest*
3438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3439 echo "$ac_t""yes" 1>&6
3440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3441 cat >> confdefs.h <<EOF
3442 #define $ac_tr_hdr 1
3444 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3445 echo "configure:3446: checking for XDGAQueryExtension in -lXxf86dga" >&5
3446 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3449 else
3450 ac_save_LIBS="$LIBS"
3451 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3452 $LIBS"
3453 cat > conftest.$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3456 /* Override any gcc2 internal prototype to avoid an error. */
3457 /* We use char because int might match the return type of a gcc2
3458 builtin and then its argument prototype would still apply. */
3459 char XDGAQueryExtension();
3461 int main() {
3462 XDGAQueryExtension()
3463 ; return 0; }
3465 if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3466 rm -rf conftest*
3467 eval "ac_cv_lib_$ac_lib_var=yes"
3468 else
3469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3471 rm -rf conftest*
3472 eval "ac_cv_lib_$ac_lib_var=no"
3474 rm -f conftest*
3475 LIBS="$ac_save_LIBS"
3478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3479 echo "$ac_t""yes" 1>&6
3480 cat >> confdefs.h <<\EOF
3481 #define HAVE_LIBXXF86DGA2 1
3484 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3486 else
3487 echo "$ac_t""no" 1>&6
3488 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3489 echo "configure:3490: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3490 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3493 else
3494 ac_save_LIBS="$LIBS"
3495 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3496 $LIBS"
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 /* Override any gcc2 internal prototype to avoid an error. */
3501 /* We use char because int might match the return type of a gcc2
3502 builtin and then its argument prototype would still apply. */
3503 char XF86DGAQueryExtension();
3505 int main() {
3506 XF86DGAQueryExtension()
3507 ; return 0; }
3509 if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3510 rm -rf conftest*
3511 eval "ac_cv_lib_$ac_lib_var=yes"
3512 else
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3515 rm -rf conftest*
3516 eval "ac_cv_lib_$ac_lib_var=no"
3518 rm -f conftest*
3519 LIBS="$ac_save_LIBS"
3522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3523 echo "$ac_t""yes" 1>&6
3524 cat >> confdefs.h <<\EOF
3525 #define HAVE_LIBXXF86DGA 1
3528 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3530 else
3531 echo "$ac_t""no" 1>&6
3538 else
3539 echo "$ac_t""no" 1>&6
3540 echo "configure: warning: DGA extension not found!!" 1>&2
3543 done
3546 for ac_hdr in X11/extensions/xf86vmode.h
3548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3550 echo "configure:3551: checking for $ac_hdr" >&5
3551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3553 else
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 #include <$ac_hdr>
3559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3560 { (eval echo configure:3561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3562 if test -z "$ac_err"; then
3563 rm -rf conftest*
3564 eval "ac_cv_header_$ac_safe=yes"
3565 else
3566 echo "$ac_err" >&5
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3569 rm -rf conftest*
3570 eval "ac_cv_header_$ac_safe=no"
3572 rm -f conftest*
3574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3575 echo "$ac_t""yes" 1>&6
3576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3577 cat >> confdefs.h <<EOF
3578 #define $ac_tr_hdr 1
3580 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3581 echo "configure:3582: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3582 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3585 else
3586 ac_save_LIBS="$LIBS"
3587 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3588 $LIBS"
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3592 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3595 char XF86VidModeQueryExtension();
3597 int main() {
3598 XF86VidModeQueryExtension()
3599 ; return 0; }
3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3602 rm -rf conftest*
3603 eval "ac_cv_lib_$ac_lib_var=yes"
3604 else
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3607 rm -rf conftest*
3608 eval "ac_cv_lib_$ac_lib_var=no"
3610 rm -f conftest*
3611 LIBS="$ac_save_LIBS"
3614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3615 echo "$ac_t""yes" 1>&6
3616 cat >> confdefs.h <<\EOF
3617 #define HAVE_LIBXXF86VM 1
3620 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3622 else
3623 echo "$ac_t""no" 1>&6
3627 else
3628 echo "$ac_t""no" 1>&6
3629 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3632 done
3635 for ac_hdr in X11/extensions/Xvlib.h
3637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3639 echo "configure:3640: checking for $ac_hdr" >&5
3640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3642 else
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <$ac_hdr>
3648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3649 { (eval echo configure:3650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3651 if test -z "$ac_err"; then
3652 rm -rf conftest*
3653 eval "ac_cv_header_$ac_safe=yes"
3654 else
3655 echo "$ac_err" >&5
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 rm -rf conftest*
3659 eval "ac_cv_header_$ac_safe=no"
3661 rm -f conftest*
3663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3664 echo "$ac_t""yes" 1>&6
3665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3666 cat >> confdefs.h <<EOF
3667 #define $ac_tr_hdr 1
3669 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3670 echo "configure:3671: checking for XvShmCreateImage in -lXv" >&5
3671 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3674 else
3675 ac_save_LIBS="$LIBS"
3676 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3677 $LIBS"
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 /* Override any gcc2 internal prototype to avoid an error. */
3682 /* We use char because int might match the return type of a gcc2
3683 builtin and then its argument prototype would still apply. */
3684 char XvShmCreateImage();
3686 int main() {
3687 XvShmCreateImage()
3688 ; return 0; }
3690 if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3691 rm -rf conftest*
3692 eval "ac_cv_lib_$ac_lib_var=yes"
3693 else
3694 echo "configure: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3696 rm -rf conftest*
3697 eval "ac_cv_lib_$ac_lib_var=no"
3699 rm -f conftest*
3700 LIBS="$ac_save_LIBS"
3703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3705 cat >> confdefs.h <<\EOF
3706 #define HAVE_XVIDEO 1
3709 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3711 else
3712 echo "$ac_t""no" 1>&6
3716 else
3717 echo "$ac_t""no" 1>&6
3718 echo "configure: warning: XVideo extension not found !!" 1>&2
3721 done
3724 for ac_hdr in X11/extensions/Xrender.h
3726 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3727 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $ac_hdr" >&5
3729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3731 else
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 #include <$ac_hdr>
3737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3738 { (eval echo configure:3739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3740 if test -z "$ac_err"; then
3741 rm -rf conftest*
3742 eval "ac_cv_header_$ac_safe=yes"
3743 else
3744 echo "$ac_err" >&5
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3747 rm -rf conftest*
3748 eval "ac_cv_header_$ac_safe=no"
3750 rm -f conftest*
3752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3753 echo "$ac_t""yes" 1>&6
3754 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3755 cat >> confdefs.h <<EOF
3756 #define $ac_tr_hdr 1
3758 echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
3759 echo "configure:3760: checking for XRenderQueryExtension in -lXrender" >&5
3760 ac_lib_var=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
3761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3763 else
3764 ac_save_LIBS="$LIBS"
3765 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3766 $LIBS"
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 /* Override any gcc2 internal prototype to avoid an error. */
3771 /* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
3773 char XRenderQueryExtension();
3775 int main() {
3776 XRenderQueryExtension()
3777 ; return 0; }
3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3780 rm -rf conftest*
3781 eval "ac_cv_lib_$ac_lib_var=yes"
3782 else
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3785 rm -rf conftest*
3786 eval "ac_cv_lib_$ac_lib_var=no"
3788 rm -f conftest*
3789 LIBS="$ac_save_LIBS"
3792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3794 cat >> confdefs.h <<\EOF
3795 #define HAVE_LIBXRENDER 1
3798 X_PRE_LIBS="$X_PRE_LIBS -lXrender"
3800 else
3801 echo "$ac_t""no" 1>&6
3805 else
3806 echo "$ac_t""no" 1>&6
3807 echo "configure: warning: XRender extension not found !!" 1>&2
3810 done
3815 else
3816 echo "$ac_t""no" 1>&6
3818 done
3820 if test $OPENGL = "yes" -o $OPENGL = "normal"
3821 then
3822 if test -e /usr/X11R6/lib/libGL.a -a ! -e /usr/X11R6/lib/libGL.so
3823 then
3824 { echo "configure: error: /usr/X11R6/lib/libGL.a is present on your system.
3825 This prevents linking to OpenGL. Delete the file and restart configure." 1>&2; exit 1; }
3828 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3832 echo "configure:3833: checking for $ac_hdr" >&5
3833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3835 else
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <$ac_hdr>
3841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3842 { (eval echo configure:3843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3844 if test -z "$ac_err"; then
3845 rm -rf conftest*
3846 eval "ac_cv_header_$ac_safe=yes"
3847 else
3848 echo "$ac_err" >&5
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3851 rm -rf conftest*
3852 eval "ac_cv_header_$ac_safe=no"
3854 rm -f conftest*
3856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3859 cat >> confdefs.h <<EOF
3860 #define $ac_tr_hdr 1
3863 else
3864 echo "$ac_t""no" 1>&6
3866 done
3868 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3869 then
3870 echo $ac_n "checking for up-to-date OpenGL version""... $ac_c" 1>&6
3871 echo "configure:3872: checking for up-to-date OpenGL version" >&5
3872 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3874 else
3875 cat > conftest.$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3878 #include <GL/gl.h>
3879 int main() {
3880 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3881 ; return 0; }
3883 if { (eval echo configure:3884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3884 rm -rf conftest*
3885 wine_cv_opengl_version_OK="yes"
3886 else
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3889 rm -rf conftest*
3890 wine_cv_opengl_version_OK="no"
3893 rm -f conftest*
3897 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3899 echo $ac_n "checking for thread-safe OpenGL version""... $ac_c" 1>&6
3900 echo "configure:3901: checking for thread-safe OpenGL version" >&5
3901 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3903 else
3904 saved_libs=$LIBS
3905 LIBS="$X_LIBS -lGL"
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3910 int main() {
3911 pthread_getspecific();
3912 ; return 0; }
3914 if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3915 rm -rf conftest*
3916 wine_cv_opengl_version_threadsafe="yes"
3917 else
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3920 rm -rf conftest*
3921 wine_cv_opengl_version_threadsafe="no"
3923 rm -f conftest*
3924 LIBS=$saved_libs
3928 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3930 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3931 then
3932 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3933 echo "configure:3934: checking for glXCreateContext in -lGL" >&5
3934 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3937 else
3938 ac_save_LIBS="$LIBS"
3939 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 /* Override any gcc2 internal prototype to avoid an error. */
3944 /* We use char because int might match the return type of a gcc2
3945 builtin and then its argument prototype would still apply. */
3946 char glXCreateContext();
3948 int main() {
3949 glXCreateContext()
3950 ; return 0; }
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3953 rm -rf conftest*
3954 eval "ac_cv_lib_$ac_lib_var=yes"
3955 else
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3958 rm -rf conftest*
3959 eval "ac_cv_lib_$ac_lib_var=no"
3961 rm -f conftest*
3962 LIBS="$ac_save_LIBS"
3965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3966 echo "$ac_t""yes" 1>&6
3967 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3969 else
3970 echo "$ac_t""no" 1>&6
3974 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
3975 then
3976 OPENGLFILES='$(OPENGLFILES)'
3977 cat >> confdefs.h <<\EOF
3978 #define HAVE_OPENGL 1
3982 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3983 echo "configure:3984: checking for glXGetProcAddressARB in -lGL" >&5
3984 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3987 else
3988 ac_save_LIBS="$LIBS"
3989 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3990 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3993 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3996 char glXGetProcAddressARB();
3998 int main() {
3999 glXGetProcAddressARB()
4000 ; return 0; }
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4003 rm -rf conftest*
4004 eval "ac_cv_lib_$ac_lib_var=yes"
4005 else
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4008 rm -rf conftest*
4009 eval "ac_cv_lib_$ac_lib_var=no"
4011 rm -f conftest*
4012 LIBS="$ac_save_LIBS"
4015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4016 echo "$ac_t""yes" 1>&6
4017 cat >> confdefs.h <<\EOF
4018 #define HAVE_GLX_GETPROCADDRESS 1
4021 else
4022 echo "$ac_t""no" 1>&6
4026 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
4027 then
4028 echo $ac_n "checking for OpenGL extension functions prototypes""... $ac_c" 1>&6
4029 echo "configure:4030: checking for OpenGL extension functions prototypes" >&5
4030 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4032 else
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 #include <GL/gl.h>
4037 #ifdef HAVE_GL_GLEXT_H
4038 # include <GL/glext.h>
4039 #endif
4041 int main() {
4042 PFNGLCOLORTABLEEXTPROC test_proc;
4043 ; return 0; }
4045 if { (eval echo configure:4046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4046 rm -rf conftest*
4047 wine_cv_extension_prototypes="yes"
4048 else
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 rm -rf conftest*
4052 wine_cv_extension_prototypes="no"
4055 rm -f conftest*
4059 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
4060 if test "$wine_cv_extension_prototypes" = "yes"
4061 then
4062 cat >> confdefs.h <<\EOF
4063 #define HAVE_GLEXT_PROTOTYPES 1
4070 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
4071 echo "configure:4072: checking for gluLookAt in -lGLU" >&5
4072 ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
4073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4075 else
4076 ac_save_LIBS="$LIBS"
4077 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4078 $LIBS"
4079 cat > conftest.$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4085 char gluLookAt();
4087 int main() {
4088 gluLookAt()
4089 ; return 0; }
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4092 rm -rf conftest*
4093 eval "ac_cv_lib_$ac_lib_var=yes"
4094 else
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4097 rm -rf conftest*
4098 eval "ac_cv_lib_$ac_lib_var=no"
4100 rm -f conftest*
4101 LIBS="$ac_save_LIBS"
4104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4107 GLU32FILES='$(GLU32FILES)'
4109 else
4110 echo "$ac_t""no" 1>&6
4117 CPPFLAGS="$ac_save_CPPFLAGS"
4118 XFILES='$(XFILES)'
4119 else
4120 XLIB=""
4121 X_CFLAGS=""
4122 X_LIBS=""
4125 CURSESLIBS=""
4126 if test "$CURSES" = "yes"
4127 then
4128 for ac_hdr in ncurses.h
4130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4132 echo "configure:4133: checking for $ac_hdr" >&5
4133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4135 else
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 #include <$ac_hdr>
4141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4142 { (eval echo configure:4143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4144 if test -z "$ac_err"; then
4145 rm -rf conftest*
4146 eval "ac_cv_header_$ac_safe=yes"
4147 else
4148 echo "$ac_err" >&5
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4151 rm -rf conftest*
4152 eval "ac_cv_header_$ac_safe=no"
4154 rm -f conftest*
4156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4159 cat >> confdefs.h <<EOF
4160 #define $ac_tr_hdr 1
4162 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4163 echo "configure:4164: checking for waddch in -lncurses" >&5
4164 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4167 else
4168 ac_save_LIBS="$LIBS"
4169 LIBS="-lncurses $LIBS"
4170 cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 /* Override any gcc2 internal prototype to avoid an error. */
4174 /* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
4176 char waddch();
4178 int main() {
4179 waddch()
4180 ; return 0; }
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4183 rm -rf conftest*
4184 eval "ac_cv_lib_$ac_lib_var=yes"
4185 else
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4188 rm -rf conftest*
4189 eval "ac_cv_lib_$ac_lib_var=no"
4191 rm -f conftest*
4192 LIBS="$ac_save_LIBS"
4195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4197 cat >> confdefs.h <<\EOF
4198 #define HAVE_LIBNCURSES 1
4201 CURSESLIBS="-lncurses"
4202 else
4203 echo "$ac_t""no" 1>&6
4204 for ac_hdr in curses.h
4206 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4208 echo "configure:4209: checking for $ac_hdr" >&5
4209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4211 else
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4215 #include <$ac_hdr>
4217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4218 { (eval echo configure:4219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4220 if test -z "$ac_err"; then
4221 rm -rf conftest*
4222 eval "ac_cv_header_$ac_safe=yes"
4223 else
4224 echo "$ac_err" >&5
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 rm -rf conftest*
4228 eval "ac_cv_header_$ac_safe=no"
4230 rm -f conftest*
4232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4233 echo "$ac_t""yes" 1>&6
4234 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4235 cat >> confdefs.h <<EOF
4236 #define $ac_tr_hdr 1
4238 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4239 echo "configure:4240: checking for waddch in -lcurses" >&5
4240 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4243 else
4244 ac_save_LIBS="$LIBS"
4245 LIBS="-lcurses $LIBS"
4246 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 /* Override any gcc2 internal prototype to avoid an error. */
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4252 char waddch();
4254 int main() {
4255 waddch()
4256 ; return 0; }
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4259 rm -rf conftest*
4260 eval "ac_cv_lib_$ac_lib_var=yes"
4261 else
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4264 rm -rf conftest*
4265 eval "ac_cv_lib_$ac_lib_var=no"
4267 rm -f conftest*
4268 LIBS="$ac_save_LIBS"
4271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 cat >> confdefs.h <<\EOF
4274 #define HAVE_LIBCURSES 1
4277 CURSESLIBS="-lcurses"
4278 else
4279 echo "$ac_t""no" 1>&6
4282 else
4283 echo "$ac_t""no" 1>&6
4285 done
4289 else
4290 echo "$ac_t""no" 1>&6
4292 done
4294 saved_libs="$LIBS"
4295 LIBS="$CURSESLIBS $LIBS"
4296 for ac_func in getbkgd resizeterm
4298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4299 echo "configure:4300: checking for $ac_func" >&5
4300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4302 else
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 /* System header to define __stub macros and hopefully few prototypes,
4307 which can conflict with char $ac_func(); below. */
4308 #include <assert.h>
4309 /* Override any gcc2 internal prototype to avoid an error. */
4310 /* We use char because int might match the return type of a gcc2
4311 builtin and then its argument prototype would still apply. */
4312 char $ac_func();
4314 int main() {
4316 /* The GNU C library defines this for functions which it implements
4317 to always fail with ENOSYS. Some functions are actually named
4318 something starting with __ and the normal name is an alias. */
4319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4320 choke me
4321 #else
4322 $ac_func();
4323 #endif
4325 ; return 0; }
4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4328 rm -rf conftest*
4329 eval "ac_cv_func_$ac_func=yes"
4330 else
4331 echo "configure: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4333 rm -rf conftest*
4334 eval "ac_cv_func_$ac_func=no"
4336 rm -f conftest*
4339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4340 echo "$ac_t""yes" 1>&6
4341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4342 cat >> confdefs.h <<EOF
4343 #define $ac_tr_func 1
4346 else
4347 echo "$ac_t""no" 1>&6
4349 done
4351 LIBS="$saved_libs"
4355 CUPSLIBS=""
4356 wine_cv_warn_cups_h=no
4357 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4358 echo "configure:4359: checking for cupsGetPPD in -lcups" >&5
4359 ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4362 else
4363 ac_save_LIBS="$LIBS"
4364 LIBS="-lcups $LIBS"
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 /* Override any gcc2 internal prototype to avoid an error. */
4369 /* We use char because int might match the return type of a gcc2
4370 builtin and then its argument prototype would still apply. */
4371 char cupsGetPPD();
4373 int main() {
4374 cupsGetPPD()
4375 ; return 0; }
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4378 rm -rf conftest*
4379 eval "ac_cv_lib_$ac_lib_var=yes"
4380 else
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4383 rm -rf conftest*
4384 eval "ac_cv_lib_$ac_lib_var=no"
4386 rm -f conftest*
4387 LIBS="$ac_save_LIBS"
4390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4393 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4394 echo "configure:4395: checking for cups/cups.h" >&5
4395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4397 else
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 #include <cups/cups.h>
4403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4404 { (eval echo configure:4405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4406 if test -z "$ac_err"; then
4407 rm -rf conftest*
4408 eval "ac_cv_header_$ac_safe=yes"
4409 else
4410 echo "$ac_err" >&5
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4413 rm -rf conftest*
4414 eval "ac_cv_header_$ac_safe=no"
4416 rm -f conftest*
4418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4419 echo "$ac_t""yes" 1>&6
4420 cat >> confdefs.h <<\EOF
4421 #define HAVE_CUPS 1
4424 CUPSLIBS="-lcups"
4425 else
4426 echo "$ac_t""no" 1>&6
4427 wine_cv_warn_cups_h=yes
4431 else
4432 echo "$ac_t""no" 1>&6
4437 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4438 echo "configure:4439: checking for FT_Init_FreeType in -lfreetype" >&5
4439 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4442 else
4443 ac_save_LIBS="$LIBS"
4444 LIBS="-lfreetype $X_LIBS $LIBS"
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 /* Override any gcc2 internal prototype to avoid an error. */
4449 /* We use char because int might match the return type of a gcc2
4450 builtin and then its argument prototype would still apply. */
4451 char FT_Init_FreeType();
4453 int main() {
4454 FT_Init_FreeType()
4455 ; return 0; }
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4458 rm -rf conftest*
4459 eval "ac_cv_lib_$ac_lib_var=yes"
4460 else
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4463 rm -rf conftest*
4464 eval "ac_cv_lib_$ac_lib_var=no"
4466 rm -f conftest*
4467 LIBS="$ac_save_LIBS"
4470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4472 ft_lib=yes
4473 else
4474 echo "$ac_t""no" 1>&6
4475 ft_lib=no
4478 if test "$ft_lib" = "no"
4479 then
4480 FREETYPELIBS=""
4481 FREETYPEINCL=""
4482 wine_cv_msg_freetype=no
4483 else
4484 # Extract the first word of "freetype-config", so it can be a program name with args.
4485 set dummy freetype-config; ac_word=$2
4486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_word" >&5
4488 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4490 else
4491 if test -n "$ft_devel"; then
4492 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4493 else
4494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4495 ac_dummy="$PATH"
4496 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f $ac_dir/$ac_word; then
4499 ac_cv_prog_ft_devel="freetype-config"
4500 break
4502 done
4503 IFS="$ac_save_ifs"
4504 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4507 ft_devel="$ac_cv_prog_ft_devel"
4508 if test -n "$ft_devel"; then
4509 echo "$ac_t""$ft_devel" 1>&6
4510 else
4511 echo "$ac_t""no" 1>&6
4514 if test "$ft_devel" = "no"
4515 then
4516 # Extract the first word of "freetype2-config", so it can be a program name with args.
4517 set dummy freetype2-config; ac_word=$2
4518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4519 echo "configure:4520: checking for $ac_word" >&5
4520 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4522 else
4523 if test -n "$ft_devel2"; then
4524 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4525 else
4526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4527 ac_dummy="$PATH"
4528 for ac_dir in $ac_dummy; do
4529 test -z "$ac_dir" && ac_dir=.
4530 if test -f $ac_dir/$ac_word; then
4531 ac_cv_prog_ft_devel2="freetype2-config"
4532 break
4534 done
4535 IFS="$ac_save_ifs"
4536 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4539 ft_devel2="$ac_cv_prog_ft_devel2"
4540 if test -n "$ft_devel2"; then
4541 echo "$ac_t""$ft_devel2" 1>&6
4542 else
4543 echo "$ac_t""no" 1>&6
4546 if test "$ft_devel2" = "freetype2-config"
4547 then
4548 ft_devel=$ft_devel2
4551 if test "$ft_devel" = "no"
4552 then
4553 FREETYPELIBS=""
4554 FREETYPEINCL=""
4555 wine_cv_msg_freetype=yes
4556 else
4557 cat >> confdefs.h <<\EOF
4558 #define HAVE_FREETYPE 1
4561 FREETYPELIBS=`$ft_devel --libs`
4562 FREETYPEINCL=`$ft_devel --cflags`
4563 ac_save_CPPFLAGS="$CPPFLAGS"
4564 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4565 for ac_hdr in freetype/freetype.h \
4566 freetype/ftglyph.h \
4567 freetype/tttables.h \
4568 freetype/ftnames.h \
4569 freetype/ftsnames.h \
4570 freetype/ttnameid.h \
4571 freetype/ftoutln.h \
4572 freetype/internal/sfnt.h
4574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4576 echo "configure:4577: checking for $ac_hdr" >&5
4577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4579 else
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 #include <$ac_hdr>
4585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4586 { (eval echo configure:4587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4588 if test -z "$ac_err"; then
4589 rm -rf conftest*
4590 eval "ac_cv_header_$ac_safe=yes"
4591 else
4592 echo "$ac_err" >&5
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4595 rm -rf conftest*
4596 eval "ac_cv_header_$ac_safe=no"
4598 rm -f conftest*
4600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4601 echo "$ac_t""yes" 1>&6
4602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4603 cat >> confdefs.h <<EOF
4604 #define $ac_tr_hdr 1
4607 else
4608 echo "$ac_t""no" 1>&6
4610 done
4612 CPPFLAGS="$ac_save_CPPFLAGS"
4613 wine_cv_msg_freetype=no
4619 echo $ac_n "checking for parport header/ppdev.h""... $ac_c" 1>&6
4620 echo "configure:4621: checking for parport header/ppdev.h" >&5
4621 if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4623 else
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 #include <linux/ppdev.h>
4628 int main() {
4629 ioctl (1,PPCLAIM,0)
4630 ; return 0; }
4632 if { (eval echo configure:4633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4633 rm -rf conftest*
4634 ac_cv_c_ppdev="yes"
4635 else
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4638 rm -rf conftest*
4639 ac_cv_c_ppdev="no"
4641 rm -f conftest*
4645 echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4646 if test "$ac_cv_c_ppdev" = "yes"
4647 then
4648 cat >> confdefs.h <<\EOF
4649 #define HAVE_PPDEV 1
4654 echo $ac_n "checking for GNU style IPX support""... $ac_c" 1>&6
4655 echo "configure:4656: checking for GNU style IPX support" >&5
4656 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4658 else
4659 cat > conftest.$ac_ext <<EOF
4660 #line 4661 "configure"
4661 #include "confdefs.h"
4662 #include <sys/socket.h>
4663 #include <netipx/ipx.h>
4664 int main() {
4665 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4666 ; return 0; }
4668 if { (eval echo configure:4669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4669 rm -rf conftest*
4670 ac_cv_c_ipx_gnu="yes"
4671 else
4672 echo "configure: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4674 rm -rf conftest*
4675 ac_cv_c_ipx_gnu="no"
4677 rm -f conftest*
4681 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4682 if test "$ac_cv_c_ipx_gnu" = "yes"
4683 then
4684 cat >> confdefs.h <<\EOF
4685 #define HAVE_IPX_GNU 1
4690 if test "$ac_cv_c_ipx_gnu" = "no"
4691 then
4692 echo $ac_n "checking for linux style IPX support""... $ac_c" 1>&6
4693 echo "configure:4694: checking for linux style IPX support" >&5
4694 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4696 else
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4700 #include <sys/socket.h>
4701 #include <asm/types.h>
4702 #include <linux/ipx.h>
4703 int main() {
4704 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4705 ; return 0; }
4707 if { (eval echo configure:4708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4708 rm -rf conftest*
4709 ac_cv_c_ipx_linux="yes"
4710 else
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 rm -rf conftest*
4714 ac_cv_c_ipx_linux="no"
4716 rm -f conftest*
4720 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4721 if test "$ac_cv_c_ipx_linux" = "yes"
4722 then
4723 cat >> confdefs.h <<\EOF
4724 #define HAVE_IPX_LINUX 1
4730 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_hdr" >&5
4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4737 else
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 #include <$ac_hdr>
4743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4744 { (eval echo configure:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4746 if test -z "$ac_err"; then
4747 rm -rf conftest*
4748 eval "ac_cv_header_$ac_safe=yes"
4749 else
4750 echo "$ac_err" >&5
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 rm -rf conftest*
4754 eval "ac_cv_header_$ac_safe=no"
4756 rm -f conftest*
4758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4761 cat >> confdefs.h <<EOF
4762 #define $ac_tr_hdr 1
4764 break
4765 else
4766 echo "$ac_t""no" 1>&6
4768 done
4771 echo $ac_n "checking for Open Sound System""... $ac_c" 1>&6
4772 echo "configure:4773: checking for Open Sound System" >&5
4773 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4775 else
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4780 #if defined(HAVE_SYS_SOUNDCARD_H)
4781 #include <sys/soundcard.h>
4782 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4783 #include <machine/soundcard.h>
4784 #elif defined(HAVE_SOUNDCARD_H)
4785 #include <soundcard.h>
4786 #endif
4788 int main() {
4791 /* check for one of the Open Sound System specific SNDCTL_ defines */
4792 #if !defined(SNDCTL_DSP_STEREO)
4793 #error No open sound system
4794 #endif
4796 ; return 0; }
4798 if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4799 rm -rf conftest*
4800 ac_cv_c_opensoundsystem="yes"
4801 else
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4804 rm -rf conftest*
4805 ac_cv_c_opensoundsystem="no"
4807 rm -f conftest*
4810 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4812 if test "$ac_cv_c_opensoundsystem" = "yes"
4813 then
4814 cat >> confdefs.h <<\EOF
4815 #define HAVE_OSS 1
4820 echo $ac_n "checking for Open Sound System/MIDI interface""... $ac_c" 1>&6
4821 echo "configure:4822: checking for Open Sound System/MIDI interface" >&5
4822 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4824 else
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4829 #if defined(HAVE_SYS_SOUNDCARD_H)
4830 #include <sys/soundcard.h>
4831 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4832 #include <machine/soundcard.h>
4833 #elif defined(HAVE_SOUNDCARD_H)
4834 #include <soundcard.h>
4835 #endif
4837 int main() {
4840 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4841 #if !defined(SNDCTL_SEQ_SYNC)
4842 #error No open sound system MIDI interface
4843 #endif
4845 ; return 0; }
4847 if { (eval echo configure:4848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4848 rm -rf conftest*
4849 ac_cv_c_opensoundsystem_midi="yes"
4850 else
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4853 rm -rf conftest*
4854 ac_cv_c_opensoundsystem_midi="no"
4856 rm -f conftest*
4859 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4861 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4862 then
4863 cat >> confdefs.h <<\EOF
4864 #define HAVE_OSS_MIDI 1
4869 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4872 echo $ac_n "checking whether mmap64 works defined as mmap""... $ac_c" 1>&6
4873 echo "configure:4874: checking whether mmap64 works defined as mmap" >&5
4874 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4876 else
4877 if test "$cross_compiling" = yes; then
4878 ac_cv_mmap64_works="no"
4879 else
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4884 #define _FILE_OFFSET_BITS 64
4885 #include <stdio.h>
4886 #include <unistd.h>
4887 #include <fcntl.h>
4888 #include <sys/mman.h>
4889 #include <errno.h>
4891 int main(int argc,char **argv) {
4892 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4893 if (fd == -1) exit(1);
4895 unlink("conftest.map");
4897 write(fd,"test",4);
4899 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
4900 (errno == EINVAL)
4902 exit(1);
4904 close(fd);
4905 fprintf(stderr,"success!\n");
4906 exit(0);
4911 if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4912 then
4913 ac_cv_mmap64_works="yes"
4914 else
4915 echo "configure: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4917 rm -fr conftest*
4918 ac_cv_mmap64_works="no"
4920 rm -fr conftest*
4925 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
4927 if test "$ac_cv_mmap64_works" = "yes"
4928 then
4929 cat >> confdefs.h <<\EOF
4930 #define _FILE_OFFSET_BITS 64
4936 if test "x${GCC}" = "xyes"
4937 then
4938 CFLAGS="$CFLAGS -Wall"
4939 echo $ac_n "checking for gcc strength-reduce bug""... $ac_c" 1>&6
4940 echo "configure:4941: checking for gcc strength-reduce bug" >&5
4941 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4943 else
4944 if test "$cross_compiling" = yes; then
4945 ac_cv_c_gcc_strength_bug="yes"
4946 else
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4951 int L[4] = {0,1,2,3};
4952 int main(void) {
4953 static int Array[3];
4954 unsigned int B = 3;
4955 int i;
4956 for(i=0; i<B; i++) Array[i] = i - 3;
4957 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
4958 L[i] = 4;
4960 exit( Array[1] != -2 || L[2] != 3);
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4964 then
4965 ac_cv_c_gcc_strength_bug="no"
4966 else
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4969 rm -fr conftest*
4970 ac_cv_c_gcc_strength_bug="yes"
4972 rm -fr conftest*
4977 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4978 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4979 then
4980 CFLAGS="$CFLAGS -fno-strength-reduce"
4983 echo $ac_n "checking for gcc -mpreferred-stack-boundary=2 support""... $ac_c" 1>&6
4984 echo "configure:4985: checking for gcc -mpreferred-stack-boundary=2 support" >&5
4985 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4987 else
4988 saved_cflags=$CFLAGS
4989 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4994 int main() {
4995 return 0
4996 ; return 0; }
4998 if { (eval echo configure:4999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4999 rm -rf conftest*
5000 ac_cv_c_gcc_stack_boundary="yes"
5001 else
5002 echo "configure: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5004 rm -rf conftest*
5005 ac_cv_c_gcc_stack_boundary="no"
5007 rm -f conftest*
5008 CFLAGS=$saved_cflags
5012 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5013 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5014 then
5015 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5020 echo $ac_n "checking whether .type must sit inside a .def directive""... $ac_c" 1>&6
5021 echo "configure:5022: checking whether .type must sit inside a .def directive" >&5
5022 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5023 echo $ac_n "(cached) $ac_c" 1>&6
5024 else
5025 saved_libs=$LIBS
5026 LIBS="conftest_asm.s $LIBS"
5027 cat > conftest_asm.s <<EOF
5028 .globl _ac_test
5029 .def _ac_test; .scl 2; .type 32; .endef
5030 _ac_test:
5031 .long 0
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5037 int main() {
5039 ; return 0; }
5041 if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5042 rm -rf conftest*
5043 ac_cv_c_type_in_def="yes"
5044 else
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5047 rm -rf conftest*
5048 ac_cv_c_type_in_def="no"
5050 rm -f conftest*
5051 LIBS=$saved_libs
5054 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5055 if test "$ac_cv_c_type_in_def" = "yes"
5056 then
5057 cat >> confdefs.h <<\EOF
5058 #define NEED_TYPE_IN_DEF 1
5064 echo $ac_n "checking whether external symbols need an underscore prefix""... $ac_c" 1>&6
5065 echo "configure:5066: checking whether external symbols need an underscore prefix" >&5
5066 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5068 else
5069 saved_libs=$LIBS
5070 LIBS="conftest_asm.s $LIBS"
5071 cat > conftest_asm.s <<EOF
5072 .globl _ac_test
5073 _ac_test:
5074 .long 0
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5079 extern int ac_test;
5080 int main() {
5081 if (ac_test) return 1
5082 ; return 0; }
5084 if { (eval echo configure:5085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5085 rm -rf conftest*
5086 ac_cv_c_extern_prefix="yes"
5087 else
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5090 rm -rf conftest*
5091 ac_cv_c_extern_prefix="no"
5093 rm -f conftest*
5094 LIBS=$saved_libs
5097 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5098 if test "$ac_cv_c_extern_prefix" = "yes"
5099 then
5100 cat >> confdefs.h <<\EOF
5101 #define NEED_UNDERSCORE_PREFIX 1
5107 echo $ac_n "checking whether assembler accepts .string""... $ac_c" 1>&6
5108 echo "configure:5109: checking whether assembler accepts .string" >&5
5109 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5111 else
5112 saved_libs=$LIBS
5113 LIBS="conftest_asm.s $LIBS"
5114 cat > conftest_asm.s <<EOF
5115 .string "test"
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5121 int main() {
5123 ; return 0; }
5125 if { (eval echo configure:5126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5126 rm -rf conftest*
5127 ac_cv_c_asm_string="yes"
5128 else
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5131 rm -rf conftest*
5132 ac_cv_c_asm_string="no"
5134 rm -f conftest*
5135 LIBS=$saved_libs
5138 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5139 if test "$ac_cv_c_asm_string" = "yes"
5140 then
5141 cat >> confdefs.h <<\EOF
5142 #define HAVE_ASM_STRING 1
5148 LDSHARED=""
5149 LDDLLFLAGS=""
5150 if test "$LIBEXT" = "so"
5151 then
5152 echo $ac_n "checking whether we can build a GNU style ELF dll""... $ac_c" 1>&6
5153 echo "configure:5154: checking whether we can build a GNU style ELF dll" >&5
5154 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5156 else
5157 saved_cflags=$CFLAGS
5158 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5159 cat > conftest.$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5163 int main() {
5164 return 1
5165 ; return 0; }
5167 if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5168 rm -rf conftest*
5169 ac_cv_c_dll_gnuelf="yes"
5170 else
5171 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5173 rm -rf conftest*
5174 ac_cv_c_dll_gnuelf="no"
5176 rm -f conftest*
5177 CFLAGS=$saved_cflags
5181 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5182 if test "$ac_cv_c_dll_gnuelf" = "yes"
5183 then
5184 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
5185 LDDLLFLAGS="-Wl,-Bsymbolic"
5186 else
5187 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5188 echo "configure:5189: checking whether we can build a UnixWare (Solaris) dll" >&5
5189 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5191 else
5192 saved_cflags=$CFLAGS
5193 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5198 int main() {
5199 return 1
5200 ; return 0; }
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5203 rm -rf conftest*
5204 ac_cv_c_dll_unixware="yes"
5205 else
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5208 rm -rf conftest*
5209 ac_cv_c_dll_unixware="no"
5211 rm -f conftest*
5212 CFLAGS=$saved_cflags
5216 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5217 if test "$ac_cv_c_dll_unixware" = "yes"
5218 then
5219 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
5220 LDDLLFLAGS="-Wl,-B,symbolic"
5223 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5224 then
5225 LIBEXT="a"
5226 if test "$DLLWRAP" = "dllwrap"; then
5227 if test "$CYGWIN" = "yes"; then
5228 echo "*** use dllwrap for building shared library."
5229 LIBEXT="dll"
5235 if test "$LIBEXT" = "a"; then
5236 echo "*** It is currently not possible to build WINE without shared"
5237 echo "*** library (.so) support to allow transparent switch between .so"
5238 echo "*** and .dll files."
5239 echo "*** If you are using Linux, you will need a newer binutils."
5240 exit 1
5243 DLLFLAGS=""
5244 LDPATH=""
5246 if test "$LIBEXT" = "so"; then
5247 DLLFLAGS="-fPIC"
5248 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5249 elif test "$LIBEXT" = "dll"; then
5250 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5251 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5263 wine_cv_libc_reentrant=no
5265 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5266 echo "configure:5267: checking for reentrant libc: __errno_location" >&5
5267 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5268 echo $ac_n "(cached) $ac_c" 1>&6
5269 else
5270 if test "$cross_compiling" = yes; then
5271 wine_cv_libc_r___errno_location=yes
5272 else
5273 cat > conftest.$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276 int myerrno = 0;
5277 char buf[256];
5278 int *__errno_location(){return &myerrno;}
5279 main(){connect(0,buf,255); exit(!myerrno);}
5281 if { (eval echo configure:5282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5282 then
5283 wine_cv_libc_r___errno_location=yes
5284 else
5285 echo "configure: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 rm -fr conftest*
5288 wine_cv_libc_r___errno_location=no
5290 rm -fr conftest*
5296 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5297 if test "$wine_cv_libc_r___errno_location" = "yes"
5298 then
5299 wine_cv_libc_reentrant=__errno_location
5303 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5304 echo "configure:5305: checking for reentrant libc: __error" >&5
5305 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5307 else
5308 if test "$cross_compiling" = yes; then
5309 wine_cv_libc_r___error=yes
5310 else
5311 cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5314 int myerrno = 0;
5315 char buf[256];
5316 int *__error(){return &myerrno;}
5317 main(){connect(0,buf,255); exit(!myerrno);}
5319 if { (eval echo configure:5320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5320 then
5321 wine_cv_libc_r___error=yes
5322 else
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5325 rm -fr conftest*
5326 wine_cv_libc_r___error=no
5328 rm -fr conftest*
5334 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5335 if test "$wine_cv_libc_r___error" = "yes"
5336 then
5337 wine_cv_libc_reentrant=__error
5341 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5342 echo "configure:5343: checking for reentrant libc: ___errno" >&5
5343 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5345 else
5346 if test "$cross_compiling" = yes; then
5347 wine_cv_libc_r____errno=yes
5348 else
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5352 int myerrno = 0;
5353 char buf[256];
5354 int *___errno(){return &myerrno;}
5355 main(){connect(0,buf,255); exit(!myerrno);}
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5358 then
5359 wine_cv_libc_r____errno=yes
5360 else
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5363 rm -fr conftest*
5364 wine_cv_libc_r____errno=no
5366 rm -fr conftest*
5372 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5373 if test "$wine_cv_libc_r____errno" = "yes"
5374 then
5375 wine_cv_libc_reentrant=___errno
5379 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5380 echo "configure:5381: checking for reentrant libc: __thr_errno" >&5
5381 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5383 else
5384 if test "$cross_compiling" = yes; then
5385 wine_cv_libc_r___thr_errno=yes
5386 else
5387 cat > conftest.$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5390 int myerrno = 0;
5391 char buf[256];
5392 int *__thr_errno(){return &myerrno;}
5393 main(){connect(0,buf,255); exit(!myerrno);}
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5396 then
5397 wine_cv_libc_r___thr_errno=yes
5398 else
5399 echo "configure: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5401 rm -fr conftest*
5402 wine_cv_libc_r___thr_errno=no
5404 rm -fr conftest*
5410 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5411 if test "$wine_cv_libc_r___thr_errno" = "yes"
5412 then
5413 wine_cv_libc_reentrant=__thr_errno
5417 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5418 echo "configure:5419: checking for reentrant libc: __errno" >&5
5419 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5421 else
5422 if test "$cross_compiling" = yes; then
5423 wine_cv_libc_r___errno=yes
5424 else
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 int myerrno = 0;
5429 char buf[256];
5430 int *__errno(){return &myerrno;}
5431 main(){connect(0,buf,255); exit(!myerrno);}
5433 if { (eval echo configure:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5434 then
5435 wine_cv_libc_r___errno=yes
5436 else
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5439 rm -fr conftest*
5440 wine_cv_libc_r___errno=no
5442 rm -fr conftest*
5448 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5449 if test "$wine_cv_libc_r___errno" = "yes"
5450 then
5451 wine_cv_libc_reentrant=__errno
5455 if test "$wine_cv_libc_reentrant" != "no"
5456 then
5457 cat >> confdefs.h <<EOF
5458 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5464 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5465 then
5466 echo $ac_n "checking for reentrant X libraries""... $ac_c" 1>&6
5467 echo "configure:5468: checking for reentrant X libraries" >&5
5468 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5470 else
5471 if test "x$with_reentrant_x" = "xno"
5472 then
5473 wine_cv_x_reentrant=no
5474 else
5475 libX11_check=none
5476 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5477 if test -r $dir/libX11.so; then
5478 libX11_check="-D $dir/libX11.so"
5479 break 1
5481 if test -r $dir/libX11.a; then
5482 libX11_check="$dir/libX11.a"
5483 break 1
5485 done
5486 if test "$libX11_check" != "none"; then
5487 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5488 then
5489 wine_cv_x_reentrant=yes
5490 else
5491 wine_cv_x_reentrant=no
5493 else
5494 wine_cv_x_reentrant=unknown
5499 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5500 else
5501 wine_cv_x_reentrant=no
5503 if test "$wine_cv_x_reentrant" = "no"
5504 then
5505 cat >> confdefs.h <<\EOF
5506 #define NO_REENTRANT_X11 1
5513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5514 # for constant arguments. Useless!
5515 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5516 echo "configure:5517: checking for working alloca.h" >&5
5517 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5518 echo $ac_n "(cached) $ac_c" 1>&6
5519 else
5520 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523 #include <alloca.h>
5524 int main() {
5525 char *p = alloca(2 * sizeof(int));
5526 ; return 0; }
5528 if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5529 rm -rf conftest*
5530 ac_cv_header_alloca_h=yes
5531 else
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5534 rm -rf conftest*
5535 ac_cv_header_alloca_h=no
5537 rm -f conftest*
5540 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5541 if test $ac_cv_header_alloca_h = yes; then
5542 cat >> confdefs.h <<\EOF
5543 #define HAVE_ALLOCA_H 1
5548 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5549 echo "configure:5550: checking for alloca" >&5
5550 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5552 else
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5557 #ifdef __GNUC__
5558 # define alloca __builtin_alloca
5559 #else
5560 # ifdef _MSC_VER
5561 # include <malloc.h>
5562 # define alloca _alloca
5563 # else
5564 # if HAVE_ALLOCA_H
5565 # include <alloca.h>
5566 # else
5567 # ifdef _AIX
5568 #pragma alloca
5569 # else
5570 # ifndef alloca /* predefined by HP cc +Olibcalls */
5571 char *alloca ();
5572 # endif
5573 # endif
5574 # endif
5575 # endif
5576 #endif
5578 int main() {
5579 char *p = (char *) alloca(1);
5580 ; return 0; }
5582 if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5583 rm -rf conftest*
5584 ac_cv_func_alloca_works=yes
5585 else
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5588 rm -rf conftest*
5589 ac_cv_func_alloca_works=no
5591 rm -f conftest*
5594 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5595 if test $ac_cv_func_alloca_works = yes; then
5596 cat >> confdefs.h <<\EOF
5597 #define HAVE_ALLOCA 1
5602 if test $ac_cv_func_alloca_works = no; then
5603 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5604 # that cause trouble. Some versions do not even contain alloca or
5605 # contain a buggy version. If you still want to use their alloca,
5606 # use ar to extract alloca.o from them instead of compiling alloca.c.
5607 ALLOCA=alloca.${ac_objext}
5608 cat >> confdefs.h <<\EOF
5609 #define C_ALLOCA 1
5613 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5614 echo "configure:5615: checking whether alloca needs Cray hooks" >&5
5615 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5617 else
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621 #if defined(CRAY) && ! defined(CRAY2)
5622 webecray
5623 #else
5624 wenotbecray
5625 #endif
5628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5629 egrep "webecray" >/dev/null 2>&1; then
5630 rm -rf conftest*
5631 ac_cv_os_cray=yes
5632 else
5633 rm -rf conftest*
5634 ac_cv_os_cray=no
5636 rm -f conftest*
5640 echo "$ac_t""$ac_cv_os_cray" 1>&6
5641 if test $ac_cv_os_cray = yes; then
5642 for ac_func in _getb67 GETB67 getb67; do
5643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5644 echo "configure:5645: checking for $ac_func" >&5
5645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5647 else
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5651 /* System header to define __stub macros and hopefully few prototypes,
5652 which can conflict with char $ac_func(); below. */
5653 #include <assert.h>
5654 /* Override any gcc2 internal prototype to avoid an error. */
5655 /* We use char because int might match the return type of a gcc2
5656 builtin and then its argument prototype would still apply. */
5657 char $ac_func();
5659 int main() {
5661 /* The GNU C library defines this for functions which it implements
5662 to always fail with ENOSYS. Some functions are actually named
5663 something starting with __ and the normal name is an alias. */
5664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5665 choke me
5666 #else
5667 $ac_func();
5668 #endif
5670 ; return 0; }
5672 if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5673 rm -rf conftest*
5674 eval "ac_cv_func_$ac_func=yes"
5675 else
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 rm -rf conftest*
5679 eval "ac_cv_func_$ac_func=no"
5681 rm -f conftest*
5684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5685 echo "$ac_t""yes" 1>&6
5686 cat >> confdefs.h <<EOF
5687 #define CRAY_STACKSEG_END $ac_func
5690 break
5691 else
5692 echo "$ac_t""no" 1>&6
5695 done
5698 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5699 echo "configure:5700: checking stack direction for C alloca" >&5
5700 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5702 else
5703 if test "$cross_compiling" = yes; then
5704 ac_cv_c_stack_direction=0
5705 else
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 find_stack_direction ()
5711 static char *addr = 0;
5712 auto char dummy;
5713 if (addr == 0)
5715 addr = &dummy;
5716 return find_stack_direction ();
5718 else
5719 return (&dummy > addr) ? 1 : -1;
5721 main ()
5723 exit (find_stack_direction() < 0);
5726 if { (eval echo configure:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5727 then
5728 ac_cv_c_stack_direction=1
5729 else
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 rm -fr conftest*
5733 ac_cv_c_stack_direction=-1
5735 rm -fr conftest*
5740 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5741 cat >> confdefs.h <<EOF
5742 #define STACK_DIRECTION $ac_cv_c_stack_direction
5747 for ac_func in \
5748 __libc_fork \
5749 _lwp_create \
5750 clone \
5751 ecvt \
5752 finite \
5753 fpclass \
5754 ftruncate64 \
5755 getnetbyaddr \
5756 getnetbyname \
5757 getpagesize \
5758 getprotobyname \
5759 getprotobynumber \
5760 getrlimit \
5761 getservbyport \
5762 getsockopt \
5763 inet_network \
5764 lseek64 \
5765 lstat \
5766 memmove \
5767 mmap \
5768 pread \
5769 pwrite \
5770 rfork \
5771 select \
5772 sendmsg \
5773 settimeofday \
5774 sigaltstack \
5775 statfs \
5776 strcasecmp \
5777 strerror \
5778 strncasecmp \
5779 tcgetattr \
5780 timegm \
5781 usleep \
5782 vfscanf \
5783 wait4 \
5784 waitpid \
5787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5788 echo "configure:5789: checking for $ac_func" >&5
5789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5791 else
5792 cat > conftest.$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5795 /* System header to define __stub macros and hopefully few prototypes,
5796 which can conflict with char $ac_func(); below. */
5797 #include <assert.h>
5798 /* Override any gcc2 internal prototype to avoid an error. */
5799 /* We use char because int might match the return type of a gcc2
5800 builtin and then its argument prototype would still apply. */
5801 char $ac_func();
5803 int main() {
5805 /* The GNU C library defines this for functions which it implements
5806 to always fail with ENOSYS. Some functions are actually named
5807 something starting with __ and the normal name is an alias. */
5808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5809 choke me
5810 #else
5811 $ac_func();
5812 #endif
5814 ; return 0; }
5816 if { (eval echo configure:5817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5817 rm -rf conftest*
5818 eval "ac_cv_func_$ac_func=yes"
5819 else
5820 echo "configure: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5822 rm -rf conftest*
5823 eval "ac_cv_func_$ac_func=no"
5825 rm -f conftest*
5828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5829 echo "$ac_t""yes" 1>&6
5830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5831 cat >> confdefs.h <<EOF
5832 #define $ac_tr_func 1
5835 else
5836 echo "$ac_t""no" 1>&6
5838 done
5842 for ac_hdr in \
5843 arpa/inet.h \
5844 arpa/nameser.h \
5845 elf.h \
5846 float.h \
5847 ieeefp.h \
5848 libio.h \
5849 libutil.h \
5850 link.h \
5851 linux/cdrom.h \
5852 linux/input.h \
5853 linux/joystick.h \
5854 linux/ucdrom.h \
5855 net/if.h \
5856 netdb.h \
5857 netinet/in.h \
5858 netinet/in_systm.h \
5859 netinet/ip.h \
5860 netinet/tcp.h \
5861 pty.h \
5862 resolv.h \
5863 sched.h \
5864 socket.h \
5865 stdint.h \
5866 strings.h \
5867 sys/cdio.h \
5868 sys/errno.h \
5869 sys/file.h \
5870 sys/filio.h \
5871 sys/ipc.h \
5872 sys/link.h \
5873 sys/lwp.h \
5874 sys/mman.h \
5875 sys/modem.h \
5876 sys/mount.h \
5877 sys/msg.h \
5878 sys/param.h \
5879 sys/ptrace.h \
5880 sys/reg.h \
5881 sys/signal.h \
5882 sys/shm.h \
5883 sys/socket.h \
5884 sys/sockio.h \
5885 sys/statfs.h \
5886 sys/strtio.h \
5887 sys/syscall.h \
5888 sys/user.h \
5889 sys/wait.h \
5890 sys/v86.h \
5891 sys/v86intr.h \
5892 sys/vfs.h \
5893 sys/vm86.h \
5894 syscall.h \
5895 ucontext.h \
5898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5900 echo "configure:5901: checking for $ac_hdr" >&5
5901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5902 echo $ac_n "(cached) $ac_c" 1>&6
5903 else
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 #include <$ac_hdr>
5909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5910 { (eval echo configure:5911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5912 if test -z "$ac_err"; then
5913 rm -rf conftest*
5914 eval "ac_cv_header_$ac_safe=yes"
5915 else
5916 echo "$ac_err" >&5
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5919 rm -rf conftest*
5920 eval "ac_cv_header_$ac_safe=no"
5922 rm -f conftest*
5924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5925 echo "$ac_t""yes" 1>&6
5926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5927 cat >> confdefs.h <<EOF
5928 #define $ac_tr_hdr 1
5931 else
5932 echo "$ac_t""no" 1>&6
5934 done
5936 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5937 echo "configure:5938: checking whether stat file-mode macros are broken" >&5
5938 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5940 else
5941 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 #include <sys/types.h>
5945 #include <sys/stat.h>
5947 #if defined(S_ISBLK) && defined(S_IFDIR)
5948 # if S_ISBLK (S_IFDIR)
5949 You lose.
5950 # endif
5951 #endif
5953 #if defined(S_ISBLK) && defined(S_IFCHR)
5954 # if S_ISBLK (S_IFCHR)
5955 You lose.
5956 # endif
5957 #endif
5959 #if defined(S_ISLNK) && defined(S_IFREG)
5960 # if S_ISLNK (S_IFREG)
5961 You lose.
5962 # endif
5963 #endif
5965 #if defined(S_ISSOCK) && defined(S_IFREG)
5966 # if S_ISSOCK (S_IFREG)
5967 You lose.
5968 # endif
5969 #endif
5972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5973 egrep "You lose" >/dev/null 2>&1; then
5974 rm -rf conftest*
5975 ac_cv_header_stat_broken=yes
5976 else
5977 rm -rf conftest*
5978 ac_cv_header_stat_broken=no
5980 rm -f conftest*
5984 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5985 if test $ac_cv_header_stat_broken = yes; then
5986 cat >> confdefs.h <<\EOF
5987 #define STAT_MACROS_BROKEN 1
5994 echo $ac_n "checking for working const""... $ac_c" 1>&6
5995 echo "configure:5996: checking for working const" >&5
5996 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5997 echo $ac_n "(cached) $ac_c" 1>&6
5998 else
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6003 int main() {
6005 /* Ultrix mips cc rejects this. */
6006 typedef int charset[2]; const charset x;
6007 /* SunOS 4.1.1 cc rejects this. */
6008 char const *const *ccp;
6009 char **p;
6010 /* NEC SVR4.0.2 mips cc rejects this. */
6011 struct point {int x, y;};
6012 static struct point const zero = {0,0};
6013 /* AIX XL C 1.02.0.0 rejects this.
6014 It does not let you subtract one const X* pointer from another in an arm
6015 of an if-expression whose if-part is not a constant expression */
6016 const char *g = "string";
6017 ccp = &g + (g ? g-g : 0);
6018 /* HPUX 7.0 cc rejects these. */
6019 ++ccp;
6020 p = (char**) ccp;
6021 ccp = (char const *const *) p;
6022 { /* SCO 3.2v4 cc rejects this. */
6023 char *t;
6024 char const *s = 0 ? (char *) 0 : (char const *) 0;
6026 *t++ = 0;
6028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6029 int x[] = {25, 17};
6030 const int *foo = &x[0];
6031 ++foo;
6033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6034 typedef const int *iptr;
6035 iptr p = 0;
6036 ++p;
6038 { /* AIX XL C 1.02.0.0 rejects this saying
6039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6040 struct s { int j; const int *ap[3]; };
6041 struct s *b; b->j = 5;
6043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6044 const int foo = 10;
6047 ; return 0; }
6049 if { (eval echo configure:6050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6050 rm -rf conftest*
6051 ac_cv_c_const=yes
6052 else
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 rm -rf conftest*
6056 ac_cv_c_const=no
6058 rm -f conftest*
6061 echo "$ac_t""$ac_cv_c_const" 1>&6
6062 if test $ac_cv_c_const = no; then
6063 cat >> confdefs.h <<\EOF
6064 #define const
6069 echo $ac_n "checking for inline""... $ac_c" 1>&6
6070 echo "configure:6071: checking for inline" >&5
6071 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6073 else
6074 ac_cv_c_inline=no
6075 for ac_kw in inline __inline__ __inline; do
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6080 int main() {
6081 } $ac_kw foo() {
6082 ; return 0; }
6084 if { (eval echo configure:6085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6085 rm -rf conftest*
6086 ac_cv_c_inline=$ac_kw; break
6087 else
6088 echo "configure: failed program was:" >&5
6089 cat conftest.$ac_ext >&5
6091 rm -f conftest*
6092 done
6096 echo "$ac_t""$ac_cv_c_inline" 1>&6
6097 case "$ac_cv_c_inline" in
6098 inline | yes) ;;
6099 no) cat >> confdefs.h <<\EOF
6100 #define inline
6103 *) cat >> confdefs.h <<EOF
6104 #define inline $ac_cv_c_inline
6107 esac
6109 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6110 echo "configure:6111: checking for ANSI C header files" >&5
6111 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6113 else
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 #include <stdlib.h>
6118 #include <stdarg.h>
6119 #include <string.h>
6120 #include <float.h>
6122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6123 { (eval echo configure:6124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6125 if test -z "$ac_err"; then
6126 rm -rf conftest*
6127 ac_cv_header_stdc=yes
6128 else
6129 echo "$ac_err" >&5
6130 echo "configure: failed program was:" >&5
6131 cat conftest.$ac_ext >&5
6132 rm -rf conftest*
6133 ac_cv_header_stdc=no
6135 rm -f conftest*
6137 if test $ac_cv_header_stdc = yes; then
6138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6142 #include <string.h>
6144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6145 egrep "memchr" >/dev/null 2>&1; then
6147 else
6148 rm -rf conftest*
6149 ac_cv_header_stdc=no
6151 rm -f conftest*
6155 if test $ac_cv_header_stdc = yes; then
6156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6157 cat > conftest.$ac_ext <<EOF
6158 #line 6159 "configure"
6159 #include "confdefs.h"
6160 #include <stdlib.h>
6162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6163 egrep "free" >/dev/null 2>&1; then
6165 else
6166 rm -rf conftest*
6167 ac_cv_header_stdc=no
6169 rm -f conftest*
6173 if test $ac_cv_header_stdc = yes; then
6174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6175 if test "$cross_compiling" = yes; then
6177 else
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6181 #include <ctype.h>
6182 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6183 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6185 int main () { int i; for (i = 0; i < 256; i++)
6186 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6187 exit (0); }
6190 if { (eval echo configure:6191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6191 then
6193 else
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6196 rm -fr conftest*
6197 ac_cv_header_stdc=no
6199 rm -fr conftest*
6205 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6206 if test $ac_cv_header_stdc = yes; then
6207 cat >> confdefs.h <<\EOF
6208 #define STDC_HEADERS 1
6213 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6214 echo "configure:6215: checking for size_t" >&5
6215 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6217 else
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6221 #include <sys/types.h>
6222 #if STDC_HEADERS
6223 #include <stdlib.h>
6224 #include <stddef.h>
6225 #endif
6227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6229 rm -rf conftest*
6230 ac_cv_type_size_t=yes
6231 else
6232 rm -rf conftest*
6233 ac_cv_type_size_t=no
6235 rm -f conftest*
6238 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6239 if test $ac_cv_type_size_t = no; then
6240 cat >> confdefs.h <<\EOF
6241 #define size_t unsigned
6246 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6247 echo "configure:6248: checking size of long long" >&5
6248 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6250 else
6251 if test "$cross_compiling" = yes; then
6252 ac_cv_sizeof_long_long=0
6253 else
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 #include <stdio.h>
6258 #include <sys/types.h>
6259 main()
6261 FILE *f=fopen("conftestval", "w");
6262 if (!f) exit(1);
6263 fprintf(f, "%d\n", sizeof(long long));
6264 exit(0);
6267 if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6268 then
6269 ac_cv_sizeof_long_long=`cat conftestval`
6270 else
6271 echo "configure: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6273 rm -fr conftest*
6274 ac_cv_sizeof_long_long=0
6276 rm -fr conftest*
6280 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6281 cat >> confdefs.h <<EOF
6282 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6287 echo $ac_n "checking whether linux/input.h is for real""... $ac_c" 1>&6
6288 echo "configure:6289: checking whether linux/input.h is for real" >&5
6289 if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6291 else
6292 cat > conftest.$ac_ext <<EOF
6293 #line 6294 "configure"
6294 #include "confdefs.h"
6296 #include <linux/input.h>
6298 int main() {
6300 int foo = EVIOCGBIT(EV_ABS,42);
6301 int bar = BTN_PINKIE;
6302 int fortytwo = 42;
6304 ; return 0; }
6306 if { (eval echo configure:6307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6307 rm -rf conftest*
6308 wine_cv_linux_input_h=yes
6309 else
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6312 rm -rf conftest*
6313 wine_cv_linux_input_h=no
6315 rm -f conftest*
6319 echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6320 if test "$wine_cv_linux_input_h" = "yes"
6321 then
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE_CORRECT_LINUXINPUT_H 1
6329 echo $ac_n "checking whether we can use re-entrant gethostbyname_r Linux style""... $ac_c" 1>&6
6330 echo "configure:6331: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
6331 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6333 else
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6338 #include <netdb.h>
6340 int main() {
6342 char *name=NULL;
6343 struct hostent he;
6344 struct hostent *result;
6345 char *buf=NULL;
6346 int bufsize=0;
6347 int res,errnr;
6348 char *addr=NULL;
6349 int addrlen=0;
6350 int addrtype=0;
6351 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6352 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6354 ; return 0; }
6356 if { (eval echo configure:6357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6357 rm -rf conftest*
6358 wine_cv_linux_gethostbyname_r_6=yes
6359 else
6360 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 rm -rf conftest*
6363 wine_cv_linux_gethostbyname_r_6=no
6366 rm -f conftest*
6370 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6371 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6372 then
6373 cat >> confdefs.h <<\EOF
6374 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6379 if test "$ac_cv_header_linux_joystick_h" = "yes"
6380 then
6381 echo $ac_n "checking whether linux/joystick.h uses the Linux 2.2+ API""... $ac_c" 1>&6
6382 echo "configure:6383: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
6383 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6385 else
6386 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6390 #include <sys/ioctl.h>
6391 #include <linux/joystick.h>
6393 struct js_event blub;
6394 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6395 #error "no 2.2 header"
6396 #endif
6398 int main() {
6399 /*empty*/
6400 ; return 0; }
6402 if { (eval echo configure:6403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6403 rm -rf conftest*
6404 wine_cv_linux_joystick_22_api=yes
6405 else
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6408 rm -rf conftest*
6409 wine_cv_linux_joystick_22_api=no
6411 rm -f conftest*
6415 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6416 if test "$wine_cv_linux_joystick_22_api" = "yes"
6417 then
6418 cat >> confdefs.h <<\EOF
6419 #define HAVE_LINUX_22_JOYSTICK_API 1
6426 if test "$ac_cv_header_sys_vfs_h" = "yes"
6427 then
6428 echo $ac_n "checking whether sys/vfs.h defines statfs""... $ac_c" 1>&6
6429 echo "configure:6430: checking whether sys/vfs.h defines statfs" >&5
6430 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6432 else
6433 cat > conftest.$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6437 #include <sys/types.h>
6438 #ifdef HAVE_SYS_PARAM_H
6439 # include <sys/param.h>
6440 #endif
6441 #include <sys/vfs.h>
6443 int main() {
6445 struct statfs stfs;
6447 memset(&stfs,0,sizeof(stfs));
6449 ; return 0; }
6451 if { (eval echo configure:6452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6452 rm -rf conftest*
6453 wine_cv_sys_vfs_has_statfs=yes
6454 else
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6457 rm -rf conftest*
6458 wine_cv_sys_vfs_has_statfs=no
6461 rm -f conftest*
6465 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6466 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6467 then
6468 cat >> confdefs.h <<\EOF
6469 #define STATFS_DEFINED_BY_SYS_VFS 1
6475 if test "$ac_cv_header_sys_statfs_h" = "yes"
6476 then
6477 echo $ac_n "checking whether sys/statfs.h defines statfs""... $ac_c" 1>&6
6478 echo "configure:6479: checking whether sys/statfs.h defines statfs" >&5
6479 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6481 else
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6486 #include <sys/types.h>
6487 #ifdef HAVE_SYS_PARAM_H
6488 # include <sys/param.h>
6489 #endif
6490 #include <sys/statfs.h>
6492 int main() {
6494 struct statfs stfs;
6496 ; return 0; }
6498 if { (eval echo configure:6499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6499 rm -rf conftest*
6500 wine_cv_sys_statfs_has_statfs=yes
6501 else
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6504 rm -rf conftest*
6505 wine_cv_sys_statfs_has_statfs=no
6508 rm -f conftest*
6512 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6513 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6514 then
6515 cat >> confdefs.h <<\EOF
6516 #define STATFS_DEFINED_BY_SYS_STATFS 1
6522 if test "$ac_cv_header_sys_mount_h" = "yes"
6523 then
6524 echo $ac_n "checking whether sys/mount.h defines statfs""... $ac_c" 1>&6
6525 echo "configure:6526: checking whether sys/mount.h defines statfs" >&5
6526 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6528 else
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6533 #include <sys/types.h>
6534 #ifdef HAVE_SYS_PARAM_H
6535 # include <sys/param.h>
6536 #endif
6537 #include <sys/mount.h>
6539 int main() {
6541 struct statfs stfs;
6543 ; return 0; }
6545 if { (eval echo configure:6546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6546 rm -rf conftest*
6547 wine_cv_sys_mount_has_statfs=yes
6548 else
6549 echo "configure: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6551 rm -rf conftest*
6552 wine_cv_sys_mount_has_statfs=no
6555 rm -f conftest*
6559 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6560 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6561 then
6562 cat >> confdefs.h <<\EOF
6563 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6570 echo $ac_n "checking for statfs.f_bfree""... $ac_c" 1>&6
6571 echo "configure:6572: checking for statfs.f_bfree" >&5
6572 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6573 echo $ac_n "(cached) $ac_c" 1>&6
6574 else
6575 if test "x$statfs_bfree" = "xno"
6576 then
6577 wine_cv_statfs_bfree=no
6578 else
6579 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure"
6581 #include "confdefs.h"
6583 #include <sys/types.h>
6584 #ifdef HAVE_SYS_PARAM_H
6585 # include <sys/param.h>
6586 #endif
6587 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6588 # include <sys/mount.h>
6589 #else
6590 # ifdef STATFS_DEFINED_BY_SYS_VFS
6591 # include <sys/vfs.h>
6592 # else
6593 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6594 # include <sys/statfs.h>
6595 # endif
6596 # endif
6597 #endif
6599 int main() {
6601 struct statfs stfs;
6603 stfs.f_bfree++;
6605 ; return 0; }
6607 if { (eval echo configure:6608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6608 rm -rf conftest*
6609 wine_cv_statfs_bfree=yes
6610 else
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6613 rm -rf conftest*
6614 wine_cv_statfs_bfree=no
6617 rm -f conftest*
6621 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6622 if test "$wine_cv_statfs_bfree" = "yes"
6623 then
6624 cat >> confdefs.h <<\EOF
6625 #define STATFS_HAS_BFREE 1
6630 echo $ac_n "checking for statfs.f_bavail""... $ac_c" 1>&6
6631 echo "configure:6632: checking for statfs.f_bavail" >&5
6632 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6634 else
6635 if test "x$statfs_bavail" = "xno"
6636 then
6637 wine_cv_statfs_bavail=no
6638 else
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6643 #include <sys/types.h>
6644 #ifdef HAVE_SYS_PARAM_H
6645 # include <sys/param.h>
6646 #endif
6647 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6648 # include <sys/mount.h>
6649 #else
6650 # ifdef STATFS_DEFINED_BY_SYS_VFS
6651 # include <sys/vfs.h>
6652 # else
6653 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6654 # include <sys/statfs.h>
6655 # endif
6656 # endif
6657 #endif
6659 int main() {
6661 struct statfs stfs;
6663 stfs.f_bavail++;
6665 ; return 0; }
6667 if { (eval echo configure:6668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6668 rm -rf conftest*
6669 wine_cv_statfs_bavail=yes
6670 else
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6673 rm -rf conftest*
6674 wine_cv_statfs_bavail=no
6677 rm -f conftest*
6681 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6682 if test "$wine_cv_statfs_bavail" = "yes"
6683 then
6684 cat >> confdefs.h <<\EOF
6685 #define STATFS_HAS_BAVAIL 1
6691 echo $ac_n "checking for msg_accrights in struct msghdr""... $ac_c" 1>&6
6692 echo "configure:6693: checking for msg_accrights in struct msghdr" >&5
6693 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 #include <sys/types.h>
6700 #include <sys/socket.h>
6701 int main() {
6702 struct msghdr hdr; hdr.msg_accrights=0
6703 ; return 0; }
6705 if { (eval echo configure:6706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6706 rm -rf conftest*
6707 ac_cv_c_msg_accrights="yes"
6708 else
6709 echo "configure: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6711 rm -rf conftest*
6712 ac_cv_c_msg_accrights="no"
6714 rm -f conftest*
6717 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6718 if test "$ac_cv_c_msg_accrights" = "yes"
6719 then
6720 cat >> confdefs.h <<\EOF
6721 #define HAVE_MSGHDR_ACCRIGHTS 1
6727 echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
6728 echo "configure:6729: checking for sa_len in struct sockaddr" >&5
6729 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6731 else
6732 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 #include <sys/types.h>
6736 #include <sys/socket.h>
6738 int main() {
6739 static struct sockaddr addr; addr.sa_len = 1
6740 ; return 0; }
6742 if { (eval echo configure:6743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6743 rm -rf conftest*
6744 ac_cv_c_sockaddr_sa_len="yes"
6745 else
6746 echo "configure: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6748 rm -rf conftest*
6749 ac_cv_c_sockaddr_sa_len="no"
6751 rm -f conftest*
6754 echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6755 if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6756 then
6757 cat >> confdefs.h <<\EOF
6758 #define HAVE_SOCKADDR_SA_LEN 1
6764 echo $ac_n "checking for sun_len in struct sockaddr_un""... $ac_c" 1>&6
6765 echo "configure:6766: checking for sun_len in struct sockaddr_un" >&5
6766 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6767 echo $ac_n "(cached) $ac_c" 1>&6
6768 else
6769 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6772 #include <sys/types.h>
6773 #include <sys/socket.h>
6774 #include <sys/un.h>
6775 int main() {
6776 static struct sockaddr_un addr; addr.sun_len = 1
6777 ; return 0; }
6779 if { (eval echo configure:6780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6780 rm -rf conftest*
6781 ac_cv_c_sockaddr_sun_len="yes"
6782 else
6783 echo "configure: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6785 rm -rf conftest*
6786 ac_cv_c_sockaddr_sun_len="no"
6788 rm -f conftest*
6791 echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6792 if test "$ac_cv_c_sockaddr_sun_len" = "yes"
6793 then
6794 cat >> confdefs.h <<\EOF
6795 #define HAVE_SOCKADDR_SUN_LEN 1
6801 echo $ac_n "checking whether we need to define __i386__""... $ac_c" 1>&6
6802 echo "configure:6803: checking whether we need to define __i386__" >&5
6803 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6805 else
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6809 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6811 #endif
6813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6814 egrep "yes" >/dev/null 2>&1; then
6815 rm -rf conftest*
6816 ac_cv_cpp_def_i386="yes"
6817 else
6818 rm -rf conftest*
6819 ac_cv_cpp_def_i386="no"
6821 rm -f conftest*
6825 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6826 if test "$ac_cv_cpp_def_i386" = "yes"
6827 then
6828 CFLAGS="$CFLAGS -D__i386__"
6829 LINTFLAGS="$LINTFLAGS -D__i386__"
6832 GCC_NO_BUILTIN=""
6833 if test "$GCC" = "yes"
6834 then
6835 GCC_NO_BUILTIN="-fno-builtin"
6840 cat >> confdefs.h <<\EOF
6841 #define __WINE_CONFIG_H 1
6847 MAKE_RULES=Make.rules
6850 MAKE_DLL_RULES=dlls/Makedll.rules
6853 MAKE_PROG_RULES=programs/Makeprog.rules
6856 trap '' 1 2 15
6857 cat > confcache <<\EOF
6858 # This file is a shell script that caches the results of configure
6859 # tests run on this system so they can be shared between configure
6860 # scripts and configure runs. It is not useful on other systems.
6861 # If it contains results you don't want to keep, you may remove or edit it.
6863 # By default, configure uses ./config.cache as the cache file,
6864 # creating it if it does not exist already. You can give configure
6865 # the --cache-file=FILE option to use a different cache file; that is
6866 # what configure does when it calls configure scripts in
6867 # subdirectories, so they share the cache.
6868 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6869 # config.status only pays attention to the cache file if you give it the
6870 # --recheck option to rerun configure.
6873 # The following way of writing the cache mishandles newlines in values,
6874 # but we know of no workaround that is simple, portable, and efficient.
6875 # So, don't put newlines in cache variables' values.
6876 # Ultrix sh set writes to stderr and can't be redirected directly,
6877 # and sets the high bit in the cache file unless we assign to the vars.
6878 (set) 2>&1 |
6879 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6880 *ac_space=\ *)
6881 # `set' does not quote correctly, so add quotes (double-quote substitution
6882 # turns \\\\ into \\, and sed turns \\ into \).
6883 sed -n \
6884 -e "s/'/'\\\\''/g" \
6885 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6888 # `set' quotes correctly as required by POSIX, so do not add quotes.
6889 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6891 esac >> confcache
6892 if cmp -s $cache_file confcache; then
6894 else
6895 if test -w $cache_file; then
6896 echo "updating cache $cache_file"
6897 cat confcache > $cache_file
6898 else
6899 echo "not updating unwritable cache $cache_file"
6902 rm -f confcache
6904 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6906 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6907 # Let make expand exec_prefix.
6908 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6910 # Any assignment to VPATH causes Sun make to only execute
6911 # the first set of double-colon rules, so remove it if not needed.
6912 # If there is a colon in the path, we need to keep it.
6913 if test "x$srcdir" = x.; then
6914 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6917 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6919 DEFS=-DHAVE_CONFIG_H
6921 # Without the "./", some shells look in PATH for config.status.
6922 : ${CONFIG_STATUS=./config.status}
6924 echo creating $CONFIG_STATUS
6925 rm -f $CONFIG_STATUS
6926 cat > $CONFIG_STATUS <<EOF
6927 #! /bin/sh
6928 # Generated automatically by configure.
6929 # Run this file to recreate the current configuration.
6930 # This directory was configured as follows,
6931 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6933 # $0 $ac_configure_args
6935 # Compiler output produced by configure, useful for debugging
6936 # configure, is in ./config.log if it exists.
6938 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6939 for ac_option
6941 case "\$ac_option" in
6942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6943 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6944 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6945 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6946 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6947 exit 0 ;;
6948 -help | --help | --hel | --he | --h)
6949 echo "\$ac_cs_usage"; exit 0 ;;
6950 *) echo "\$ac_cs_usage"; exit 1 ;;
6951 esac
6952 done
6954 ac_given_srcdir=$srcdir
6955 ac_given_INSTALL="$INSTALL"
6957 trap 'rm -fr `echo "
6958 Make.rules
6959 dlls/Makedll.rules
6960 programs/Makeprog.rules
6961 Makefile
6962 console/Makefile
6963 controls/Makefile
6964 debugger/Makefile
6965 dlls/Makefile
6966 dlls/advapi32/Makefile
6967 dlls/avicap32/Makefile
6968 dlls/avifil32/Makefile
6969 dlls/comctl32/Makefile
6970 dlls/commdlg/Makefile
6971 dlls/crtdll/Makefile
6972 dlls/crypt32/Makefile
6973 dlls/dciman32/Makefile
6974 dlls/ddraw/Makefile
6975 dlls/devenum/Makefile
6976 dlls/dinput/Makefile
6977 dlls/dplay/Makefile
6978 dlls/dplayx/Makefile
6979 dlls/dsound/Makefile
6980 dlls/gdi/Makefile
6981 dlls/glu32/Makefile
6982 dlls/icmp/Makefile
6983 dlls/imagehlp/Makefile
6984 dlls/imm32/Makefile
6985 dlls/kernel/Makefile
6986 dlls/lzexpand/Makefile
6987 dlls/mapi32/Makefile
6988 dlls/mpr/Makefile
6989 dlls/msacm/Makefile
6990 dlls/msdmo/Makefile
6991 dlls/msimg32/Makefile
6992 dlls/msnet32/Makefile
6993 dlls/msrle32/Makefile
6994 dlls/msvcrt/Makefile
6995 dlls/msvideo/Makefile
6996 dlls/netapi32/Makefile
6997 dlls/ntdll/Makefile
6998 dlls/odbc32/Makefile
6999 dlls/ole32/Makefile
7000 dlls/oleaut32/Makefile
7001 dlls/olecli/Makefile
7002 dlls/oledlg/Makefile
7003 dlls/olepro32/Makefile
7004 dlls/olesvr/Makefile
7005 dlls/opengl32/Makefile
7006 dlls/psapi/Makefile
7007 dlls/qcap/Makefile
7008 dlls/quartz/Makefile
7009 dlls/rasapi32/Makefile
7010 dlls/richedit/Makefile
7011 dlls/rpcrt4/Makefile
7012 dlls/serialui/Makefile
7013 dlls/setupapi/Makefile
7014 dlls/shdocvw/Makefile
7015 dlls/shell32/Makefile
7016 dlls/shfolder/Makefile
7017 dlls/shlwapi/Makefile
7018 dlls/sti/Makefile
7019 dlls/tapi32/Makefile
7020 dlls/ttydrv/Makefile
7021 dlls/url/Makefile
7022 dlls/urlmon/Makefile
7023 dlls/user/Makefile
7024 dlls/version/Makefile
7025 dlls/win32s/Makefile
7026 dlls/winaspi/Makefile
7027 dlls/winedos/Makefile
7028 dlls/wineps/Makefile
7029 dlls/wininet/Makefile
7030 dlls/winmm/Makefile
7031 dlls/winmm/joystick/Makefile
7032 dlls/winmm/mcianim/Makefile
7033 dlls/winmm/mciavi/Makefile
7034 dlls/winmm/mcicda/Makefile
7035 dlls/winmm/mciseq/Makefile
7036 dlls/winmm/mciwave/Makefile
7037 dlls/winmm/midimap/Makefile
7038 dlls/winmm/wavemap/Makefile
7039 dlls/winmm/wineoss/Makefile
7040 dlls/winnls/Makefile
7041 dlls/winsock/Makefile
7042 dlls/winspool/Makefile
7043 dlls/wintrust/Makefile
7044 dlls/wow32/Makefile
7045 dlls/wsock32/Makefile
7046 dlls/x11drv/Makefile
7047 documentation/Makefile
7048 documentation/wine.conf.man
7049 documentation/wine.man
7050 files/Makefile
7051 graphics/Makefile
7052 graphics/enhmetafiledrv/Makefile
7053 graphics/metafiledrv/Makefile
7054 graphics/win16drv/Makefile
7055 graphics/x11drv/Makefile
7056 if1632/Makefile
7057 include/Makefile
7058 library/Makefile
7059 libtest/Makefile
7060 loader/Makefile
7061 loader/ne/Makefile
7062 memory/Makefile
7063 misc/Makefile
7064 miscemu/Makefile
7065 msdos/Makefile
7066 objects/Makefile
7067 ole/Makefile
7068 programs/Makefile
7069 programs/avitools/Makefile
7070 programs/clock/Makefile
7071 programs/cmdlgtst/Makefile
7072 programs/control/Makefile
7073 programs/notepad/Makefile
7074 programs/osversioncheck/Makefile
7075 programs/progman/Makefile
7076 programs/regapi/Makefile
7077 programs/regtest/Makefile
7078 programs/uninstaller/Makefile
7079 programs/view/Makefile
7080 programs/wcmd/Makefile
7081 programs/wineconsole/Makefile
7082 programs/winemine/Makefile
7083 programs/winetest/Makefile
7084 programs/winhelp/Makefile
7085 programs/winver/Makefile
7086 relay32/Makefile
7087 scheduler/Makefile
7088 server/Makefile
7089 tools/Makefile
7090 tools/winapi/Makefile
7091 tools/winebuild/Makefile
7092 tools/winedump/Makefile
7093 tools/winelauncher
7094 tools/wmc/Makefile
7095 tools/wrc/Makefile
7096 tsx11/Makefile
7097 unicode/Makefile
7098 win32/Makefile
7099 windows/Makefile
7100 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7102 cat >> $CONFIG_STATUS <<EOF
7104 # Protect against being on the right side of a sed subst in config.status.
7105 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7106 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7107 $ac_vpsub
7108 $extrasub
7109 s%@SHELL@%$SHELL%g
7110 s%@CFLAGS@%$CFLAGS%g
7111 s%@CPPFLAGS@%$CPPFLAGS%g
7112 s%@CXXFLAGS@%$CXXFLAGS%g
7113 s%@FFLAGS@%$FFLAGS%g
7114 s%@DEFS@%$DEFS%g
7115 s%@LDFLAGS@%$LDFLAGS%g
7116 s%@LIBS@%$LIBS%g
7117 s%@exec_prefix@%$exec_prefix%g
7118 s%@prefix@%$prefix%g
7119 s%@program_transform_name@%$program_transform_name%g
7120 s%@bindir@%$bindir%g
7121 s%@sbindir@%$sbindir%g
7122 s%@libexecdir@%$libexecdir%g
7123 s%@datadir@%$datadir%g
7124 s%@sysconfdir@%$sysconfdir%g
7125 s%@sharedstatedir@%$sharedstatedir%g
7126 s%@localstatedir@%$localstatedir%g
7127 s%@libdir@%$libdir%g
7128 s%@includedir@%$includedir%g
7129 s%@oldincludedir@%$oldincludedir%g
7130 s%@infodir@%$infodir%g
7131 s%@mandir@%$mandir%g
7132 s%@OPTIONS@%$OPTIONS%g
7133 s%@SET_MAKE@%$SET_MAKE%g
7134 s%@CC@%$CC%g
7135 s%@CPP@%$CPP%g
7136 s%@X_CFLAGS@%$X_CFLAGS%g
7137 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7138 s%@X_LIBS@%$X_LIBS%g
7139 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7140 s%@YACC@%$YACC%g
7141 s%@LEX@%$LEX%g
7142 s%@LEXLIB@%$LEXLIB%g
7143 s%@XLEX@%$XLEX%g
7144 s%@RANLIB@%$RANLIB%g
7145 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7146 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7147 s%@INSTALL_DATA@%$INSTALL_DATA%g
7148 s%@LN_S@%$LN_S%g
7149 s%@C2MAN@%$C2MAN%g
7150 s%@LDCONFIG@%$LDCONFIG%g
7151 s%@DLLWRAP@%$DLLWRAP%g
7152 s%@LINT@%$LINT%g
7153 s%@LINTFLAGS@%$LINTFLAGS%g
7154 s%@LDCOMBINE@%$LDCOMBINE%g
7155 s%@UTILLIBS@%$UTILLIBS%g
7156 s%@DLLIBS@%$DLLIBS%g
7157 s%@JPEGLIB@%$JPEGLIB%g
7158 s%@XLIB@%$XLIB%g
7159 s%@XFILES@%$XFILES%g
7160 s%@OPENGLFILES@%$OPENGLFILES%g
7161 s%@GLU32FILES@%$GLU32FILES%g
7162 s%@CURSESLIBS@%$CURSESLIBS%g
7163 s%@CUPSLIBS@%$CUPSLIBS%g
7164 s%@ft_devel@%$ft_devel%g
7165 s%@ft_devel2@%$ft_devel2%g
7166 s%@FREETYPELIBS@%$FREETYPELIBS%g
7167 s%@FREETYPEINCL@%$FREETYPEINCL%g
7168 s%@DLLFLAGS@%$DLLFLAGS%g
7169 s%@LDSHARED@%$LDSHARED%g
7170 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7171 s%@LIBEXT@%$LIBEXT%g
7172 s%@LDPATH@%$LDPATH%g
7173 s%@ALLOCA@%$ALLOCA%g
7174 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7175 /@MAKE_RULES@/r $MAKE_RULES
7176 s%@MAKE_RULES@%%g
7177 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7178 s%@MAKE_DLL_RULES@%%g
7179 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7180 s%@MAKE_PROG_RULES@%%g
7182 CEOF
7185 cat >> $CONFIG_STATUS <<\EOF
7187 # Split the substitutions into bite-sized pieces for seds with
7188 # small command number limits, like on Digital OSF/1 and HP-UX.
7189 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7190 ac_file=1 # Number of current file.
7191 ac_beg=1 # First line for current file.
7192 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7193 ac_more_lines=:
7194 ac_sed_cmds=""
7195 while $ac_more_lines; do
7196 if test $ac_beg -gt 1; then
7197 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7198 else
7199 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7201 if test ! -s conftest.s$ac_file; then
7202 ac_more_lines=false
7203 rm -f conftest.s$ac_file
7204 else
7205 if test -z "$ac_sed_cmds"; then
7206 ac_sed_cmds="sed -f conftest.s$ac_file"
7207 else
7208 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7210 ac_file=`expr $ac_file + 1`
7211 ac_beg=$ac_end
7212 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7214 done
7215 if test -z "$ac_sed_cmds"; then
7216 ac_sed_cmds=cat
7220 cat >> $CONFIG_STATUS <<EOF
7222 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7223 dlls/Makedll.rules
7224 programs/Makeprog.rules
7225 Makefile
7226 console/Makefile
7227 controls/Makefile
7228 debugger/Makefile
7229 dlls/Makefile
7230 dlls/advapi32/Makefile
7231 dlls/avicap32/Makefile
7232 dlls/avifil32/Makefile
7233 dlls/comctl32/Makefile
7234 dlls/commdlg/Makefile
7235 dlls/crtdll/Makefile
7236 dlls/crypt32/Makefile
7237 dlls/dciman32/Makefile
7238 dlls/ddraw/Makefile
7239 dlls/devenum/Makefile
7240 dlls/dinput/Makefile
7241 dlls/dplay/Makefile
7242 dlls/dplayx/Makefile
7243 dlls/dsound/Makefile
7244 dlls/gdi/Makefile
7245 dlls/glu32/Makefile
7246 dlls/icmp/Makefile
7247 dlls/imagehlp/Makefile
7248 dlls/imm32/Makefile
7249 dlls/kernel/Makefile
7250 dlls/lzexpand/Makefile
7251 dlls/mapi32/Makefile
7252 dlls/mpr/Makefile
7253 dlls/msacm/Makefile
7254 dlls/msdmo/Makefile
7255 dlls/msimg32/Makefile
7256 dlls/msnet32/Makefile
7257 dlls/msrle32/Makefile
7258 dlls/msvcrt/Makefile
7259 dlls/msvideo/Makefile
7260 dlls/netapi32/Makefile
7261 dlls/ntdll/Makefile
7262 dlls/odbc32/Makefile
7263 dlls/ole32/Makefile
7264 dlls/oleaut32/Makefile
7265 dlls/olecli/Makefile
7266 dlls/oledlg/Makefile
7267 dlls/olepro32/Makefile
7268 dlls/olesvr/Makefile
7269 dlls/opengl32/Makefile
7270 dlls/psapi/Makefile
7271 dlls/qcap/Makefile
7272 dlls/quartz/Makefile
7273 dlls/rasapi32/Makefile
7274 dlls/richedit/Makefile
7275 dlls/rpcrt4/Makefile
7276 dlls/serialui/Makefile
7277 dlls/setupapi/Makefile
7278 dlls/shdocvw/Makefile
7279 dlls/shell32/Makefile
7280 dlls/shfolder/Makefile
7281 dlls/shlwapi/Makefile
7282 dlls/sti/Makefile
7283 dlls/tapi32/Makefile
7284 dlls/ttydrv/Makefile
7285 dlls/url/Makefile
7286 dlls/urlmon/Makefile
7287 dlls/user/Makefile
7288 dlls/version/Makefile
7289 dlls/win32s/Makefile
7290 dlls/winaspi/Makefile
7291 dlls/winedos/Makefile
7292 dlls/wineps/Makefile
7293 dlls/wininet/Makefile
7294 dlls/winmm/Makefile
7295 dlls/winmm/joystick/Makefile
7296 dlls/winmm/mcianim/Makefile
7297 dlls/winmm/mciavi/Makefile
7298 dlls/winmm/mcicda/Makefile
7299 dlls/winmm/mciseq/Makefile
7300 dlls/winmm/mciwave/Makefile
7301 dlls/winmm/midimap/Makefile
7302 dlls/winmm/wavemap/Makefile
7303 dlls/winmm/wineoss/Makefile
7304 dlls/winnls/Makefile
7305 dlls/winsock/Makefile
7306 dlls/winspool/Makefile
7307 dlls/wintrust/Makefile
7308 dlls/wow32/Makefile
7309 dlls/wsock32/Makefile
7310 dlls/x11drv/Makefile
7311 documentation/Makefile
7312 documentation/wine.conf.man
7313 documentation/wine.man
7314 files/Makefile
7315 graphics/Makefile
7316 graphics/enhmetafiledrv/Makefile
7317 graphics/metafiledrv/Makefile
7318 graphics/win16drv/Makefile
7319 graphics/x11drv/Makefile
7320 if1632/Makefile
7321 include/Makefile
7322 library/Makefile
7323 libtest/Makefile
7324 loader/Makefile
7325 loader/ne/Makefile
7326 memory/Makefile
7327 misc/Makefile
7328 miscemu/Makefile
7329 msdos/Makefile
7330 objects/Makefile
7331 ole/Makefile
7332 programs/Makefile
7333 programs/avitools/Makefile
7334 programs/clock/Makefile
7335 programs/cmdlgtst/Makefile
7336 programs/control/Makefile
7337 programs/notepad/Makefile
7338 programs/osversioncheck/Makefile
7339 programs/progman/Makefile
7340 programs/regapi/Makefile
7341 programs/regtest/Makefile
7342 programs/uninstaller/Makefile
7343 programs/view/Makefile
7344 programs/wcmd/Makefile
7345 programs/wineconsole/Makefile
7346 programs/winemine/Makefile
7347 programs/winetest/Makefile
7348 programs/winhelp/Makefile
7349 programs/winver/Makefile
7350 relay32/Makefile
7351 scheduler/Makefile
7352 server/Makefile
7353 tools/Makefile
7354 tools/winapi/Makefile
7355 tools/winebuild/Makefile
7356 tools/winedump/Makefile
7357 tools/winelauncher
7358 tools/wmc/Makefile
7359 tools/wrc/Makefile
7360 tsx11/Makefile
7361 unicode/Makefile
7362 win32/Makefile
7363 windows/Makefile
7364 windows/x11drv/Makefile "}
7366 cat >> $CONFIG_STATUS <<\EOF
7367 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7368 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7369 case "$ac_file" in
7370 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7371 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7372 *) ac_file_in="${ac_file}.in" ;;
7373 esac
7375 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7377 # Remove last slash and all that follows it. Not all systems have dirname.
7378 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7379 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7380 # The file is in a subdirectory.
7381 test ! -d "$ac_dir" && mkdir "$ac_dir"
7382 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7383 # A "../" for each directory in $ac_dir_suffix.
7384 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7385 else
7386 ac_dir_suffix= ac_dots=
7389 case "$ac_given_srcdir" in
7390 .) srcdir=.
7391 if test -z "$ac_dots"; then top_srcdir=.
7392 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7393 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7394 *) # Relative path.
7395 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7396 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7397 esac
7399 case "$ac_given_INSTALL" in
7400 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7401 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7402 esac
7404 echo creating "$ac_file"
7405 rm -f "$ac_file"
7406 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7407 case "$ac_file" in
7408 *Makefile*) ac_comsub="1i\\
7409 # $configure_input" ;;
7410 *) ac_comsub= ;;
7411 esac
7413 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7414 sed -e "$ac_comsub
7415 s%@configure_input@%$configure_input%g
7416 s%@srcdir@%$srcdir%g
7417 s%@top_srcdir@%$top_srcdir%g
7418 s%@INSTALL@%$INSTALL%g
7419 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7420 fi; done
7421 rm -f conftest.s*
7423 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7424 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7426 # ac_d sets the value in "#define NAME VALUE" lines.
7427 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7428 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7429 ac_dC='\3'
7430 ac_dD='%g'
7431 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7432 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7433 ac_uB='\([ ]\)%\1#\2define\3'
7434 ac_uC=' '
7435 ac_uD='\4%g'
7436 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7437 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7438 ac_eB='$%\1#\2define\3'
7439 ac_eC=' '
7440 ac_eD='%g'
7442 if test "${CONFIG_HEADERS+set}" != set; then
7444 cat >> $CONFIG_STATUS <<EOF
7445 CONFIG_HEADERS="include/config.h"
7447 cat >> $CONFIG_STATUS <<\EOF
7449 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7450 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7451 case "$ac_file" in
7452 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7453 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7454 *) ac_file_in="${ac_file}.in" ;;
7455 esac
7457 echo creating $ac_file
7459 rm -f conftest.frag conftest.in conftest.out
7460 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7461 cat $ac_file_inputs > conftest.in
7465 # Transform confdefs.h into a sed script conftest.vals that substitutes
7466 # the proper values into config.h.in to produce config.h. And first:
7467 # Protect against being on the right side of a sed subst in config.status.
7468 # Protect against being in an unquoted here document in config.status.
7469 rm -f conftest.vals
7470 cat > conftest.hdr <<\EOF
7471 s/[\\&%]/\\&/g
7472 s%[\\$`]%\\&%g
7473 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7474 s%ac_d%ac_u%gp
7475 s%ac_u%ac_e%gp
7477 sed -n -f conftest.hdr confdefs.h > conftest.vals
7478 rm -f conftest.hdr
7480 # This sed command replaces #undef with comments. This is necessary, for
7481 # example, in the case of _POSIX_SOURCE, which is predefined and required
7482 # on some systems where configure will not decide to define it.
7483 cat >> conftest.vals <<\EOF
7484 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7487 # Break up conftest.vals because some shells have a limit on
7488 # the size of here documents, and old seds have small limits too.
7490 rm -f conftest.tail
7491 while :
7493 ac_lines=`grep -c . conftest.vals`
7494 # grep -c gives empty output for an empty file on some AIX systems.
7495 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7496 # Write a limited-size here document to conftest.frag.
7497 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7498 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7499 echo 'CEOF
7500 sed -f conftest.frag conftest.in > conftest.out
7501 rm -f conftest.in
7502 mv conftest.out conftest.in
7503 ' >> $CONFIG_STATUS
7504 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7505 rm -f conftest.vals
7506 mv conftest.tail conftest.vals
7507 done
7508 rm -f conftest.vals
7510 cat >> $CONFIG_STATUS <<\EOF
7511 rm -f conftest.frag conftest.h
7512 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7513 cat conftest.in >> conftest.h
7514 rm -f conftest.in
7515 if cmp -s $ac_file conftest.h 2>/dev/null; then
7516 echo "$ac_file is unchanged"
7517 rm -f conftest.h
7518 else
7519 # Remove last slash and all that follows it. Not all systems have dirname.
7520 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7521 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7522 # The file is in a subdirectory.
7523 test ! -d "$ac_dir" && mkdir "$ac_dir"
7525 rm -f $ac_file
7526 mv conftest.h $ac_file
7528 fi; done
7531 cat >> $CONFIG_STATUS <<EOF
7535 cat >> $CONFIG_STATUS <<\EOF
7537 extra_subdirs="\
7538 dlls/ddraw/d3ddevice \
7539 dlls/ddraw/dclipper \
7540 dlls/ddraw/ddraw \
7541 dlls/ddraw/direct3d \
7542 dlls/ddraw/dpalette \
7543 dlls/ddraw/dsurface \
7544 dlls/dinput/joystick \
7545 dlls/dinput/keyboard \
7546 dlls/dinput/mouse \
7547 dlls/kernel/messages \
7548 dlls/user/dde \
7549 dlls/user/resources \
7550 dlls/wineps/data \
7552 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7554 exit 0
7556 chmod +x $CONFIG_STATUS
7557 rm -fr confdefs* $ac_clean_files
7558 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7561 if test "$have_x" = "no"
7562 then
7563 echo
7564 echo "*** Warning: X development files not found. Wine will be built without"
7565 echo "*** X support, which currently does not work, and would probably not be"
7566 echo "*** what you want anyway. You will need to install devel packages of"
7567 echo "*** Xlib/Xfree86 at the very least."
7570 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7571 then
7572 echo
7573 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7574 echo "*** terminal resize support. Consider upgrading ncurses."
7577 if test "$wine_cv_libc_reentrant" = "no"
7578 then
7579 echo
7580 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7581 echo "*** thread support. Consider upgrading libc to a more recent"
7582 echo "*** reentrant version of libc."
7585 if test "$wine_cv_opengl_version_OK" = "no"
7586 then
7587 echo
7588 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7589 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7592 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7593 then
7594 echo
7595 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7596 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7597 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7598 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7601 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7602 then
7603 echo
7604 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7605 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7606 echo "*** support before reporting bugs."
7609 if test "$wine_cv_warn_cups_h" = "yes"
7610 then
7611 echo
7612 echo "*** Note: You have cups runtime libraries, but no development"
7613 echo "*** libraries. Install the cups-devel package or whichever package"
7614 echo "*** contains cups.h to enable CUPS support in WINE."
7617 if test "$wine_cv_msg_freetype" = "yes"
7618 then
7619 echo
7620 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7621 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7622 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7623 echo "*** enable Wine to use TrueType fonts."
7626 echo
7627 echo "Configure finished. Do 'make depend && make' to compile Wine."
7628 echo