If there is not an exact match found for the requested font name,
[wine/wine-kai.git] / configure
blob34a3647b266816b74715e571a8a193eb8da81134
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.12
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-emulator build only the Wine library, not the emulator"
17 ac_help="$ac_help
18 --enable-dll build the Wine library as a DLL"
19 ac_help="$ac_help
20 --disable-lib build the Wine without building libwine.a"
21 ac_help="$ac_help
22 --disable-debug compile out all debugging messages"
23 ac_help="$ac_help
24 --disable-trace compile out TRACE messages"
25 ac_help="$ac_help
26 --without-reentrant-x compile for use with non-reentrant X libraries"
27 ac_help="$ac_help
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
33 build=NONE
34 cache_file=./config.cache
35 exec_prefix=NONE
36 host=NONE
37 no_create=
38 nonopt=NONE
39 no_recursion=
40 prefix=NONE
41 program_prefix=NONE
42 program_suffix=NONE
43 program_transform_name=s,x,x,
44 silent=
45 site=
46 srcdir=
47 target=NONE
48 verbose=
49 x_includes=NONE
50 x_libraries=NONE
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
65 subdirs=
66 MFLAGS= MAKEFLAGS=
67 # Maximum number of lines to put in a shell here document.
68 ac_max_here_lines=12
70 ac_prev=
71 for ac_option
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
77 ac_prev=
78 continue
81 case "$ac_option" in
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 *) ac_optarg= ;;
84 esac
86 # Accept the important Cygnus configure options, so we can diagnose typos.
88 case "$ac_option" in
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 ac_prev=bindir ;;
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
95 -build | --build | --buil | --bui | --bu)
96 ac_prev=build ;;
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 build="$ac_optarg" ;;
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 ac_prev=datadir ;;
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 | --da=*)
111 datadir="$ac_optarg" ;;
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 case "$ac_option" in
130 *=*) ;;
131 *) ac_optarg=yes ;;
132 esac
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
146 with_gas=yes ;;
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
151 cat << EOF
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
154 Configuration:
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
162 [$ac_default_prefix]
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 [same as prefix]
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
169 [PREFIX/share]
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 [PREFIX/com]
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
185 cat << EOF
186 Host type:
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
201 exit 0 ;;
203 -host | --host | --hos | --ho)
204 ac_prev=host ;;
205 -host=* | --host=* | --hos=* | --ho=*)
206 host="$ac_optarg" ;;
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 ac_prev=infodir ;;
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
221 ac_prev=libdir ;;
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 ac_prev=mandir ;;
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
246 -nfp | --nfp | --nf)
247 # Obsolete; use --without-fp.
248 with_fp=no ;;
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 | --no-cr | --no-c)
252 no_create=yes ;;
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 no_recursion=yes ;;
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 ac_prev=prefix ;;
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
305 silent=yes ;;
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 ac_prev=sbindir ;;
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 | --sbi=* | --sb=*)
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
316 | --sha | --sh)
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 | --sha=* | --sh=*)
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
325 ac_prev=site ;;
326 -site=* | --site=* | --sit=*)
327 site="$ac_optarg" ;;
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 ac_prev=srcdir ;;
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
341 -target | --target | --targe | --targ | --tar | --ta | --t)
342 ac_prev=target ;;
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 verbose=yes ;;
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.12"
351 exit 0 ;;
353 -with-* | --with-*)
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 case "$ac_option" in
361 *=*) ;;
362 *) ac_optarg=yes ;;
363 esac
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
375 --x)
376 # Obsolete; use --with-x.
377 with_x=yes ;;
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 nonopt="$ac_option"
406 esac
407 done
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
416 # 0 standard input
417 # 1 file creation
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
424 exec 6>/dev/null
425 else
426 exec 6>&1
428 exec 5>./config.log
430 echo "\
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
433 " 1>&5
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
437 ac_configure_args=
438 for ac_arg
440 case "$ac_arg" in
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 esac
449 done
451 # NLS nuisances.
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 echo > confdefs.h
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file=controls/edit.c
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
474 ac_prog=$0
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 srcdir=$ac_confdir
478 if test ! -r $srcdir/$ac_unique_file; then
479 srcdir=..
481 else
482 ac_srcdir_defaulted=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 else
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 else
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
504 . "$ac_site_file"
506 done
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
510 . $cache_file
511 else
512 echo "creating cache $cache_file"
513 > $cache_file
516 ac_ext=c
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp='$CPP $CPPFLAGS'
519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='
527 ' ac_t=' '
528 else
529 ac_n=-n ac_c= ac_t=
531 else
532 ac_n= ac_c='\c' ac_t=
537 ac_aux_dir=
538 for ac_dir in tools $srcdir/tools; do
539 if test -f $ac_dir/install-sh; then
540 ac_aux_dir=$ac_dir
541 ac_install_sh="$ac_aux_dir/install-sh -c"
542 break
543 elif test -f $ac_dir/install.sh; then
544 ac_aux_dir=$ac_dir
545 ac_install_sh="$ac_aux_dir/install.sh -c"
546 break
548 done
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
557 # We want these before the checks, so the checks can modify their values.
559 test -z "$PROGEXT" && PROGEXT=""
562 MAIN_TARGET=emu
563 LIB_TARGET=libwine.a
564 ALT_LINK="-L\$(TOPOBJDIR) -lwine"
565 TRACE_MSGS=yes # the TRACE() macro
566 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
568 # Check whether --enable-emulator or --disable-emulator was given.
569 if test "${enable_emulator+set}" = set; then
570 enableval="$enable_emulator"
571 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
575 # Check whether --enable-dll or --disable-dll was given.
576 if test "${enable_dll+set}" = set; then
577 enableval="$enable_dll"
578 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
582 # Check whether --enable-lib or --disable-lib was given.
583 if test "${enable_lib+set}" = set; then
584 enableval="$enable_lib"
585 if test "$enableval" = "no"; then ALT_LINK="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET=""; fi
589 # Check whether --enable-debug or --disable-debug was given.
590 if test "${enable_debug+set}" = set; then
591 enableval="$enable_debug"
592 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
596 # Check whether --enable-trace or --disable-trace was given.
597 if test "${enable_trace+set}" = set; then
598 enableval="$enable_trace"
599 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
603 # Check whether --with-reentrant-x or --without-reentrant-x was given.
604 if test "${with_reentrant_x+set}" = set; then
605 withval="$with_reentrant_x"
615 if test "$DEBUG_MSGS" = "no"
616 then
617 cat >> confdefs.h <<\EOF
618 #define NO_DEBUG_MSGS 1
621 cat >> confdefs.h <<\EOF
622 #define NO_TRACE_MSGS 1
625 else
626 if test "$TRACE_MSGS" = "no"
627 then
628 cat >> confdefs.h <<\EOF
629 #define NO_TRACE_MSGS 1
636 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
637 echo "configure:638: checking whether ${MAKE-make} sets \${MAKE}" >&5
638 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
639 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
641 else
642 cat > conftestmake <<\EOF
643 all:
644 @echo 'ac_maketemp="${MAKE}"'
646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
647 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
648 if test -n "$ac_maketemp"; then
649 eval ac_cv_prog_make_${ac_make}_set=yes
650 else
651 eval ac_cv_prog_make_${ac_make}_set=no
653 rm -f conftestmake
655 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
656 echo "$ac_t""yes" 1>&6
657 SET_MAKE=
658 else
659 echo "$ac_t""no" 1>&6
660 SET_MAKE="MAKE=${MAKE-make}"
663 # Extract the first word of "gcc", so it can be a program name with args.
664 set dummy gcc; ac_word=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
669 else
670 if test -n "$CC"; then
671 ac_cv_prog_CC="$CC" # Let the user override the test.
672 else
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
674 for ac_dir in $PATH; do
675 test -z "$ac_dir" && ac_dir=.
676 if test -f $ac_dir/$ac_word; then
677 ac_cv_prog_CC="gcc"
678 break
680 done
681 IFS="$ac_save_ifs"
684 CC="$ac_cv_prog_CC"
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
687 else
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
692 # Extract the first word of "cc", so it can be a program name with args.
693 set dummy cc; ac_word=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
698 else
699 if test -n "$CC"; then
700 ac_cv_prog_CC="$CC" # Let the user override the test.
701 else
702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
703 ac_prog_rejected=no
704 for ac_dir in $PATH; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
708 ac_prog_rejected=yes
709 continue
711 ac_cv_prog_CC="cc"
712 break
714 done
715 IFS="$ac_save_ifs"
716 if test $ac_prog_rejected = yes; then
717 # We found a bogon in the path, so make sure we never use it.
718 set dummy $ac_cv_prog_CC
719 shift
720 if test $# -gt 0; then
721 # We chose a different compiler from the bogus one.
722 # However, it has the same basename, so the bogon will be chosen
723 # first if we set CC to just the basename; use the full file name.
724 shift
725 set dummy "$ac_dir/$ac_word" "$@"
726 shift
727 ac_cv_prog_CC="$@"
732 CC="$ac_cv_prog_CC"
733 if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
735 else
736 echo "$ac_t""no" 1>&6
739 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
745 ac_ext=c
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp='$CPP $CPPFLAGS'
748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling=$ac_cv_prog_cc_cross
752 cat > conftest.$ac_ext <<EOF
753 #line 754 "configure"
754 #include "confdefs.h"
755 main(){return(0);}
757 if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
758 ac_cv_prog_cc_works=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (./conftest; exit) 2>/dev/null; then
761 ac_cv_prog_cc_cross=no
762 else
763 ac_cv_prog_cc_cross=yes
765 else
766 echo "configure: failed program was:" >&5
767 cat conftest.$ac_ext >&5
768 ac_cv_prog_cc_works=no
770 rm -fr conftest*
772 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
773 if test $ac_cv_prog_cc_works = no; then
774 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
777 echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
778 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
779 cross_compiling=$ac_cv_prog_cc_cross
781 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
782 echo "configure:783: checking whether we are using GNU C" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
785 else
786 cat > conftest.c <<EOF
787 #ifdef __GNUC__
788 yes;
789 #endif
791 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
792 ac_cv_prog_gcc=yes
793 else
794 ac_cv_prog_gcc=no
798 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
800 if test $ac_cv_prog_gcc = yes; then
801 GCC=yes
802 ac_test_CFLAGS="${CFLAGS+set}"
803 ac_save_CFLAGS="$CFLAGS"
804 CFLAGS=
805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
809 else
810 echo 'void f(){}' > conftest.c
811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
812 ac_cv_prog_cc_g=yes
813 else
814 ac_cv_prog_cc_g=no
816 rm -f conftest*
820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
821 if test "$ac_test_CFLAGS" = set; then
822 CFLAGS="$ac_save_CFLAGS"
823 elif test $ac_cv_prog_cc_g = yes; then
824 CFLAGS="-g -O2"
825 else
826 CFLAGS="-O2"
828 else
829 GCC=
830 test "${CFLAGS+set}" = set || CFLAGS="-g"
833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
834 echo "configure:835: checking how to run the C preprocessor" >&5
835 # On Suns, sometimes $CPP names a directory.
836 if test -n "$CPP" && test -d "$CPP"; then
837 CPP=
839 if test -z "$CPP"; then
840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842 else
843 # This must be in double quotes, not single quotes, because CPP may get
844 # substituted into the Makefile and "${CC-cc}" will confuse make.
845 CPP="${CC-cc} -E"
846 # On the NeXT, cc -E runs the code through the compiler's parser,
847 # not just through cpp.
848 cat > conftest.$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
851 #include <assert.h>
852 Syntax Error
854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err=`grep -v '^ *+' conftest.out`
857 if test -z "$ac_err"; then
859 else
860 echo "$ac_err" >&5
861 echo "configure: failed program was:" >&5
862 cat conftest.$ac_ext >&5
863 rm -rf conftest*
864 CPP="${CC-cc} -E -traditional-cpp"
865 cat > conftest.$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
868 #include <assert.h>
869 Syntax Error
871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err=`grep -v '^ *+' conftest.out`
874 if test -z "$ac_err"; then
876 else
877 echo "$ac_err" >&5
878 echo "configure: failed program was:" >&5
879 cat conftest.$ac_ext >&5
880 rm -rf conftest*
881 CPP=/lib/cpp
883 rm -f conftest*
885 rm -f conftest*
886 ac_cv_prog_CPP="$CPP"
888 CPP="$ac_cv_prog_CPP"
889 else
890 ac_cv_prog_CPP="$CPP"
892 echo "$ac_t""$CPP" 1>&6
894 # If we find X, set shell vars x_includes and x_libraries to the
895 # paths, otherwise set no_x=yes.
896 # Uses ac_ vars as temps to allow command line to override cache and checks.
897 # --without-x overrides everything else, but does not touch the cache.
898 echo $ac_n "checking for X""... $ac_c" 1>&6
899 echo "configure:900: checking for X" >&5
901 # Check whether --with-x or --without-x was given.
902 if test "${with_x+set}" = set; then
903 withval="$with_x"
907 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
908 if test "x$with_x" = xno; then
909 # The user explicitly disabled X.
910 have_x=disabled
911 else
912 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
913 # Both variables are already set.
914 have_x=yes
915 else
916 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
918 else
919 # One or both of the vars are not set, and there is no cached value.
920 ac_x_includes=NO ac_x_libraries=NO
921 rm -fr conftestdir
922 if mkdir conftestdir; then
923 cd conftestdir
924 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
925 cat > Imakefile <<'EOF'
926 acfindx:
927 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
929 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
931 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
932 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
933 for ac_extension in a so sl; do
934 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
935 test -f $ac_im_libdir/libX11.$ac_extension; then
936 ac_im_usrlibdir=$ac_im_libdir; break
938 done
939 # Screen out bogus values from the imake configuration. They are
940 # bogus both because they are the default anyway, and because
941 # using them would break gcc on systems where it needs fixed includes.
942 case "$ac_im_incroot" in
943 /usr/include) ;;
944 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
945 esac
946 case "$ac_im_usrlibdir" in
947 /usr/lib | /lib) ;;
948 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
949 esac
951 cd ..
952 rm -fr conftestdir
955 if test "$ac_x_includes" = NO; then
956 # Guess where to find include files, by looking for this one X11 .h file.
957 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
959 # First, try using that file with no special directory specified.
960 cat > conftest.$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
963 #include <$x_direct_test_include>
965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
966 { (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
967 ac_err=`grep -v '^ *+' conftest.out`
968 if test -z "$ac_err"; then
969 rm -rf conftest*
970 # We can compile using X headers with no special include directory.
971 ac_x_includes=
972 else
973 echo "$ac_err" >&5
974 echo "configure: failed program was:" >&5
975 cat conftest.$ac_ext >&5
976 rm -rf conftest*
977 # Look for the header file in a standard set of common directories.
978 # Check X11 before X11Rn because it is often a symlink to the current release.
979 for ac_dir in \
980 /usr/X11/include \
981 /usr/X11R6/include \
982 /usr/X11R5/include \
983 /usr/X11R4/include \
985 /usr/include/X11 \
986 /usr/include/X11R6 \
987 /usr/include/X11R5 \
988 /usr/include/X11R4 \
990 /usr/local/X11/include \
991 /usr/local/X11R6/include \
992 /usr/local/X11R5/include \
993 /usr/local/X11R4/include \
995 /usr/local/include/X11 \
996 /usr/local/include/X11R6 \
997 /usr/local/include/X11R5 \
998 /usr/local/include/X11R4 \
1000 /usr/X386/include \
1001 /usr/x386/include \
1002 /usr/XFree86/include/X11 \
1004 /usr/include \
1005 /usr/local/include \
1006 /usr/unsupported/include \
1007 /usr/athena/include \
1008 /usr/local/x11r5/include \
1009 /usr/lpp/Xamples/include \
1011 /usr/openwin/include \
1012 /usr/openwin/share/include \
1015 if test -r "$ac_dir/$x_direct_test_include"; then
1016 ac_x_includes=$ac_dir
1017 break
1019 done
1021 rm -f conftest*
1022 fi # $ac_x_includes = NO
1024 if test "$ac_x_libraries" = NO; then
1025 # Check for the libraries.
1027 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1028 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1030 # See if we find them without any special options.
1031 # Don't add to $LIBS permanently.
1032 ac_save_LIBS="$LIBS"
1033 LIBS="-l$x_direct_test_library $LIBS"
1034 cat > conftest.$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1038 int main() {
1039 ${x_direct_test_function}()
1040 ; return 0; }
1042 if { (eval echo configure:1043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1043 rm -rf conftest*
1044 LIBS="$ac_save_LIBS"
1045 # We can link X programs with no special library path.
1046 ac_x_libraries=
1047 else
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1050 rm -rf conftest*
1051 LIBS="$ac_save_LIBS"
1052 # First see if replacing the include by lib works.
1053 # Check X11 before X11Rn because it is often a symlink to the current release.
1054 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1055 /usr/X11/lib \
1056 /usr/X11R6/lib \
1057 /usr/X11R5/lib \
1058 /usr/X11R4/lib \
1060 /usr/lib/X11 \
1061 /usr/lib/X11R6 \
1062 /usr/lib/X11R5 \
1063 /usr/lib/X11R4 \
1065 /usr/local/X11/lib \
1066 /usr/local/X11R6/lib \
1067 /usr/local/X11R5/lib \
1068 /usr/local/X11R4/lib \
1070 /usr/local/lib/X11 \
1071 /usr/local/lib/X11R6 \
1072 /usr/local/lib/X11R5 \
1073 /usr/local/lib/X11R4 \
1075 /usr/X386/lib \
1076 /usr/x386/lib \
1077 /usr/XFree86/lib/X11 \
1079 /usr/lib \
1080 /usr/local/lib \
1081 /usr/unsupported/lib \
1082 /usr/athena/lib \
1083 /usr/local/x11r5/lib \
1084 /usr/lpp/Xamples/lib \
1085 /lib/usr/lib/X11 \
1087 /usr/openwin/lib \
1088 /usr/openwin/share/lib \
1091 for ac_extension in a so sl; do
1092 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1093 ac_x_libraries=$ac_dir
1094 break 2
1096 done
1097 done
1099 rm -f conftest*
1100 fi # $ac_x_libraries = NO
1102 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1103 # Didn't find X anywhere. Cache the known absence of X.
1104 ac_cv_have_x="have_x=no"
1105 else
1106 # Record where we found X for the cache.
1107 ac_cv_have_x="have_x=yes \
1108 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1112 eval "$ac_cv_have_x"
1113 fi # $with_x != no
1115 if test "$have_x" != yes; then
1116 echo "$ac_t""$have_x" 1>&6
1117 no_x=yes
1118 else
1119 # If each of the values was on the command line, it overrides each guess.
1120 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1121 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1122 # Update the cache value to reflect the command line values.
1123 ac_cv_have_x="have_x=yes \
1124 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1125 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1128 if test "$no_x" = yes; then
1129 # Not all programs may use this symbol, but it does not hurt to define it.
1130 cat >> confdefs.h <<\EOF
1131 #define X_DISPLAY_MISSING 1
1134 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1135 else
1136 if test -n "$x_includes"; then
1137 X_CFLAGS="$X_CFLAGS -I$x_includes"
1140 # It would also be nice to do this for all -L options, not just this one.
1141 if test -n "$x_libraries"; then
1142 X_LIBS="$X_LIBS -L$x_libraries"
1143 # For Solaris; some versions of Sun CC require a space after -R and
1144 # others require no space. Words are not sufficient . . . .
1145 case "`(uname -sr) 2>/dev/null`" in
1146 "SunOS 5"*)
1147 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether -R must be followed by a space" >&5
1149 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1150 cat > conftest.$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1154 int main() {
1156 ; return 0; }
1158 if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1159 rm -rf conftest*
1160 ac_R_nospace=yes
1161 else
1162 echo "configure: failed program was:" >&5
1163 cat conftest.$ac_ext >&5
1164 rm -rf conftest*
1165 ac_R_nospace=no
1167 rm -f conftest*
1168 if test $ac_R_nospace = yes; then
1169 echo "$ac_t""no" 1>&6
1170 X_LIBS="$X_LIBS -R$x_libraries"
1171 else
1172 LIBS="$ac_xsave_LIBS -R $x_libraries"
1173 cat > conftest.$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1177 int main() {
1179 ; return 0; }
1181 if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1182 rm -rf conftest*
1183 ac_R_space=yes
1184 else
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1187 rm -rf conftest*
1188 ac_R_space=no
1190 rm -f conftest*
1191 if test $ac_R_space = yes; then
1192 echo "$ac_t""yes" 1>&6
1193 X_LIBS="$X_LIBS -R $x_libraries"
1194 else
1195 echo "$ac_t""neither works" 1>&6
1198 LIBS="$ac_xsave_LIBS"
1199 esac
1202 # Check for system-dependent libraries X programs must link with.
1203 # Do this before checking for the system-independent R6 libraries
1204 # (-lICE), since we may need -lsocket or whatever for X linking.
1206 if test "$ISC" = yes; then
1207 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1208 else
1209 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1210 # libraries were built with DECnet support. And karl@cs.umb.edu says
1211 # the Alpha needs dnet_stub (dnet does not exist).
1212 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1213 echo "configure:1214: checking for dnet_ntoa in -ldnet" >&5
1214 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 ac_save_LIBS="$LIBS"
1219 LIBS="-ldnet $LIBS"
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 /* Override any gcc2 internal prototype to avoid an error. */
1224 /* We use char because int might match the return type of a gcc2
1225 builtin and then its argument prototype would still apply. */
1226 char dnet_ntoa();
1228 int main() {
1229 dnet_ntoa()
1230 ; return 0; }
1232 if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1233 rm -rf conftest*
1234 eval "ac_cv_lib_$ac_lib_var=yes"
1235 else
1236 echo "configure: failed program was:" >&5
1237 cat conftest.$ac_ext >&5
1238 rm -rf conftest*
1239 eval "ac_cv_lib_$ac_lib_var=no"
1241 rm -f conftest*
1242 LIBS="$ac_save_LIBS"
1245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1248 else
1249 echo "$ac_t""no" 1>&6
1252 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1253 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1254 echo "configure:1255: checking for dnet_ntoa in -ldnet_stub" >&5
1255 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259 ac_save_LIBS="$LIBS"
1260 LIBS="-ldnet_stub $LIBS"
1261 cat > conftest.$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1264 /* Override any gcc2 internal prototype to avoid an error. */
1265 /* We use char because int might match the return type of a gcc2
1266 builtin and then its argument prototype would still apply. */
1267 char dnet_ntoa();
1269 int main() {
1270 dnet_ntoa()
1271 ; return 0; }
1273 if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1274 rm -rf conftest*
1275 eval "ac_cv_lib_$ac_lib_var=yes"
1276 else
1277 echo "configure: failed program was:" >&5
1278 cat conftest.$ac_ext >&5
1279 rm -rf conftest*
1280 eval "ac_cv_lib_$ac_lib_var=no"
1282 rm -f conftest*
1283 LIBS="$ac_save_LIBS"
1286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1287 echo "$ac_t""yes" 1>&6
1288 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1289 else
1290 echo "$ac_t""no" 1>&6
1295 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1296 # to get the SysV transport functions.
1297 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1298 # needs -lnsl.
1299 # The nsl library prevents programs from opening the X display
1300 # on Irix 5.2, according to dickey@clark.net.
1301 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1302 echo "configure:1303: checking for gethostbyname" >&5
1303 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1305 else
1306 cat > conftest.$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1309 /* System header to define __stub macros and hopefully few prototypes,
1310 which can conflict with char gethostbyname(); below. */
1311 #include <assert.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 gethostbyname();
1317 int main() {
1319 /* The GNU C library defines this for functions which it implements
1320 to always fail with ENOSYS. Some functions are actually named
1321 something starting with __ and the normal name is an alias. */
1322 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1323 choke me
1324 #else
1325 gethostbyname();
1326 #endif
1328 ; return 0; }
1330 if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1331 rm -rf conftest*
1332 eval "ac_cv_func_gethostbyname=yes"
1333 else
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1336 rm -rf conftest*
1337 eval "ac_cv_func_gethostbyname=no"
1339 rm -f conftest*
1342 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1343 echo "$ac_t""yes" 1>&6
1345 else
1346 echo "$ac_t""no" 1>&6
1349 if test $ac_cv_func_gethostbyname = no; then
1350 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1351 echo "configure:1352: checking for gethostbyname in -lnsl" >&5
1352 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1355 else
1356 ac_save_LIBS="$LIBS"
1357 LIBS="-lnsl $LIBS"
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1364 char gethostbyname();
1366 int main() {
1367 gethostbyname()
1368 ; return 0; }
1370 if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1371 rm -rf conftest*
1372 eval "ac_cv_lib_$ac_lib_var=yes"
1373 else
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1376 rm -rf conftest*
1377 eval "ac_cv_lib_$ac_lib_var=no"
1379 rm -f conftest*
1380 LIBS="$ac_save_LIBS"
1383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1386 else
1387 echo "$ac_t""no" 1>&6
1392 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1393 # socket/setsockopt and other routines are undefined under SCO ODT
1394 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1395 # on later versions), says simon@lia.di.epfl.ch: it contains
1396 # gethostby* variants that don't use the nameserver (or something).
1397 # -lsocket must be given before -lnsl if both are needed.
1398 # We assume that if connect needs -lnsl, so does gethostbyname.
1399 echo $ac_n "checking for connect""... $ac_c" 1>&6
1400 echo "configure:1401: checking for connect" >&5
1401 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 /* System header to define __stub macros and hopefully few prototypes,
1408 which can conflict with char connect(); below. */
1409 #include <assert.h>
1410 /* Override any gcc2 internal prototype to avoid an error. */
1411 /* We use char because int might match the return type of a gcc2
1412 builtin and then its argument prototype would still apply. */
1413 char connect();
1415 int main() {
1417 /* The GNU C library defines this for functions which it implements
1418 to always fail with ENOSYS. Some functions are actually named
1419 something starting with __ and the normal name is an alias. */
1420 #if defined (__stub_connect) || defined (__stub___connect)
1421 choke me
1422 #else
1423 connect();
1424 #endif
1426 ; return 0; }
1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1429 rm -rf conftest*
1430 eval "ac_cv_func_connect=yes"
1431 else
1432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
1434 rm -rf conftest*
1435 eval "ac_cv_func_connect=no"
1437 rm -f conftest*
1440 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1443 else
1444 echo "$ac_t""no" 1>&6
1447 if test $ac_cv_func_connect = no; then
1448 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1449 echo "configure:1450: checking for connect in -lsocket" >&5
1450 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454 ac_save_LIBS="$LIBS"
1455 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 /* Override any gcc2 internal prototype to avoid an error. */
1460 /* We use char because int might match the return type of a gcc2
1461 builtin and then its argument prototype would still apply. */
1462 char connect();
1464 int main() {
1465 connect()
1466 ; return 0; }
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1469 rm -rf conftest*
1470 eval "ac_cv_lib_$ac_lib_var=yes"
1471 else
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1474 rm -rf conftest*
1475 eval "ac_cv_lib_$ac_lib_var=no"
1477 rm -f conftest*
1478 LIBS="$ac_save_LIBS"
1481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1484 else
1485 echo "$ac_t""no" 1>&6
1490 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1491 echo $ac_n "checking for remove""... $ac_c" 1>&6
1492 echo "configure:1493: checking for remove" >&5
1493 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1495 else
1496 cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 /* System header to define __stub macros and hopefully few prototypes,
1500 which can conflict with char remove(); below. */
1501 #include <assert.h>
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1505 char remove();
1507 int main() {
1509 /* The GNU C library defines this for functions which it implements
1510 to always fail with ENOSYS. Some functions are actually named
1511 something starting with __ and the normal name is an alias. */
1512 #if defined (__stub_remove) || defined (__stub___remove)
1513 choke me
1514 #else
1515 remove();
1516 #endif
1518 ; return 0; }
1520 if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1521 rm -rf conftest*
1522 eval "ac_cv_func_remove=yes"
1523 else
1524 echo "configure: failed program was:" >&5
1525 cat conftest.$ac_ext >&5
1526 rm -rf conftest*
1527 eval "ac_cv_func_remove=no"
1529 rm -f conftest*
1532 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1533 echo "$ac_t""yes" 1>&6
1535 else
1536 echo "$ac_t""no" 1>&6
1539 if test $ac_cv_func_remove = no; then
1540 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1541 echo "configure:1542: checking for remove in -lposix" >&5
1542 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1545 else
1546 ac_save_LIBS="$LIBS"
1547 LIBS="-lposix $LIBS"
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 /* Override any gcc2 internal prototype to avoid an error. */
1552 /* We use char because int might match the return type of a gcc2
1553 builtin and then its argument prototype would still apply. */
1554 char remove();
1556 int main() {
1557 remove()
1558 ; return 0; }
1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1561 rm -rf conftest*
1562 eval "ac_cv_lib_$ac_lib_var=yes"
1563 else
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1566 rm -rf conftest*
1567 eval "ac_cv_lib_$ac_lib_var=no"
1569 rm -f conftest*
1570 LIBS="$ac_save_LIBS"
1573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1576 else
1577 echo "$ac_t""no" 1>&6
1582 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1583 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1584 echo "configure:1585: checking for shmat" >&5
1585 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 /* System header to define __stub macros and hopefully few prototypes,
1592 which can conflict with char shmat(); below. */
1593 #include <assert.h>
1594 /* Override any gcc2 internal prototype to avoid an error. */
1595 /* We use char because int might match the return type of a gcc2
1596 builtin and then its argument prototype would still apply. */
1597 char shmat();
1599 int main() {
1601 /* The GNU C library defines this for functions which it implements
1602 to always fail with ENOSYS. Some functions are actually named
1603 something starting with __ and the normal name is an alias. */
1604 #if defined (__stub_shmat) || defined (__stub___shmat)
1605 choke me
1606 #else
1607 shmat();
1608 #endif
1610 ; return 0; }
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1613 rm -rf conftest*
1614 eval "ac_cv_func_shmat=yes"
1615 else
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1618 rm -rf conftest*
1619 eval "ac_cv_func_shmat=no"
1621 rm -f conftest*
1624 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1625 echo "$ac_t""yes" 1>&6
1627 else
1628 echo "$ac_t""no" 1>&6
1631 if test $ac_cv_func_shmat = no; then
1632 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1633 echo "configure:1634: checking for shmat in -lipc" >&5
1634 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1637 else
1638 ac_save_LIBS="$LIBS"
1639 LIBS="-lipc $LIBS"
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 /* Override any gcc2 internal prototype to avoid an error. */
1644 /* We use char because int might match the return type of a gcc2
1645 builtin and then its argument prototype would still apply. */
1646 char shmat();
1648 int main() {
1649 shmat()
1650 ; return 0; }
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1653 rm -rf conftest*
1654 eval "ac_cv_lib_$ac_lib_var=yes"
1655 else
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1658 rm -rf conftest*
1659 eval "ac_cv_lib_$ac_lib_var=no"
1661 rm -f conftest*
1662 LIBS="$ac_save_LIBS"
1665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1666 echo "$ac_t""yes" 1>&6
1667 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1668 else
1669 echo "$ac_t""no" 1>&6
1675 # Check for libraries that X11R6 Xt/Xaw programs need.
1676 ac_save_LDFLAGS="$LDFLAGS"
1677 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1678 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1679 # check for ICE first), but we must link in the order -lSM -lICE or
1680 # we get undefined symbols. So assume we have SM if we have ICE.
1681 # These have to be linked with before -lX11, unlike the other
1682 # libraries we check for below, so use a different variable.
1683 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1684 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1685 echo "configure:1686: checking for IceConnectionNumber in -lICE" >&5
1686 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1689 else
1690 ac_save_LIBS="$LIBS"
1691 LIBS="-lICE $LIBS"
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 /* Override any gcc2 internal prototype to avoid an error. */
1696 /* We use char because int might match the return type of a gcc2
1697 builtin and then its argument prototype would still apply. */
1698 char IceConnectionNumber();
1700 int main() {
1701 IceConnectionNumber()
1702 ; return 0; }
1704 if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1705 rm -rf conftest*
1706 eval "ac_cv_lib_$ac_lib_var=yes"
1707 else
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1710 rm -rf conftest*
1711 eval "ac_cv_lib_$ac_lib_var=no"
1713 rm -f conftest*
1714 LIBS="$ac_save_LIBS"
1717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1719 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1720 else
1721 echo "$ac_t""no" 1>&6
1724 LDFLAGS="$ac_save_LDFLAGS"
1728 for ac_prog in 'bison -y' byacc
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_word" >&5
1734 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1736 else
1737 if test -n "$YACC"; then
1738 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1739 else
1740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1741 for ac_dir in $PATH; do
1742 test -z "$ac_dir" && ac_dir=.
1743 if test -f $ac_dir/$ac_word; then
1744 ac_cv_prog_YACC="$ac_prog"
1745 break
1747 done
1748 IFS="$ac_save_ifs"
1751 YACC="$ac_cv_prog_YACC"
1752 if test -n "$YACC"; then
1753 echo "$ac_t""$YACC" 1>&6
1754 else
1755 echo "$ac_t""no" 1>&6
1758 test -n "$YACC" && break
1759 done
1760 test -n "$YACC" || YACC="yacc"
1762 # Extract the first word of "flex", so it can be a program name with args.
1763 set dummy flex; ac_word=$2
1764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1765 echo "configure:1766: checking for $ac_word" >&5
1766 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1768 else
1769 if test -n "$LEX"; then
1770 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1771 else
1772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1773 for ac_dir in $PATH; do
1774 test -z "$ac_dir" && ac_dir=.
1775 if test -f $ac_dir/$ac_word; then
1776 ac_cv_prog_LEX="flex"
1777 break
1779 done
1780 IFS="$ac_save_ifs"
1781 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1784 LEX="$ac_cv_prog_LEX"
1785 if test -n "$LEX"; then
1786 echo "$ac_t""$LEX" 1>&6
1787 else
1788 echo "$ac_t""no" 1>&6
1791 if test -z "$LEXLIB"
1792 then
1793 case "$LEX" in
1794 flex*) ac_lib=fl ;;
1795 *) ac_lib=l ;;
1796 esac
1797 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1798 echo "configure:1799: checking for yywrap in -l$ac_lib" >&5
1799 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 ac_save_LIBS="$LIBS"
1804 LIBS="-l$ac_lib $LIBS"
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 /* Override any gcc2 internal prototype to avoid an error. */
1809 /* We use char because int might match the return type of a gcc2
1810 builtin and then its argument prototype would still apply. */
1811 char yywrap();
1813 int main() {
1814 yywrap()
1815 ; return 0; }
1817 if { (eval echo configure:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1818 rm -rf conftest*
1819 eval "ac_cv_lib_$ac_lib_var=yes"
1820 else
1821 echo "configure: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1823 rm -rf conftest*
1824 eval "ac_cv_lib_$ac_lib_var=no"
1826 rm -f conftest*
1827 LIBS="$ac_save_LIBS"
1830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1832 LEXLIB="-l$ac_lib"
1833 else
1834 echo "$ac_t""no" 1>&6
1839 # Extract the first word of "ranlib", so it can be a program name with args.
1840 set dummy ranlib; ac_word=$2
1841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1842 echo "configure:1843: checking for $ac_word" >&5
1843 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1845 else
1846 if test -n "$RANLIB"; then
1847 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1848 else
1849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1850 for ac_dir in $PATH; do
1851 test -z "$ac_dir" && ac_dir=.
1852 if test -f $ac_dir/$ac_word; then
1853 ac_cv_prog_RANLIB="ranlib"
1854 break
1856 done
1857 IFS="$ac_save_ifs"
1858 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1861 RANLIB="$ac_cv_prog_RANLIB"
1862 if test -n "$RANLIB"; then
1863 echo "$ac_t""$RANLIB" 1>&6
1864 else
1865 echo "$ac_t""no" 1>&6
1868 # Find a good install program. We prefer a C program (faster),
1869 # so one script is as good as another. But avoid the broken or
1870 # incompatible versions:
1871 # SysV /etc/install, /usr/sbin/install
1872 # SunOS /usr/etc/install
1873 # IRIX /sbin/install
1874 # AIX /bin/install
1875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1877 # ./install, which can be erroneously created by make from ./install.sh.
1878 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1879 echo "configure:1880: checking for a BSD compatible install" >&5
1880 if test -z "$INSTALL"; then
1881 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1885 for ac_dir in $PATH; do
1886 # Account for people who put trailing slashes in PATH elements.
1887 case "$ac_dir/" in
1888 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1890 # OSF1 and SCO ODT 3.0 have their own names for install.
1891 for ac_prog in ginstall installbsd scoinst install; do
1892 if test -f $ac_dir/$ac_prog; then
1893 if test $ac_prog = install &&
1894 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1895 # AIX install. It has an incompatible calling convention.
1896 # OSF/1 installbsd also uses dspmsg, but is usable.
1898 else
1899 ac_cv_path_install="$ac_dir/$ac_prog -c"
1900 break 2
1903 done
1905 esac
1906 done
1907 IFS="$ac_save_IFS"
1910 if test "${ac_cv_path_install+set}" = set; then
1911 INSTALL="$ac_cv_path_install"
1912 else
1913 # As a last resort, use the slow shell script. We don't cache a
1914 # path for INSTALL within a source directory, because that will
1915 # break other packages using the cache if that directory is
1916 # removed, or if the path is relative.
1917 INSTALL="$ac_install_sh"
1920 echo "$ac_t""$INSTALL" 1>&6
1922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1923 # It thinks the first close brace ends the variable substitution.
1924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1926 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1928 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1929 echo "configure:1930: checking whether ln -s works" >&5
1930 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933 rm -f conftestdata
1934 if ln -s X conftestdata 2>/dev/null
1935 then
1936 rm -f conftestdata
1937 ac_cv_prog_LN_S="ln -s"
1938 else
1939 ac_cv_prog_LN_S=ln
1942 LN_S="$ac_cv_prog_LN_S"
1943 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1944 echo "$ac_t""yes" 1>&6
1945 else
1946 echo "$ac_t""no" 1>&6
1949 # Extract the first word of "c2man", so it can be a program name with args.
1950 set dummy c2man; ac_word=$2
1951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_word" >&5
1953 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1955 else
1956 if test -n "$C2MAN"; then
1957 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1958 else
1959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1960 for ac_dir in $PATH; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_C2MAN="c2man"
1964 break
1966 done
1967 IFS="$ac_save_ifs"
1968 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1971 C2MAN="$ac_cv_prog_C2MAN"
1972 if test -n "$C2MAN"; then
1973 echo "$ac_t""$C2MAN" 1>&6
1974 else
1975 echo "$ac_t""no" 1>&6
1978 # Extract the first word of "ldconfig", so it can be a program name with args.
1979 set dummy ldconfig; ac_word=$2
1980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_word" >&5
1982 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985 case "$LDCONFIG" in
1987 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
1990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1991 for ac_dir in /sbin:/usr/sbin:$PATH$ac_dummy; do
1992 test -z "$ac_dir" && ac_dir=.
1993 if test -f $ac_dir/$ac_word; then
1994 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
1995 break
1997 done
1998 IFS="$ac_save_ifs"
1999 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="false"
2001 esac
2003 LDCONFIG="$ac_cv_path_LDCONFIG"
2004 if test -n "$LDCONFIG"; then
2005 echo "$ac_t""$LDCONFIG" 1>&6
2006 else
2007 echo "$ac_t""no" 1>&6
2011 for ac_prog in lclint lint
2013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2014 set dummy $ac_prog; ac_word=$2
2015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2016 echo "configure:2017: checking for $ac_word" >&5
2017 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2019 else
2020 if test -n "$LINT"; then
2021 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2022 else
2023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2024 for ac_dir in $PATH; do
2025 test -z "$ac_dir" && ac_dir=.
2026 if test -f $ac_dir/$ac_word; then
2027 ac_cv_prog_LINT="$ac_prog"
2028 break
2030 done
2031 IFS="$ac_save_ifs"
2034 LINT="$ac_cv_prog_LINT"
2035 if test -n "$LINT"; then
2036 echo "$ac_t""$LINT" 1>&6
2037 else
2038 echo "$ac_t""no" 1>&6
2041 test -n "$LINT" && break
2042 done
2044 if test "$LINT" = "lint"
2045 then
2046 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2052 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2053 echo "configure:2054: checking for sqrt in -lm" >&5
2054 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2057 else
2058 ac_save_LIBS="$LIBS"
2059 LIBS="-lm $LIBS"
2060 cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 /* Override any gcc2 internal prototype to avoid an error. */
2064 /* We use char because int might match the return type of a gcc2
2065 builtin and then its argument prototype would still apply. */
2066 char sqrt();
2068 int main() {
2069 sqrt()
2070 ; return 0; }
2072 if { (eval echo configure:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2073 rm -rf conftest*
2074 eval "ac_cv_lib_$ac_lib_var=yes"
2075 else
2076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2078 rm -rf conftest*
2079 eval "ac_cv_lib_$ac_lib_var=no"
2081 rm -f conftest*
2082 LIBS="$ac_save_LIBS"
2085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2088 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2089 cat >> confdefs.h <<EOF
2090 #define $ac_tr_lib 1
2093 LIBS="-lm $LIBS"
2095 else
2096 echo "$ac_t""no" 1>&6
2099 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2100 echo "configure:2101: checking for i386_set_ldt in -li386" >&5
2101 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2104 else
2105 ac_save_LIBS="$LIBS"
2106 LIBS="-li386 $LIBS"
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 /* Override any gcc2 internal prototype to avoid an error. */
2111 /* We use char because int might match the return type of a gcc2
2112 builtin and then its argument prototype would still apply. */
2113 char i386_set_ldt();
2115 int main() {
2116 i386_set_ldt()
2117 ; return 0; }
2119 if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2120 rm -rf conftest*
2121 eval "ac_cv_lib_$ac_lib_var=yes"
2122 else
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2125 rm -rf conftest*
2126 eval "ac_cv_lib_$ac_lib_var=no"
2128 rm -f conftest*
2129 LIBS="$ac_save_LIBS"
2132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2133 echo "$ac_t""yes" 1>&6
2134 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2136 cat >> confdefs.h <<EOF
2137 #define $ac_tr_lib 1
2140 LIBS="-li386 $LIBS"
2142 else
2143 echo "$ac_t""no" 1>&6
2146 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2147 echo "configure:2148: checking for _oss_ioctl in -lossaudio" >&5
2148 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2151 else
2152 ac_save_LIBS="$LIBS"
2153 LIBS="-lossaudio $LIBS"
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 /* Override any gcc2 internal prototype to avoid an error. */
2158 /* We use char because int might match the return type of a gcc2
2159 builtin and then its argument prototype would still apply. */
2160 char _oss_ioctl();
2162 int main() {
2163 _oss_ioctl()
2164 ; return 0; }
2166 if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2167 rm -rf conftest*
2168 eval "ac_cv_lib_$ac_lib_var=yes"
2169 else
2170 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2172 rm -rf conftest*
2173 eval "ac_cv_lib_$ac_lib_var=no"
2175 rm -f conftest*
2176 LIBS="$ac_save_LIBS"
2179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2183 cat >> confdefs.h <<EOF
2184 #define $ac_tr_lib 1
2187 LIBS="-lossaudio $LIBS"
2189 else
2190 echo "$ac_t""no" 1>&6
2193 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2194 echo "configure:2195: checking for iswalnum in -lw" >&5
2195 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2198 else
2199 ac_save_LIBS="$LIBS"
2200 LIBS="-lw $LIBS"
2201 cat > conftest.$ac_ext <<EOF
2202 #line 2203 "configure"
2203 #include "confdefs.h"
2204 /* Override any gcc2 internal prototype to avoid an error. */
2205 /* We use char because int might match the return type of a gcc2
2206 builtin and then its argument prototype would still apply. */
2207 char iswalnum();
2209 int main() {
2210 iswalnum()
2211 ; return 0; }
2213 if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2214 rm -rf conftest*
2215 eval "ac_cv_lib_$ac_lib_var=yes"
2216 else
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2219 rm -rf conftest*
2220 eval "ac_cv_lib_$ac_lib_var=no"
2222 rm -f conftest*
2223 LIBS="$ac_save_LIBS"
2226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2228 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2230 cat >> confdefs.h <<EOF
2231 #define $ac_tr_lib 1
2234 LIBS="-lw $LIBS"
2236 else
2237 echo "$ac_t""no" 1>&6
2240 for ac_func in gethostbyname
2242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2243 echo "configure:2244: checking for $ac_func" >&5
2244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2246 else
2247 cat > conftest.$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2250 /* System header to define __stub macros and hopefully few prototypes,
2251 which can conflict with char $ac_func(); below. */
2252 #include <assert.h>
2253 /* Override any gcc2 internal prototype to avoid an error. */
2254 /* We use char because int might match the return type of a gcc2
2255 builtin and then its argument prototype would still apply. */
2256 char $ac_func();
2258 int main() {
2260 /* The GNU C library defines this for functions which it implements
2261 to always fail with ENOSYS. Some functions are actually named
2262 something starting with __ and the normal name is an alias. */
2263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2264 choke me
2265 #else
2266 $ac_func();
2267 #endif
2269 ; return 0; }
2271 if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2272 rm -rf conftest*
2273 eval "ac_cv_func_$ac_func=yes"
2274 else
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 rm -rf conftest*
2278 eval "ac_cv_func_$ac_func=no"
2280 rm -f conftest*
2283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2286 cat >> confdefs.h <<EOF
2287 #define $ac_tr_func 1
2290 else
2291 echo "$ac_t""no" 1>&6
2292 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2293 echo "configure:2294: checking for gethostbyname in -lnsl" >&5
2294 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2297 else
2298 ac_save_LIBS="$LIBS"
2299 LIBS="-lnsl -lsocket $LIBS"
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 /* Override any gcc2 internal prototype to avoid an error. */
2304 /* We use char because int might match the return type of a gcc2
2305 builtin and then its argument prototype would still apply. */
2306 char gethostbyname();
2308 int main() {
2309 gethostbyname()
2310 ; return 0; }
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2313 rm -rf conftest*
2314 eval "ac_cv_lib_$ac_lib_var=yes"
2315 else
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 rm -rf conftest*
2319 eval "ac_cv_lib_$ac_lib_var=no"
2321 rm -f conftest*
2322 LIBS="$ac_save_LIBS"
2325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2326 echo "$ac_t""yes" 1>&6
2327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2328 else
2329 echo "$ac_t""no" 1>&6
2330 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2331 echo "configure:2332: checking for gethostbyname in -lsocket" >&5
2332 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2335 else
2336 ac_save_LIBS="$LIBS"
2337 LIBS="-lsocket -lnsl $LIBS"
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 /* Override any gcc2 internal prototype to avoid an error. */
2342 /* We use char because int might match the return type of a gcc2
2343 builtin and then its argument prototype would still apply. */
2344 char gethostbyname();
2346 int main() {
2347 gethostbyname()
2348 ; return 0; }
2350 if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2351 rm -rf conftest*
2352 eval "ac_cv_lib_$ac_lib_var=yes"
2353 else
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2356 rm -rf conftest*
2357 eval "ac_cv_lib_$ac_lib_var=no"
2359 rm -f conftest*
2360 LIBS="$ac_save_LIBS"
2363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2364 echo "$ac_t""yes" 1>&6
2365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2366 else
2367 echo "$ac_t""no" 1>&6
2373 done
2375 for ac_func in connect
2377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_func" >&5
2379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2381 else
2382 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 /* System header to define __stub macros and hopefully few prototypes,
2386 which can conflict with char $ac_func(); below. */
2387 #include <assert.h>
2388 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2391 char $ac_func();
2393 int main() {
2395 /* The GNU C library defines this for functions which it implements
2396 to always fail with ENOSYS. Some functions are actually named
2397 something starting with __ and the normal name is an alias. */
2398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2399 choke me
2400 #else
2401 $ac_func();
2402 #endif
2404 ; return 0; }
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2407 rm -rf conftest*
2408 eval "ac_cv_func_$ac_func=yes"
2409 else
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2412 rm -rf conftest*
2413 eval "ac_cv_func_$ac_func=no"
2415 rm -f conftest*
2418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2421 cat >> confdefs.h <<EOF
2422 #define $ac_tr_func 1
2425 else
2426 echo "$ac_t""no" 1>&6
2427 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2428 echo "configure:2429: checking for connect in -lsocket" >&5
2429 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2432 else
2433 ac_save_LIBS="$LIBS"
2434 LIBS="-lsocket $LIBS"
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 /* Override any gcc2 internal prototype to avoid an error. */
2439 /* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2441 char connect();
2443 int main() {
2444 connect()
2445 ; return 0; }
2447 if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2448 rm -rf conftest*
2449 eval "ac_cv_lib_$ac_lib_var=yes"
2450 else
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2453 rm -rf conftest*
2454 eval "ac_cv_lib_$ac_lib_var=no"
2456 rm -f conftest*
2457 LIBS="$ac_save_LIBS"
2460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2464 cat >> confdefs.h <<EOF
2465 #define $ac_tr_lib 1
2468 LIBS="-lsocket $LIBS"
2470 else
2471 echo "$ac_t""no" 1>&6
2475 done
2477 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2478 echo "configure:2479: checking for setrunelocale in -lxpg4" >&5
2479 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2482 else
2483 ac_save_LIBS="$LIBS"
2484 LIBS="-lxpg4 $LIBS"
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2491 char setrunelocale();
2493 int main() {
2494 setrunelocale()
2495 ; return 0; }
2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2498 rm -rf conftest*
2499 eval "ac_cv_lib_$ac_lib_var=yes"
2500 else
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2503 rm -rf conftest*
2504 eval "ac_cv_lib_$ac_lib_var=no"
2506 rm -f conftest*
2507 LIBS="$ac_save_LIBS"
2510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2511 echo "$ac_t""yes" 1>&6
2512 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2514 cat >> confdefs.h <<EOF
2515 #define $ac_tr_lib 1
2518 LIBS="-lxpg4 $LIBS"
2520 else
2521 echo "$ac_t""no" 1>&6
2524 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2525 echo "configure:2526: checking for mmap in -lmmap" >&5
2526 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2529 else
2530 ac_save_LIBS="$LIBS"
2531 LIBS="-lmmap $LIBS"
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2538 char mmap();
2540 int main() {
2541 mmap()
2542 ; return 0; }
2544 if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2545 rm -rf conftest*
2546 eval "ac_cv_lib_$ac_lib_var=yes"
2547 else
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2550 rm -rf conftest*
2551 eval "ac_cv_lib_$ac_lib_var=no"
2553 rm -f conftest*
2554 LIBS="$ac_save_LIBS"
2557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2559 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2560 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2561 cat >> confdefs.h <<EOF
2562 #define $ac_tr_lib 1
2565 LIBS="-lmmap $LIBS"
2567 else
2568 echo "$ac_t""no" 1>&6
2572 for ac_hdr in dlfcn.h
2574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2576 echo "configure:2577: checking for $ac_hdr" >&5
2577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2579 else
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 #include <$ac_hdr>
2585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2586 { (eval echo configure:2587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2587 ac_err=`grep -v '^ *+' conftest.out`
2588 if test -z "$ac_err"; then
2589 rm -rf conftest*
2590 eval "ac_cv_header_$ac_safe=yes"
2591 else
2592 echo "$ac_err" >&5
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2595 rm -rf conftest*
2596 eval "ac_cv_header_$ac_safe=no"
2598 rm -f conftest*
2600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2603 cat >> confdefs.h <<EOF
2604 #define $ac_tr_hdr 1
2606 for ac_func in dlopen
2608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2609 echo "configure:2610: checking for $ac_func" >&5
2610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2612 else
2613 cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 /* System header to define __stub macros and hopefully few prototypes,
2617 which can conflict with char $ac_func(); below. */
2618 #include <assert.h>
2619 /* Override any gcc2 internal prototype to avoid an error. */
2620 /* We use char because int might match the return type of a gcc2
2621 builtin and then its argument prototype would still apply. */
2622 char $ac_func();
2624 int main() {
2626 /* The GNU C library defines this for functions which it implements
2627 to always fail with ENOSYS. Some functions are actually named
2628 something starting with __ and the normal name is an alias. */
2629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2630 choke me
2631 #else
2632 $ac_func();
2633 #endif
2635 ; return 0; }
2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2638 rm -rf conftest*
2639 eval "ac_cv_func_$ac_func=yes"
2640 else
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 rm -rf conftest*
2644 eval "ac_cv_func_$ac_func=no"
2646 rm -f conftest*
2649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2652 cat >> confdefs.h <<EOF
2653 #define $ac_tr_func 1
2655 cat >> confdefs.h <<\EOF
2656 #define HAVE_DL_API 1
2659 else
2660 echo "$ac_t""no" 1>&6
2661 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2662 echo "configure:2663: checking for dlopen in -ldl" >&5
2663 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2666 else
2667 ac_save_LIBS="$LIBS"
2668 LIBS="-ldl $LIBS"
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 /* Override any gcc2 internal prototype to avoid an error. */
2673 /* We use char because int might match the return type of a gcc2
2674 builtin and then its argument prototype would still apply. */
2675 char dlopen();
2677 int main() {
2678 dlopen()
2679 ; return 0; }
2681 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2682 rm -rf conftest*
2683 eval "ac_cv_lib_$ac_lib_var=yes"
2684 else
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2687 rm -rf conftest*
2688 eval "ac_cv_lib_$ac_lib_var=no"
2690 rm -f conftest*
2691 LIBS="$ac_save_LIBS"
2694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2695 echo "$ac_t""yes" 1>&6
2696 cat >> confdefs.h <<\EOF
2697 #define HAVE_DL_API 1
2700 LIBS="$LIBS -ldl"
2702 else
2703 echo "$ac_t""no" 1>&6
2708 done
2711 else
2712 echo "$ac_t""no" 1>&6
2714 done
2717 if test "$have_x" = "yes"
2718 then
2719 XLIB="-lXext -lX11"
2720 ac_save_CPPFLAGS="$CPPFLAGS"
2721 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2723 for ac_hdr in X11/xpm.h
2725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2727 echo "configure:2728: checking for $ac_hdr" >&5
2728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2734 #include <$ac_hdr>
2736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2737 { (eval echo configure:2738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2738 ac_err=`grep -v '^ *+' conftest.out`
2739 if test -z "$ac_err"; then
2740 rm -rf conftest*
2741 eval "ac_cv_header_$ac_safe=yes"
2742 else
2743 echo "$ac_err" >&5
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2746 rm -rf conftest*
2747 eval "ac_cv_header_$ac_safe=no"
2749 rm -f conftest*
2751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2754 cat >> confdefs.h <<EOF
2755 #define $ac_tr_hdr 1
2758 else
2759 echo "$ac_t""no" 1>&6
2761 done
2763 if test "$ac_cv_header_X11_xpm_h" = "yes"
2764 then
2765 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2766 echo "configure:2767: checking for XpmCreatePixmapFromData in -lXpm" >&5
2767 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2770 else
2771 ac_save_LIBS="$LIBS"
2772 LIBS="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 /* Override any gcc2 internal prototype to avoid an error. */
2777 /* We use char because int might match the return type of a gcc2
2778 builtin and then its argument prototype would still apply. */
2779 char XpmCreatePixmapFromData();
2781 int main() {
2782 XpmCreatePixmapFromData()
2783 ; return 0; }
2785 if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2786 rm -rf conftest*
2787 eval "ac_cv_lib_$ac_lib_var=yes"
2788 else
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2791 rm -rf conftest*
2792 eval "ac_cv_lib_$ac_lib_var=no"
2794 rm -f conftest*
2795 LIBS="$ac_save_LIBS"
2798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 cat >> confdefs.h <<\EOF
2801 #define HAVE_LIBXXPM 1
2803 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2804 else
2805 echo "$ac_t""no" 1>&6
2810 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
2812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_hdr" >&5
2815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2817 else
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821 #include <$ac_hdr>
2823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err=`grep -v '^ *+' conftest.out`
2826 if test -z "$ac_err"; then
2827 rm -rf conftest*
2828 eval "ac_cv_header_$ac_safe=yes"
2829 else
2830 echo "$ac_err" >&5
2831 echo "configure: failed program was:" >&5
2832 cat conftest.$ac_ext >&5
2833 rm -rf conftest*
2834 eval "ac_cv_header_$ac_safe=no"
2836 rm -f conftest*
2838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2839 echo "$ac_t""yes" 1>&6
2840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2841 cat >> confdefs.h <<EOF
2842 #define $ac_tr_hdr 1
2845 else
2846 echo "$ac_t""no" 1>&6
2848 done
2850 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2851 then
2852 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2853 echo "configure:2854: checking for XShmQueryExtension in -lXext" >&5
2854 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2857 else
2858 ac_save_LIBS="$LIBS"
2859 LIBS="-lXext $X_LIBS -lXext -lX11 $LIBS"
2860 cat > conftest.$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2863 /* Override any gcc2 internal prototype to avoid an error. */
2864 /* We use char because int might match the return type of a gcc2
2865 builtin and then its argument prototype would still apply. */
2866 char XShmQueryExtension();
2868 int main() {
2869 XShmQueryExtension()
2870 ; return 0; }
2872 if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2873 rm -rf conftest*
2874 eval "ac_cv_lib_$ac_lib_var=yes"
2875 else
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2878 rm -rf conftest*
2879 eval "ac_cv_lib_$ac_lib_var=no"
2881 rm -f conftest*
2882 LIBS="$ac_save_LIBS"
2885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2886 echo "$ac_t""yes" 1>&6
2887 cat >> confdefs.h <<\EOF
2888 #define HAVE_LIBXXSHM 1
2891 else
2892 echo "$ac_t""no" 1>&6
2896 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
2898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_hdr" >&5
2901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2903 else
2904 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2907 #include <$ac_hdr>
2909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2910 { (eval echo configure:2911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2911 ac_err=`grep -v '^ *+' conftest.out`
2912 if test -z "$ac_err"; then
2913 rm -rf conftest*
2914 eval "ac_cv_header_$ac_safe=yes"
2915 else
2916 echo "$ac_err" >&5
2917 echo "configure: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2919 rm -rf conftest*
2920 eval "ac_cv_header_$ac_safe=no"
2922 rm -f conftest*
2924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2925 echo "$ac_t""yes" 1>&6
2926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2927 cat >> confdefs.h <<EOF
2928 #define $ac_tr_hdr 1
2931 else
2932 echo "$ac_t""no" 1>&6
2934 done
2936 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2937 then
2938 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2939 echo "configure:2940: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2940 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2943 else
2944 ac_save_LIBS="$LIBS"
2945 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 /* Override any gcc2 internal prototype to avoid an error. */
2950 /* We use char because int might match the return type of a gcc2
2951 builtin and then its argument prototype would still apply. */
2952 char XF86DGAQueryExtension();
2954 int main() {
2955 XF86DGAQueryExtension()
2956 ; return 0; }
2958 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2959 rm -rf conftest*
2960 eval "ac_cv_lib_$ac_lib_var=yes"
2961 else
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2964 rm -rf conftest*
2965 eval "ac_cv_lib_$ac_lib_var=no"
2967 rm -f conftest*
2968 LIBS="$ac_save_LIBS"
2971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2972 echo "$ac_t""yes" 1>&6
2973 cat >> confdefs.h <<\EOF
2974 #define HAVE_LIBXXF86DGA 1
2976 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2977 else
2978 echo "$ac_t""no" 1>&6
2983 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
2985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_hdr" >&5
2988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2990 else
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 #include <$ac_hdr>
2996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2997 { (eval echo configure:2998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2998 ac_err=`grep -v '^ *+' conftest.out`
2999 if test -z "$ac_err"; then
3000 rm -rf conftest*
3001 eval "ac_cv_header_$ac_safe=yes"
3002 else
3003 echo "$ac_err" >&5
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 rm -rf conftest*
3007 eval "ac_cv_header_$ac_safe=no"
3009 rm -f conftest*
3011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3014 cat >> confdefs.h <<EOF
3015 #define $ac_tr_hdr 1
3018 else
3019 echo "$ac_t""no" 1>&6
3021 done
3023 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3024 then
3025 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3026 echo "configure:3027: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3027 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3030 else
3031 ac_save_LIBS="$LIBS"
3032 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
3033 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure"
3035 #include "confdefs.h"
3036 /* Override any gcc2 internal prototype to avoid an error. */
3037 /* We use char because int might match the return type of a gcc2
3038 builtin and then its argument prototype would still apply. */
3039 char XF86VidModeQueryExtension();
3041 int main() {
3042 XF86VidModeQueryExtension()
3043 ; return 0; }
3045 if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3046 rm -rf conftest*
3047 eval "ac_cv_lib_$ac_lib_var=yes"
3048 else
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3051 rm -rf conftest*
3052 eval "ac_cv_lib_$ac_lib_var=no"
3054 rm -f conftest*
3055 LIBS="$ac_save_LIBS"
3058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3059 echo "$ac_t""yes" 1>&6
3060 cat >> confdefs.h <<\EOF
3061 #define HAVE_LIBXXF86VM 1
3063 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3064 else
3065 echo "$ac_t""no" 1>&6
3070 for ac_hdr in GL/gl.h GL/glx.h GL/osmesa.h
3072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3074 echo "configure:3075: checking for $ac_hdr" >&5
3075 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3077 else
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 #include <$ac_hdr>
3083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3084 { (eval echo configure:3085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3085 ac_err=`grep -v '^ *+' conftest.out`
3086 if test -z "$ac_err"; then
3087 rm -rf conftest*
3088 eval "ac_cv_header_$ac_safe=yes"
3089 else
3090 echo "$ac_err" >&5
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3093 rm -rf conftest*
3094 eval "ac_cv_header_$ac_safe=no"
3096 rm -f conftest*
3098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3099 echo "$ac_t""yes" 1>&6
3100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3101 cat >> confdefs.h <<EOF
3102 #define $ac_tr_hdr 1
3105 else
3106 echo "$ac_t""no" 1>&6
3108 done
3110 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3111 then
3112 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
3113 echo "configure:3114: checking "for up-to-date Mesa version"" >&5
3114 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3116 else
3117 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <GL/gl.h>
3121 int main() {
3122 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3123 ; return 0; }
3125 if { (eval echo configure:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3126 rm -rf conftest*
3127 wine_cv_mesa_version_OK="yes"
3128 else
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3131 rm -rf conftest*
3132 wine_cv_mesa_version_OK="no"
3135 rm -f conftest*
3139 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3141 if test "$wine_cv_mesa_version_OK" = "yes"
3142 then
3143 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3144 echo "configure:3145: checking for glXCreateContext in -lGL" >&5
3145 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3147 echo $ac_n "(cached) $ac_c" 1>&6
3148 else
3149 ac_save_LIBS="$LIBS"
3150 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $LIBS"
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3154 /* Override any gcc2 internal prototype to avoid an error. */
3155 /* We use char because int might match the return type of a gcc2
3156 builtin and then its argument prototype would still apply. */
3157 char glXCreateContext();
3159 int main() {
3160 glXCreateContext()
3161 ; return 0; }
3163 if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3164 rm -rf conftest*
3165 eval "ac_cv_lib_$ac_lib_var=yes"
3166 else
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3169 rm -rf conftest*
3170 eval "ac_cv_lib_$ac_lib_var=no"
3172 rm -f conftest*
3173 LIBS="$ac_save_LIBS"
3176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3177 echo "$ac_t""yes" 1>&6
3178 cat >> confdefs.h <<\EOF
3179 #define HAVE_LIBMESAGL 1
3181 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3182 else
3183 echo "$ac_t""no" 1>&6
3186 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3187 then
3188 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3189 echo "configure:3190: checking for glXCreateContext in -lMesaGL" >&5
3190 ac_lib_var=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3193 else
3194 ac_save_LIBS="$LIBS"
3195 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 /* Override any gcc2 internal prototype to avoid an error. */
3200 /* We use char because int might match the return type of a gcc2
3201 builtin and then its argument prototype would still apply. */
3202 char glXCreateContext();
3204 int main() {
3205 glXCreateContext()
3206 ; return 0; }
3208 if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3209 rm -rf conftest*
3210 eval "ac_cv_lib_$ac_lib_var=yes"
3211 else
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3214 rm -rf conftest*
3215 eval "ac_cv_lib_$ac_lib_var=no"
3217 rm -f conftest*
3218 LIBS="$ac_save_LIBS"
3221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3222 echo "$ac_t""yes" 1>&6
3223 cat >> confdefs.h <<\EOF
3224 #define HAVE_LIBMESAGL 1
3226 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3227 else
3228 echo "$ac_t""no" 1>&6
3235 CPPFLAGS="$ac_save_CPPFLAGS"
3236 else
3237 XLIB=""
3238 X_CFLAGS=""
3239 X_LIBS=""
3242 for ac_hdr in ncurses.h
3244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3246 echo "configure:3247: checking for $ac_hdr" >&5
3247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3249 else
3250 cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3253 #include <$ac_hdr>
3255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3256 { (eval echo configure:3257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3257 ac_err=`grep -v '^ *+' conftest.out`
3258 if test -z "$ac_err"; then
3259 rm -rf conftest*
3260 eval "ac_cv_header_$ac_safe=yes"
3261 else
3262 echo "$ac_err" >&5
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3265 rm -rf conftest*
3266 eval "ac_cv_header_$ac_safe=no"
3268 rm -f conftest*
3270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3271 echo "$ac_t""yes" 1>&6
3272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3273 cat >> confdefs.h <<EOF
3274 #define $ac_tr_hdr 1
3277 else
3278 echo "$ac_t""no" 1>&6
3280 done
3282 if test "$ac_cv_header_ncurses_h" = "yes"
3283 then
3284 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3285 echo "configure:3286: checking for waddch in -lncurses" >&5
3286 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3289 else
3290 ac_save_LIBS="$LIBS"
3291 LIBS="-lncurses $LIBS"
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298 char waddch();
3300 int main() {
3301 waddch()
3302 ; return 0; }
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3305 rm -rf conftest*
3306 eval "ac_cv_lib_$ac_lib_var=yes"
3307 else
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3310 rm -rf conftest*
3311 eval "ac_cv_lib_$ac_lib_var=no"
3313 rm -f conftest*
3314 LIBS="$ac_save_LIBS"
3317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3318 echo "$ac_t""yes" 1>&6
3319 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3321 cat >> confdefs.h <<EOF
3322 #define $ac_tr_lib 1
3325 LIBS="-lncurses $LIBS"
3327 else
3328 echo "$ac_t""no" 1>&6
3332 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3333 then
3334 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3335 echo "configure:3336: checking for resizeterm in -lncurses" >&5
3336 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3339 else
3340 ac_save_LIBS="$LIBS"
3341 LIBS="-lncurses $LIBS"
3342 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 /* Override any gcc2 internal prototype to avoid an error. */
3346 /* We use char because int might match the return type of a gcc2
3347 builtin and then its argument prototype would still apply. */
3348 char resizeterm();
3350 int main() {
3351 resizeterm()
3352 ; return 0; }
3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3355 rm -rf conftest*
3356 eval "ac_cv_lib_$ac_lib_var=yes"
3357 else
3358 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3360 rm -rf conftest*
3361 eval "ac_cv_lib_$ac_lib_var=no"
3363 rm -f conftest*
3364 LIBS="$ac_save_LIBS"
3367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3368 echo "$ac_t""yes" 1>&6
3369 cat >> confdefs.h <<\EOF
3370 #define HAVE_RESIZETERM 1
3373 else
3374 echo "$ac_t""no" 1>&6
3377 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3378 echo "configure:3379: checking for getbkgd in -lncurses" >&5
3379 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3382 else
3383 ac_save_LIBS="$LIBS"
3384 LIBS="-lncurses $LIBS"
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 /* Override any gcc2 internal prototype to avoid an error. */
3389 /* We use char because int might match the return type of a gcc2
3390 builtin and then its argument prototype would still apply. */
3391 char getbkgd();
3393 int main() {
3394 getbkgd()
3395 ; return 0; }
3397 if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3398 rm -rf conftest*
3399 eval "ac_cv_lib_$ac_lib_var=yes"
3400 else
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3403 rm -rf conftest*
3404 eval "ac_cv_lib_$ac_lib_var=no"
3406 rm -f conftest*
3407 LIBS="$ac_save_LIBS"
3410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 cat >> confdefs.h <<\EOF
3413 #define HAVE_GETBKGD 1
3416 else
3417 echo "$ac_t""no" 1>&6
3420 else
3421 for ac_hdr in curses.h
3423 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3424 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3425 echo "configure:3426: checking for $ac_hdr" >&5
3426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3428 else
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 #include <$ac_hdr>
3434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3435 { (eval echo configure:3436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3436 ac_err=`grep -v '^ *+' conftest.out`
3437 if test -z "$ac_err"; then
3438 rm -rf conftest*
3439 eval "ac_cv_header_$ac_safe=yes"
3440 else
3441 echo "$ac_err" >&5
3442 echo "configure: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3444 rm -rf conftest*
3445 eval "ac_cv_header_$ac_safe=no"
3447 rm -f conftest*
3449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3450 echo "$ac_t""yes" 1>&6
3451 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3452 cat >> confdefs.h <<EOF
3453 #define $ac_tr_hdr 1
3456 else
3457 echo "$ac_t""no" 1>&6
3459 done
3461 if test "$ac_cv_header_curses_h" = "yes"
3462 then
3463 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3464 echo "configure:3465: checking for waddch in -lcurses" >&5
3465 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3468 else
3469 ac_save_LIBS="$LIBS"
3470 LIBS="-lcurses $LIBS"
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 /* Override any gcc2 internal prototype to avoid an error. */
3475 /* We use char because int might match the return type of a gcc2
3476 builtin and then its argument prototype would still apply. */
3477 char waddch();
3479 int main() {
3480 waddch()
3481 ; return 0; }
3483 if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3484 rm -rf conftest*
3485 eval "ac_cv_lib_$ac_lib_var=yes"
3486 else
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3489 rm -rf conftest*
3490 eval "ac_cv_lib_$ac_lib_var=no"
3492 rm -f conftest*
3493 LIBS="$ac_save_LIBS"
3496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3498 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3500 cat >> confdefs.h <<EOF
3501 #define $ac_tr_lib 1
3504 LIBS="-lcurses $LIBS"
3506 else
3507 echo "$ac_t""no" 1>&6
3510 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3511 echo "configure:3512: checking for resizeterm in -lcurses" >&5
3512 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3515 else
3516 ac_save_LIBS="$LIBS"
3517 LIBS="-lcurses $LIBS"
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3524 char resizeterm();
3526 int main() {
3527 resizeterm()
3528 ; return 0; }
3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3531 rm -rf conftest*
3532 eval "ac_cv_lib_$ac_lib_var=yes"
3533 else
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3536 rm -rf conftest*
3537 eval "ac_cv_lib_$ac_lib_var=no"
3539 rm -f conftest*
3540 LIBS="$ac_save_LIBS"
3543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 cat >> confdefs.h <<\EOF
3546 #define HAVE_RESIZETERM 1
3549 else
3550 echo "$ac_t""no" 1>&6
3553 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3554 echo "configure:3555: checking for getbkgd in -lcurses" >&5
3555 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3558 else
3559 ac_save_LIBS="$LIBS"
3560 LIBS="-lcurses $LIBS"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3567 char getbkgd();
3569 int main() {
3570 getbkgd()
3571 ; return 0; }
3573 if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3574 rm -rf conftest*
3575 eval "ac_cv_lib_$ac_lib_var=yes"
3576 else
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3579 rm -rf conftest*
3580 eval "ac_cv_lib_$ac_lib_var=no"
3582 rm -f conftest*
3583 LIBS="$ac_save_LIBS"
3586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3588 cat >> confdefs.h <<\EOF
3589 #define HAVE_GETBKGD 1
3592 else
3593 echo "$ac_t""no" 1>&6
3599 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
3600 echo "configure:3601: checking "for GNU style IPX support"" >&5
3601 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3603 else
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 #include <sys/socket.h>
3608 #include <netipx/ipx.h>
3609 int main() {
3610 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3611 ; return 0; }
3613 if { (eval echo configure:3614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3614 rm -rf conftest*
3615 cat >> confdefs.h <<\EOF
3616 #define HAVE_IPX_GNU 1
3619 ac_cv_c_ipx_gnu="yes"
3620 else
3621 echo "configure: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3623 rm -rf conftest*
3624 ac_cv_c_ipx_gnu="no"
3626 rm -f conftest*
3630 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3632 if test "$ac_cv_c_ipx_gnu" = "no"
3633 then
3634 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
3635 echo "configure:3636: checking "for linux style IPX support"" >&5
3636 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3638 else
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <sys/socket.h>
3643 #include <asm/types.h>
3644 #include <linux/ipx.h>
3645 int main() {
3646 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3647 ; return 0; }
3649 if { (eval echo configure:3650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3650 rm -rf conftest*
3651 cat >> confdefs.h <<\EOF
3652 #define HAVE_IPX_LINUX 1
3655 ac_cv_c_ipx_linux="yes"
3656 else
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3659 rm -rf conftest*
3660 ac_cv_c_ipx_linux="no"
3662 rm -f conftest*
3666 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3669 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
3671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3673 echo "configure:3674: checking for $ac_hdr" >&5
3674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3676 else
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 #include <$ac_hdr>
3682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3683 { (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3684 ac_err=`grep -v '^ *+' conftest.out`
3685 if test -z "$ac_err"; then
3686 rm -rf conftest*
3687 eval "ac_cv_header_$ac_safe=yes"
3688 else
3689 echo "$ac_err" >&5
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3692 rm -rf conftest*
3693 eval "ac_cv_header_$ac_safe=no"
3695 rm -f conftest*
3697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3700 cat >> confdefs.h <<EOF
3701 #define $ac_tr_hdr 1
3703 break
3704 else
3705 echo "$ac_t""no" 1>&6
3707 done
3710 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
3711 echo "configure:3712: checking "for Open Sound System"" >&5
3712 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3714 else
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3719 #if defined(HAVE_SYS_SOUNDCARD_H)
3720 #include <sys/soundcard.h>
3721 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3722 #include <machine/soundcard.h>
3723 #elif defined(HAVE_SOUNDCARD_H)
3724 #include <soundcard.h>
3725 #endif
3727 int main() {
3730 /* check for one of the Open Sound System specific SNDCTL_ defines */
3731 #if !defined(SNDCTL_DSP_STEREO)
3732 #error No open sound system
3733 #endif
3735 ; return 0; }
3737 if { (eval echo configure:3738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3738 rm -rf conftest*
3739 ac_cv_c_opensoundsystem="yes"
3740 else
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3743 rm -rf conftest*
3744 ac_cv_c_opensoundsystem="no"
3746 rm -f conftest*
3749 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3751 if test "$ac_cv_c_opensoundsystem" = "yes"
3752 then
3753 cat >> confdefs.h <<\EOF
3754 #define HAVE_OSS 1
3759 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
3760 echo "configure:3761: checking "for Open Sound System/MIDI interface"" >&5
3761 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3763 else
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3768 #if defined(HAVE_SYS_SOUNDCARD_H)
3769 #include <sys/soundcard.h>
3770 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3771 #include <machine/soundcard.h>
3772 #elif defined(HAVE_SOUNDCARD_H)
3773 #include <soundcard.h>
3774 #endif
3776 int main() {
3779 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
3780 #if !defined(SNDCTL_SEQ_SYNC)
3781 #error No open sound system MIDI interface
3782 #endif
3784 ; return 0; }
3786 if { (eval echo configure:3787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3787 rm -rf conftest*
3788 ac_cv_c_opensoundsystem_midi="yes"
3789 else
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3792 rm -rf conftest*
3793 ac_cv_c_opensoundsystem_midi="no"
3795 rm -f conftest*
3798 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
3800 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
3801 then
3802 cat >> confdefs.h <<\EOF
3803 #define HAVE_OSS_MIDI 1
3808 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
3811 if test "x${GCC}" = "xyes"
3812 then
3813 CFLAGS="$CFLAGS -Wall"
3814 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
3815 echo "configure:3816: checking "for gcc strength-reduce bug"" >&5
3816 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3818 else
3819 if test "$cross_compiling" = yes; then
3820 ac_cv_c_gcc_strength_bug="yes"
3821 else
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3826 int main(void) {
3827 static int Array[3];
3828 unsigned int B = 3;
3829 int i;
3830 for(i=0; i<B; i++) Array[i] = i - 3;
3831 exit( Array[1] != -2 );
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3835 then
3836 ac_cv_c_gcc_strength_bug="no"
3837 else
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3840 rm -fr conftest*
3841 ac_cv_c_gcc_strength_bug="yes"
3843 rm -fr conftest*
3848 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3849 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3850 then
3851 CFLAGS="$CFLAGS -fno-strength-reduce"
3856 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
3857 echo "configure:3858: checking "whether external symbols need an underscore prefix"" >&5
3858 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3860 else
3861 saved_libs=$LIBS
3862 LIBS="conftest_asm.s $LIBS"
3863 cat > conftest_asm.s <<EOF
3864 .globl _ac_test
3865 _ac_test:
3866 .long 0
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 extern int ac_test;
3872 int main() {
3873 if (ac_test) return 1
3874 ; return 0; }
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3877 rm -rf conftest*
3878 ac_cv_c_extern_prefix="yes"
3879 else
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 rm -rf conftest*
3883 ac_cv_c_extern_prefix="no"
3885 rm -f conftest*
3886 LIBS=$saved_libs
3889 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3890 if test "$ac_cv_c_extern_prefix" = "yes"
3891 then
3892 cat >> confdefs.h <<\EOF
3893 #define NEED_UNDERSCORE_PREFIX 1
3899 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
3900 echo "configure:3901: checking "whether assembler accepts .string"" >&5
3901 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3903 else
3904 saved_libs=$LIBS
3905 LIBS="conftest_asm.s $LIBS"
3906 cat > conftest_asm.s <<EOF
3907 .string "test"
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3913 int main() {
3915 ; return 0; }
3917 if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3918 rm -rf conftest*
3919 ac_cv_c_asm_string="yes"
3920 else
3921 echo "configure: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3923 rm -rf conftest*
3924 ac_cv_c_asm_string="no"
3926 rm -f conftest*
3927 LIBS=$saved_libs
3930 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3931 if test "$ac_cv_c_asm_string" = "yes"
3932 then
3933 cat >> confdefs.h <<\EOF
3934 #define HAVE_ASM_STRING 1
3940 DLLFLAGS=""
3941 BUILDFLAGS=""
3942 LDSHARED=""
3943 if test "$LIB_TARGET" = "libwine.so.1.0"
3944 then
3945 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
3946 echo "configure:3947: checking "whether we can build a Linux dll"" >&5
3947 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3949 else
3950 saved_cflags=$CFLAGS
3951 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3956 int main() {
3957 return 1
3958 ; return 0; }
3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3961 rm -rf conftest*
3962 ac_cv_c_dll_linux="yes"
3963 else
3964 echo "configure: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3966 rm -rf conftest*
3967 ac_cv_c_dll_linux="no"
3969 rm -f conftest*
3970 CFLAGS=$saved_cflags
3974 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
3975 if test "$ac_cv_c_dll_linux" = "yes"
3976 then
3977 BUILDFLAGS="-pic"
3978 DLLFLAGS="-fPIC"
3979 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
3980 else
3981 echo $ac_n "checking "whether we can build a UnixWare dll"""... $ac_c" 1>&6
3982 echo "configure:3983: checking "whether we can build a UnixWare dll"" >&5
3983 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3985 else
3986 saved_cflags=$CFLAGS
3987 CFLAGS="$CFLAGS -fPIC -Wl,-G,conftest.so.1.0"
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3992 int main() {
3993 return 1
3994 ; return 0; }
3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3997 rm -rf conftest*
3998 ac_cv_c_dll_unixware="yes"
3999 else
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4002 rm -rf conftest*
4003 ac_cv_c_dll_unixware="no"
4005 rm -f conftest*
4006 CFLAGS=$saved_cflags
4010 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4011 if test "$ac_cv_c_dll_unixware" = "yes"
4012 then
4013 BUILDFLAGS="-pic"
4014 DLLFLAGS="-fPIC"
4015 LDSHARED="\$(CC) -Wl,-G,-h,/usr/local/lib/libwine.so"
4016 else
4017 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4018 echo "configure:4019: checking "whether we can build a NetBSD dll"" >&5
4019 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4021 else
4022 saved_cflags=$CFLAGS
4023 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4028 int main() {
4029 return 1
4030 ; return 0; }
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4033 rm -rf conftest*
4034 ac_cv_c_dll_netbsd="yes"
4035 else
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 rm -rf conftest*
4039 ac_cv_c_dll_netbsd="no"
4041 rm -f conftest*
4042 CFLAGS=$saved_cflags
4046 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4047 if test "$ac_cv_c_dll_netbsd" = "yes"
4048 then
4049 BUILDFLAGS="-pic"
4050 DLLFLAGS="-fPIC"
4051 LDSHARED="ld -Bshareable -Bforcearchive"
4055 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4056 then
4057 LIB_TARGET="libwine.a"
4065 wine_cv_libc_reentrant=no
4066 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4067 echo "configure:4068: checking "for reentrant libc: __errno_location"" >&5
4068 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4070 else
4071 if test "$cross_compiling" = yes; then
4072 wine_cv_libc_r__errno_location=yes
4073 else
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 int myerrno = 0;
4078 char buf[256];
4079 int *__errno_location(){return &myerrno;}
4080 main(){connect(0,buf,255); exit(!myerrno);}
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4083 then
4084 wine_cv_libc_r__errno_location=yes
4085 else
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4088 rm -fr conftest*
4089 wine_cv_libc_r__errno_location=no
4091 rm -fr conftest*
4097 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4098 if test "$wine_cv_libc_r__errno_location" = "yes"
4099 then
4100 cat >> confdefs.h <<\EOF
4101 #define HAVE__ERRNO_LOCATION 1
4104 wine_cv_libc_reentrant=__errno_location
4106 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4107 echo "configure:4108: checking "for reentrant libc: __error"" >&5
4108 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4110 else
4111 if test "$cross_compiling" = yes; then
4112 wine_cv_libc_r__error=yes
4113 else
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 int myerrno = 0;
4118 char buf[256];
4119 int *__error(){return &myerrno;}
4120 main(){connect(0,buf,255); exit(!myerrno);}
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4123 then
4124 wine_cv_libc_r__error=yes
4125 else
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 rm -fr conftest*
4129 wine_cv_libc_r__error=no
4131 rm -fr conftest*
4137 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4138 if test "$wine_cv_libc_r__error" = "yes"
4139 then
4140 cat >> confdefs.h <<\EOF
4141 #define HAVE__ERROR 1
4144 wine_cv_libc_reentrant=__error
4146 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4147 echo "configure:4148: checking "for reentrant libc: ___errno"" >&5
4148 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4150 else
4151 if test "$cross_compiling" = yes; then
4152 wine_cv_libc_r___errno=yes
4153 else
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4157 int myerrno = 0;
4158 char buf[256];
4159 int *___errno(){return &myerrno;}
4160 main(){connect(0,buf,255); exit(!myerrno);}
4162 if { (eval echo configure:4163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4163 then
4164 wine_cv_libc_r___errno=yes
4165 else
4166 echo "configure: failed program was:" >&5
4167 cat conftest.$ac_ext >&5
4168 rm -fr conftest*
4169 wine_cv_libc_r___errno=no
4171 rm -fr conftest*
4177 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4178 if test "$wine_cv_libc_r___errno" = "yes"
4179 then
4180 cat >> confdefs.h <<\EOF
4181 #define HAVE___ERRNO 1
4184 wine_cv_libc_reentrant=___errno
4186 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4187 echo "configure:4188: checking "for reentrant libc: __thr_errno"" >&5
4188 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4190 else
4191 if test "$cross_compiling" = yes; then
4192 wine_cv_libc_r__thr_errno=yes
4193 else
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 int myerrno = 0;
4198 char buf[256];
4199 int *__thr_errno(){return &myerrno;}
4200 main(){connect(0,buf,255); exit(!myerrno);}
4202 if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4203 then
4204 wine_cv_libc_r__thr_errno=yes
4205 else
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4208 rm -fr conftest*
4209 wine_cv_libc_r__thr_errno=no
4211 rm -fr conftest*
4217 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4218 if test "$wine_cv_libc_r__thr_errno" = "yes"
4219 then
4220 cat >> confdefs.h <<\EOF
4221 #define HAVE__THR_ERRNO 1
4224 wine_cv_libc_reentrant=__thr_errno
4226 if test "$wine_cv_libc_reentrant" = "no"
4227 then
4228 cat >> confdefs.h <<\EOF
4229 #define NO_REENTRANT_LIBC 1
4235 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4236 then
4237 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4238 echo "configure:4239: checking "for reentrant X libraries"" >&5
4239 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4241 else
4242 if test "x$with_reentrant_x" = "xno"
4243 then
4244 wine_cv_x_reentrant=no
4245 else
4246 libX11_check=none
4247 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4248 if test -r $dir/libX11.so; then
4249 libX11_check="-D $dir/libX11.so"
4250 break 1
4252 if test -r $dir/libX11.a; then
4253 libX11_check="$dir/libX11.a"
4254 break 1
4256 done
4257 if test "$libX11_check" != "none"; then
4258 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4259 then
4260 wine_cv_x_reentrant=yes
4261 else
4262 wine_cv_x_reentrant=no
4264 else
4265 wine_cv_x_reentrant=unknown
4270 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4271 else
4272 wine_cv_x_reentrant=no
4274 if test "$wine_cv_x_reentrant" = "no"
4275 then
4276 cat >> confdefs.h <<\EOF
4277 #define NO_REENTRANT_X11 1
4283 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4284 # for constant arguments. Useless!
4285 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4286 echo "configure:4287: checking for working alloca.h" >&5
4287 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4289 else
4290 cat > conftest.$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4293 #include <alloca.h>
4294 int main() {
4295 char *p = alloca(2 * sizeof(int));
4296 ; return 0; }
4298 if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4299 rm -rf conftest*
4300 ac_cv_header_alloca_h=yes
4301 else
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4304 rm -rf conftest*
4305 ac_cv_header_alloca_h=no
4307 rm -f conftest*
4310 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4311 if test $ac_cv_header_alloca_h = yes; then
4312 cat >> confdefs.h <<\EOF
4313 #define HAVE_ALLOCA_H 1
4318 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4319 echo "configure:4320: checking for alloca" >&5
4320 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4322 else
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4327 #ifdef __GNUC__
4328 # define alloca __builtin_alloca
4329 #else
4330 # if HAVE_ALLOCA_H
4331 # include <alloca.h>
4332 # else
4333 # ifdef _AIX
4334 #pragma alloca
4335 # else
4336 # ifndef alloca /* predefined by HP cc +Olibcalls */
4337 char *alloca ();
4338 # endif
4339 # endif
4340 # endif
4341 #endif
4343 int main() {
4344 char *p = (char *) alloca(1);
4345 ; return 0; }
4347 if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4348 rm -rf conftest*
4349 ac_cv_func_alloca_works=yes
4350 else
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4353 rm -rf conftest*
4354 ac_cv_func_alloca_works=no
4356 rm -f conftest*
4359 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4360 if test $ac_cv_func_alloca_works = yes; then
4361 cat >> confdefs.h <<\EOF
4362 #define HAVE_ALLOCA 1
4367 if test $ac_cv_func_alloca_works = no; then
4368 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4369 # that cause trouble. Some versions do not even contain alloca or
4370 # contain a buggy version. If you still want to use their alloca,
4371 # use ar to extract alloca.o from them instead of compiling alloca.c.
4372 ALLOCA=alloca.o
4373 cat >> confdefs.h <<\EOF
4374 #define C_ALLOCA 1
4378 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4379 echo "configure:4380: checking whether alloca needs Cray hooks" >&5
4380 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4382 else
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4386 #if defined(CRAY) && ! defined(CRAY2)
4387 webecray
4388 #else
4389 wenotbecray
4390 #endif
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 egrep "webecray" >/dev/null 2>&1; then
4395 rm -rf conftest*
4396 ac_cv_os_cray=yes
4397 else
4398 rm -rf conftest*
4399 ac_cv_os_cray=no
4401 rm -f conftest*
4405 echo "$ac_t""$ac_cv_os_cray" 1>&6
4406 if test $ac_cv_os_cray = yes; then
4407 for ac_func in _getb67 GETB67 getb67; do
4408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4409 echo "configure:4410: checking for $ac_func" >&5
4410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4412 else
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 /* System header to define __stub macros and hopefully few prototypes,
4417 which can conflict with char $ac_func(); below. */
4418 #include <assert.h>
4419 /* Override any gcc2 internal prototype to avoid an error. */
4420 /* We use char because int might match the return type of a gcc2
4421 builtin and then its argument prototype would still apply. */
4422 char $ac_func();
4424 int main() {
4426 /* The GNU C library defines this for functions which it implements
4427 to always fail with ENOSYS. Some functions are actually named
4428 something starting with __ and the normal name is an alias. */
4429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4430 choke me
4431 #else
4432 $ac_func();
4433 #endif
4435 ; return 0; }
4437 if { (eval echo configure:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4438 rm -rf conftest*
4439 eval "ac_cv_func_$ac_func=yes"
4440 else
4441 echo "configure: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4443 rm -rf conftest*
4444 eval "ac_cv_func_$ac_func=no"
4446 rm -f conftest*
4449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4450 echo "$ac_t""yes" 1>&6
4451 cat >> confdefs.h <<EOF
4452 #define CRAY_STACKSEG_END $ac_func
4455 break
4456 else
4457 echo "$ac_t""no" 1>&6
4460 done
4463 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4464 echo "configure:4465: checking stack direction for C alloca" >&5
4465 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4467 else
4468 if test "$cross_compiling" = yes; then
4469 ac_cv_c_stack_direction=0
4470 else
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4474 find_stack_direction ()
4476 static char *addr = 0;
4477 auto char dummy;
4478 if (addr == 0)
4480 addr = &dummy;
4481 return find_stack_direction ();
4483 else
4484 return (&dummy > addr) ? 1 : -1;
4486 main ()
4488 exit (find_stack_direction() < 0);
4491 if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4492 then
4493 ac_cv_c_stack_direction=1
4494 else
4495 echo "configure: failed program was:" >&5
4496 cat conftest.$ac_ext >&5
4497 rm -fr conftest*
4498 ac_cv_c_stack_direction=-1
4500 rm -fr conftest*
4505 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4506 cat >> confdefs.h <<EOF
4507 #define STACK_DIRECTION $ac_cv_c_stack_direction
4512 for ac_func in \
4513 _lwp_create \
4514 clone \
4515 getpagesize \
4516 memmove \
4517 rfork \
4518 sendmsg \
4519 sigaltstack \
4520 strcasecmp \
4521 strerror \
4522 strncasecmp \
4523 tcgetattr \
4524 timegm \
4525 usleep \
4526 vfscanf \
4527 wait4 \
4528 waitpid \
4531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4532 echo "configure:4533: checking for $ac_func" >&5
4533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4535 else
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 /* System header to define __stub macros and hopefully few prototypes,
4540 which can conflict with char $ac_func(); below. */
4541 #include <assert.h>
4542 /* Override any gcc2 internal prototype to avoid an error. */
4543 /* We use char because int might match the return type of a gcc2
4544 builtin and then its argument prototype would still apply. */
4545 char $ac_func();
4547 int main() {
4549 /* The GNU C library defines this for functions which it implements
4550 to always fail with ENOSYS. Some functions are actually named
4551 something starting with __ and the normal name is an alias. */
4552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4553 choke me
4554 #else
4555 $ac_func();
4556 #endif
4558 ; return 0; }
4560 if { (eval echo configure:4561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4561 rm -rf conftest*
4562 eval "ac_cv_func_$ac_func=yes"
4563 else
4564 echo "configure: failed program was:" >&5
4565 cat conftest.$ac_ext >&5
4566 rm -rf conftest*
4567 eval "ac_cv_func_$ac_func=no"
4569 rm -f conftest*
4572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4573 echo "$ac_t""yes" 1>&6
4574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4575 cat >> confdefs.h <<EOF
4576 #define $ac_tr_func 1
4579 else
4580 echo "$ac_t""no" 1>&6
4582 done
4586 for ac_hdr in \
4587 arpa/nameser.h \
4588 curses.h \
4589 elf.h \
4590 float.h \
4591 libio.h \
4592 linux/cdrom.h \
4593 linux/joystick.h \
4594 linux/ucdrom.h \
4595 ncurses.h \
4596 net/if.h \
4597 netinet/in.h \
4598 resolv.h \
4599 strings.h \
4600 sys/cdio.h \
4601 sys/errno.h \
4602 sys/file.h \
4603 sys/filio.h \
4604 sys/lwp.h \
4605 sys/mman.h \
4606 sys/modem.h \
4607 sys/mount.h \
4608 sys/param.h \
4609 sys/signal.h \
4610 sys/sockio.h \
4611 sys/statfs.h \
4612 sys/strtio.h \
4613 sys/syscall.h \
4614 sys/vfs.h \
4615 syscall.h \
4616 ucontext.h \
4617 unistd.h \
4618 wctype.h \
4621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4623 echo "configure:4624: checking for $ac_hdr" >&5
4624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4626 else
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 #include <$ac_hdr>
4632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4633 { (eval echo configure:4634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4634 ac_err=`grep -v '^ *+' conftest.out`
4635 if test -z "$ac_err"; then
4636 rm -rf conftest*
4637 eval "ac_cv_header_$ac_safe=yes"
4638 else
4639 echo "$ac_err" >&5
4640 echo "configure: failed program was:" >&5
4641 cat conftest.$ac_ext >&5
4642 rm -rf conftest*
4643 eval "ac_cv_header_$ac_safe=no"
4645 rm -f conftest*
4647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4648 echo "$ac_t""yes" 1>&6
4649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4650 cat >> confdefs.h <<EOF
4651 #define $ac_tr_hdr 1
4654 else
4655 echo "$ac_t""no" 1>&6
4657 done
4659 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4660 echo "configure:4661: checking whether stat file-mode macros are broken" >&5
4661 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4663 else
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 #include <sys/types.h>
4668 #include <sys/stat.h>
4670 #if defined(S_ISBLK) && defined(S_IFDIR)
4671 # if S_ISBLK (S_IFDIR)
4672 You lose.
4673 # endif
4674 #endif
4676 #if defined(S_ISBLK) && defined(S_IFCHR)
4677 # if S_ISBLK (S_IFCHR)
4678 You lose.
4679 # endif
4680 #endif
4682 #if defined(S_ISLNK) && defined(S_IFREG)
4683 # if S_ISLNK (S_IFREG)
4684 You lose.
4685 # endif
4686 #endif
4688 #if defined(S_ISSOCK) && defined(S_IFREG)
4689 # if S_ISSOCK (S_IFREG)
4690 You lose.
4691 # endif
4692 #endif
4695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4696 egrep "You lose" >/dev/null 2>&1; then
4697 rm -rf conftest*
4698 ac_cv_header_stat_broken=yes
4699 else
4700 rm -rf conftest*
4701 ac_cv_header_stat_broken=no
4703 rm -f conftest*
4707 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4708 if test $ac_cv_header_stat_broken = yes; then
4709 cat >> confdefs.h <<\EOF
4710 #define STAT_MACROS_BROKEN 1
4717 echo $ac_n "checking for working const""... $ac_c" 1>&6
4718 echo "configure:4719: checking for working const" >&5
4719 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4721 else
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4726 int main() {
4728 /* Ultrix mips cc rejects this. */
4729 typedef int charset[2]; const charset x;
4730 /* SunOS 4.1.1 cc rejects this. */
4731 char const *const *ccp;
4732 char **p;
4733 /* NEC SVR4.0.2 mips cc rejects this. */
4734 struct point {int x, y;};
4735 static struct point const zero = {0,0};
4736 /* AIX XL C 1.02.0.0 rejects this.
4737 It does not let you subtract one const X* pointer from another in an arm
4738 of an if-expression whose if-part is not a constant expression */
4739 const char *g = "string";
4740 ccp = &g + (g ? g-g : 0);
4741 /* HPUX 7.0 cc rejects these. */
4742 ++ccp;
4743 p = (char**) ccp;
4744 ccp = (char const *const *) p;
4745 { /* SCO 3.2v4 cc rejects this. */
4746 char *t;
4747 char const *s = 0 ? (char *) 0 : (char const *) 0;
4749 *t++ = 0;
4751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4752 int x[] = {25, 17};
4753 const int *foo = &x[0];
4754 ++foo;
4756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4757 typedef const int *iptr;
4758 iptr p = 0;
4759 ++p;
4761 { /* AIX XL C 1.02.0.0 rejects this saying
4762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4763 struct s { int j; const int *ap[3]; };
4764 struct s *b; b->j = 5;
4766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4767 const int foo = 10;
4770 ; return 0; }
4772 if { (eval echo configure:4773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4773 rm -rf conftest*
4774 ac_cv_c_const=yes
4775 else
4776 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4778 rm -rf conftest*
4779 ac_cv_c_const=no
4781 rm -f conftest*
4784 echo "$ac_t""$ac_cv_c_const" 1>&6
4785 if test $ac_cv_c_const = no; then
4786 cat >> confdefs.h <<\EOF
4787 #define const
4792 echo $ac_n "checking for inline""... $ac_c" 1>&6
4793 echo "configure:4794: checking for inline" >&5
4794 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4796 else
4797 ac_cv_c_inline=no
4798 for ac_kw in inline __inline__ __inline; do
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4803 int main() {
4804 } $ac_kw foo() {
4805 ; return 0; }
4807 if { (eval echo configure:4808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4808 rm -rf conftest*
4809 ac_cv_c_inline=$ac_kw; break
4810 else
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4814 rm -f conftest*
4815 done
4819 echo "$ac_t""$ac_cv_c_inline" 1>&6
4820 case "$ac_cv_c_inline" in
4821 inline | yes) ;;
4822 no) cat >> confdefs.h <<\EOF
4823 #define inline
4826 *) cat >> confdefs.h <<EOF
4827 #define inline $ac_cv_c_inline
4830 esac
4832 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4833 echo "configure:4834: checking for ANSI C header files" >&5
4834 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4836 else
4837 cat > conftest.$ac_ext <<EOF
4838 #line 4839 "configure"
4839 #include "confdefs.h"
4840 #include <stdlib.h>
4841 #include <stdarg.h>
4842 #include <string.h>
4843 #include <float.h>
4845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4846 { (eval echo configure:4847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4847 ac_err=`grep -v '^ *+' conftest.out`
4848 if test -z "$ac_err"; then
4849 rm -rf conftest*
4850 ac_cv_header_stdc=yes
4851 else
4852 echo "$ac_err" >&5
4853 echo "configure: failed program was:" >&5
4854 cat conftest.$ac_ext >&5
4855 rm -rf conftest*
4856 ac_cv_header_stdc=no
4858 rm -f conftest*
4860 if test $ac_cv_header_stdc = yes; then
4861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4862 cat > conftest.$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4865 #include <string.h>
4867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4868 egrep "memchr" >/dev/null 2>&1; then
4870 else
4871 rm -rf conftest*
4872 ac_cv_header_stdc=no
4874 rm -f conftest*
4878 if test $ac_cv_header_stdc = yes; then
4879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 #include <stdlib.h>
4885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4886 egrep "free" >/dev/null 2>&1; then
4888 else
4889 rm -rf conftest*
4890 ac_cv_header_stdc=no
4892 rm -f conftest*
4896 if test $ac_cv_header_stdc = yes; then
4897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4898 if test "$cross_compiling" = yes; then
4900 else
4901 cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4904 #include <ctype.h>
4905 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4906 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4908 int main () { int i; for (i = 0; i < 256; i++)
4909 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4910 exit (0); }
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4914 then
4916 else
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 rm -fr conftest*
4920 ac_cv_header_stdc=no
4922 rm -fr conftest*
4928 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4929 if test $ac_cv_header_stdc = yes; then
4930 cat >> confdefs.h <<\EOF
4931 #define STDC_HEADERS 1
4936 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4937 echo "configure:4938: checking for size_t" >&5
4938 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4940 else
4941 cat > conftest.$ac_ext <<EOF
4942 #line 4943 "configure"
4943 #include "confdefs.h"
4944 #include <sys/types.h>
4945 #if STDC_HEADERS
4946 #include <stdlib.h>
4947 #include <stddef.h>
4948 #endif
4950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4951 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4952 rm -rf conftest*
4953 ac_cv_type_size_t=yes
4954 else
4955 rm -rf conftest*
4956 ac_cv_type_size_t=no
4958 rm -f conftest*
4961 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4962 if test $ac_cv_type_size_t = no; then
4963 cat >> confdefs.h <<\EOF
4964 #define size_t unsigned
4969 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4970 echo "configure:4971: checking size of long long" >&5
4971 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4973 else
4974 if test "$cross_compiling" = yes; then
4975 ac_cv_sizeof_long_long=0
4976 else
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4980 #include <stdio.h>
4981 main()
4983 FILE *f=fopen("conftestval", "w");
4984 if (!f) exit(1);
4985 fprintf(f, "%d\n", sizeof(long long));
4986 exit(0);
4989 if { (eval echo configure:4990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4990 then
4991 ac_cv_sizeof_long_long=`cat conftestval`
4992 else
4993 echo "configure: failed program was:" >&5
4994 cat conftest.$ac_ext >&5
4995 rm -fr conftest*
4996 ac_cv_sizeof_long_long=0
4998 rm -fr conftest*
5002 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5003 cat >> confdefs.h <<EOF
5004 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5009 if test "$ac_cv_header_linux_joystick_h" = "yes"
5010 then
5011 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5012 echo "configure:5013: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5013 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5015 else
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5020 #include <sys/ioctl.h>
5021 #include <linux/joystick.h>
5023 struct js_event blub;
5025 int main() {
5026 /*empty*/
5027 ; return 0; }
5029 if { (eval echo configure:5030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5030 rm -rf conftest*
5031 wine_cv_linux_joystick_22_api=yes
5032 else
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5035 rm -rf conftest*
5036 wine_cv_linux_joystick_22_api=no
5038 rm -f conftest*
5042 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5043 if test "$wine_cv_linux_joystick_22_api"
5044 then
5045 cat >> confdefs.h <<\EOF
5046 #define HAVE_LINUX_22_JOYSTICK_API 1
5053 if test "$ac_cv_header_sys_vfs_h" = "yes"
5054 then
5055 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5056 echo "configure:5057: checking "whether sys/vfs.h defines statfs"" >&5
5057 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5059 else
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5064 #include <sys/types.h>
5065 #ifdef HAVE_SYS_PARAM_H
5066 # include <sys/param.h>
5067 #endif
5068 #include <sys/vfs.h>
5070 int main() {
5072 struct statfs stfs;
5074 memset(&stfs,0,sizeof(stfs));
5076 ; return 0; }
5078 if { (eval echo configure:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5079 rm -rf conftest*
5080 wine_cv_sys_vfs_has_statfs=yes
5081 else
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5084 rm -rf conftest*
5085 wine_cv_sys_vfs_has_statfs=no
5088 rm -f conftest*
5092 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5093 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5094 then
5095 cat >> confdefs.h <<\EOF
5096 #define STATFS_DEFINED_BY_SYS_VFS 1
5102 if test "$ac_cv_header_sys_statfs_h" = "yes"
5103 then
5104 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5105 echo "configure:5106: checking "whether sys/statfs.h defines statfs"" >&5
5106 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5108 else
5109 cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5113 #include <sys/types.h>
5114 #ifdef HAVE_SYS_PARAM_H
5115 # include <sys/param.h>
5116 #endif
5117 #include <sys/statfs.h>
5119 int main() {
5121 struct statfs stfs;
5123 ; return 0; }
5125 if { (eval echo configure:5126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5126 rm -rf conftest*
5127 wine_cv_sys_statfs_has_statfs=yes
5128 else
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5131 rm -rf conftest*
5132 wine_cv_sys_statfs_has_statfs=no
5135 rm -f conftest*
5139 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5140 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5141 then
5142 cat >> confdefs.h <<\EOF
5143 #define STATFS_DEFINED_BY_SYS_STATFS 1
5149 if test "$ac_cv_header_sys_mount_h" = "yes"
5150 then
5151 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5152 echo "configure:5153: checking "whether sys/mount.h defines statfs"" >&5
5153 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5155 else
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5160 #include <sys/types.h>
5161 #ifdef HAVE_SYS_PARAM_H
5162 # include <sys/param.h>
5163 #endif
5164 #include <sys/mount.h>
5166 int main() {
5168 struct statfs stfs;
5170 ; return 0; }
5172 if { (eval echo configure:5173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5173 rm -rf conftest*
5174 wine_cv_sys_mount_has_statfs=yes
5175 else
5176 echo "configure: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5178 rm -rf conftest*
5179 wine_cv_sys_mount_has_statfs=no
5182 rm -f conftest*
5186 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5187 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5188 then
5189 cat >> confdefs.h <<\EOF
5190 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5197 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5198 echo "configure:5199: checking "for statfs.f_bfree"" >&5
5199 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5201 else
5202 if test "x$statfs_bfree" = "xno"
5203 then
5204 wine_cv_statfs_bfree=no
5205 else
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5210 #include <sys/types.h>
5211 #ifdef HAVE_SYS_PARAM_H
5212 # include <sys/param.h>
5213 #endif
5214 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5215 # include <sys/mount.h>
5216 #else
5217 # ifdef STATFS_DEFINED_BY_SYS_VFS
5218 # include <sys/vfs.h>
5219 # else
5220 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5221 # include <sys/statfs.h>
5222 # endif
5223 # endif
5224 #endif
5226 int main() {
5228 struct statfs stfs;
5230 stfs.f_bfree++;
5232 ; return 0; }
5234 if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5235 rm -rf conftest*
5236 wine_cv_statfs_bfree=yes
5237 else
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5240 rm -rf conftest*
5241 wine_cv_statfs_bfree=no
5244 rm -f conftest*
5248 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5249 if test "$wine_cv_statfs_bfree" = "yes"
5250 then
5251 cat >> confdefs.h <<\EOF
5252 #define STATFS_HAS_BFREE 1
5257 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5258 echo "configure:5259: checking "for statfs.f_bavail"" >&5
5259 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5261 else
5262 if test "x$statfs_bavail" = "xno"
5263 then
5264 wine_cv_statfs_bavail=no
5265 else
5266 cat > conftest.$ac_ext <<EOF
5267 #line 5268 "configure"
5268 #include "confdefs.h"
5270 #include <sys/types.h>
5271 #ifdef HAVE_SYS_PARAM_H
5272 # include <sys/param.h>
5273 #endif
5274 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5275 # include <sys/mount.h>
5276 #else
5277 # ifdef STATFS_DEFINED_BY_SYS_VFS
5278 # include <sys/vfs.h>
5279 # else
5280 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5281 # include <sys/statfs.h>
5282 # endif
5283 # endif
5284 #endif
5286 int main() {
5288 struct statfs stfs;
5290 stfs.f_bavail++;
5292 ; return 0; }
5294 if { (eval echo configure:5295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5295 rm -rf conftest*
5296 wine_cv_statfs_bavail=yes
5297 else
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5300 rm -rf conftest*
5301 wine_cv_statfs_bavail=no
5304 rm -f conftest*
5308 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5309 if test "$wine_cv_statfs_bavail" = "yes"
5310 then
5311 cat >> confdefs.h <<\EOF
5312 #define STATFS_HAS_BAVAIL 1
5318 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
5319 echo "configure:5320: checking "for working sigaltstack"" >&5
5320 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5322 else
5323 if test "$cross_compiling" = yes; then
5324 ac_cv_c_working_sigaltstack="no"
5326 else
5327 cat > conftest.$ac_ext <<EOF
5328 #line 5329 "configure"
5329 #include "confdefs.h"
5331 #include <stdio.h>
5332 #include <time.h> /* <sys/time.h> ? bad magic without end */
5333 #include <sys/types.h>
5334 #include <sys/signal.h>
5335 #ifdef HAVE_SYS_PARAM_H
5336 # include <sys/param.h>
5337 #endif
5338 #ifdef HAVE_SYSCALL_H
5339 # include <syscall.h>
5340 #else
5341 # ifdef HAVE_SYS_SYSCALL_H
5342 # include <sys/syscall.h>
5343 # endif
5344 #endif
5346 unsigned char *xaltstack;
5349 main(int argc,char **argv) {
5350 struct sigaltstack ss;
5352 xaltstack = malloc(16384);
5353 ss.ss_sp = xaltstack;
5354 ss.ss_size = 16384;
5355 ss.ss_flags = 0;
5356 if (sigaltstack(&ss, NULL) < 0) {
5357 /* this catches the glibc case */
5358 perror("sigaltstack");
5359 return (1); /* aka exit(1) aka fail */
5361 /* assume it works. */
5362 return 0; /* OK */
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5367 then
5368 ac_cv_c_working_sigaltstack="yes"
5369 else
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 rm -fr conftest*
5373 ac_cv_c_working_sigaltstack="no"
5375 rm -fr conftest*
5380 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5382 if test "$ac_cv_c_working_sigaltstack" = "yes"
5383 then
5384 cat >> confdefs.h <<\EOF
5385 #define HAVE_WORKING_SIGALTSTACK 1
5392 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5393 echo "configure:5394: checking "for msg_accrights in struct msghdr"" >&5
5394 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5396 else
5397 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 #include <sys/types.h>
5401 #include <sys/socket.h>
5402 int main() {
5403 struct msghdr hdr; hdr.msg_accrights=0
5404 ; return 0; }
5406 if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5407 rm -rf conftest*
5408 ac_cv_c_msg_accrights="yes"
5409 else
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5412 rm -rf conftest*
5413 ac_cv_c_msg_accrights="no"
5415 rm -f conftest*
5418 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5419 if test "$ac_cv_c_msg_accrights" = "yes"
5420 then
5421 cat >> confdefs.h <<\EOF
5422 #define HAVE_MSGHDR_ACCRIGHTS 1
5428 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
5429 echo "configure:5430: checking "whether we need to define __i386__"" >&5
5430 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5432 else
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5436 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
5438 #endif
5440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441 egrep "yes" >/dev/null 2>&1; then
5442 rm -rf conftest*
5443 ac_cv_cpp_def_i386="yes"
5444 else
5445 rm -rf conftest*
5446 ac_cv_cpp_def_i386="no"
5448 rm -f conftest*
5452 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
5453 if test "$ac_cv_cpp_def_i386" = "yes"
5454 then
5455 CFLAGS="$CFLAGS -D__i386__"
5456 LINTFLAGS="$LINTFLAGS -D__i386__"
5459 GCC_NO_BUILTIN=""
5460 if test "$GCC" = "yes"
5461 then
5462 GCC_NO_BUILTIN="-fno-builtin"
5467 MAKE_RULES=Make.rules
5470 trap '' 1 2 15
5471 cat > confcache <<\EOF
5472 # This file is a shell script that caches the results of configure
5473 # tests run on this system so they can be shared between configure
5474 # scripts and configure runs. It is not useful on other systems.
5475 # If it contains results you don't want to keep, you may remove or edit it.
5477 # By default, configure uses ./config.cache as the cache file,
5478 # creating it if it does not exist already. You can give configure
5479 # the --cache-file=FILE option to use a different cache file; that is
5480 # what configure does when it calls configure scripts in
5481 # subdirectories, so they share the cache.
5482 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5483 # config.status only pays attention to the cache file if you give it the
5484 # --recheck option to rerun configure.
5487 # The following way of writing the cache mishandles newlines in values,
5488 # but we know of no workaround that is simple, portable, and efficient.
5489 # So, don't put newlines in cache variables' values.
5490 # Ultrix sh set writes to stderr and can't be redirected directly,
5491 # and sets the high bit in the cache file unless we assign to the vars.
5492 (set) 2>&1 |
5493 case `(ac_space=' '; set) 2>&1` in
5494 *ac_space=\ *)
5495 # `set' does not quote correctly, so add quotes (double-quote substitution
5496 # turns \\\\ into \\, and sed turns \\ into \).
5497 sed -n \
5498 -e "s/'/'\\\\''/g" \
5499 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5502 # `set' quotes correctly as required by POSIX, so do not add quotes.
5503 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5505 esac >> confcache
5506 if cmp -s $cache_file confcache; then
5508 else
5509 if test -w $cache_file; then
5510 echo "updating cache $cache_file"
5511 cat confcache > $cache_file
5512 else
5513 echo "not updating unwritable cache $cache_file"
5516 rm -f confcache
5518 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5521 # Let make expand exec_prefix.
5522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5524 # Any assignment to VPATH causes Sun make to only execute
5525 # the first set of double-colon rules, so remove it if not needed.
5526 # If there is a colon in the path, we need to keep it.
5527 if test "x$srcdir" = x.; then
5528 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5531 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5533 DEFS=-DHAVE_CONFIG_H
5535 # Without the "./", some shells look in PATH for config.status.
5536 : ${CONFIG_STATUS=./config.status}
5538 echo creating $CONFIG_STATUS
5539 rm -f $CONFIG_STATUS
5540 cat > $CONFIG_STATUS <<EOF
5541 #! /bin/sh
5542 # Generated automatically by configure.
5543 # Run this file to recreate the current configuration.
5544 # This directory was configured as follows,
5545 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5547 # $0 $ac_configure_args
5549 # Compiler output produced by configure, useful for debugging
5550 # configure, is in ./config.log if it exists.
5552 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5553 for ac_option
5555 case "\$ac_option" in
5556 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5557 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5558 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5559 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5560 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5561 exit 0 ;;
5562 -help | --help | --hel | --he | --h)
5563 echo "\$ac_cs_usage"; exit 0 ;;
5564 *) echo "\$ac_cs_usage"; exit 1 ;;
5565 esac
5566 done
5568 ac_given_srcdir=$srcdir
5569 ac_given_INSTALL="$INSTALL"
5571 trap 'rm -fr `echo "
5572 Make.rules
5573 Makefile
5574 console/Makefile
5575 controls/Makefile
5576 debugger/Makefile
5577 dlls/Makefile
5578 dlls/advapi32/Makefile
5579 dlls/avifil32/Makefile
5580 dlls/comctl32/Makefile
5581 dlls/commdlg/Makefile
5582 dlls/crtdll/Makefile
5583 dlls/dciman32/Makefile
5584 dlls/imagehlp/Makefile
5585 dlls/imm32/Makefile
5586 dlls/lzexpand/Makefile
5587 dlls/mpr/Makefile
5588 dlls/msacm/Makefile
5589 dlls/msacm32/Makefile
5590 dlls/msnet32/Makefile
5591 dlls/msvideo/Makefile
5592 dlls/ntdll/Makefile
5593 dlls/psapi/Makefile
5594 dlls/rasapi32/Makefile
5595 dlls/shell32/Makefile
5596 dlls/sound/Makefile
5597 dlls/stress/Makefile
5598 dlls/tapi32/Makefile
5599 dlls/ver/Makefile
5600 dlls/version/Makefile
5601 dlls/win32s/Makefile
5602 dlls/win87em/Makefile
5603 dlls/winaspi/Makefile
5604 dlls/windebug/Makefile
5605 dlls/wing/Makefile
5606 dlls/winspool/Makefile
5607 dlls/wnaspi32/Makefile
5608 documentation/Makefile
5609 documentation/wine.conf.man
5610 documentation/wine.man
5611 files/Makefile
5612 graphics/Makefile
5613 graphics/enhmetafiledrv/Makefile
5614 graphics/metafiledrv/Makefile
5615 graphics/psdrv/Makefile
5616 graphics/ttydrv/Makefile
5617 graphics/win16drv/Makefile
5618 graphics/x11drv/Makefile
5619 if1632/Makefile
5620 include/Makefile
5621 library/Makefile
5622 libtest/Makefile
5623 loader/Makefile
5624 loader/ne/Makefile
5625 loader/dos/Makefile
5626 memory/Makefile
5627 misc/Makefile
5628 miscemu/Makefile
5629 msdos/Makefile
5630 multimedia/Makefile
5631 objects/Makefile
5632 ole/Makefile
5633 programs/Makefile
5634 programs/clock/Makefile
5635 programs/cmdlgtst/Makefile
5636 programs/control/Makefile
5637 programs/avitools/Makefile
5638 programs/notepad/Makefile
5639 programs/progman/Makefile
5640 programs/regtest/Makefile
5641 programs/regapi/Makefile
5642 programs/view/Makefile
5643 programs/wcmd/Makefile
5644 programs/winhelp/Makefile
5645 programs/winver/Makefile
5646 rc/Makefile
5647 relay32/Makefile
5648 resources/Makefile
5649 scheduler/Makefile
5650 server/Makefile
5651 tools/Makefile
5652 tools/wrc/Makefile
5653 tsx11/Makefile
5654 win32/Makefile
5655 windows/Makefile
5656 windows/ttydrv/Makefile
5657 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5659 cat >> $CONFIG_STATUS <<EOF
5661 # Protect against being on the right side of a sed subst in config.status.
5662 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5663 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5664 $ac_vpsub
5665 $extrasub
5666 s%@CFLAGS@%$CFLAGS%g
5667 s%@CPPFLAGS@%$CPPFLAGS%g
5668 s%@CXXFLAGS@%$CXXFLAGS%g
5669 s%@DEFS@%$DEFS%g
5670 s%@LDFLAGS@%$LDFLAGS%g
5671 s%@LIBS@%$LIBS%g
5672 s%@exec_prefix@%$exec_prefix%g
5673 s%@prefix@%$prefix%g
5674 s%@program_transform_name@%$program_transform_name%g
5675 s%@bindir@%$bindir%g
5676 s%@sbindir@%$sbindir%g
5677 s%@libexecdir@%$libexecdir%g
5678 s%@datadir@%$datadir%g
5679 s%@sysconfdir@%$sysconfdir%g
5680 s%@sharedstatedir@%$sharedstatedir%g
5681 s%@localstatedir@%$localstatedir%g
5682 s%@libdir@%$libdir%g
5683 s%@includedir@%$includedir%g
5684 s%@oldincludedir@%$oldincludedir%g
5685 s%@infodir@%$infodir%g
5686 s%@mandir@%$mandir%g
5687 s%@PROGEXT@%$PROGEXT%g
5688 s%@MAIN_TARGET@%$MAIN_TARGET%g
5689 s%@LIB_TARGET@%$LIB_TARGET%g
5690 s%@ALT_LINK@%$ALT_LINK%g
5691 s%@OPTIONS@%$OPTIONS%g
5692 s%@SET_MAKE@%$SET_MAKE%g
5693 s%@CC@%$CC%g
5694 s%@CPP@%$CPP%g
5695 s%@X_CFLAGS@%$X_CFLAGS%g
5696 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5697 s%@X_LIBS@%$X_LIBS%g
5698 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5699 s%@YACC@%$YACC%g
5700 s%@LEX@%$LEX%g
5701 s%@LEXLIB@%$LEXLIB%g
5702 s%@RANLIB@%$RANLIB%g
5703 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5704 s%@INSTALL_DATA@%$INSTALL_DATA%g
5705 s%@LN_S@%$LN_S%g
5706 s%@C2MAN@%$C2MAN%g
5707 s%@LDCONFIG@%$LDCONFIG%g
5708 s%@LINT@%$LINT%g
5709 s%@LINTFLAGS@%$LINTFLAGS%g
5710 s%@XLIB@%$XLIB%g
5711 s%@BUILDFLAGS@%$BUILDFLAGS%g
5712 s%@DLLFLAGS@%$DLLFLAGS%g
5713 s%@LDSHARED@%$LDSHARED%g
5714 s%@ALLOCA@%$ALLOCA%g
5715 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
5716 /@MAKE_RULES@/r $MAKE_RULES
5717 s%@MAKE_RULES@%%g
5719 CEOF
5722 cat >> $CONFIG_STATUS <<\EOF
5724 # Split the substitutions into bite-sized pieces for seds with
5725 # small command number limits, like on Digital OSF/1 and HP-UX.
5726 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5727 ac_file=1 # Number of current file.
5728 ac_beg=1 # First line for current file.
5729 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5730 ac_more_lines=:
5731 ac_sed_cmds=""
5732 while $ac_more_lines; do
5733 if test $ac_beg -gt 1; then
5734 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5735 else
5736 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5738 if test ! -s conftest.s$ac_file; then
5739 ac_more_lines=false
5740 rm -f conftest.s$ac_file
5741 else
5742 if test -z "$ac_sed_cmds"; then
5743 ac_sed_cmds="sed -f conftest.s$ac_file"
5744 else
5745 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5747 ac_file=`expr $ac_file + 1`
5748 ac_beg=$ac_end
5749 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5751 done
5752 if test -z "$ac_sed_cmds"; then
5753 ac_sed_cmds=cat
5757 cat >> $CONFIG_STATUS <<EOF
5759 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
5760 Makefile
5761 console/Makefile
5762 controls/Makefile
5763 debugger/Makefile
5764 dlls/Makefile
5765 dlls/advapi32/Makefile
5766 dlls/avifil32/Makefile
5767 dlls/comctl32/Makefile
5768 dlls/commdlg/Makefile
5769 dlls/crtdll/Makefile
5770 dlls/dciman32/Makefile
5771 dlls/imagehlp/Makefile
5772 dlls/imm32/Makefile
5773 dlls/lzexpand/Makefile
5774 dlls/mpr/Makefile
5775 dlls/msacm/Makefile
5776 dlls/msacm32/Makefile
5777 dlls/msnet32/Makefile
5778 dlls/msvideo/Makefile
5779 dlls/ntdll/Makefile
5780 dlls/psapi/Makefile
5781 dlls/rasapi32/Makefile
5782 dlls/shell32/Makefile
5783 dlls/sound/Makefile
5784 dlls/stress/Makefile
5785 dlls/tapi32/Makefile
5786 dlls/ver/Makefile
5787 dlls/version/Makefile
5788 dlls/win32s/Makefile
5789 dlls/win87em/Makefile
5790 dlls/winaspi/Makefile
5791 dlls/windebug/Makefile
5792 dlls/wing/Makefile
5793 dlls/winspool/Makefile
5794 dlls/wnaspi32/Makefile
5795 documentation/Makefile
5796 documentation/wine.conf.man
5797 documentation/wine.man
5798 files/Makefile
5799 graphics/Makefile
5800 graphics/enhmetafiledrv/Makefile
5801 graphics/metafiledrv/Makefile
5802 graphics/psdrv/Makefile
5803 graphics/ttydrv/Makefile
5804 graphics/win16drv/Makefile
5805 graphics/x11drv/Makefile
5806 if1632/Makefile
5807 include/Makefile
5808 library/Makefile
5809 libtest/Makefile
5810 loader/Makefile
5811 loader/ne/Makefile
5812 loader/dos/Makefile
5813 memory/Makefile
5814 misc/Makefile
5815 miscemu/Makefile
5816 msdos/Makefile
5817 multimedia/Makefile
5818 objects/Makefile
5819 ole/Makefile
5820 programs/Makefile
5821 programs/clock/Makefile
5822 programs/cmdlgtst/Makefile
5823 programs/control/Makefile
5824 programs/avitools/Makefile
5825 programs/notepad/Makefile
5826 programs/progman/Makefile
5827 programs/regtest/Makefile
5828 programs/regapi/Makefile
5829 programs/view/Makefile
5830 programs/wcmd/Makefile
5831 programs/winhelp/Makefile
5832 programs/winver/Makefile
5833 rc/Makefile
5834 relay32/Makefile
5835 resources/Makefile
5836 scheduler/Makefile
5837 server/Makefile
5838 tools/Makefile
5839 tools/wrc/Makefile
5840 tsx11/Makefile
5841 win32/Makefile
5842 windows/Makefile
5843 windows/ttydrv/Makefile
5844 windows/x11drv/Makefile "}
5846 cat >> $CONFIG_STATUS <<\EOF
5847 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5848 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5849 case "$ac_file" in
5850 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5851 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5852 *) ac_file_in="${ac_file}.in" ;;
5853 esac
5855 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5857 # Remove last slash and all that follows it. Not all systems have dirname.
5858 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5859 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5860 # The file is in a subdirectory.
5861 test ! -d "$ac_dir" && mkdir "$ac_dir"
5862 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5863 # A "../" for each directory in $ac_dir_suffix.
5864 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5865 else
5866 ac_dir_suffix= ac_dots=
5869 case "$ac_given_srcdir" in
5870 .) srcdir=.
5871 if test -z "$ac_dots"; then top_srcdir=.
5872 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5873 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5874 *) # Relative path.
5875 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5876 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5877 esac
5879 case "$ac_given_INSTALL" in
5880 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5881 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5882 esac
5884 echo creating "$ac_file"
5885 rm -f "$ac_file"
5886 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5887 case "$ac_file" in
5888 *Makefile*) ac_comsub="1i\\
5889 # $configure_input" ;;
5890 *) ac_comsub= ;;
5891 esac
5893 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5894 sed -e "$ac_comsub
5895 s%@configure_input@%$configure_input%g
5896 s%@srcdir@%$srcdir%g
5897 s%@top_srcdir@%$top_srcdir%g
5898 s%@INSTALL@%$INSTALL%g
5899 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5900 fi; done
5901 rm -f conftest.s*
5903 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5904 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5906 # ac_d sets the value in "#define NAME VALUE" lines.
5907 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5908 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5909 ac_dC='\3'
5910 ac_dD='%g'
5911 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5912 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5913 ac_uB='\([ ]\)%\1#\2define\3'
5914 ac_uC=' '
5915 ac_uD='\4%g'
5916 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5917 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5918 ac_eB='$%\1#\2define\3'
5919 ac_eC=' '
5920 ac_eD='%g'
5922 if test "${CONFIG_HEADERS+set}" != set; then
5924 cat >> $CONFIG_STATUS <<EOF
5925 CONFIG_HEADERS="include/config.h"
5927 cat >> $CONFIG_STATUS <<\EOF
5929 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5931 case "$ac_file" in
5932 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5933 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5934 *) ac_file_in="${ac_file}.in" ;;
5935 esac
5937 echo creating $ac_file
5939 rm -f conftest.frag conftest.in conftest.out
5940 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5941 cat $ac_file_inputs > conftest.in
5945 # Transform confdefs.h into a sed script conftest.vals that substitutes
5946 # the proper values into config.h.in to produce config.h. And first:
5947 # Protect against being on the right side of a sed subst in config.status.
5948 # Protect against being in an unquoted here document in config.status.
5949 rm -f conftest.vals
5950 cat > conftest.hdr <<\EOF
5951 s/[\\&%]/\\&/g
5952 s%[\\$`]%\\&%g
5953 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5954 s%ac_d%ac_u%gp
5955 s%ac_u%ac_e%gp
5957 sed -n -f conftest.hdr confdefs.h > conftest.vals
5958 rm -f conftest.hdr
5960 # This sed command replaces #undef with comments. This is necessary, for
5961 # example, in the case of _POSIX_SOURCE, which is predefined and required
5962 # on some systems where configure will not decide to define it.
5963 cat >> conftest.vals <<\EOF
5964 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5967 # Break up conftest.vals because some shells have a limit on
5968 # the size of here documents, and old seds have small limits too.
5970 rm -f conftest.tail
5971 while :
5973 ac_lines=`grep -c . conftest.vals`
5974 # grep -c gives empty output for an empty file on some AIX systems.
5975 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5976 # Write a limited-size here document to conftest.frag.
5977 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5978 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5979 echo 'CEOF
5980 sed -f conftest.frag conftest.in > conftest.out
5981 rm -f conftest.in
5982 mv conftest.out conftest.in
5983 ' >> $CONFIG_STATUS
5984 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5985 rm -f conftest.vals
5986 mv conftest.tail conftest.vals
5987 done
5988 rm -f conftest.vals
5990 cat >> $CONFIG_STATUS <<\EOF
5991 rm -f conftest.frag conftest.h
5992 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5993 cat conftest.in >> conftest.h
5994 rm -f conftest.in
5995 if cmp -s $ac_file conftest.h 2>/dev/null; then
5996 echo "$ac_file is unchanged"
5997 rm -f conftest.h
5998 else
5999 # Remove last slash and all that follows it. Not all systems have dirname.
6000 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6001 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6002 # The file is in a subdirectory.
6003 test ! -d "$ac_dir" && mkdir "$ac_dir"
6005 rm -f $ac_file
6006 mv conftest.h $ac_file
6008 fi; done
6011 cat >> $CONFIG_STATUS <<EOF
6014 cat >> $CONFIG_STATUS <<\EOF
6016 exit 0
6018 chmod +x $CONFIG_STATUS
6019 rm -fr confdefs* $ac_clean_files
6020 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6023 if test "$have_x" = "no"
6024 then
6025 echo
6026 echo "*** Warning: X development files not found. Wine will be built without"
6027 echo "*** X support, which currently does not work, and would probably not be"
6028 echo "*** what you want anyway. You will need to install devel packages of"
6029 echo "*** Xlib/Xfree86 and Xpm at the very least."
6030 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6031 then
6032 echo
6033 echo "*** Warning: Xpm development files not found. Wine will be built without"
6034 echo "*** Xpm support, which currently does not work. You will need to install"
6035 echo "*** devel packages of Xpm."
6038 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6039 then
6040 echo
6041 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6042 echo "*** terminal resize support. Consider upgrading ncurses."
6045 if test "$wine_cv_libc_reentrant" = "no"
6046 then
6047 echo
6048 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6049 echo "*** thread support. Consider upgrading libc to a more recent"
6050 echo "*** reentrant version of libc."
6053 if test "$wine_cv_mesa_version_OK" = "no"
6054 then
6055 echo
6056 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6057 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
6060 echo
6061 echo "Configure finished. Do 'make depend && make' to compile Wine."
6062 echo