Fixes several problems with SetDIBitsToDevice if xSrc != 0.
[wine.git] / configure
blobad343f77b6d688e6f930c7654fef757acff85073
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.
558 LIBS="$LIBS -lm"
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
590 # Check whether --enable-debug or --disable-debug was given.
591 if test "${enable_debug+set}" = set; then
592 enableval="$enable_debug"
593 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
597 # Check whether --enable-trace or --disable-trace was given.
598 if test "${enable_trace+set}" = set; then
599 enableval="$enable_trace"
600 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
604 # Check whether --with-reentrant-x or --without-reentrant-x was given.
605 if test "${with_reentrant_x+set}" = set; then
606 withval="$with_reentrant_x"
616 if test "$DEBUG_MSGS" = "no"
617 then
618 cat >> confdefs.h <<\EOF
619 #define NO_DEBUG_MSGS 1
622 cat >> confdefs.h <<\EOF
623 #define NO_TRACE_MSGS 1
626 else
627 if test "$TRACE_MSGS" = "no"
628 then
629 cat >> confdefs.h <<\EOF
630 #define NO_TRACE_MSGS 1
637 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
638 echo "configure:639: checking whether ${MAKE-make} sets \${MAKE}" >&5
639 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
640 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
642 else
643 cat > conftestmake <<\EOF
644 all:
645 @echo 'ac_maketemp="${MAKE}"'
647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
648 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
649 if test -n "$ac_maketemp"; then
650 eval ac_cv_prog_make_${ac_make}_set=yes
651 else
652 eval ac_cv_prog_make_${ac_make}_set=no
654 rm -f conftestmake
656 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
657 echo "$ac_t""yes" 1>&6
658 SET_MAKE=
659 else
660 echo "$ac_t""no" 1>&6
661 SET_MAKE="MAKE=${MAKE-make}"
664 # Extract the first word of "gcc", so it can be a program name with args.
665 set dummy gcc; ac_word=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:668: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
670 else
671 if test -n "$CC"; then
672 ac_cv_prog_CC="$CC" # Let the user override the test.
673 else
674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
675 for ac_dir in $PATH; do
676 test -z "$ac_dir" && ac_dir=.
677 if test -f $ac_dir/$ac_word; then
678 ac_cv_prog_CC="gcc"
679 break
681 done
682 IFS="$ac_save_ifs"
685 CC="$ac_cv_prog_CC"
686 if test -n "$CC"; then
687 echo "$ac_t""$CC" 1>&6
688 else
689 echo "$ac_t""no" 1>&6
692 if test -z "$CC"; then
693 # Extract the first word of "cc", so it can be a program name with args.
694 set dummy cc; ac_word=$2
695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
696 echo "configure:697: checking for $ac_word" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
699 else
700 if test -n "$CC"; then
701 ac_cv_prog_CC="$CC" # Let the user override the test.
702 else
703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
704 ac_prog_rejected=no
705 for ac_dir in $PATH; do
706 test -z "$ac_dir" && ac_dir=.
707 if test -f $ac_dir/$ac_word; then
708 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
709 ac_prog_rejected=yes
710 continue
712 ac_cv_prog_CC="cc"
713 break
715 done
716 IFS="$ac_save_ifs"
717 if test $ac_prog_rejected = yes; then
718 # We found a bogon in the path, so make sure we never use it.
719 set dummy $ac_cv_prog_CC
720 shift
721 if test $# -gt 0; then
722 # We chose a different compiler from the bogus one.
723 # However, it has the same basename, so the bogon will be chosen
724 # first if we set CC to just the basename; use the full file name.
725 shift
726 set dummy "$ac_dir/$ac_word" "$@"
727 shift
728 ac_cv_prog_CC="$@"
733 CC="$ac_cv_prog_CC"
734 if test -n "$CC"; then
735 echo "$ac_t""$CC" 1>&6
736 else
737 echo "$ac_t""no" 1>&6
740 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
744 echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
746 ac_ext=c
747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748 ac_cpp='$CPP $CPPFLAGS'
749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
751 cross_compiling=$ac_cv_prog_cc_cross
753 cat > conftest.$ac_ext <<EOF
754 #line 755 "configure"
755 #include "confdefs.h"
756 main(){return(0);}
758 if { (eval echo configure:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
759 ac_cv_prog_cc_works=yes
760 # If we can't run a trivial program, we are probably using a cross compiler.
761 if (./conftest; exit) 2>/dev/null; then
762 ac_cv_prog_cc_cross=no
763 else
764 ac_cv_prog_cc_cross=yes
766 else
767 echo "configure: failed program was:" >&5
768 cat conftest.$ac_ext >&5
769 ac_cv_prog_cc_works=no
771 rm -fr conftest*
773 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
774 if test $ac_cv_prog_cc_works = no; then
775 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
777 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
778 echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
779 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
780 cross_compiling=$ac_cv_prog_cc_cross
782 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
783 echo "configure:784: checking whether we are using GNU C" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
786 else
787 cat > conftest.c <<EOF
788 #ifdef __GNUC__
789 yes;
790 #endif
792 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
793 ac_cv_prog_gcc=yes
794 else
795 ac_cv_prog_gcc=no
799 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
801 if test $ac_cv_prog_gcc = yes; then
802 GCC=yes
803 ac_test_CFLAGS="${CFLAGS+set}"
804 ac_save_CFLAGS="$CFLAGS"
805 CFLAGS=
806 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
807 echo "configure:808: checking whether ${CC-cc} accepts -g" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810 else
811 echo 'void f(){}' > conftest.c
812 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
813 ac_cv_prog_cc_g=yes
814 else
815 ac_cv_prog_cc_g=no
817 rm -f conftest*
821 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
822 if test "$ac_test_CFLAGS" = set; then
823 CFLAGS="$ac_save_CFLAGS"
824 elif test $ac_cv_prog_cc_g = yes; then
825 CFLAGS="-g -O2"
826 else
827 CFLAGS="-O2"
829 else
830 GCC=
831 test "${CFLAGS+set}" = set || CFLAGS="-g"
834 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
835 echo "configure:836: checking how to run the C preprocessor" >&5
836 # On Suns, sometimes $CPP names a directory.
837 if test -n "$CPP" && test -d "$CPP"; then
838 CPP=
840 if test -z "$CPP"; then
841 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
843 else
844 # This must be in double quotes, not single quotes, because CPP may get
845 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 CPP="${CC-cc} -E"
847 # On the NeXT, cc -E runs the code through the compiler's parser,
848 # not just through cpp.
849 cat > conftest.$ac_ext <<EOF
850 #line 851 "configure"
851 #include "confdefs.h"
852 #include <assert.h>
853 Syntax Error
855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
856 { (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
857 ac_err=`grep -v '^ *+' conftest.out`
858 if test -z "$ac_err"; then
860 else
861 echo "$ac_err" >&5
862 echo "configure: failed program was:" >&5
863 cat conftest.$ac_ext >&5
864 rm -rf conftest*
865 CPP="${CC-cc} -E -traditional-cpp"
866 cat > conftest.$ac_ext <<EOF
867 #line 868 "configure"
868 #include "confdefs.h"
869 #include <assert.h>
870 Syntax Error
872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873 { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
874 ac_err=`grep -v '^ *+' conftest.out`
875 if test -z "$ac_err"; then
877 else
878 echo "$ac_err" >&5
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
881 rm -rf conftest*
882 CPP=/lib/cpp
884 rm -f conftest*
886 rm -f conftest*
887 ac_cv_prog_CPP="$CPP"
889 CPP="$ac_cv_prog_CPP"
890 else
891 ac_cv_prog_CPP="$CPP"
893 echo "$ac_t""$CPP" 1>&6
895 # If we find X, set shell vars x_includes and x_libraries to the
896 # paths, otherwise set no_x=yes.
897 # Uses ac_ vars as temps to allow command line to override cache and checks.
898 # --without-x overrides everything else, but does not touch the cache.
899 echo $ac_n "checking for X""... $ac_c" 1>&6
900 echo "configure:901: checking for X" >&5
902 # Check whether --with-x or --without-x was given.
903 if test "${with_x+set}" = set; then
904 withval="$with_x"
908 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
909 if test "x$with_x" = xno; then
910 # The user explicitly disabled X.
911 have_x=disabled
912 else
913 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
914 # Both variables are already set.
915 have_x=yes
916 else
917 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
919 else
920 # One or both of the vars are not set, and there is no cached value.
921 ac_x_includes=NO ac_x_libraries=NO
922 rm -fr conftestdir
923 if mkdir conftestdir; then
924 cd conftestdir
925 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
926 cat > Imakefile <<'EOF'
927 acfindx:
928 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
930 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
932 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
933 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
934 for ac_extension in a so sl; do
935 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
936 test -f $ac_im_libdir/libX11.$ac_extension; then
937 ac_im_usrlibdir=$ac_im_libdir; break
939 done
940 # Screen out bogus values from the imake configuration. They are
941 # bogus both because they are the default anyway, and because
942 # using them would break gcc on systems where it needs fixed includes.
943 case "$ac_im_incroot" in
944 /usr/include) ;;
945 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
946 esac
947 case "$ac_im_usrlibdir" in
948 /usr/lib | /lib) ;;
949 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
950 esac
952 cd ..
953 rm -fr conftestdir
956 if test "$ac_x_includes" = NO; then
957 # Guess where to find include files, by looking for this one X11 .h file.
958 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
960 # First, try using that file with no special directory specified.
961 cat > conftest.$ac_ext <<EOF
962 #line 963 "configure"
963 #include "confdefs.h"
964 #include <$x_direct_test_include>
966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
967 { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
968 ac_err=`grep -v '^ *+' conftest.out`
969 if test -z "$ac_err"; then
970 rm -rf conftest*
971 # We can compile using X headers with no special include directory.
972 ac_x_includes=
973 else
974 echo "$ac_err" >&5
975 echo "configure: failed program was:" >&5
976 cat conftest.$ac_ext >&5
977 rm -rf conftest*
978 # Look for the header file in a standard set of common directories.
979 # Check X11 before X11Rn because it is often a symlink to the current release.
980 for ac_dir in \
981 /usr/X11/include \
982 /usr/X11R6/include \
983 /usr/X11R5/include \
984 /usr/X11R4/include \
986 /usr/include/X11 \
987 /usr/include/X11R6 \
988 /usr/include/X11R5 \
989 /usr/include/X11R4 \
991 /usr/local/X11/include \
992 /usr/local/X11R6/include \
993 /usr/local/X11R5/include \
994 /usr/local/X11R4/include \
996 /usr/local/include/X11 \
997 /usr/local/include/X11R6 \
998 /usr/local/include/X11R5 \
999 /usr/local/include/X11R4 \
1001 /usr/X386/include \
1002 /usr/x386/include \
1003 /usr/XFree86/include/X11 \
1005 /usr/include \
1006 /usr/local/include \
1007 /usr/unsupported/include \
1008 /usr/athena/include \
1009 /usr/local/x11r5/include \
1010 /usr/lpp/Xamples/include \
1012 /usr/openwin/include \
1013 /usr/openwin/share/include \
1016 if test -r "$ac_dir/$x_direct_test_include"; then
1017 ac_x_includes=$ac_dir
1018 break
1020 done
1022 rm -f conftest*
1023 fi # $ac_x_includes = NO
1025 if test "$ac_x_libraries" = NO; then
1026 # Check for the libraries.
1028 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1029 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1031 # See if we find them without any special options.
1032 # Don't add to $LIBS permanently.
1033 ac_save_LIBS="$LIBS"
1034 LIBS="-l$x_direct_test_library $LIBS"
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1039 int main() {
1040 ${x_direct_test_function}()
1041 ; return 0; }
1043 if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1044 rm -rf conftest*
1045 LIBS="$ac_save_LIBS"
1046 # We can link X programs with no special library path.
1047 ac_x_libraries=
1048 else
1049 echo "configure: failed program was:" >&5
1050 cat conftest.$ac_ext >&5
1051 rm -rf conftest*
1052 LIBS="$ac_save_LIBS"
1053 # First see if replacing the include by lib works.
1054 # Check X11 before X11Rn because it is often a symlink to the current release.
1055 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1056 /usr/X11/lib \
1057 /usr/X11R6/lib \
1058 /usr/X11R5/lib \
1059 /usr/X11R4/lib \
1061 /usr/lib/X11 \
1062 /usr/lib/X11R6 \
1063 /usr/lib/X11R5 \
1064 /usr/lib/X11R4 \
1066 /usr/local/X11/lib \
1067 /usr/local/X11R6/lib \
1068 /usr/local/X11R5/lib \
1069 /usr/local/X11R4/lib \
1071 /usr/local/lib/X11 \
1072 /usr/local/lib/X11R6 \
1073 /usr/local/lib/X11R5 \
1074 /usr/local/lib/X11R4 \
1076 /usr/X386/lib \
1077 /usr/x386/lib \
1078 /usr/XFree86/lib/X11 \
1080 /usr/lib \
1081 /usr/local/lib \
1082 /usr/unsupported/lib \
1083 /usr/athena/lib \
1084 /usr/local/x11r5/lib \
1085 /usr/lpp/Xamples/lib \
1086 /lib/usr/lib/X11 \
1088 /usr/openwin/lib \
1089 /usr/openwin/share/lib \
1092 for ac_extension in a so sl; do
1093 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1094 ac_x_libraries=$ac_dir
1095 break 2
1097 done
1098 done
1100 rm -f conftest*
1101 fi # $ac_x_libraries = NO
1103 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1104 # Didn't find X anywhere. Cache the known absence of X.
1105 ac_cv_have_x="have_x=no"
1106 else
1107 # Record where we found X for the cache.
1108 ac_cv_have_x="have_x=yes \
1109 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1113 eval "$ac_cv_have_x"
1114 fi # $with_x != no
1116 if test "$have_x" != yes; then
1117 echo "$ac_t""$have_x" 1>&6
1118 no_x=yes
1119 else
1120 # If each of the values was on the command line, it overrides each guess.
1121 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1122 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1123 # Update the cache value to reflect the command line values.
1124 ac_cv_have_x="have_x=yes \
1125 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1126 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1129 if test "$no_x" = yes; then
1130 # Not all programs may use this symbol, but it does not hurt to define it.
1131 cat >> confdefs.h <<\EOF
1132 #define X_DISPLAY_MISSING 1
1135 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1136 else
1137 if test -n "$x_includes"; then
1138 X_CFLAGS="$X_CFLAGS -I$x_includes"
1141 # It would also be nice to do this for all -L options, not just this one.
1142 if test -n "$x_libraries"; then
1143 X_LIBS="$X_LIBS -L$x_libraries"
1144 # For Solaris; some versions of Sun CC require a space after -R and
1145 # others require no space. Words are not sufficient . . . .
1146 case "`(uname -sr) 2>/dev/null`" in
1147 "SunOS 5"*)
1148 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether -R must be followed by a space" >&5
1150 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1155 int main() {
1157 ; return 0; }
1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1160 rm -rf conftest*
1161 ac_R_nospace=yes
1162 else
1163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
1165 rm -rf conftest*
1166 ac_R_nospace=no
1168 rm -f conftest*
1169 if test $ac_R_nospace = yes; then
1170 echo "$ac_t""no" 1>&6
1171 X_LIBS="$X_LIBS -R$x_libraries"
1172 else
1173 LIBS="$ac_xsave_LIBS -R $x_libraries"
1174 cat > conftest.$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1178 int main() {
1180 ; return 0; }
1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1183 rm -rf conftest*
1184 ac_R_space=yes
1185 else
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1188 rm -rf conftest*
1189 ac_R_space=no
1191 rm -f conftest*
1192 if test $ac_R_space = yes; then
1193 echo "$ac_t""yes" 1>&6
1194 X_LIBS="$X_LIBS -R $x_libraries"
1195 else
1196 echo "$ac_t""neither works" 1>&6
1199 LIBS="$ac_xsave_LIBS"
1200 esac
1203 # Check for system-dependent libraries X programs must link with.
1204 # Do this before checking for the system-independent R6 libraries
1205 # (-lICE), since we may need -lsocket or whatever for X linking.
1207 if test "$ISC" = yes; then
1208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1209 else
1210 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1211 # libraries were built with DECnet support. And karl@cs.umb.edu says
1212 # the Alpha needs dnet_stub (dnet does not exist).
1213 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1214 echo "configure:1215: checking for dnet_ntoa in -ldnet" >&5
1215 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 ac_save_LIBS="$LIBS"
1220 LIBS="-ldnet $LIBS"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 /* Override any gcc2 internal prototype to avoid an error. */
1225 /* We use char because int might match the return type of a gcc2
1226 builtin and then its argument prototype would still apply. */
1227 char dnet_ntoa();
1229 int main() {
1230 dnet_ntoa()
1231 ; return 0; }
1233 if { (eval echo configure:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1234 rm -rf conftest*
1235 eval "ac_cv_lib_$ac_lib_var=yes"
1236 else
1237 echo "configure: failed program was:" >&5
1238 cat conftest.$ac_ext >&5
1239 rm -rf conftest*
1240 eval "ac_cv_lib_$ac_lib_var=no"
1242 rm -f conftest*
1243 LIBS="$ac_save_LIBS"
1246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1248 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1249 else
1250 echo "$ac_t""no" 1>&6
1253 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1254 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1255 echo "configure:1256: checking for dnet_ntoa in -ldnet_stub" >&5
1256 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1259 else
1260 ac_save_LIBS="$LIBS"
1261 LIBS="-ldnet_stub $LIBS"
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 /* Override any gcc2 internal prototype to avoid an error. */
1266 /* We use char because int might match the return type of a gcc2
1267 builtin and then its argument prototype would still apply. */
1268 char dnet_ntoa();
1270 int main() {
1271 dnet_ntoa()
1272 ; return 0; }
1274 if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1275 rm -rf conftest*
1276 eval "ac_cv_lib_$ac_lib_var=yes"
1277 else
1278 echo "configure: failed program was:" >&5
1279 cat conftest.$ac_ext >&5
1280 rm -rf conftest*
1281 eval "ac_cv_lib_$ac_lib_var=no"
1283 rm -f conftest*
1284 LIBS="$ac_save_LIBS"
1287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1290 else
1291 echo "$ac_t""no" 1>&6
1296 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1297 # to get the SysV transport functions.
1298 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1299 # needs -lnsl.
1300 # The nsl library prevents programs from opening the X display
1301 # on Irix 5.2, according to dickey@clark.net.
1302 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1303 echo "configure:1304: checking for gethostbyname" >&5
1304 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1306 else
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 /* System header to define __stub macros and hopefully few prototypes,
1311 which can conflict with char gethostbyname(); below. */
1312 #include <assert.h>
1313 /* Override any gcc2 internal prototype to avoid an error. */
1314 /* We use char because int might match the return type of a gcc2
1315 builtin and then its argument prototype would still apply. */
1316 char gethostbyname();
1318 int main() {
1320 /* The GNU C library defines this for functions which it implements
1321 to always fail with ENOSYS. Some functions are actually named
1322 something starting with __ and the normal name is an alias. */
1323 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1324 choke me
1325 #else
1326 gethostbyname();
1327 #endif
1329 ; return 0; }
1331 if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1332 rm -rf conftest*
1333 eval "ac_cv_func_gethostbyname=yes"
1334 else
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1337 rm -rf conftest*
1338 eval "ac_cv_func_gethostbyname=no"
1340 rm -f conftest*
1343 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1346 else
1347 echo "$ac_t""no" 1>&6
1350 if test $ac_cv_func_gethostbyname = no; then
1351 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1352 echo "configure:1353: checking for gethostbyname in -lnsl" >&5
1353 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1356 else
1357 ac_save_LIBS="$LIBS"
1358 LIBS="-lnsl $LIBS"
1359 cat > conftest.$ac_ext <<EOF
1360 #line 1361 "configure"
1361 #include "confdefs.h"
1362 /* Override any gcc2 internal prototype to avoid an error. */
1363 /* We use char because int might match the return type of a gcc2
1364 builtin and then its argument prototype would still apply. */
1365 char gethostbyname();
1367 int main() {
1368 gethostbyname()
1369 ; return 0; }
1371 if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1372 rm -rf conftest*
1373 eval "ac_cv_lib_$ac_lib_var=yes"
1374 else
1375 echo "configure: failed program was:" >&5
1376 cat conftest.$ac_ext >&5
1377 rm -rf conftest*
1378 eval "ac_cv_lib_$ac_lib_var=no"
1380 rm -f conftest*
1381 LIBS="$ac_save_LIBS"
1384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1385 echo "$ac_t""yes" 1>&6
1386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1387 else
1388 echo "$ac_t""no" 1>&6
1393 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1394 # socket/setsockopt and other routines are undefined under SCO ODT
1395 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1396 # on later versions), says simon@lia.di.epfl.ch: it contains
1397 # gethostby* variants that don't use the nameserver (or something).
1398 # -lsocket must be given before -lnsl if both are needed.
1399 # We assume that if connect needs -lnsl, so does gethostbyname.
1400 echo $ac_n "checking for connect""... $ac_c" 1>&6
1401 echo "configure:1402: checking for connect" >&5
1402 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1404 else
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 /* System header to define __stub macros and hopefully few prototypes,
1409 which can conflict with char connect(); below. */
1410 #include <assert.h>
1411 /* Override any gcc2 internal prototype to avoid an error. */
1412 /* We use char because int might match the return type of a gcc2
1413 builtin and then its argument prototype would still apply. */
1414 char connect();
1416 int main() {
1418 /* The GNU C library defines this for functions which it implements
1419 to always fail with ENOSYS. Some functions are actually named
1420 something starting with __ and the normal name is an alias. */
1421 #if defined (__stub_connect) || defined (__stub___connect)
1422 choke me
1423 #else
1424 connect();
1425 #endif
1427 ; return 0; }
1429 if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1430 rm -rf conftest*
1431 eval "ac_cv_func_connect=yes"
1432 else
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1435 rm -rf conftest*
1436 eval "ac_cv_func_connect=no"
1438 rm -f conftest*
1441 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1444 else
1445 echo "$ac_t""no" 1>&6
1448 if test $ac_cv_func_connect = no; then
1449 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1450 echo "configure:1451: checking for connect in -lsocket" >&5
1451 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1454 else
1455 ac_save_LIBS="$LIBS"
1456 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 /* Override any gcc2 internal prototype to avoid an error. */
1461 /* We use char because int might match the return type of a gcc2
1462 builtin and then its argument prototype would still apply. */
1463 char connect();
1465 int main() {
1466 connect()
1467 ; return 0; }
1469 if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1470 rm -rf conftest*
1471 eval "ac_cv_lib_$ac_lib_var=yes"
1472 else
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1475 rm -rf conftest*
1476 eval "ac_cv_lib_$ac_lib_var=no"
1478 rm -f conftest*
1479 LIBS="$ac_save_LIBS"
1482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1484 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1485 else
1486 echo "$ac_t""no" 1>&6
1491 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1492 echo $ac_n "checking for remove""... $ac_c" 1>&6
1493 echo "configure:1494: checking for remove" >&5
1494 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496 else
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 /* System header to define __stub macros and hopefully few prototypes,
1501 which can conflict with char remove(); below. */
1502 #include <assert.h>
1503 /* Override any gcc2 internal prototype to avoid an error. */
1504 /* We use char because int might match the return type of a gcc2
1505 builtin and then its argument prototype would still apply. */
1506 char remove();
1508 int main() {
1510 /* The GNU C library defines this for functions which it implements
1511 to always fail with ENOSYS. Some functions are actually named
1512 something starting with __ and the normal name is an alias. */
1513 #if defined (__stub_remove) || defined (__stub___remove)
1514 choke me
1515 #else
1516 remove();
1517 #endif
1519 ; return 0; }
1521 if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1522 rm -rf conftest*
1523 eval "ac_cv_func_remove=yes"
1524 else
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1527 rm -rf conftest*
1528 eval "ac_cv_func_remove=no"
1530 rm -f conftest*
1533 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1534 echo "$ac_t""yes" 1>&6
1536 else
1537 echo "$ac_t""no" 1>&6
1540 if test $ac_cv_func_remove = no; then
1541 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1542 echo "configure:1543: checking for remove in -lposix" >&5
1543 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1546 else
1547 ac_save_LIBS="$LIBS"
1548 LIBS="-lposix $LIBS"
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 /* Override any gcc2 internal prototype to avoid an error. */
1553 /* We use char because int might match the return type of a gcc2
1554 builtin and then its argument prototype would still apply. */
1555 char remove();
1557 int main() {
1558 remove()
1559 ; return 0; }
1561 if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1562 rm -rf conftest*
1563 eval "ac_cv_lib_$ac_lib_var=yes"
1564 else
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1567 rm -rf conftest*
1568 eval "ac_cv_lib_$ac_lib_var=no"
1570 rm -f conftest*
1571 LIBS="$ac_save_LIBS"
1574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1577 else
1578 echo "$ac_t""no" 1>&6
1583 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1584 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1585 echo "configure:1586: checking for shmat" >&5
1586 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1592 /* System header to define __stub macros and hopefully few prototypes,
1593 which can conflict with char shmat(); below. */
1594 #include <assert.h>
1595 /* Override any gcc2 internal prototype to avoid an error. */
1596 /* We use char because int might match the return type of a gcc2
1597 builtin and then its argument prototype would still apply. */
1598 char shmat();
1600 int main() {
1602 /* The GNU C library defines this for functions which it implements
1603 to always fail with ENOSYS. Some functions are actually named
1604 something starting with __ and the normal name is an alias. */
1605 #if defined (__stub_shmat) || defined (__stub___shmat)
1606 choke me
1607 #else
1608 shmat();
1609 #endif
1611 ; return 0; }
1613 if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1614 rm -rf conftest*
1615 eval "ac_cv_func_shmat=yes"
1616 else
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1619 rm -rf conftest*
1620 eval "ac_cv_func_shmat=no"
1622 rm -f conftest*
1625 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1626 echo "$ac_t""yes" 1>&6
1628 else
1629 echo "$ac_t""no" 1>&6
1632 if test $ac_cv_func_shmat = no; then
1633 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1634 echo "configure:1635: checking for shmat in -lipc" >&5
1635 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638 else
1639 ac_save_LIBS="$LIBS"
1640 LIBS="-lipc $LIBS"
1641 cat > conftest.$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1644 /* Override any gcc2 internal prototype to avoid an error. */
1645 /* We use char because int might match the return type of a gcc2
1646 builtin and then its argument prototype would still apply. */
1647 char shmat();
1649 int main() {
1650 shmat()
1651 ; return 0; }
1653 if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1654 rm -rf conftest*
1655 eval "ac_cv_lib_$ac_lib_var=yes"
1656 else
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 rm -rf conftest*
1660 eval "ac_cv_lib_$ac_lib_var=no"
1662 rm -f conftest*
1663 LIBS="$ac_save_LIBS"
1666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1667 echo "$ac_t""yes" 1>&6
1668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1669 else
1670 echo "$ac_t""no" 1>&6
1676 # Check for libraries that X11R6 Xt/Xaw programs need.
1677 ac_save_LDFLAGS="$LDFLAGS"
1678 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1679 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1680 # check for ICE first), but we must link in the order -lSM -lICE or
1681 # we get undefined symbols. So assume we have SM if we have ICE.
1682 # These have to be linked with before -lX11, unlike the other
1683 # libraries we check for below, so use a different variable.
1684 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1685 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1686 echo "configure:1687: checking for IceConnectionNumber in -lICE" >&5
1687 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691 ac_save_LIBS="$LIBS"
1692 LIBS="-lICE $LIBS"
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 /* Override any gcc2 internal prototype to avoid an error. */
1697 /* We use char because int might match the return type of a gcc2
1698 builtin and then its argument prototype would still apply. */
1699 char IceConnectionNumber();
1701 int main() {
1702 IceConnectionNumber()
1703 ; return 0; }
1705 if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1706 rm -rf conftest*
1707 eval "ac_cv_lib_$ac_lib_var=yes"
1708 else
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1711 rm -rf conftest*
1712 eval "ac_cv_lib_$ac_lib_var=no"
1714 rm -f conftest*
1715 LIBS="$ac_save_LIBS"
1718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1720 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1721 else
1722 echo "$ac_t""no" 1>&6
1725 LDFLAGS="$ac_save_LDFLAGS"
1729 for ac_prog in 'bison -y' byacc
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy $ac_prog; ac_word=$2
1733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_word" >&5
1735 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1737 else
1738 if test -n "$YACC"; then
1739 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1740 else
1741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1742 for ac_dir in $PATH; do
1743 test -z "$ac_dir" && ac_dir=.
1744 if test -f $ac_dir/$ac_word; then
1745 ac_cv_prog_YACC="$ac_prog"
1746 break
1748 done
1749 IFS="$ac_save_ifs"
1752 YACC="$ac_cv_prog_YACC"
1753 if test -n "$YACC"; then
1754 echo "$ac_t""$YACC" 1>&6
1755 else
1756 echo "$ac_t""no" 1>&6
1759 test -n "$YACC" && break
1760 done
1761 test -n "$YACC" || YACC="yacc"
1763 # Extract the first word of "flex", so it can be a program name with args.
1764 set dummy flex; ac_word=$2
1765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1766 echo "configure:1767: checking for $ac_word" >&5
1767 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1769 else
1770 if test -n "$LEX"; then
1771 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1772 else
1773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1774 for ac_dir in $PATH; do
1775 test -z "$ac_dir" && ac_dir=.
1776 if test -f $ac_dir/$ac_word; then
1777 ac_cv_prog_LEX="flex"
1778 break
1780 done
1781 IFS="$ac_save_ifs"
1782 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1785 LEX="$ac_cv_prog_LEX"
1786 if test -n "$LEX"; then
1787 echo "$ac_t""$LEX" 1>&6
1788 else
1789 echo "$ac_t""no" 1>&6
1792 if test -z "$LEXLIB"
1793 then
1794 case "$LEX" in
1795 flex*) ac_lib=fl ;;
1796 *) ac_lib=l ;;
1797 esac
1798 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1799 echo "configure:1800: checking for yywrap in -l$ac_lib" >&5
1800 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1803 else
1804 ac_save_LIBS="$LIBS"
1805 LIBS="-l$ac_lib $LIBS"
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 /* Override any gcc2 internal prototype to avoid an error. */
1810 /* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
1812 char yywrap();
1814 int main() {
1815 yywrap()
1816 ; return 0; }
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1819 rm -rf conftest*
1820 eval "ac_cv_lib_$ac_lib_var=yes"
1821 else
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1824 rm -rf conftest*
1825 eval "ac_cv_lib_$ac_lib_var=no"
1827 rm -f conftest*
1828 LIBS="$ac_save_LIBS"
1831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1832 echo "$ac_t""yes" 1>&6
1833 LEXLIB="-l$ac_lib"
1834 else
1835 echo "$ac_t""no" 1>&6
1840 # Extract the first word of "ranlib", so it can be a program name with args.
1841 set dummy ranlib; ac_word=$2
1842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1843 echo "configure:1844: checking for $ac_word" >&5
1844 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846 else
1847 if test -n "$RANLIB"; then
1848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1849 else
1850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1851 for ac_dir in $PATH; do
1852 test -z "$ac_dir" && ac_dir=.
1853 if test -f $ac_dir/$ac_word; then
1854 ac_cv_prog_RANLIB="ranlib"
1855 break
1857 done
1858 IFS="$ac_save_ifs"
1859 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1862 RANLIB="$ac_cv_prog_RANLIB"
1863 if test -n "$RANLIB"; then
1864 echo "$ac_t""$RANLIB" 1>&6
1865 else
1866 echo "$ac_t""no" 1>&6
1869 # Find a good install program. We prefer a C program (faster),
1870 # so one script is as good as another. But avoid the broken or
1871 # incompatible versions:
1872 # SysV /etc/install, /usr/sbin/install
1873 # SunOS /usr/etc/install
1874 # IRIX /sbin/install
1875 # AIX /bin/install
1876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1878 # ./install, which can be erroneously created by make from ./install.sh.
1879 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1880 echo "configure:1881: checking for a BSD compatible install" >&5
1881 if test -z "$INSTALL"; then
1882 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1886 for ac_dir in $PATH; do
1887 # Account for people who put trailing slashes in PATH elements.
1888 case "$ac_dir/" in
1889 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1891 # OSF1 and SCO ODT 3.0 have their own names for install.
1892 for ac_prog in ginstall installbsd scoinst install; do
1893 if test -f $ac_dir/$ac_prog; then
1894 if test $ac_prog = install &&
1895 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1896 # AIX install. It has an incompatible calling convention.
1897 # OSF/1 installbsd also uses dspmsg, but is usable.
1899 else
1900 ac_cv_path_install="$ac_dir/$ac_prog -c"
1901 break 2
1904 done
1906 esac
1907 done
1908 IFS="$ac_save_IFS"
1911 if test "${ac_cv_path_install+set}" = set; then
1912 INSTALL="$ac_cv_path_install"
1913 else
1914 # As a last resort, use the slow shell script. We don't cache a
1915 # path for INSTALL within a source directory, because that will
1916 # break other packages using the cache if that directory is
1917 # removed, or if the path is relative.
1918 INSTALL="$ac_install_sh"
1921 echo "$ac_t""$INSTALL" 1>&6
1923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1924 # It thinks the first close brace ends the variable substitution.
1925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1927 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1929 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether ln -s works" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934 rm -f conftestdata
1935 if ln -s X conftestdata 2>/dev/null
1936 then
1937 rm -f conftestdata
1938 ac_cv_prog_LN_S="ln -s"
1939 else
1940 ac_cv_prog_LN_S=ln
1943 LN_S="$ac_cv_prog_LN_S"
1944 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1945 echo "$ac_t""yes" 1>&6
1946 else
1947 echo "$ac_t""no" 1>&6
1950 # Extract the first word of "c2man", so it can be a program name with args.
1951 set dummy c2man; ac_word=$2
1952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_word" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1956 else
1957 if test -n "$C2MAN"; then
1958 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1959 else
1960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1961 for ac_dir in $PATH; do
1962 test -z "$ac_dir" && ac_dir=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_prog_C2MAN="c2man"
1965 break
1967 done
1968 IFS="$ac_save_ifs"
1969 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1972 C2MAN="$ac_cv_prog_C2MAN"
1973 if test -n "$C2MAN"; then
1974 echo "$ac_t""$C2MAN" 1>&6
1975 else
1976 echo "$ac_t""no" 1>&6
1981 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1982 echo "configure:1983: checking for i386_set_ldt in -li386" >&5
1983 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987 ac_save_LIBS="$LIBS"
1988 LIBS="-li386 $LIBS"
1989 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1992 /* Override any gcc2 internal prototype to avoid an error. */
1993 /* We use char because int might match the return type of a gcc2
1994 builtin and then its argument prototype would still apply. */
1995 char i386_set_ldt();
1997 int main() {
1998 i386_set_ldt()
1999 ; return 0; }
2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2002 rm -rf conftest*
2003 eval "ac_cv_lib_$ac_lib_var=yes"
2004 else
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2007 rm -rf conftest*
2008 eval "ac_cv_lib_$ac_lib_var=no"
2010 rm -f conftest*
2011 LIBS="$ac_save_LIBS"
2014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2018 cat >> confdefs.h <<EOF
2019 #define $ac_tr_lib 1
2022 LIBS="-li386 $LIBS"
2024 else
2025 echo "$ac_t""no" 1>&6
2028 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2029 echo "configure:2030: checking for _oss_ioctl in -lossaudio" >&5
2030 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034 ac_save_LIBS="$LIBS"
2035 LIBS="-lossaudio $LIBS"
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 /* Override any gcc2 internal prototype to avoid an error. */
2040 /* We use char because int might match the return type of a gcc2
2041 builtin and then its argument prototype would still apply. */
2042 char _oss_ioctl();
2044 int main() {
2045 _oss_ioctl()
2046 ; return 0; }
2048 if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2049 rm -rf conftest*
2050 eval "ac_cv_lib_$ac_lib_var=yes"
2051 else
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 rm -rf conftest*
2055 eval "ac_cv_lib_$ac_lib_var=no"
2057 rm -f conftest*
2058 LIBS="$ac_save_LIBS"
2061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2064 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2065 cat >> confdefs.h <<EOF
2066 #define $ac_tr_lib 1
2069 LIBS="-lossaudio $LIBS"
2071 else
2072 echo "$ac_t""no" 1>&6
2075 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2076 echo "configure:2077: checking for iswalnum in -lw" >&5
2077 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2080 else
2081 ac_save_LIBS="$LIBS"
2082 LIBS="-lw $LIBS"
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* Override any gcc2 internal prototype to avoid an error. */
2087 /* We use char because int might match the return type of a gcc2
2088 builtin and then its argument prototype would still apply. */
2089 char iswalnum();
2091 int main() {
2092 iswalnum()
2093 ; return 0; }
2095 if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2096 rm -rf conftest*
2097 eval "ac_cv_lib_$ac_lib_var=yes"
2098 else
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 rm -rf conftest*
2102 eval "ac_cv_lib_$ac_lib_var=no"
2104 rm -f conftest*
2105 LIBS="$ac_save_LIBS"
2108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2111 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2112 cat >> confdefs.h <<EOF
2113 #define $ac_tr_lib 1
2116 LIBS="-lw $LIBS"
2118 else
2119 echo "$ac_t""no" 1>&6
2122 for ac_func in gethostbyname
2124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_func" >&5
2126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 /* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char $ac_func(); below. */
2134 #include <assert.h>
2135 /* Override any gcc2 internal prototype to avoid an error. */
2136 /* We use char because int might match the return type of a gcc2
2137 builtin and then its argument prototype would still apply. */
2138 char $ac_func();
2140 int main() {
2142 /* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2146 choke me
2147 #else
2148 $ac_func();
2149 #endif
2151 ; return 0; }
2153 if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2154 rm -rf conftest*
2155 eval "ac_cv_func_$ac_func=yes"
2156 else
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 rm -rf conftest*
2160 eval "ac_cv_func_$ac_func=no"
2162 rm -f conftest*
2165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2168 cat >> confdefs.h <<EOF
2169 #define $ac_tr_func 1
2172 else
2173 echo "$ac_t""no" 1>&6
2175 done
2177 if test "$ac_cv_func_gethostbyname" = "no"
2178 then
2179 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2180 echo "configure:2181: checking for gethostbyname in -lnsl" >&5
2181 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185 ac_save_LIBS="$LIBS"
2186 LIBS="-lnsl $LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2193 char gethostbyname();
2195 int main() {
2196 gethostbyname()
2197 ; return 0; }
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2200 rm -rf conftest*
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2202 else
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 rm -rf conftest*
2206 eval "ac_cv_lib_$ac_lib_var=no"
2208 rm -f conftest*
2209 LIBS="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2216 cat >> confdefs.h <<EOF
2217 #define $ac_tr_lib 1
2220 LIBS="-lnsl $LIBS"
2222 else
2223 echo "$ac_t""no" 1>&6
2227 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2228 echo "configure:2229: checking for setrunelocale in -lxpg4" >&5
2229 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2232 else
2233 ac_save_LIBS="$LIBS"
2234 LIBS="-lxpg4 $LIBS"
2235 cat > conftest.$ac_ext <<EOF
2236 #line 2237 "configure"
2237 #include "confdefs.h"
2238 /* Override any gcc2 internal prototype to avoid an error. */
2239 /* We use char because int might match the return type of a gcc2
2240 builtin and then its argument prototype would still apply. */
2241 char setrunelocale();
2243 int main() {
2244 setrunelocale()
2245 ; return 0; }
2247 if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2248 rm -rf conftest*
2249 eval "ac_cv_lib_$ac_lib_var=yes"
2250 else
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2253 rm -rf conftest*
2254 eval "ac_cv_lib_$ac_lib_var=no"
2256 rm -f conftest*
2257 LIBS="$ac_save_LIBS"
2260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2264 cat >> confdefs.h <<EOF
2265 #define $ac_tr_lib 1
2268 LIBS="-lxpg4 $LIBS"
2270 else
2271 echo "$ac_t""no" 1>&6
2274 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2275 echo "configure:2276: checking for dlopen in -ldl" >&5
2276 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2279 else
2280 ac_save_LIBS="$LIBS"
2281 LIBS="-ldl $LIBS"
2282 cat > conftest.$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2285 /* Override any gcc2 internal prototype to avoid an error. */
2286 /* We use char because int might match the return type of a gcc2
2287 builtin and then its argument prototype would still apply. */
2288 char dlopen();
2290 int main() {
2291 dlopen()
2292 ; return 0; }
2294 if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2295 rm -rf conftest*
2296 eval "ac_cv_lib_$ac_lib_var=yes"
2297 else
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2300 rm -rf conftest*
2301 eval "ac_cv_lib_$ac_lib_var=no"
2303 rm -f conftest*
2304 LIBS="$ac_save_LIBS"
2307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2308 echo "$ac_t""yes" 1>&6
2309 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2311 cat >> confdefs.h <<EOF
2312 #define $ac_tr_lib 1
2315 LIBS="-ldl $LIBS"
2317 else
2318 echo "$ac_t""no" 1>&6
2322 if test "$have_x" = "yes"
2323 then
2324 XLIB="-lXext -lX11"
2326 for ac_hdr in X11/xpm.h
2328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_hdr" >&5
2331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 #include <$ac_hdr>
2339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340 { (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341 ac_err=`grep -v '^ *+' conftest.out`
2342 if test -z "$ac_err"; then
2343 rm -rf conftest*
2344 eval "ac_cv_header_$ac_safe=yes"
2345 else
2346 echo "$ac_err" >&5
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 rm -rf conftest*
2350 eval "ac_cv_header_$ac_safe=no"
2352 rm -f conftest*
2354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2357 cat >> confdefs.h <<EOF
2358 #define $ac_tr_hdr 1
2361 else
2362 echo "$ac_t""no" 1>&6
2364 done
2366 if test "$ac_cv_header_X11_xpm_h" = "yes"
2367 then
2368 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2369 echo "configure:2370: checking for XpmCreatePixmapFromData in -lXpm" >&5
2370 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374 ac_save_LIBS="$LIBS"
2375 LIBS="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char XpmCreatePixmapFromData();
2384 int main() {
2385 XpmCreatePixmapFromData()
2386 ; return 0; }
2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2389 rm -rf conftest*
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2391 else
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 rm -rf conftest*
2395 eval "ac_cv_lib_$ac_lib_var=no"
2397 rm -f conftest*
2398 LIBS="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 cat >> confdefs.h <<\EOF
2404 #define HAVE_LIBXXPM 1
2406 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2407 else
2408 echo "$ac_t""no" 1>&6
2413 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
2415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2417 echo "configure:2418: checking for $ac_hdr" >&5
2418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2420 else
2421 cat > conftest.$ac_ext <<EOF
2422 #line 2423 "configure"
2423 #include "confdefs.h"
2424 #include <$ac_hdr>
2426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2427 { (eval echo configure:2428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2428 ac_err=`grep -v '^ *+' conftest.out`
2429 if test -z "$ac_err"; then
2430 rm -rf conftest*
2431 eval "ac_cv_header_$ac_safe=yes"
2432 else
2433 echo "$ac_err" >&5
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2436 rm -rf conftest*
2437 eval "ac_cv_header_$ac_safe=no"
2439 rm -f conftest*
2441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2442 echo "$ac_t""yes" 1>&6
2443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2444 cat >> confdefs.h <<EOF
2445 #define $ac_tr_hdr 1
2448 else
2449 echo "$ac_t""no" 1>&6
2451 done
2453 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2454 then
2455 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2456 echo "configure:2457: checking for XShmQueryExtension in -lXext" >&5
2457 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2460 else
2461 ac_save_LIBS="$LIBS"
2462 LIBS="-lXext $X_LIBS -lXext -lX11 $LIBS"
2463 cat > conftest.$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2466 /* Override any gcc2 internal prototype to avoid an error. */
2467 /* We use char because int might match the return type of a gcc2
2468 builtin and then its argument prototype would still apply. */
2469 char XShmQueryExtension();
2471 int main() {
2472 XShmQueryExtension()
2473 ; return 0; }
2475 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2476 rm -rf conftest*
2477 eval "ac_cv_lib_$ac_lib_var=yes"
2478 else
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 rm -rf conftest*
2482 eval "ac_cv_lib_$ac_lib_var=no"
2484 rm -f conftest*
2485 LIBS="$ac_save_LIBS"
2488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 cat >> confdefs.h <<\EOF
2491 #define HAVE_LIBXXSHM 1
2494 else
2495 echo "$ac_t""no" 1>&6
2499 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
2501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2506 else
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 #include <$ac_hdr>
2512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err=`grep -v '^ *+' conftest.out`
2515 if test -z "$ac_err"; then
2516 rm -rf conftest*
2517 eval "ac_cv_header_$ac_safe=yes"
2518 else
2519 echo "$ac_err" >&5
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 rm -rf conftest*
2523 eval "ac_cv_header_$ac_safe=no"
2525 rm -f conftest*
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530 cat >> confdefs.h <<EOF
2531 #define $ac_tr_hdr 1
2534 else
2535 echo "$ac_t""no" 1>&6
2537 done
2539 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2540 then
2541 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2542 echo "configure:2543: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2543 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547 ac_save_LIBS="$LIBS"
2548 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2549 cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 /* Override any gcc2 internal prototype to avoid an error. */
2553 /* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2555 char XF86DGAQueryExtension();
2557 int main() {
2558 XF86DGAQueryExtension()
2559 ; return 0; }
2561 if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2562 rm -rf conftest*
2563 eval "ac_cv_lib_$ac_lib_var=yes"
2564 else
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 eval "ac_cv_lib_$ac_lib_var=no"
2570 rm -f conftest*
2571 LIBS="$ac_save_LIBS"
2574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2576 cat >> confdefs.h <<\EOF
2577 #define HAVE_LIBXXF86DGA 1
2579 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2580 else
2581 echo "$ac_t""no" 1>&6
2586 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
2588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_hdr" >&5
2591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2593 else
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #include <$ac_hdr>
2599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2600 { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err=`grep -v '^ *+' conftest.out`
2602 if test -z "$ac_err"; then
2603 rm -rf conftest*
2604 eval "ac_cv_header_$ac_safe=yes"
2605 else
2606 echo "$ac_err" >&5
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2609 rm -rf conftest*
2610 eval "ac_cv_header_$ac_safe=no"
2612 rm -f conftest*
2614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2615 echo "$ac_t""yes" 1>&6
2616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2617 cat >> confdefs.h <<EOF
2618 #define $ac_tr_hdr 1
2621 else
2622 echo "$ac_t""no" 1>&6
2624 done
2626 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
2627 then
2628 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2629 echo "configure:2630: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2630 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2633 else
2634 ac_save_LIBS="$LIBS"
2635 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2639 /* Override any gcc2 internal prototype to avoid an error. */
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2642 char XF86VidModeQueryExtension();
2644 int main() {
2645 XF86VidModeQueryExtension()
2646 ; return 0; }
2648 if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2649 rm -rf conftest*
2650 eval "ac_cv_lib_$ac_lib_var=yes"
2651 else
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2654 rm -rf conftest*
2655 eval "ac_cv_lib_$ac_lib_var=no"
2657 rm -f conftest*
2658 LIBS="$ac_save_LIBS"
2661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
2663 cat >> confdefs.h <<\EOF
2664 #define HAVE_LIBXXF86VM 1
2666 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
2667 else
2668 echo "$ac_t""no" 1>&6
2672 for ac_hdr in GL/gl.h GL/osmesa.h
2674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2676 echo "configure:2677: checking for $ac_hdr" >&5
2677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2679 else
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 #include <$ac_hdr>
2685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2686 { (eval echo configure:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2687 ac_err=`grep -v '^ *+' conftest.out`
2688 if test -z "$ac_err"; then
2689 rm -rf conftest*
2690 eval "ac_cv_header_$ac_safe=yes"
2691 else
2692 echo "$ac_err" >&5
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2695 rm -rf conftest*
2696 eval "ac_cv_header_$ac_safe=no"
2698 rm -f conftest*
2700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2703 cat >> confdefs.h <<EOF
2704 #define $ac_tr_hdr 1
2707 else
2708 echo "$ac_t""no" 1>&6
2710 done
2712 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_osmesa_h" = "yes"
2713 then
2714 echo $ac_n "checking for OSMesaCreateContext in -lMesaGL""... $ac_c" 1>&6
2715 echo "configure:2716: checking for OSMesaCreateContext in -lMesaGL" >&5
2716 ac_lib_var=`echo MesaGL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
2717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2719 else
2720 ac_save_LIBS="$LIBS"
2721 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 /* Override any gcc2 internal prototype to avoid an error. */
2726 /* We use char because int might match the return type of a gcc2
2727 builtin and then its argument prototype would still apply. */
2728 char OSMesaCreateContext();
2730 int main() {
2731 OSMesaCreateContext()
2732 ; return 0; }
2734 if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2735 rm -rf conftest*
2736 eval "ac_cv_lib_$ac_lib_var=yes"
2737 else
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 rm -rf conftest*
2741 eval "ac_cv_lib_$ac_lib_var=no"
2743 rm -f conftest*
2744 LIBS="$ac_save_LIBS"
2747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2748 echo "$ac_t""yes" 1>&6
2749 cat >> confdefs.h <<\EOF
2750 #define HAVE_LIBMESAGL 1
2752 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
2753 else
2754 echo "$ac_t""no" 1>&6
2758 else
2759 XLIB=""
2760 X_CFLAGS=""
2761 X_LIBS=""
2764 for ac_hdr in ncurses.h
2766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2768 echo "configure:2769: checking for $ac_hdr" >&5
2769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2771 else
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <$ac_hdr>
2777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2778 { (eval echo configure:2779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2779 ac_err=`grep -v '^ *+' conftest.out`
2780 if test -z "$ac_err"; then
2781 rm -rf conftest*
2782 eval "ac_cv_header_$ac_safe=yes"
2783 else
2784 echo "$ac_err" >&5
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 rm -rf conftest*
2788 eval "ac_cv_header_$ac_safe=no"
2790 rm -f conftest*
2792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2793 echo "$ac_t""yes" 1>&6
2794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2795 cat >> confdefs.h <<EOF
2796 #define $ac_tr_hdr 1
2799 else
2800 echo "$ac_t""no" 1>&6
2802 done
2804 if test "$ac_cv_header_ncurses_h" = "yes"
2805 then
2806 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
2807 echo "configure:2808: checking for waddch in -lncurses" >&5
2808 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
2809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2811 else
2812 ac_save_LIBS="$LIBS"
2813 LIBS="-lncurses $LIBS"
2814 cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 /* Override any gcc2 internal prototype to avoid an error. */
2818 /* We use char because int might match the return type of a gcc2
2819 builtin and then its argument prototype would still apply. */
2820 char waddch();
2822 int main() {
2823 waddch()
2824 ; return 0; }
2826 if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2827 rm -rf conftest*
2828 eval "ac_cv_lib_$ac_lib_var=yes"
2829 else
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2832 rm -rf conftest*
2833 eval "ac_cv_lib_$ac_lib_var=no"
2835 rm -f conftest*
2836 LIBS="$ac_save_LIBS"
2839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2842 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2843 cat >> confdefs.h <<EOF
2844 #define $ac_tr_lib 1
2847 LIBS="-lncurses $LIBS"
2849 else
2850 echo "$ac_t""no" 1>&6
2854 if test "$ac_cv_lib_ncurses_waddch" = "yes"
2855 then
2856 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
2857 echo "configure:2858: checking for resizeterm in -lncurses" >&5
2858 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
2859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2861 else
2862 ac_save_LIBS="$LIBS"
2863 LIBS="-lncurses $LIBS"
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 /* Override any gcc2 internal prototype to avoid an error. */
2868 /* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2870 char resizeterm();
2872 int main() {
2873 resizeterm()
2874 ; return 0; }
2876 if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2877 rm -rf conftest*
2878 eval "ac_cv_lib_$ac_lib_var=yes"
2879 else
2880 echo "configure: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2882 rm -rf conftest*
2883 eval "ac_cv_lib_$ac_lib_var=no"
2885 rm -f conftest*
2886 LIBS="$ac_save_LIBS"
2889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2891 cat >> confdefs.h <<\EOF
2892 #define HAVE_RESIZETERM 1
2895 else
2896 echo "$ac_t""no" 1>&6
2899 else
2900 for ac_hdr in curses.h
2902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2904 echo "configure:2905: checking for $ac_hdr" >&5
2905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2907 else
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 #include <$ac_hdr>
2913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2914 { (eval echo configure:2915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2915 ac_err=`grep -v '^ *+' conftest.out`
2916 if test -z "$ac_err"; then
2917 rm -rf conftest*
2918 eval "ac_cv_header_$ac_safe=yes"
2919 else
2920 echo "$ac_err" >&5
2921 echo "configure: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2923 rm -rf conftest*
2924 eval "ac_cv_header_$ac_safe=no"
2926 rm -f conftest*
2928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2929 echo "$ac_t""yes" 1>&6
2930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2931 cat >> confdefs.h <<EOF
2932 #define $ac_tr_hdr 1
2935 else
2936 echo "$ac_t""no" 1>&6
2938 done
2940 if test "$ac_cv_header_curses_h" = "yes"
2941 then
2942 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
2943 echo "configure:2944: checking for waddch in -lcurses" >&5
2944 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
2945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2947 else
2948 ac_save_LIBS="$LIBS"
2949 LIBS="-lcurses $LIBS"
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 /* Override any gcc2 internal prototype to avoid an error. */
2954 /* We use char because int might match the return type of a gcc2
2955 builtin and then its argument prototype would still apply. */
2956 char waddch();
2958 int main() {
2959 waddch()
2960 ; return 0; }
2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2963 rm -rf conftest*
2964 eval "ac_cv_lib_$ac_lib_var=yes"
2965 else
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2968 rm -rf conftest*
2969 eval "ac_cv_lib_$ac_lib_var=no"
2971 rm -f conftest*
2972 LIBS="$ac_save_LIBS"
2975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2976 echo "$ac_t""yes" 1>&6
2977 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2978 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2979 cat >> confdefs.h <<EOF
2980 #define $ac_tr_lib 1
2983 LIBS="-lcurses $LIBS"
2985 else
2986 echo "$ac_t""no" 1>&6
2989 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
2990 echo "configure:2991: checking for resizeterm in -lcurses" >&5
2991 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
2992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2994 else
2995 ac_save_LIBS="$LIBS"
2996 LIBS="-lcurses $LIBS"
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 /* Override any gcc2 internal prototype to avoid an error. */
3001 /* We use char because int might match the return type of a gcc2
3002 builtin and then its argument prototype would still apply. */
3003 char resizeterm();
3005 int main() {
3006 resizeterm()
3007 ; return 0; }
3009 if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3010 rm -rf conftest*
3011 eval "ac_cv_lib_$ac_lib_var=yes"
3012 else
3013 echo "configure: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 rm -rf conftest*
3016 eval "ac_cv_lib_$ac_lib_var=no"
3018 rm -f conftest*
3019 LIBS="$ac_save_LIBS"
3022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3023 echo "$ac_t""yes" 1>&6
3024 cat >> confdefs.h <<\EOF
3025 #define HAVE_RESIZETERM 1
3028 else
3029 echo "$ac_t""no" 1>&6
3035 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
3036 echo "configure:3037: checking "for GNU style IPX support"" >&5
3037 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3039 else
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 #include <sys/socket.h>
3044 #include <netipx/ipx.h>
3045 int main() {
3046 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3047 ; return 0; }
3049 if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3050 rm -rf conftest*
3051 cat >> confdefs.h <<\EOF
3052 #define HAVE_IPX_GNU 1
3055 ac_cv_c_ipx_gnu="yes"
3056 else
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 rm -rf conftest*
3060 ac_cv_c_ipx_gnu="no"
3062 rm -f conftest*
3066 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3068 if test "$ac_cv_c_ipx_gnu" = "no"
3069 then
3070 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
3071 echo "configure:3072: checking "for linux style IPX support"" >&5
3072 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3074 else
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3078 #include <sys/socket.h>
3079 #include <asm/types.h>
3080 #include <linux/ipx.h>
3081 int main() {
3082 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3083 ; return 0; }
3085 if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086 rm -rf conftest*
3087 cat >> confdefs.h <<\EOF
3088 #define HAVE_IPX_LINUX 1
3091 ac_cv_c_ipx_linux="yes"
3092 else
3093 echo "configure: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3095 rm -rf conftest*
3096 ac_cv_c_ipx_linux="no"
3098 rm -f conftest*
3102 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3105 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
3107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_hdr" >&5
3110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3112 else
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 #include <$ac_hdr>
3118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3119 { (eval echo configure:3120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3120 ac_err=`grep -v '^ *+' conftest.out`
3121 if test -z "$ac_err"; then
3122 rm -rf conftest*
3123 eval "ac_cv_header_$ac_safe=yes"
3124 else
3125 echo "$ac_err" >&5
3126 echo "configure: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3128 rm -rf conftest*
3129 eval "ac_cv_header_$ac_safe=no"
3131 rm -f conftest*
3133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3134 echo "$ac_t""yes" 1>&6
3135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3136 cat >> confdefs.h <<EOF
3137 #define $ac_tr_hdr 1
3139 break
3140 else
3141 echo "$ac_t""no" 1>&6
3143 done
3146 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
3147 echo "configure:3148: checking "for Open Sound System"" >&5
3148 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3150 else
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3155 #if defined(HAVE_SYS_SOUNDCARD_H)
3156 #include <sys/soundcard.h>
3157 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3158 #include <machine/soundcard.h>
3159 #elif defined(HAVE_SOUNDCARD_H)
3160 #include <soundcard.h>
3161 #endif
3163 int main() {
3166 /* check for one of the Open Sound System specific SNDCTL_ defines */
3167 #if !defined(SNDCTL_DSP_STEREO)
3168 #error No open sound system
3169 #endif
3171 ; return 0; }
3173 if { (eval echo configure:3174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3174 rm -rf conftest*
3175 ac_cv_c_opensoundsystem="yes"
3176 else
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3179 rm -rf conftest*
3180 ac_cv_c_opensoundsystem="no"
3182 rm -f conftest*
3185 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3187 if test "$ac_cv_c_opensoundsystem" = "yes"
3188 then
3189 cat >> confdefs.h <<\EOF
3190 #define HAVE_OSS 1
3196 echo $ac_n "checking "for union semun"""... $ac_c" 1>&6
3197 echo "configure:3198: checking "for union semun"" >&5
3198 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3200 else
3201 cat > conftest.$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 #include <sys/types.h>
3205 #include <sys/sem.h>
3206 int main() {
3207 union semun foo
3208 ; return 0; }
3210 if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3211 rm -rf conftest*
3212 ac_cv_c_union_semun="yes"
3213 else
3214 echo "configure: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3216 rm -rf conftest*
3217 ac_cv_c_union_semun="no"
3219 rm -f conftest*
3222 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
3223 if test "$ac_cv_c_union_semun" = "yes"
3224 then
3225 cat >> confdefs.h <<\EOF
3226 #define HAVE_UNION_SEMUN 1
3231 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
3234 if test "x${GCC}" = "xyes"
3235 then
3236 CFLAGS="$CFLAGS -Wall"
3237 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
3238 echo "configure:3239: checking "for gcc strength-reduce bug"" >&5
3239 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3241 else
3242 if test "$cross_compiling" = yes; then
3243 ac_cv_c_gcc_strength_bug="yes"
3244 else
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3249 int main(void) {
3250 static int Array[3];
3251 unsigned int B = 3;
3252 int i;
3253 for(i=0; i<B; i++) Array[i] = i - 3;
3254 exit( Array[1] != -2 );
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3258 then
3259 ac_cv_c_gcc_strength_bug="no"
3260 else
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3263 rm -fr conftest*
3264 ac_cv_c_gcc_strength_bug="yes"
3266 rm -fr conftest*
3271 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3272 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3273 then
3274 CFLAGS="$CFLAGS -fno-strength-reduce"
3279 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
3280 echo "configure:3281: checking "whether external symbols need an underscore prefix"" >&5
3281 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3283 else
3284 saved_libs=$LIBS
3285 LIBS="conftest_asm.s $LIBS"
3286 cat > conftest_asm.s <<EOF
3287 .globl _ac_test
3288 _ac_test:
3289 .long 0
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 extern int ac_test;
3295 int main() {
3296 if (ac_test) return 1
3297 ; return 0; }
3299 if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3300 rm -rf conftest*
3301 ac_cv_c_extern_prefix="yes"
3302 else
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3305 rm -rf conftest*
3306 ac_cv_c_extern_prefix="no"
3308 rm -f conftest*
3309 LIBS=$saved_libs
3312 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3313 if test "$ac_cv_c_extern_prefix" = "yes"
3314 then
3315 cat >> confdefs.h <<\EOF
3316 #define NEED_UNDERSCORE_PREFIX 1
3322 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
3323 echo "configure:3324: checking "whether assembler accepts .string"" >&5
3324 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3326 else
3327 saved_libs=$LIBS
3328 LIBS="conftest_asm.s $LIBS"
3329 cat > conftest_asm.s <<EOF
3330 .string "test"
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3336 int main() {
3338 ; return 0; }
3340 if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3341 rm -rf conftest*
3342 ac_cv_c_asm_string="yes"
3343 else
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3346 rm -rf conftest*
3347 ac_cv_c_asm_string="no"
3349 rm -f conftest*
3350 LIBS=$saved_libs
3353 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3354 if test "$ac_cv_c_asm_string" = "yes"
3355 then
3356 cat >> confdefs.h <<\EOF
3357 #define HAVE_ASM_STRING 1
3363 DLLFLAGS=""
3364 LDSHARED=""
3365 if test "$LIB_TARGET" = "libwine.so.1.0"
3366 then
3367 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
3368 echo "configure:3369: checking "whether we can build a Linux dll"" >&5
3369 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
3370 echo $ac_n "(cached) $ac_c" 1>&6
3371 else
3372 saved_cflags=$CFLAGS
3373 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3378 int main() {
3379 return 1
3380 ; return 0; }
3382 if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3383 rm -rf conftest*
3384 ac_cv_c_dll_linux="yes"
3385 else
3386 echo "configure: failed program was:" >&5
3387 cat conftest.$ac_ext >&5
3388 rm -rf conftest*
3389 ac_cv_c_dll_linux="no"
3391 rm -f conftest*
3392 CFLAGS=$saved_cflags
3396 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
3397 if test "$ac_cv_c_dll_linux" = "yes"
3398 then
3399 DLLFLAGS="-fPIC"
3400 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
3401 else
3402 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
3403 echo "configure:3404: checking "whether we can build a NetBSD dll"" >&5
3404 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3406 else
3407 saved_cflags=$CFLAGS
3408 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3413 int main() {
3414 return 1
3415 ; return 0; }
3417 if { (eval echo configure:3418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3418 rm -rf conftest*
3419 ac_cv_c_dll_netbsd="yes"
3420 else
3421 echo "configure: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3423 rm -rf conftest*
3424 ac_cv_c_dll_netbsd="no"
3426 rm -f conftest*
3427 CFLAGS=$saved_cflags
3431 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
3432 if test "$ac_cv_c_dll_netbsd" = "yes"
3433 then
3434 DLLFLAGS="-fPIC"
3435 LDSHARED="ld -Bshareable -Bforcearchive"
3438 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
3439 then
3440 LIB_TARGET="libwine.a"
3447 echo $ac_n "checking "for reentrant libc"""... $ac_c" 1>&6
3448 echo "configure:3449: checking "for reentrant libc"" >&5
3449 if eval "test \"`echo '$''{'wine_cv_libc_reentrant'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3451 else
3452 if test "$cross_compiling" = yes; then
3453 wine_cv_libc_reentrant=yes
3454 else
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 int myerrno = 0;
3459 char buf[256];
3460 int *__errno_location(){return &myerrno;}
3461 main(){connect(0,buf,255); exit(!myerrno);}
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3464 then
3465 wine_cv_libc_reentrant=yes
3466 else
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3469 rm -fr conftest*
3470 wine_cv_libc_reentrant=no
3472 rm -fr conftest*
3477 echo "$ac_t""$wine_cv_libc_reentrant" 1>&6
3478 if test "$wine_cv_libc_reentrant" = "no"
3479 then
3480 cat >> confdefs.h <<\EOF
3481 #define NO_REENTRANT_LIBC 1
3487 if test "$have_x" = "yes"
3488 then
3489 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
3490 echo "configure:3491: checking "for reentrant X libraries"" >&5
3491 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3493 else
3494 if test "x$with_reentrant_x" = "xno"
3495 then
3496 wine_cv_x_reentrant=no
3497 else
3498 libX11_ckeck=none
3499 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
3500 if test -r $dir/libX11.so; then
3501 libX11_check="-D $dir/libX11.so"
3502 break 1
3504 if test -r $dir/libX11.a; then
3505 libX11_check="$dir/libX11.a"
3506 break 1
3508 done
3509 if test "$libX11_check" != "none"; then
3510 if nm $libX11_check | grep __errno_location >/dev/null 2>&1
3511 then
3512 wine_cv_x_reentrant=yes
3513 else
3514 wine_cv_x_reentrant=no
3516 else
3517 wine_cv_x_reentrant=unknown
3522 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
3523 else
3524 wine_cv_x_reentrant=no
3526 if test "$wine_cv_x_reentrant" = "no"
3527 then
3528 cat >> confdefs.h <<\EOF
3529 #define NO_REENTRANT_X11 1
3535 for ac_func in clone getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm usleep wait4 waitpid vfscanf
3537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3538 echo "configure:3539: checking for $ac_func" >&5
3539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3541 else
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 /* System header to define __stub macros and hopefully few prototypes,
3546 which can conflict with char $ac_func(); below. */
3547 #include <assert.h>
3548 /* Override any gcc2 internal prototype to avoid an error. */
3549 /* We use char because int might match the return type of a gcc2
3550 builtin and then its argument prototype would still apply. */
3551 char $ac_func();
3553 int main() {
3555 /* The GNU C library defines this for functions which it implements
3556 to always fail with ENOSYS. Some functions are actually named
3557 something starting with __ and the normal name is an alias. */
3558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3559 choke me
3560 #else
3561 $ac_func();
3562 #endif
3564 ; return 0; }
3566 if { (eval echo configure:3567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3567 rm -rf conftest*
3568 eval "ac_cv_func_$ac_func=yes"
3569 else
3570 echo "configure: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3572 rm -rf conftest*
3573 eval "ac_cv_func_$ac_func=no"
3575 rm -f conftest*
3578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3579 echo "$ac_t""yes" 1>&6
3580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3581 cat >> confdefs.h <<EOF
3582 #define $ac_tr_func 1
3585 else
3586 echo "$ac_t""no" 1>&6
3588 done
3590 for ac_hdr in wctype.h sys/syscall.h syscall.h sys/param.h sys/vfs.h sys/mount.h sys/statfs.h float.h linux/cdrom.h linux/ucdrom.h sys/cdio.h sys/filio.h sys/modem.h strings.h sys/strtio.h dlfcn.h unistd.h sys/sockio.h net/if.h netinet/in.h sys/file.h libio.h curses.h ncurses.h elf.h
3592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_hdr" >&5
3595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3597 else
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 #include <$ac_hdr>
3603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3604 { (eval echo configure:3605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3605 ac_err=`grep -v '^ *+' conftest.out`
3606 if test -z "$ac_err"; then
3607 rm -rf conftest*
3608 eval "ac_cv_header_$ac_safe=yes"
3609 else
3610 echo "$ac_err" >&5
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3613 rm -rf conftest*
3614 eval "ac_cv_header_$ac_safe=no"
3616 rm -f conftest*
3618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3621 cat >> confdefs.h <<EOF
3622 #define $ac_tr_hdr 1
3625 else
3626 echo "$ac_t""no" 1>&6
3628 done
3630 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3631 echo "configure:3632: checking whether stat file-mode macros are broken" >&5
3632 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3634 else
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3638 #include <sys/types.h>
3639 #include <sys/stat.h>
3641 #if defined(S_ISBLK) && defined(S_IFDIR)
3642 # if S_ISBLK (S_IFDIR)
3643 You lose.
3644 # endif
3645 #endif
3647 #if defined(S_ISBLK) && defined(S_IFCHR)
3648 # if S_ISBLK (S_IFCHR)
3649 You lose.
3650 # endif
3651 #endif
3653 #if defined(S_ISLNK) && defined(S_IFREG)
3654 # if S_ISLNK (S_IFREG)
3655 You lose.
3656 # endif
3657 #endif
3659 #if defined(S_ISSOCK) && defined(S_IFREG)
3660 # if S_ISSOCK (S_IFREG)
3661 You lose.
3662 # endif
3663 #endif
3666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667 egrep "You lose" >/dev/null 2>&1; then
3668 rm -rf conftest*
3669 ac_cv_header_stat_broken=yes
3670 else
3671 rm -rf conftest*
3672 ac_cv_header_stat_broken=no
3674 rm -f conftest*
3678 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3679 if test $ac_cv_header_stat_broken = yes; then
3680 cat >> confdefs.h <<\EOF
3681 #define STAT_MACROS_BROKEN 1
3686 echo $ac_n "checking for working const""... $ac_c" 1>&6
3687 echo "configure:3688: checking for working const" >&5
3688 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3690 else
3691 cat > conftest.$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3695 int main() {
3697 /* Ultrix mips cc rejects this. */
3698 typedef int charset[2]; const charset x;
3699 /* SunOS 4.1.1 cc rejects this. */
3700 char const *const *ccp;
3701 char **p;
3702 /* NEC SVR4.0.2 mips cc rejects this. */
3703 struct point {int x, y;};
3704 static struct point const zero = {0,0};
3705 /* AIX XL C 1.02.0.0 rejects this.
3706 It does not let you subtract one const X* pointer from another in an arm
3707 of an if-expression whose if-part is not a constant expression */
3708 const char *g = "string";
3709 ccp = &g + (g ? g-g : 0);
3710 /* HPUX 7.0 cc rejects these. */
3711 ++ccp;
3712 p = (char**) ccp;
3713 ccp = (char const *const *) p;
3714 { /* SCO 3.2v4 cc rejects this. */
3715 char *t;
3716 char const *s = 0 ? (char *) 0 : (char const *) 0;
3718 *t++ = 0;
3720 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3721 int x[] = {25, 17};
3722 const int *foo = &x[0];
3723 ++foo;
3725 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3726 typedef const int *iptr;
3727 iptr p = 0;
3728 ++p;
3730 { /* AIX XL C 1.02.0.0 rejects this saying
3731 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3732 struct s { int j; const int *ap[3]; };
3733 struct s *b; b->j = 5;
3735 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3736 const int foo = 10;
3739 ; return 0; }
3741 if { (eval echo configure:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3742 rm -rf conftest*
3743 ac_cv_c_const=yes
3744 else
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3747 rm -rf conftest*
3748 ac_cv_c_const=no
3750 rm -f conftest*
3753 echo "$ac_t""$ac_cv_c_const" 1>&6
3754 if test $ac_cv_c_const = no; then
3755 cat >> confdefs.h <<\EOF
3756 #define const
3761 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3762 echo "configure:3763: checking for ANSI C header files" >&5
3763 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3765 else
3766 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 #include <stdlib.h>
3770 #include <stdarg.h>
3771 #include <string.h>
3772 #include <float.h>
3774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3775 { (eval echo configure:3776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3776 ac_err=`grep -v '^ *+' conftest.out`
3777 if test -z "$ac_err"; then
3778 rm -rf conftest*
3779 ac_cv_header_stdc=yes
3780 else
3781 echo "$ac_err" >&5
3782 echo "configure: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3784 rm -rf conftest*
3785 ac_cv_header_stdc=no
3787 rm -f conftest*
3789 if test $ac_cv_header_stdc = yes; then
3790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 #include <string.h>
3796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797 egrep "memchr" >/dev/null 2>&1; then
3799 else
3800 rm -rf conftest*
3801 ac_cv_header_stdc=no
3803 rm -f conftest*
3807 if test $ac_cv_header_stdc = yes; then
3808 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 #include <stdlib.h>
3814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3815 egrep "free" >/dev/null 2>&1; then
3817 else
3818 rm -rf conftest*
3819 ac_cv_header_stdc=no
3821 rm -f conftest*
3825 if test $ac_cv_header_stdc = yes; then
3826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3827 if test "$cross_compiling" = yes; then
3829 else
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <ctype.h>
3834 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3835 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3836 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3837 int main () { int i; for (i = 0; i < 256; i++)
3838 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3839 exit (0); }
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3843 then
3845 else
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3848 rm -fr conftest*
3849 ac_cv_header_stdc=no
3851 rm -fr conftest*
3857 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3858 if test $ac_cv_header_stdc = yes; then
3859 cat >> confdefs.h <<\EOF
3860 #define STDC_HEADERS 1
3865 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3866 echo "configure:3867: checking for size_t" >&5
3867 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3869 else
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 #include <sys/types.h>
3874 #if STDC_HEADERS
3875 #include <stdlib.h>
3876 #include <stddef.h>
3877 #endif
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3881 rm -rf conftest*
3882 ac_cv_type_size_t=yes
3883 else
3884 rm -rf conftest*
3885 ac_cv_type_size_t=no
3887 rm -f conftest*
3890 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3891 if test $ac_cv_type_size_t = no; then
3892 cat >> confdefs.h <<\EOF
3893 #define size_t unsigned
3898 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3899 echo "configure:3900: checking size of long long" >&5
3900 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3902 else
3903 if test "$cross_compiling" = yes; then
3904 ac_cv_sizeof_long_long=0
3905 else
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 #include <stdio.h>
3910 main()
3912 FILE *f=fopen("conftestval", "w");
3913 if (!f) exit(1);
3914 fprintf(f, "%d\n", sizeof(long long));
3915 exit(0);
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3919 then
3920 ac_cv_sizeof_long_long=`cat conftestval`
3921 else
3922 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3924 rm -fr conftest*
3925 ac_cv_sizeof_long_long=0
3927 rm -fr conftest*
3931 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3932 cat >> confdefs.h <<EOF
3933 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3939 if test $ac_cv_func_sendmsg = no; then
3940 echo $ac_n "checking for sendmsg in -lsocket""... $ac_c" 1>&6
3941 echo "configure:3942: checking for sendmsg in -lsocket" >&5
3942 ac_lib_var=`echo socket'_'sendmsg | sed 'y%./+-%__p_%'`
3943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3945 else
3946 ac_save_LIBS="$LIBS"
3947 LIBS="-lsocket $LIBS"
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3951 /* Override any gcc2 internal prototype to avoid an error. */
3952 /* We use char because int might match the return type of a gcc2
3953 builtin and then its argument prototype would still apply. */
3954 char sendmsg();
3956 int main() {
3957 sendmsg()
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 eval "ac_cv_lib_$ac_lib_var=yes"
3963 else
3964 echo "configure: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3966 rm -rf conftest*
3967 eval "ac_cv_lib_$ac_lib_var=no"
3969 rm -f conftest*
3970 LIBS="$ac_save_LIBS"
3973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3974 echo "$ac_t""yes" 1>&6
3975 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3977 cat >> confdefs.h <<EOF
3978 #define $ac_tr_lib 1
3981 LIBS="-lsocket $LIBS"
3983 else
3984 echo "$ac_t""no" 1>&6
3990 if test "$ac_cv_header_sys_vfs_h" = "yes"
3991 then
3992 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
3993 echo "configure:3994: checking "whether sys/vfs.h defines statfs"" >&5
3994 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3996 else
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4001 #include <sys/types.h>
4002 #ifdef HAVE_SYS_PARAM_H
4003 # include <sys/param.h>
4004 #endif
4005 #include <sys/vfs.h>
4007 int main() {
4009 struct statfs stfs;
4011 memset(&stfs,0,sizeof(stfs));
4013 ; return 0; }
4015 if { (eval echo configure:4016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4016 rm -rf conftest*
4017 wine_cv_sys_vfs_has_statfs=yes
4018 else
4019 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4021 rm -rf conftest*
4022 wine_cv_sys_vfs_has_statfs=no
4025 rm -f conftest*
4029 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
4030 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
4031 then
4032 cat >> confdefs.h <<\EOF
4033 #define STATFS_DEFINED_BY_SYS_VFS 1
4039 if test "$ac_cv_header_sys_statfs_h" = "yes"
4040 then
4041 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
4042 echo "configure:4043: checking "whether sys/statfs.h defines statfs"" >&5
4043 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4045 else
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4050 #include <sys/types.h>
4051 #ifdef HAVE_SYS_PARAM_H
4052 # include <sys/param.h>
4053 #endif
4054 #include <sys/statfs.h>
4056 int main() {
4058 struct statfs stfs;
4060 ; return 0; }
4062 if { (eval echo configure:4063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 rm -rf conftest*
4064 wine_cv_sys_statfs_has_statfs=yes
4065 else
4066 echo "configure: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4068 rm -rf conftest*
4069 wine_cv_sys_statfs_has_statfs=no
4072 rm -f conftest*
4076 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
4077 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
4078 then
4079 cat >> confdefs.h <<\EOF
4080 #define STATFS_DEFINED_BY_SYS_STATFS 1
4086 if test "$ac_cv_header_sys_mount_h" = "yes"
4087 then
4088 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
4089 echo "configure:4090: checking "whether sys/mount.h defines statfs"" >&5
4090 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4092 else
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4097 #include <sys/types.h>
4098 #ifdef HAVE_SYS_PARAM_H
4099 # include <sys/param.h>
4100 #endif
4101 #include <sys/mount.h>
4103 int main() {
4105 struct statfs stfs;
4107 ; return 0; }
4109 if { (eval echo configure:4110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4110 rm -rf conftest*
4111 wine_cv_sys_mount_has_statfs=yes
4112 else
4113 echo "configure: failed program was:" >&5
4114 cat conftest.$ac_ext >&5
4115 rm -rf conftest*
4116 wine_cv_sys_mount_has_statfs=no
4119 rm -f conftest*
4123 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
4124 if test "$wine_cv_sys_mount_has_statfs" = "yes"
4125 then
4126 cat >> confdefs.h <<\EOF
4127 #define STATFS_DEFINED_BY_SYS_MOUNT 1
4134 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
4135 echo "configure:4136: checking "for statfs.f_bfree"" >&5
4136 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4138 else
4139 if test "x$statfs_bfree" = "xno"
4140 then
4141 wine_cv_statfs_bfree=no
4142 else
4143 cat > conftest.$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4147 #include <sys/types.h>
4148 #ifdef HAVE_SYS_PARAM_H
4149 # include <sys/param.h>
4150 #endif
4151 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4152 # include <sys/mount.h>
4153 #else
4154 # ifdef STATFS_DEFINED_BY_SYS_VFS
4155 # include <sys/vfs.h>
4156 # else
4157 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4158 # include <sys/statfs.h>
4159 # endif
4160 # endif
4161 #endif
4163 int main() {
4165 struct statfs stfs;
4167 stfs.f_bfree++;
4169 ; return 0; }
4171 if { (eval echo configure:4172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4172 rm -rf conftest*
4173 wine_cv_statfs_bfree=yes
4174 else
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4177 rm -rf conftest*
4178 wine_cv_statfs_bfree=no
4181 rm -f conftest*
4185 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
4186 if test "$wine_cv_statfs_bfree" = "yes"
4187 then
4188 cat >> confdefs.h <<\EOF
4189 #define STATFS_HAS_BFREE 1
4194 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
4195 echo "configure:4196: checking "for statfs.f_bavail"" >&5
4196 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4198 else
4199 if test "x$statfs_bavail" = "xno"
4200 then
4201 wine_cv_statfs_bavail=no
4202 else
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4207 #include <sys/types.h>
4208 #ifdef HAVE_SYS_PARAM_H
4209 # include <sys/param.h>
4210 #endif
4211 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4212 # include <sys/mount.h>
4213 #else
4214 # ifdef STATFS_DEFINED_BY_SYS_VFS
4215 # include <sys/vfs.h>
4216 # else
4217 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4218 # include <sys/statfs.h>
4219 # endif
4220 # endif
4221 #endif
4223 int main() {
4225 struct statfs stfs;
4227 stfs.f_bavail++;
4229 ; return 0; }
4231 if { (eval echo configure:4232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4232 rm -rf conftest*
4233 wine_cv_statfs_bavail=yes
4234 else
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4237 rm -rf conftest*
4238 wine_cv_statfs_bavail=no
4241 rm -f conftest*
4245 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
4246 if test "$wine_cv_statfs_bavail" = "yes"
4247 then
4248 cat >> confdefs.h <<\EOF
4249 #define STATFS_HAS_BAVAIL 1
4255 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
4256 echo "configure:4257: checking "for working sigaltstack"" >&5
4257 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4259 else
4260 if test "$cross_compiling" = yes; then
4261 ac_cv_c_working_sigaltstack="no"
4263 else
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4268 #include <stdio.h>
4269 #include <time.h> /* <sys/time.h> ? bad magic without end */
4270 #include <sys/types.h>
4271 #include <sys/signal.h>
4272 #ifdef HAVE_SYS_PARAM_H
4273 # include <sys/param.h>
4274 #endif
4275 #ifdef HAVE_SYSCALL_H
4276 # include <syscall.h>
4277 #else
4278 # ifdef HAVE_SYS_SYSCALL_H
4279 # include <sys/syscall.h>
4280 # endif
4281 #endif
4283 unsigned char *xaltstack;
4286 main(int argc,char **argv) {
4287 struct sigaltstack ss;
4289 xaltstack = malloc(16384);
4290 ss.ss_sp = xaltstack;
4291 ss.ss_size = 16384;
4292 ss.ss_flags = 0;
4293 if (sigaltstack(&ss, NULL) < 0) {
4294 /* this catches the glibc case */
4295 perror("sigaltstack");
4296 return (1); /* aka exit(1) aka fail */
4298 /* assume it works. */
4299 return 0; /* OK */
4303 if { (eval echo configure:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4304 then
4305 ac_cv_c_working_sigaltstack="yes"
4306 else
4307 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4309 rm -fr conftest*
4310 ac_cv_c_working_sigaltstack="no"
4312 rm -fr conftest*
4317 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
4319 if test "$ac_cv_c_working_sigaltstack" = "yes"
4320 then
4321 cat >> confdefs.h <<\EOF
4322 #define HAVE_WORKING_SIGALTSTACK 1
4329 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
4330 echo "configure:4331: checking "for msg_accrights in struct msghdr"" >&5
4331 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4333 else
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 #include <sys/types.h>
4338 #include <sys/socket.h>
4339 int main() {
4340 struct msghdr hdr; hdr.msg_accrights=0
4341 ; return 0; }
4343 if { (eval echo configure:4344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4344 rm -rf conftest*
4345 ac_cv_c_msg_accrights="yes"
4346 else
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4349 rm -rf conftest*
4350 ac_cv_c_msg_accrights="no"
4352 rm -f conftest*
4355 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
4356 if test "$ac_cv_c_msg_accrights" = "yes"
4357 then
4358 cat >> confdefs.h <<\EOF
4359 #define HAVE_MSGHDR_ACCRIGHTS 1
4365 MAKE_RULES=Make.rules
4368 trap '' 1 2 15
4369 cat > confcache <<\EOF
4370 # This file is a shell script that caches the results of configure
4371 # tests run on this system so they can be shared between configure
4372 # scripts and configure runs. It is not useful on other systems.
4373 # If it contains results you don't want to keep, you may remove or edit it.
4375 # By default, configure uses ./config.cache as the cache file,
4376 # creating it if it does not exist already. You can give configure
4377 # the --cache-file=FILE option to use a different cache file; that is
4378 # what configure does when it calls configure scripts in
4379 # subdirectories, so they share the cache.
4380 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4381 # config.status only pays attention to the cache file if you give it the
4382 # --recheck option to rerun configure.
4385 # The following way of writing the cache mishandles newlines in values,
4386 # but we know of no workaround that is simple, portable, and efficient.
4387 # So, don't put newlines in cache variables' values.
4388 # Ultrix sh set writes to stderr and can't be redirected directly,
4389 # and sets the high bit in the cache file unless we assign to the vars.
4390 (set) 2>&1 |
4391 case `(ac_space=' '; set) 2>&1` in
4392 *ac_space=\ *)
4393 # `set' does not quote correctly, so add quotes (double-quote substitution
4394 # turns \\\\ into \\, and sed turns \\ into \).
4395 sed -n \
4396 -e "s/'/'\\\\''/g" \
4397 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4400 # `set' quotes correctly as required by POSIX, so do not add quotes.
4401 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4403 esac >> confcache
4404 if cmp -s $cache_file confcache; then
4406 else
4407 if test -w $cache_file; then
4408 echo "updating cache $cache_file"
4409 cat confcache > $cache_file
4410 else
4411 echo "not updating unwritable cache $cache_file"
4414 rm -f confcache
4416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4418 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4419 # Let make expand exec_prefix.
4420 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4422 # Any assignment to VPATH causes Sun make to only execute
4423 # the first set of double-colon rules, so remove it if not needed.
4424 # If there is a colon in the path, we need to keep it.
4425 if test "x$srcdir" = x.; then
4426 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4429 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4431 DEFS=-DHAVE_CONFIG_H
4433 # Without the "./", some shells look in PATH for config.status.
4434 : ${CONFIG_STATUS=./config.status}
4436 echo creating $CONFIG_STATUS
4437 rm -f $CONFIG_STATUS
4438 cat > $CONFIG_STATUS <<EOF
4439 #! /bin/sh
4440 # Generated automatically by configure.
4441 # Run this file to recreate the current configuration.
4442 # This directory was configured as follows,
4443 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4445 # $0 $ac_configure_args
4447 # Compiler output produced by configure, useful for debugging
4448 # configure, is in ./config.log if it exists.
4450 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4451 for ac_option
4453 case "\$ac_option" in
4454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4455 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4456 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4457 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4458 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4459 exit 0 ;;
4460 -help | --help | --hel | --he | --h)
4461 echo "\$ac_cs_usage"; exit 0 ;;
4462 *) echo "\$ac_cs_usage"; exit 1 ;;
4463 esac
4464 done
4466 ac_given_srcdir=$srcdir
4467 ac_given_INSTALL="$INSTALL"
4469 trap 'rm -fr `echo "
4470 Make.rules
4471 Makefile
4472 console/Makefile
4473 controls/Makefile
4474 debugger/Makefile
4475 dlls/Makefile
4476 dlls/advapi32/Makefile
4477 dlls/comctl32/Makefile
4478 dlls/imagehlp/Makefile
4479 dlls/msacm/Makefile
4480 dlls/msacm32/Makefile
4481 dlls/ntdll/Makefile
4482 dlls/psapi/Makefile
4483 dlls/rasapi32/Makefile
4484 dlls/shell32/Makefile
4485 dlls/ver/Makefile
4486 dlls/version/Makefile
4487 dlls/winaspi/Makefile
4488 dlls/wnaspi32/Makefile
4489 documentation/Makefile
4490 files/Makefile
4491 graphics/Makefile
4492 graphics/metafiledrv/Makefile
4493 graphics/psdrv/Makefile
4494 graphics/ttydrv/Makefile
4495 graphics/win16drv/Makefile
4496 graphics/x11drv/Makefile
4497 if1632/Makefile
4498 ipc/Makefile
4499 library/Makefile
4500 libtest/Makefile
4501 loader/Makefile
4502 loader/ne/Makefile
4503 loader/dos/Makefile
4504 memory/Makefile
4505 misc/Makefile
4506 miscemu/Makefile
4507 msdos/Makefile
4508 multimedia/Makefile
4509 objects/Makefile
4510 ole/Makefile
4511 programs/Makefile
4512 programs/clock/Makefile
4513 programs/cmdlgtst/Makefile
4514 programs/control/Makefile
4515 programs/avitools/Makefile
4516 programs/notepad/Makefile
4517 programs/progman/Makefile
4518 programs/regtest/Makefile
4519 programs/view/Makefile
4520 programs/winhelp/Makefile
4521 programs/winver/Makefile
4522 rc/Makefile
4523 relay32/Makefile
4524 resources/Makefile
4525 scheduler/Makefile
4526 server/Makefile
4527 tools/Makefile
4528 tools/wrc/Makefile
4529 tsx11/Makefile
4530 win32/Makefile
4531 windows/Makefile
4532 windows/ttydrv/Makefile
4533 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4535 cat >> $CONFIG_STATUS <<EOF
4537 # Protect against being on the right side of a sed subst in config.status.
4538 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4539 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4540 $ac_vpsub
4541 $extrasub
4542 s%@CFLAGS@%$CFLAGS%g
4543 s%@CPPFLAGS@%$CPPFLAGS%g
4544 s%@CXXFLAGS@%$CXXFLAGS%g
4545 s%@DEFS@%$DEFS%g
4546 s%@LDFLAGS@%$LDFLAGS%g
4547 s%@LIBS@%$LIBS%g
4548 s%@exec_prefix@%$exec_prefix%g
4549 s%@prefix@%$prefix%g
4550 s%@program_transform_name@%$program_transform_name%g
4551 s%@bindir@%$bindir%g
4552 s%@sbindir@%$sbindir%g
4553 s%@libexecdir@%$libexecdir%g
4554 s%@datadir@%$datadir%g
4555 s%@sysconfdir@%$sysconfdir%g
4556 s%@sharedstatedir@%$sharedstatedir%g
4557 s%@localstatedir@%$localstatedir%g
4558 s%@libdir@%$libdir%g
4559 s%@includedir@%$includedir%g
4560 s%@oldincludedir@%$oldincludedir%g
4561 s%@infodir@%$infodir%g
4562 s%@mandir@%$mandir%g
4563 s%@PROGEXT@%$PROGEXT%g
4564 s%@MAIN_TARGET@%$MAIN_TARGET%g
4565 s%@LIB_TARGET@%$LIB_TARGET%g
4566 s%@ALT_LINK@%$ALT_LINK%g
4567 s%@OPTIONS@%$OPTIONS%g
4568 s%@SET_MAKE@%$SET_MAKE%g
4569 s%@CC@%$CC%g
4570 s%@CPP@%$CPP%g
4571 s%@X_CFLAGS@%$X_CFLAGS%g
4572 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4573 s%@X_LIBS@%$X_LIBS%g
4574 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4575 s%@YACC@%$YACC%g
4576 s%@LEX@%$LEX%g
4577 s%@LEXLIB@%$LEXLIB%g
4578 s%@RANLIB@%$RANLIB%g
4579 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4580 s%@INSTALL_DATA@%$INSTALL_DATA%g
4581 s%@LN_S@%$LN_S%g
4582 s%@C2MAN@%$C2MAN%g
4583 s%@XLIB@%$XLIB%g
4584 s%@DLLFLAGS@%$DLLFLAGS%g
4585 s%@LDSHARED@%$LDSHARED%g
4586 /@MAKE_RULES@/r $MAKE_RULES
4587 s%@MAKE_RULES@%%g
4589 CEOF
4592 cat >> $CONFIG_STATUS <<\EOF
4594 # Split the substitutions into bite-sized pieces for seds with
4595 # small command number limits, like on Digital OSF/1 and HP-UX.
4596 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4597 ac_file=1 # Number of current file.
4598 ac_beg=1 # First line for current file.
4599 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4600 ac_more_lines=:
4601 ac_sed_cmds=""
4602 while $ac_more_lines; do
4603 if test $ac_beg -gt 1; then
4604 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4605 else
4606 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4608 if test ! -s conftest.s$ac_file; then
4609 ac_more_lines=false
4610 rm -f conftest.s$ac_file
4611 else
4612 if test -z "$ac_sed_cmds"; then
4613 ac_sed_cmds="sed -f conftest.s$ac_file"
4614 else
4615 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4617 ac_file=`expr $ac_file + 1`
4618 ac_beg=$ac_end
4619 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4621 done
4622 if test -z "$ac_sed_cmds"; then
4623 ac_sed_cmds=cat
4627 cat >> $CONFIG_STATUS <<EOF
4629 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
4630 Makefile
4631 console/Makefile
4632 controls/Makefile
4633 debugger/Makefile
4634 dlls/Makefile
4635 dlls/advapi32/Makefile
4636 dlls/comctl32/Makefile
4637 dlls/imagehlp/Makefile
4638 dlls/msacm/Makefile
4639 dlls/msacm32/Makefile
4640 dlls/ntdll/Makefile
4641 dlls/psapi/Makefile
4642 dlls/rasapi32/Makefile
4643 dlls/shell32/Makefile
4644 dlls/ver/Makefile
4645 dlls/version/Makefile
4646 dlls/winaspi/Makefile
4647 dlls/wnaspi32/Makefile
4648 documentation/Makefile
4649 files/Makefile
4650 graphics/Makefile
4651 graphics/metafiledrv/Makefile
4652 graphics/psdrv/Makefile
4653 graphics/ttydrv/Makefile
4654 graphics/win16drv/Makefile
4655 graphics/x11drv/Makefile
4656 if1632/Makefile
4657 ipc/Makefile
4658 library/Makefile
4659 libtest/Makefile
4660 loader/Makefile
4661 loader/ne/Makefile
4662 loader/dos/Makefile
4663 memory/Makefile
4664 misc/Makefile
4665 miscemu/Makefile
4666 msdos/Makefile
4667 multimedia/Makefile
4668 objects/Makefile
4669 ole/Makefile
4670 programs/Makefile
4671 programs/clock/Makefile
4672 programs/cmdlgtst/Makefile
4673 programs/control/Makefile
4674 programs/avitools/Makefile
4675 programs/notepad/Makefile
4676 programs/progman/Makefile
4677 programs/regtest/Makefile
4678 programs/view/Makefile
4679 programs/winhelp/Makefile
4680 programs/winver/Makefile
4681 rc/Makefile
4682 relay32/Makefile
4683 resources/Makefile
4684 scheduler/Makefile
4685 server/Makefile
4686 tools/Makefile
4687 tools/wrc/Makefile
4688 tsx11/Makefile
4689 win32/Makefile
4690 windows/Makefile
4691 windows/ttydrv/Makefile
4692 windows/x11drv/Makefile "}
4694 cat >> $CONFIG_STATUS <<\EOF
4695 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4696 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4697 case "$ac_file" in
4698 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4699 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4700 *) ac_file_in="${ac_file}.in" ;;
4701 esac
4703 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4705 # Remove last slash and all that follows it. Not all systems have dirname.
4706 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4707 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4708 # The file is in a subdirectory.
4709 test ! -d "$ac_dir" && mkdir "$ac_dir"
4710 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4711 # A "../" for each directory in $ac_dir_suffix.
4712 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4713 else
4714 ac_dir_suffix= ac_dots=
4717 case "$ac_given_srcdir" in
4718 .) srcdir=.
4719 if test -z "$ac_dots"; then top_srcdir=.
4720 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4721 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4722 *) # Relative path.
4723 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4724 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4725 esac
4727 case "$ac_given_INSTALL" in
4728 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4729 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4730 esac
4732 echo creating "$ac_file"
4733 rm -f "$ac_file"
4734 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4735 case "$ac_file" in
4736 *Makefile*) ac_comsub="1i\\
4737 # $configure_input" ;;
4738 *) ac_comsub= ;;
4739 esac
4741 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4742 sed -e "$ac_comsub
4743 s%@configure_input@%$configure_input%g
4744 s%@srcdir@%$srcdir%g
4745 s%@top_srcdir@%$top_srcdir%g
4746 s%@INSTALL@%$INSTALL%g
4747 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4748 fi; done
4749 rm -f conftest.s*
4751 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4752 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4754 # ac_d sets the value in "#define NAME VALUE" lines.
4755 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4756 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4757 ac_dC='\3'
4758 ac_dD='%g'
4759 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4760 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4761 ac_uB='\([ ]\)%\1#\2define\3'
4762 ac_uC=' '
4763 ac_uD='\4%g'
4764 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4765 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4766 ac_eB='$%\1#\2define\3'
4767 ac_eC=' '
4768 ac_eD='%g'
4770 if test "${CONFIG_HEADERS+set}" != set; then
4772 cat >> $CONFIG_STATUS <<EOF
4773 CONFIG_HEADERS="include/config.h"
4775 cat >> $CONFIG_STATUS <<\EOF
4777 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4778 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4779 case "$ac_file" in
4780 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4781 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4782 *) ac_file_in="${ac_file}.in" ;;
4783 esac
4785 echo creating $ac_file
4787 rm -f conftest.frag conftest.in conftest.out
4788 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4789 cat $ac_file_inputs > conftest.in
4793 # Transform confdefs.h into a sed script conftest.vals that substitutes
4794 # the proper values into config.h.in to produce config.h. And first:
4795 # Protect against being on the right side of a sed subst in config.status.
4796 # Protect against being in an unquoted here document in config.status.
4797 rm -f conftest.vals
4798 cat > conftest.hdr <<\EOF
4799 s/[\\&%]/\\&/g
4800 s%[\\$`]%\\&%g
4801 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4802 s%ac_d%ac_u%gp
4803 s%ac_u%ac_e%gp
4805 sed -n -f conftest.hdr confdefs.h > conftest.vals
4806 rm -f conftest.hdr
4808 # This sed command replaces #undef with comments. This is necessary, for
4809 # example, in the case of _POSIX_SOURCE, which is predefined and required
4810 # on some systems where configure will not decide to define it.
4811 cat >> conftest.vals <<\EOF
4812 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4815 # Break up conftest.vals because some shells have a limit on
4816 # the size of here documents, and old seds have small limits too.
4818 rm -f conftest.tail
4819 while :
4821 ac_lines=`grep -c . conftest.vals`
4822 # grep -c gives empty output for an empty file on some AIX systems.
4823 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4824 # Write a limited-size here document to conftest.frag.
4825 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4826 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4827 echo 'CEOF
4828 sed -f conftest.frag conftest.in > conftest.out
4829 rm -f conftest.in
4830 mv conftest.out conftest.in
4831 ' >> $CONFIG_STATUS
4832 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4833 rm -f conftest.vals
4834 mv conftest.tail conftest.vals
4835 done
4836 rm -f conftest.vals
4838 cat >> $CONFIG_STATUS <<\EOF
4839 rm -f conftest.frag conftest.h
4840 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4841 cat conftest.in >> conftest.h
4842 rm -f conftest.in
4843 if cmp -s $ac_file conftest.h 2>/dev/null; then
4844 echo "$ac_file is unchanged"
4845 rm -f conftest.h
4846 else
4847 # Remove last slash and all that follows it. Not all systems have dirname.
4848 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4849 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4850 # The file is in a subdirectory.
4851 test ! -d "$ac_dir" && mkdir "$ac_dir"
4853 rm -f $ac_file
4854 mv conftest.h $ac_file
4856 fi; done
4859 cat >> $CONFIG_STATUS <<EOF
4862 cat >> $CONFIG_STATUS <<\EOF
4864 exit 0
4866 chmod +x $CONFIG_STATUS
4867 rm -fr confdefs* $ac_clean_files
4868 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4871 if test "$have_x" = "no"
4872 then
4873 echo
4874 echo "*** Warning: X development files not found. Wine will be built without"
4875 echo "*** X support, which currently does not work, and would probably not be"
4876 echo "*** what you want anyway. You will need to install devel packages of"
4877 echo "*** Xlib/Xfree86 and Xpm at the very least."
4880 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
4881 then
4882 echo
4883 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
4884 echo "*** terminal resize support. Consider upgrading ncurses."
4887 if test "$wine_cv_libc_reentrant" = "no"
4888 then
4889 echo
4890 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
4891 echo "*** thread support. Consider upgrading libc to a more recent"
4892 echo "*** reentrant version of libc."
4895 echo
4896 echo "Configure finished. Do 'make depend; make' to compile Wine."
4897 echo