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