Export the debug API as functions instead of pointers.
[wine/wine64.git] / configure
blobae9c44e7e8f4fff313536952b7ca1d0a4cd9fc47
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20020509.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
255 PACKAGE_NAME='Wine'
256 PACKAGE_TARNAME='wine'
257 PACKAGE_VERSION='20020509'
258 PACKAGE_STRING='Wine 20020509'
259 PACKAGE_BUGREPORT=''
261 ac_unique_file="server/atom.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
338 ac_prev=
339 for ac_option
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
352 case $ac_option in
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
371 --config-cache | -C)
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634 esac
635 done
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
710 else
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures Wine 20020509 to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
783 _ACEOF
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
814 cat <<\_ACEOF
816 X features:
817 --x-includes=DIR X include files are in DIR
818 --x-libraries=DIR X library files are in DIR
820 System types:
821 --build=BUILD configure for building on BUILD [guessed]
822 --host=HOST cross-compile to build programs to run on HOST [BUILD]
823 _ACEOF
826 if test -n "$ac_init_help"; then
827 case $ac_init_help in
828 short | recursive ) echo "Configuration of Wine 20020509:";;
829 esac
830 cat <<\_ACEOF
832 Optional Features:
833 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
834 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
835 --disable-debug compile out all debugging messages
836 --disable-trace compile out TRACE messages
837 --enable-opengl force usage of OpenGL even if the latter is
838 thread-safe via pthread
840 Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --without-curses do not use curses
844 --with-wine-tools=<dir> use Wine tools from directory <dir>
845 --with-x use the X Window System
847 Some influential environment variables:
848 CC C compiler command
849 CFLAGS C compiler flags
850 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
851 nonstandard directory <lib dir>
852 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
853 headers in a nonstandard directory <include dir>
854 CPP C preprocessor
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
859 _ACEOF
862 if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
864 ac_popdir=`pwd`
865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866 test -d $ac_dir || continue
867 ac_builddir=.
869 if test "$ac_dir" != .; then
870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871 # A "../" for each directory in $ac_dir_suffix.
872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873 else
874 ac_dir_suffix= ac_top_builddir=
877 case $srcdir in
878 .) # No --srcdir option. We are building in place.
879 ac_srcdir=.
880 if test -z "$ac_top_builddir"; then
881 ac_top_srcdir=.
882 else
883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884 fi ;;
885 [\\/]* | ?:[\\/]* ) # Absolute path.
886 ac_srcdir=$srcdir$ac_dir_suffix;
887 ac_top_srcdir=$srcdir ;;
888 *) # Relative path.
889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 esac
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893 # absolute.
894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
899 cd $ac_dir
900 # Check for guested configure; otherwise get Cygnus style configure.
901 if test -f $ac_srcdir/configure.gnu; then
902 echo
903 $SHELL $ac_srcdir/configure.gnu --help=recursive
904 elif test -f $ac_srcdir/configure; then
905 echo
906 $SHELL $ac_srcdir/configure --help=recursive
907 elif test -f $ac_srcdir/configure.ac ||
908 test -f $ac_srcdir/configure.in; then
909 echo
910 $ac_configure --help
911 else
912 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914 cd $ac_popdir
915 done
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
920 cat <<\_ACEOF
921 Wine configure 20020509
922 generated by GNU Autoconf 2.53
924 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
925 Free Software Foundation, Inc.
926 This configure script is free software; the Free Software Foundation
927 gives unlimited permission to copy, distribute and modify it.
928 _ACEOF
929 exit 0
931 exec 5>config.log
932 cat >&5 <<_ACEOF
933 This file contains any messages produced by compilers while
934 running configure, to aid debugging if configure makes a mistake.
936 It was created by Wine $as_me 20020509, which was
937 generated by GNU Autoconf 2.53. Invocation command line was
939 $ $0 $@
941 _ACEOF
943 cat <<_ASUNAME
944 ## --------- ##
945 ## Platform. ##
946 ## --------- ##
948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
957 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
958 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
961 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
962 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
963 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
965 _ASUNAME
967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968 for as_dir in $PATH
970 IFS=$as_save_IFS
971 test -z "$as_dir" && as_dir=.
972 echo "PATH: $as_dir"
973 done
975 } >&5
977 cat >&5 <<_ACEOF
980 ## ----------- ##
981 ## Core tests. ##
982 ## ----------- ##
984 _ACEOF
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
990 ac_configure_args=
991 ac_sep=
992 for ac_arg
994 case $ac_arg in
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n ) continue ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 continue ;;
1000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002 esac
1003 case " $ac_configure_args " in
1004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1005 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006 ac_sep=" " ;;
1007 esac
1008 # Get rid of the leading space.
1009 done
1011 # When interrupted or exit'd, cleanup temporary files, and complete
1012 # config.log. We remove comments because anyway the quotes in there
1013 # would cause problems or look ugly.
1014 # WARNING: Be sure not to use single quotes in there, as some shells,
1015 # such as our DU 5.0 friend, will then `close' the trap.
1016 trap 'exit_status=$?
1017 # Save into config.log some information that might help in debugging.
1019 echo
1020 cat <<\_ASBOX
1021 ## ---------------- ##
1022 ## Cache variables. ##
1023 ## ---------------- ##
1024 _ASBOX
1025 echo
1026 # The following way of writing the cache mishandles newlines in values,
1028 (set) 2>&1 |
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 *ac_space=\ *)
1031 sed -n \
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1036 sed -n \
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1039 esac;
1041 echo
1042 if test -s confdefs.h; then
1043 cat <<\_ASBOX
1044 ## ----------- ##
1045 ## confdefs.h. ##
1046 ## ----------- ##
1047 _ASBOX
1048 echo
1049 sed "/^$/d" confdefs.h
1050 echo
1052 test "$ac_signal" != 0 &&
1053 echo "$as_me: caught signal $ac_signal"
1054 echo "$as_me: exit $exit_status"
1055 } >&5
1056 rm -f core core.* *.core &&
1057 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1058 exit $exit_status
1060 for ac_signal in 1 2 13 15; do
1061 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1062 done
1063 ac_signal=0
1065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1066 rm -rf conftest* confdefs.h
1067 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1068 echo >confdefs.h
1070 # Predefined preprocessor variables.
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_NAME "$PACKAGE_NAME"
1074 _ACEOF
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1079 _ACEOF
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1084 _ACEOF
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_STRING "$PACKAGE_STRING"
1089 _ACEOF
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1094 _ACEOF
1097 # Let the site file select an alternate cache file if it wants to.
1098 # Prefer explicitly selected file to automatically selected ones.
1099 if test -z "$CONFIG_SITE"; then
1100 if test "x$prefix" != xNONE; then
1101 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1102 else
1103 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1106 for ac_site_file in $CONFIG_SITE; do
1107 if test -r "$ac_site_file"; then
1108 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1109 echo "$as_me: loading site script $ac_site_file" >&6;}
1110 sed 's/^/| /' "$ac_site_file" >&5
1111 . "$ac_site_file"
1113 done
1115 if test -r "$cache_file"; then
1116 # Some versions of bash will fail to source /dev/null (special
1117 # files actually), so we avoid doing that.
1118 if test -f "$cache_file"; then
1119 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1120 echo "$as_me: loading cache $cache_file" >&6;}
1121 case $cache_file in
1122 [\\/]* | ?:[\\/]* ) . $cache_file;;
1123 *) . ./$cache_file;;
1124 esac
1126 else
1127 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1128 echo "$as_me: creating cache $cache_file" >&6;}
1129 >$cache_file
1132 # Check that the precious variables saved in the cache have kept the same
1133 # value.
1134 ac_cache_corrupted=false
1135 for ac_var in `(set) 2>&1 |
1136 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1137 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1138 eval ac_new_set=\$ac_env_${ac_var}_set
1139 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1140 eval ac_new_val="\$ac_env_${ac_var}_value"
1141 case $ac_old_set,$ac_new_set in
1142 set,)
1143 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1144 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1145 ac_cache_corrupted=: ;;
1146 ,set)
1147 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1148 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1149 ac_cache_corrupted=: ;;
1150 ,);;
1152 if test "x$ac_old_val" != "x$ac_new_val"; then
1153 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1154 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1155 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1156 echo "$as_me: former value: $ac_old_val" >&2;}
1157 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1158 echo "$as_me: current value: $ac_new_val" >&2;}
1159 ac_cache_corrupted=:
1160 fi;;
1161 esac
1162 # Pass precious variables to config.status.
1163 if test "$ac_new_set" = set; then
1164 case $ac_new_val in
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1167 *) ac_arg=$ac_var=$ac_new_val ;;
1168 esac
1169 case " $ac_configure_args " in
1170 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1171 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1172 esac
1174 done
1175 if $ac_cache_corrupted; then
1176 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1177 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1178 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1179 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1180 { (exit 1); exit 1; }; }
1183 ac_ext=c
1184 ac_cpp='$CPP $CPPFLAGS'
1185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1215 ac_config_headers="$ac_config_headers include/config.h"
1217 ac_aux_dir=
1218 for ac_dir in tools $srcdir/tools; do
1219 if test -f $ac_dir/install-sh; then
1220 ac_aux_dir=$ac_dir
1221 ac_install_sh="$ac_aux_dir/install-sh -c"
1222 break
1223 elif test -f $ac_dir/install.sh; then
1224 ac_aux_dir=$ac_dir
1225 ac_install_sh="$ac_aux_dir/install.sh -c"
1226 break
1227 elif test -f $ac_dir/shtool; then
1228 ac_aux_dir=$ac_dir
1229 ac_install_sh="$ac_aux_dir/shtool install -c"
1230 break
1232 done
1233 if test -z "$ac_aux_dir"; then
1234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1235 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1236 { (exit 1); exit 1; }; }
1238 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1244 LIBEXT=so # library type .so or .a
1246 # Check whether --enable-debug or --disable-debug was given.
1247 if test "${enable_debug+set}" = set; then
1248 enableval="$enable_debug"
1251 # Check whether --enable-trace or --disable-trace was given.
1252 if test "${enable_trace+set}" = set; then
1253 enableval="$enable_trace"
1256 # Check whether --enable-opengl or --disable-opengl was given.
1257 if test "${enable_opengl+set}" = set; then
1258 enableval="$enable_opengl"
1262 # Check whether --with-curses or --without-curses was given.
1263 if test "${with_curses+set}" = set; then
1264 withval="$with_curses"
1268 # Check whether --with-wine-tools or --without-wine-tools was given.
1269 if test "${with_wine_tools+set}" = set; then
1270 withval="$with_wine_tools"
1275 if test "x$enable_debug" = "xno"
1276 then
1278 cat >>confdefs.h <<\_ACEOF
1279 #define NO_DEBUG_MSGS 1
1280 _ACEOF
1283 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1284 then
1286 cat >>confdefs.h <<\_ACEOF
1287 #define NO_TRACE_MSGS 1
1288 _ACEOF
1293 # Make sure we can run config.sub.
1294 $ac_config_sub sun4 >/dev/null 2>&1 ||
1295 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1296 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1297 { (exit 1); exit 1; }; }
1299 echo "$as_me:$LINENO: checking build system type" >&5
1300 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1301 if test "${ac_cv_build+set}" = set; then
1302 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 else
1304 ac_cv_build_alias=$build_alias
1305 test -z "$ac_cv_build_alias" &&
1306 ac_cv_build_alias=`$ac_config_guess`
1307 test -z "$ac_cv_build_alias" &&
1308 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1309 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1310 { (exit 1); exit 1; }; }
1311 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1312 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1313 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1314 { (exit 1); exit 1; }; }
1317 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1318 echo "${ECHO_T}$ac_cv_build" >&6
1319 build=$ac_cv_build
1320 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1321 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1322 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1325 echo "$as_me:$LINENO: checking host system type" >&5
1326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1327 if test "${ac_cv_host+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 else
1330 ac_cv_host_alias=$host_alias
1331 test -z "$ac_cv_host_alias" &&
1332 ac_cv_host_alias=$ac_cv_build_alias
1333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1336 { (exit 1); exit 1; }; }
1339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1340 echo "${ECHO_T}$ac_cv_host" >&6
1341 host=$ac_cv_host
1342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1347 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1348 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1349 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1350 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 else
1353 cat >conftest.make <<\_ACEOF
1354 all:
1355 @echo 'ac_maketemp="${MAKE}"'
1356 _ACEOF
1357 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1358 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1359 if test -n "$ac_maketemp"; then
1360 eval ac_cv_prog_make_${ac_make}_set=yes
1361 else
1362 eval ac_cv_prog_make_${ac_make}_set=no
1364 rm -f conftest.make
1366 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1367 echo "$as_me:$LINENO: result: yes" >&5
1368 echo "${ECHO_T}yes" >&6
1369 SET_MAKE=
1370 else
1371 echo "$as_me:$LINENO: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1373 SET_MAKE="MAKE=${MAKE-make}"
1376 ac_ext=c
1377 ac_cpp='$CPP $CPPFLAGS'
1378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 if test -n "$ac_tool_prefix"; then
1382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1383 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1384 echo "$as_me:$LINENO: checking for $ac_word" >&5
1385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386 if test "${ac_cv_prog_CC+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389 if test -n "$CC"; then
1390 ac_cv_prog_CC="$CC" # Let the user override the test.
1391 else
1392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393 for as_dir in $PATH
1395 IFS=$as_save_IFS
1396 test -z "$as_dir" && as_dir=.
1397 for ac_exec_ext in '' $ac_executable_extensions; do
1398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1399 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 break 2
1403 done
1404 done
1408 CC=$ac_cv_prog_CC
1409 if test -n "$CC"; then
1410 echo "$as_me:$LINENO: result: $CC" >&5
1411 echo "${ECHO_T}$CC" >&6
1412 else
1413 echo "$as_me:$LINENO: result: no" >&5
1414 echo "${ECHO_T}no" >&6
1418 if test -z "$ac_cv_prog_CC"; then
1419 ac_ct_CC=$CC
1420 # Extract the first word of "gcc", so it can be a program name with args.
1421 set dummy gcc; ac_word=$2
1422 echo "$as_me:$LINENO: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427 if test -n "$ac_ct_CC"; then
1428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429 else
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1433 IFS=$as_save_IFS
1434 test -z "$as_dir" && as_dir=.
1435 for ac_exec_ext in '' $ac_executable_extensions; do
1436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437 ac_cv_prog_ac_ct_CC="gcc"
1438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 break 2
1441 done
1442 done
1446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447 if test -n "$ac_ct_CC"; then
1448 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1449 echo "${ECHO_T}$ac_ct_CC" >&6
1450 else
1451 echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1455 CC=$ac_ct_CC
1456 else
1457 CC="$ac_cv_prog_CC"
1460 if test -z "$CC"; then
1461 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1463 set dummy ${ac_tool_prefix}cc; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471 else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_CC="${ac_tool_prefix}cc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1483 done
1484 done
1488 CC=$ac_cv_prog_CC
1489 if test -n "$CC"; then
1490 echo "$as_me:$LINENO: result: $CC" >&5
1491 echo "${ECHO_T}$CC" >&6
1492 else
1493 echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1498 if test -z "$ac_cv_prog_CC"; then
1499 ac_ct_CC=$CC
1500 # Extract the first word of "cc", so it can be a program name with args.
1501 set dummy cc; ac_word=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509 else
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC="cc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
1521 done
1522 done
1526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527 if test -n "$ac_ct_CC"; then
1528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529 echo "${ECHO_T}$ac_ct_CC" >&6
1530 else
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1535 CC=$ac_ct_CC
1536 else
1537 CC="$ac_cv_prog_CC"
1541 if test -z "$CC"; then
1542 # Extract the first word of "cc", so it can be a program name with args.
1543 set dummy cc; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1551 else
1552 ac_prog_rejected=no
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1561 ac_prog_rejected=yes
1562 continue
1564 ac_cv_prog_CC="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1568 done
1569 done
1571 if test $ac_prog_rejected = yes; then
1572 # We found a bogon in the path, so make sure we never use it.
1573 set dummy $ac_cv_prog_CC
1574 shift
1575 if test $# != 0; then
1576 # We chose a different compiler from the bogus one.
1577 # However, it has the same basename, so the bogon will be chosen
1578 # first if we set CC to just the basename; use the full file name.
1579 shift
1580 set dummy "$as_dir/$ac_word" ${1+"$@"}
1581 shift
1582 ac_cv_prog_CC="$@"
1587 CC=$ac_cv_prog_CC
1588 if test -n "$CC"; then
1589 echo "$as_me:$LINENO: result: $CC" >&5
1590 echo "${ECHO_T}$CC" >&6
1591 else
1592 echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1597 if test -z "$CC"; then
1598 if test -n "$ac_tool_prefix"; then
1599 for ac_prog in cl
1601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1622 done
1623 done
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632 echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1636 test -n "$CC" && break
1637 done
1639 if test -z "$CC"; then
1640 ac_ct_CC=$CC
1641 for ac_prog in cl
1643 # Extract the first word of "$ac_prog", so it can be a program name with args.
1644 set dummy $ac_prog; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="$ac_prog"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1664 done
1665 done
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1678 test -n "$ac_ct_CC" && break
1679 done
1681 CC=$ac_ct_CC
1687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1688 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1689 { (exit 1); exit 1; }; }
1691 # Provide some information about the compiler.
1692 echo "$as_me:$LINENO:" \
1693 "checking for C compiler version" >&5
1694 ac_compiler=`set X $ac_compile; echo $2`
1695 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1696 (eval $ac_compiler --version </dev/null >&5) 2>&5
1697 ac_status=$?
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1701 (eval $ac_compiler -v </dev/null >&5) 2>&5
1702 ac_status=$?
1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 (exit $ac_status); }
1705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1706 (eval $ac_compiler -V </dev/null >&5) 2>&5
1707 ac_status=$?
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1711 cat >conftest.$ac_ext <<_ACEOF
1712 #line $LINENO "configure"
1713 #include "confdefs.h"
1715 #ifdef F77_DUMMY_MAIN
1716 # ifdef __cplusplus
1717 extern "C"
1718 # endif
1719 int F77_DUMMY_MAIN() { return 1; }
1720 #endif
1722 main ()
1726 return 0;
1728 _ACEOF
1729 ac_clean_files_save=$ac_clean_files
1730 ac_clean_files="$ac_clean_files a.out a.exe"
1731 # Try to create an executable without -o first, disregard a.out.
1732 # It will help us diagnose broken compilers, and finding out an intuition
1733 # of exeext.
1734 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1735 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1737 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1738 (eval $ac_link_default) 2>&5
1739 ac_status=$?
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }; then
1742 # Find the output, starting from the most likely. This scheme is
1743 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1744 # resort.
1746 # Be careful to initialize this variable, since it used to be cached.
1747 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1748 ac_cv_exeext=
1749 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1750 ls a.out conftest 2>/dev/null;
1751 ls a.* conftest.* 2>/dev/null`; do
1752 case $ac_file in
1753 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1754 a.out ) # We found the default executable, but exeext='' is most
1755 # certainly right.
1756 break;;
1757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1759 export ac_cv_exeext
1760 break;;
1761 * ) break;;
1762 esac
1763 done
1764 else
1765 echo "$as_me: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1768 echo "$as_me: error: C compiler cannot create executables" >&2;}
1769 { (exit 77); exit 77; }; }
1772 ac_exeext=$ac_cv_exeext
1773 echo "$as_me:$LINENO: result: $ac_file" >&5
1774 echo "${ECHO_T}$ac_file" >&6
1776 # Check the compiler produces executables we can run. If not, either
1777 # the compiler is broken, or we cross compile.
1778 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781 # If not cross compiling, check that we can run a simple program.
1782 if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
1784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785 (eval $ac_try) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1789 cross_compiling=no
1790 else
1791 if test "$cross_compiling" = maybe; then
1792 cross_compiling=yes
1793 else
1794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&5
1796 echo "$as_me: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'." >&2;}
1798 { (exit 1); exit 1; }; }
1802 echo "$as_me:$LINENO: result: yes" >&5
1803 echo "${ECHO_T}yes" >&6
1805 rm -f a.out a.exe conftest$ac_cv_exeext
1806 ac_clean_files=$ac_clean_files_save
1807 # Check the compiler produces executables we can run. If not, either
1808 # the compiler is broken, or we cross compile.
1809 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1810 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1811 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1812 echo "${ECHO_T}$cross_compiling" >&6
1814 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1815 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1817 (eval $ac_link) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1823 # work properly (i.e., refer to `conftest.exe'), while it won't with
1824 # `rm'.
1825 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1826 case $ac_file in
1827 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1829 export ac_cv_exeext
1830 break;;
1831 * ) break;;
1832 esac
1833 done
1834 else
1835 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1836 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1837 { (exit 1); exit 1; }; }
1840 rm -f conftest$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1842 echo "${ECHO_T}$ac_cv_exeext" >&6
1844 rm -f conftest.$ac_ext
1845 EXEEXT=$ac_cv_exeext
1846 ac_exeext=$EXEEXT
1847 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1848 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1849 if test "${ac_cv_objext+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 cat >conftest.$ac_ext <<_ACEOF
1853 #line $LINENO "configure"
1854 #include "confdefs.h"
1856 #ifdef F77_DUMMY_MAIN
1857 # ifdef __cplusplus
1858 extern "C"
1859 # endif
1860 int F77_DUMMY_MAIN() { return 1; }
1861 #endif
1863 main ()
1867 return 0;
1869 _ACEOF
1870 rm -f conftest.o conftest.obj
1871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1872 (eval $ac_compile) 2>&5
1873 ac_status=$?
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1877 case $ac_file in
1878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1879 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880 break;;
1881 esac
1882 done
1883 else
1884 echo "$as_me: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1886 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1887 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1888 { (exit 1); exit 1; }; }
1891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1893 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1894 echo "${ECHO_T}$ac_cv_objext" >&6
1895 OBJEXT=$ac_cv_objext
1896 ac_objext=$OBJEXT
1897 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1898 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1899 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 cat >conftest.$ac_ext <<_ACEOF
1903 #line $LINENO "configure"
1904 #include "confdefs.h"
1906 #ifdef F77_DUMMY_MAIN
1907 # ifdef __cplusplus
1908 extern "C"
1909 # endif
1910 int F77_DUMMY_MAIN() { return 1; }
1911 #endif
1913 main ()
1915 #ifndef __GNUC__
1916 choke me
1917 #endif
1920 return 0;
1922 _ACEOF
1923 rm -f conftest.$ac_objext
1924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925 (eval $ac_compile) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); } &&
1929 { ac_try='test -s conftest.$ac_objext'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931 (eval $ac_try) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; }; then
1935 ac_compiler_gnu=yes
1936 else
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 ac_compiler_gnu=no
1941 rm -f conftest.$ac_objext conftest.$ac_ext
1942 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1945 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1946 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1947 GCC=`test $ac_compiler_gnu = yes && echo yes`
1948 ac_test_CFLAGS=${CFLAGS+set}
1949 ac_save_CFLAGS=$CFLAGS
1950 CFLAGS="-g"
1951 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1952 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1953 if test "${ac_cv_prog_cc_g+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 cat >conftest.$ac_ext <<_ACEOF
1957 #line $LINENO "configure"
1958 #include "confdefs.h"
1960 #ifdef F77_DUMMY_MAIN
1961 # ifdef __cplusplus
1962 extern "C"
1963 # endif
1964 int F77_DUMMY_MAIN() { return 1; }
1965 #endif
1967 main ()
1971 return 0;
1973 _ACEOF
1974 rm -f conftest.$ac_objext
1975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1976 (eval $ac_compile) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); } &&
1980 { ac_try='test -s conftest.$ac_objext'
1981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982 (eval $ac_try) 2>&5
1983 ac_status=$?
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; }; then
1986 ac_cv_prog_cc_g=yes
1987 else
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 ac_cv_prog_cc_g=no
1992 rm -f conftest.$ac_objext conftest.$ac_ext
1994 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1996 if test "$ac_test_CFLAGS" = set; then
1997 CFLAGS=$ac_save_CFLAGS
1998 elif test $ac_cv_prog_cc_g = yes; then
1999 if test "$GCC" = yes; then
2000 CFLAGS="-g -O2"
2001 else
2002 CFLAGS="-g"
2004 else
2005 if test "$GCC" = yes; then
2006 CFLAGS="-O2"
2007 else
2008 CFLAGS=
2011 # Some people use a C++ compiler to compile C. Since we use `exit',
2012 # in C++ we need to declare it. In case someone uses the same compiler
2013 # for both compiling C and C++ we need to have the C++ compiler decide
2014 # the declaration of exit, since it's the most demanding environment.
2015 cat >conftest.$ac_ext <<_ACEOF
2016 #ifndef __cplusplus
2017 choke me
2018 #endif
2019 _ACEOF
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2032 for ac_declaration in \
2034 '#include <stdlib.h>' \
2035 'extern "C" void std::exit (int) throw (); using std::exit;' \
2036 'extern "C" void std::exit (int); using std::exit;' \
2037 'extern "C" void exit (int) throw ();' \
2038 'extern "C" void exit (int);' \
2039 'void exit (int);'
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line $LINENO "configure"
2043 #include "confdefs.h"
2044 #include <stdlib.h>
2045 $ac_declaration
2046 #ifdef F77_DUMMY_MAIN
2047 # ifdef __cplusplus
2048 extern "C"
2049 # endif
2050 int F77_DUMMY_MAIN() { return 1; }
2051 #endif
2053 main ()
2055 exit (42);
2057 return 0;
2059 _ACEOF
2060 rm -f conftest.$ac_objext
2061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2062 (eval $ac_compile) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 continue
2078 rm -f conftest.$ac_objext conftest.$ac_ext
2079 cat >conftest.$ac_ext <<_ACEOF
2080 #line $LINENO "configure"
2081 #include "confdefs.h"
2082 $ac_declaration
2083 #ifdef F77_DUMMY_MAIN
2084 # ifdef __cplusplus
2085 extern "C"
2086 # endif
2087 int F77_DUMMY_MAIN() { return 1; }
2088 #endif
2090 main ()
2092 exit (42);
2094 return 0;
2096 _ACEOF
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -s conftest.$ac_objext'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 (eval $ac_try) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2109 break
2110 else
2111 echo "$as_me: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 rm -f conftest.$ac_objext conftest.$ac_ext
2115 done
2116 rm -f conftest*
2117 if test -n "$ac_declaration"; then
2118 echo '#ifdef __cplusplus' >>confdefs.h
2119 echo $ac_declaration >>confdefs.h
2120 echo '#endif' >>confdefs.h
2123 else
2124 echo "$as_me: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2127 rm -f conftest.$ac_objext conftest.$ac_ext
2128 ac_ext=c
2129 ac_cpp='$CPP $CPPFLAGS'
2130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2141 # On Suns, sometimes $CPP names a directory.
2142 if test -n "$CPP" && test -d "$CPP"; then
2143 CPP=
2145 if test -z "$CPP"; then
2146 if test "${ac_cv_prog_CPP+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 # Double quotes because CPP needs to be expanded
2150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2152 ac_preproc_ok=false
2153 for ac_c_preproc_warn_flag in '' yes
2155 # Use a header file that comes with gcc, so configuring glibc
2156 # with a fresh cross-compiler works.
2157 # On the NeXT, cc -E runs the code through the compiler's parser,
2158 # not just through cpp. "Syntax error" is here to catch this case.
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line $LINENO "configure"
2161 #include "confdefs.h"
2162 #include <assert.h>
2163 Syntax error
2164 _ACEOF
2165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167 ac_status=$?
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2175 else
2176 ac_cpp_err=
2178 else
2179 ac_cpp_err=yes
2181 if test -z "$ac_cpp_err"; then
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 # Broken: fails on valid input.
2187 continue
2189 rm -f conftest.err conftest.$ac_ext
2191 # OK, works on sane cases. Now check whether non-existent headers
2192 # can be detected and how.
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2195 #include "confdefs.h"
2196 #include <ac_nonexistent.h>
2197 _ACEOF
2198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200 ac_status=$?
2201 egrep -v '^ *\+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } >/dev/null; then
2206 if test -s conftest.err; then
2207 ac_cpp_err=$ac_c_preproc_warn_flag
2208 else
2209 ac_cpp_err=
2211 else
2212 ac_cpp_err=yes
2214 if test -z "$ac_cpp_err"; then
2215 # Broken: success on invalid input.
2216 continue
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 # Passes both tests.
2221 ac_preproc_ok=:
2222 break
2224 rm -f conftest.err conftest.$ac_ext
2226 done
2227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228 rm -f conftest.err conftest.$ac_ext
2229 if $ac_preproc_ok; then
2230 break
2233 done
2234 ac_cv_prog_CPP=$CPP
2237 CPP=$ac_cv_prog_CPP
2238 else
2239 ac_cv_prog_CPP=$CPP
2241 echo "$as_me:$LINENO: result: $CPP" >&5
2242 echo "${ECHO_T}$CPP" >&6
2243 ac_preproc_ok=false
2244 for ac_c_preproc_warn_flag in '' yes
2246 # Use a header file that comes with gcc, so configuring glibc
2247 # with a fresh cross-compiler works.
2248 # On the NeXT, cc -E runs the code through the compiler's parser,
2249 # not just through cpp. "Syntax error" is here to catch this case.
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line $LINENO "configure"
2252 #include "confdefs.h"
2253 #include <assert.h>
2254 Syntax error
2255 _ACEOF
2256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2258 ac_status=$?
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2260 rm -f conftest.er1
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2266 else
2267 ac_cpp_err=
2269 else
2270 ac_cpp_err=yes
2272 if test -z "$ac_cpp_err"; then
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Broken: fails on valid input.
2278 continue
2280 rm -f conftest.err conftest.$ac_ext
2282 # OK, works on sane cases. Now check whether non-existent headers
2283 # can be detected and how.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line $LINENO "configure"
2286 #include "confdefs.h"
2287 #include <ac_nonexistent.h>
2288 _ACEOF
2289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2291 ac_status=$?
2292 egrep -v '^ *\+' conftest.er1 >conftest.err
2293 rm -f conftest.er1
2294 cat conftest.err >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } >/dev/null; then
2297 if test -s conftest.err; then
2298 ac_cpp_err=$ac_c_preproc_warn_flag
2299 else
2300 ac_cpp_err=
2302 else
2303 ac_cpp_err=yes
2305 if test -z "$ac_cpp_err"; then
2306 # Broken: success on invalid input.
2307 continue
2308 else
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 # Passes both tests.
2312 ac_preproc_ok=:
2313 break
2315 rm -f conftest.err conftest.$ac_ext
2317 done
2318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319 rm -f conftest.err conftest.$ac_ext
2320 if $ac_preproc_ok; then
2322 else
2323 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2324 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325 { (exit 1); exit 1; }; }
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2336 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2337 if test "${wine_cv_toolsdir+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 if test -z "$with_wine_tools"; then
2341 if test "$cross_compiling" = "yes"; then
2342 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2343 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2344 { (exit 1); exit 1; }; }
2345 else
2346 wine_cv_toolsdir="\$(TOPOBJDIR)"
2348 elif test -d "$with_wine_tools/tools/winebuild"; then
2349 case $with_wine_tools in
2350 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2351 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2352 esac
2353 else
2354 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2355 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2356 { (exit 1); exit 1; }; }
2359 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2360 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2361 TOOLSDIR=$wine_cv_toolsdir
2366 echo "$as_me:$LINENO: checking for X" >&5
2367 echo $ECHO_N "checking for X... $ECHO_C" >&6
2370 # Check whether --with-x or --without-x was given.
2371 if test "${with_x+set}" = set; then
2372 withval="$with_x"
2375 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2376 if test "x$with_x" = xno; then
2377 # The user explicitly disabled X.
2378 have_x=disabled
2379 else
2380 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2381 # Both variables are already set.
2382 have_x=yes
2383 else
2384 if test "${ac_cv_have_x+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 # One or both of the vars are not set, and there is no cached value.
2388 ac_x_includes=no ac_x_libraries=no
2389 rm -fr conftest.dir
2390 if mkdir conftest.dir; then
2391 cd conftest.dir
2392 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2393 cat >Imakefile <<'_ACEOF'
2394 acfindx:
2395 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2396 _ACEOF
2397 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2399 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2400 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2401 for ac_extension in a so sl; do
2402 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2403 test -f $ac_im_libdir/libX11.$ac_extension; then
2404 ac_im_usrlibdir=$ac_im_libdir; break
2406 done
2407 # Screen out bogus values from the imake configuration. They are
2408 # bogus both because they are the default anyway, and because
2409 # using them would break gcc on systems where it needs fixed includes.
2410 case $ac_im_incroot in
2411 /usr/include) ;;
2412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2413 esac
2414 case $ac_im_usrlibdir in
2415 /usr/lib | /lib) ;;
2416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2417 esac
2419 cd ..
2420 rm -fr conftest.dir
2423 # Standard set of common directories for X headers.
2424 # Check X11 before X11Rn because it is often a symlink to the current release.
2425 ac_x_header_dirs='
2426 /usr/X11/include
2427 /usr/X11R6/include
2428 /usr/X11R5/include
2429 /usr/X11R4/include
2431 /usr/include/X11
2432 /usr/include/X11R6
2433 /usr/include/X11R5
2434 /usr/include/X11R4
2436 /usr/local/X11/include
2437 /usr/local/X11R6/include
2438 /usr/local/X11R5/include
2439 /usr/local/X11R4/include
2441 /usr/local/include/X11
2442 /usr/local/include/X11R6
2443 /usr/local/include/X11R5
2444 /usr/local/include/X11R4
2446 /usr/X386/include
2447 /usr/x386/include
2448 /usr/XFree86/include/X11
2450 /usr/include
2451 /usr/local/include
2452 /usr/unsupported/include
2453 /usr/athena/include
2454 /usr/local/x11r5/include
2455 /usr/lpp/Xamples/include
2457 /usr/openwin/include
2458 /usr/openwin/share/include'
2460 if test "$ac_x_includes" = no; then
2461 # Guess where to find include files, by looking for Intrinsic.h.
2462 # First, try using that file with no special directory specified.
2463 cat >conftest.$ac_ext <<_ACEOF
2464 #line $LINENO "configure"
2465 #include "confdefs.h"
2466 #include <X11/Intrinsic.h>
2467 _ACEOF
2468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2470 ac_status=$?
2471 egrep -v '^ *\+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } >/dev/null; then
2476 if test -s conftest.err; then
2477 ac_cpp_err=$ac_c_preproc_warn_flag
2478 else
2479 ac_cpp_err=
2481 else
2482 ac_cpp_err=yes
2484 if test -z "$ac_cpp_err"; then
2485 # We can compile using X headers with no special include directory.
2486 ac_x_includes=
2487 else
2488 echo "$as_me: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2490 for ac_dir in $ac_x_header_dirs; do
2491 if test -r "$ac_dir/X11/Intrinsic.h"; then
2492 ac_x_includes=$ac_dir
2493 break
2495 done
2497 rm -f conftest.err conftest.$ac_ext
2498 fi # $ac_x_includes = no
2500 if test "$ac_x_libraries" = no; then
2501 # Check for the libraries.
2502 # See if we find them without any special options.
2503 # Don't add to $LIBS permanently.
2504 ac_save_LIBS=$LIBS
2505 LIBS="-lXt $LIBS"
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 #include "confdefs.h"
2509 #include <X11/Intrinsic.h>
2510 #ifdef F77_DUMMY_MAIN
2511 # ifdef __cplusplus
2512 extern "C"
2513 # endif
2514 int F77_DUMMY_MAIN() { return 1; }
2515 #endif
2517 main ()
2519 XtMalloc (0)
2521 return 0;
2523 _ACEOF
2524 rm -f conftest.$ac_objext conftest$ac_exeext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2526 (eval $ac_link) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest$ac_exeext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 LIBS=$ac_save_LIBS
2537 # We can link X programs with no special library path.
2538 ac_x_libraries=
2539 else
2540 echo "$as_me: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2542 LIBS=$ac_save_LIBS
2543 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2545 # Don't even attempt the hair of trying to link an X program!
2546 for ac_extension in a so sl; do
2547 if test -r $ac_dir/libXt.$ac_extension; then
2548 ac_x_libraries=$ac_dir
2549 break 2
2551 done
2552 done
2554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2555 fi # $ac_x_libraries = no
2557 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2558 # Didn't find X anywhere. Cache the known absence of X.
2559 ac_cv_have_x="have_x=no"
2560 else
2561 # Record where we found X for the cache.
2562 ac_cv_have_x="have_x=yes \
2563 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2568 eval "$ac_cv_have_x"
2569 fi # $with_x != no
2571 if test "$have_x" != yes; then
2572 echo "$as_me:$LINENO: result: $have_x" >&5
2573 echo "${ECHO_T}$have_x" >&6
2574 no_x=yes
2575 else
2576 # If each of the values was on the command line, it overrides each guess.
2577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2579 # Update the cache value to reflect the command line values.
2580 ac_cv_have_x="have_x=yes \
2581 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2582 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2583 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2586 if test "$no_x" = yes; then
2587 # Not all programs may use this symbol, but it does not hurt to define it.
2589 cat >>confdefs.h <<\_ACEOF
2590 #define X_DISPLAY_MISSING 1
2591 _ACEOF
2593 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2594 else
2595 if test -n "$x_includes"; then
2596 X_CFLAGS="$X_CFLAGS -I$x_includes"
2599 # It would also be nice to do this for all -L options, not just this one.
2600 if test -n "$x_libraries"; then
2601 X_LIBS="$X_LIBS -L$x_libraries"
2602 # For Solaris; some versions of Sun CC require a space after -R and
2603 # others require no space. Words are not sufficient . . . .
2604 case `(uname -sr) 2>/dev/null` in
2605 "SunOS 5"*)
2606 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2607 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2608 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 #include "confdefs.h"
2613 #ifdef F77_DUMMY_MAIN
2614 # ifdef __cplusplus
2615 extern "C"
2616 # endif
2617 int F77_DUMMY_MAIN() { return 1; }
2618 #endif
2620 main ()
2624 return 0;
2626 _ACEOF
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2629 (eval $ac_link) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_R_nospace=yes
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 ac_R_nospace=no
2645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2646 if test $ac_R_nospace = yes; then
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2649 X_LIBS="$X_LIBS -R$x_libraries"
2650 else
2651 LIBS="$ac_xsave_LIBS -R $x_libraries"
2652 cat >conftest.$ac_ext <<_ACEOF
2653 #line $LINENO "configure"
2654 #include "confdefs.h"
2656 #ifdef F77_DUMMY_MAIN
2657 # ifdef __cplusplus
2658 extern "C"
2659 # endif
2660 int F77_DUMMY_MAIN() { return 1; }
2661 #endif
2663 main ()
2667 return 0;
2669 _ACEOF
2670 rm -f conftest.$ac_objext conftest$ac_exeext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672 (eval $ac_link) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest$ac_exeext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 ac_R_space=yes
2683 else
2684 echo "$as_me: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2686 ac_R_space=no
2688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2689 if test $ac_R_space = yes; then
2690 echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2692 X_LIBS="$X_LIBS -R $x_libraries"
2693 else
2694 echo "$as_me:$LINENO: result: neither works" >&5
2695 echo "${ECHO_T}neither works" >&6
2698 LIBS=$ac_xsave_LIBS
2699 esac
2702 # Check for system-dependent libraries X programs must link with.
2703 # Do this before checking for the system-independent R6 libraries
2704 # (-lICE), since we may need -lsocket or whatever for X linking.
2706 if test "$ISC" = yes; then
2707 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2708 else
2709 # Martyn Johnson says this is needed for Ultrix, if the X
2710 # libraries were built with DECnet support. And Karl Berry says
2711 # the Alpha needs dnet_stub (dnet does not exist).
2712 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2713 cat >conftest.$ac_ext <<_ACEOF
2714 #line $LINENO "configure"
2715 #include "confdefs.h"
2717 /* Override any gcc2 internal prototype to avoid an error. */
2718 #ifdef __cplusplus
2719 extern "C"
2720 #endif
2721 /* We use char because int might match the return type of a gcc2
2722 builtin and then its argument prototype would still apply. */
2723 char XOpenDisplay ();
2724 #ifdef F77_DUMMY_MAIN
2725 # ifdef __cplusplus
2726 extern "C"
2727 # endif
2728 int F77_DUMMY_MAIN() { return 1; }
2729 #endif
2731 main ()
2733 XOpenDisplay ();
2735 return 0;
2737 _ACEOF
2738 rm -f conftest.$ac_objext conftest$ac_exeext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2740 (eval $ac_link) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -s conftest$ac_exeext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2751 else
2752 echo "$as_me: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2755 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2756 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 ac_check_lib_save_LIBS=$LIBS
2760 LIBS="-ldnet $LIBS"
2761 cat >conftest.$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 #include "confdefs.h"
2765 /* Override any gcc2 internal prototype to avoid an error. */
2766 #ifdef __cplusplus
2767 extern "C"
2768 #endif
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2771 char dnet_ntoa ();
2772 #ifdef F77_DUMMY_MAIN
2773 # ifdef __cplusplus
2774 extern "C"
2775 # endif
2776 int F77_DUMMY_MAIN() { return 1; }
2777 #endif
2779 main ()
2781 dnet_ntoa ();
2783 return 0;
2785 _ACEOF
2786 rm -f conftest.$ac_objext conftest$ac_exeext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2788 (eval $ac_link) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -s conftest$ac_exeext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 ac_cv_lib_dnet_dnet_ntoa=yes
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 ac_cv_lib_dnet_dnet_ntoa=no
2804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2805 LIBS=$ac_check_lib_save_LIBS
2807 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2808 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2809 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2810 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2813 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2814 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2815 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2816 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819 ac_check_lib_save_LIBS=$LIBS
2820 LIBS="-ldnet_stub $LIBS"
2821 cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2823 #include "confdefs.h"
2825 /* Override any gcc2 internal prototype to avoid an error. */
2826 #ifdef __cplusplus
2827 extern "C"
2828 #endif
2829 /* We use char because int might match the return type of a gcc2
2830 builtin and then its argument prototype would still apply. */
2831 char dnet_ntoa ();
2832 #ifdef F77_DUMMY_MAIN
2833 # ifdef __cplusplus
2834 extern "C"
2835 # endif
2836 int F77_DUMMY_MAIN() { return 1; }
2837 #endif
2839 main ()
2841 dnet_ntoa ();
2843 return 0;
2845 _ACEOF
2846 rm -f conftest.$ac_objext conftest$ac_exeext
2847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2848 (eval $ac_link) 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -s conftest$ac_exeext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2858 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 ac_cv_lib_dnet_stub_dnet_ntoa=no
2864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2865 LIBS=$ac_check_lib_save_LIBS
2867 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2868 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2869 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876 LIBS="$ac_xsave_LIBS"
2878 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2879 # to get the SysV transport functions.
2880 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2881 # needs -lnsl.
2882 # The nsl library prevents programs from opening the X display
2883 # on Irix 5.2, according to T.E. Dickey.
2884 # The functions gethostbyname, getservbyname, and inet_addr are
2885 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2886 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2887 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2888 if test "${ac_cv_func_gethostbyname+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 cat >conftest.$ac_ext <<_ACEOF
2892 #line $LINENO "configure"
2893 #include "confdefs.h"
2894 /* System header to define __stub macros and hopefully few prototypes,
2895 which can conflict with char gethostbyname (); below. */
2896 #include <assert.h>
2897 /* Override any gcc2 internal prototype to avoid an error. */
2898 #ifdef __cplusplus
2899 extern "C"
2900 #endif
2901 /* We use char because int might match the return type of a gcc2
2902 builtin and then its argument prototype would still apply. */
2903 char gethostbyname ();
2904 char (*f) ();
2906 #ifdef F77_DUMMY_MAIN
2907 # ifdef __cplusplus
2908 extern "C"
2909 # endif
2910 int F77_DUMMY_MAIN() { return 1; }
2911 #endif
2913 main ()
2915 /* The GNU C library defines this for functions which it implements
2916 to always fail with ENOSYS. Some functions are actually named
2917 something starting with __ and the normal name is an alias. */
2918 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2919 choke me
2920 #else
2921 f = gethostbyname;
2922 #endif
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.$ac_objext conftest$ac_exeext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930 (eval $ac_link) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest$ac_exeext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_cv_func_gethostbyname=yes
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 ac_cv_func_gethostbyname=no
2946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2948 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2949 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2951 if test $ac_cv_func_gethostbyname = no; then
2952 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2953 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2954 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 ac_check_lib_save_LIBS=$LIBS
2958 LIBS="-lnsl $LIBS"
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #line $LINENO "configure"
2961 #include "confdefs.h"
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 #ifdef __cplusplus
2965 extern "C"
2966 #endif
2967 /* We use char because int might match the return type of a gcc2
2968 builtin and then its argument prototype would still apply. */
2969 char gethostbyname ();
2970 #ifdef F77_DUMMY_MAIN
2971 # ifdef __cplusplus
2972 extern "C"
2973 # endif
2974 int F77_DUMMY_MAIN() { return 1; }
2975 #endif
2977 main ()
2979 gethostbyname ();
2981 return 0;
2983 _ACEOF
2984 rm -f conftest.$ac_objext conftest$ac_exeext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986 (eval $ac_link) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -s conftest$ac_exeext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 ac_cv_lib_nsl_gethostbyname=yes
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3000 ac_cv_lib_nsl_gethostbyname=no
3002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3003 LIBS=$ac_check_lib_save_LIBS
3005 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3006 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3007 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3011 if test $ac_cv_lib_nsl_gethostbyname = no; then
3012 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3013 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3014 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017 ac_check_lib_save_LIBS=$LIBS
3018 LIBS="-lbsd $LIBS"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3021 #include "confdefs.h"
3023 /* Override any gcc2 internal prototype to avoid an error. */
3024 #ifdef __cplusplus
3025 extern "C"
3026 #endif
3027 /* We use char because int might match the return type of a gcc2
3028 builtin and then its argument prototype would still apply. */
3029 char gethostbyname ();
3030 #ifdef F77_DUMMY_MAIN
3031 # ifdef __cplusplus
3032 extern "C"
3033 # endif
3034 int F77_DUMMY_MAIN() { return 1; }
3035 #endif
3037 main ()
3039 gethostbyname ();
3041 return 0;
3043 _ACEOF
3044 rm -f conftest.$ac_objext conftest$ac_exeext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046 (eval $ac_link) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest$ac_exeext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_lib_bsd_gethostbyname=yes
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 ac_cv_lib_bsd_gethostbyname=no
3062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3063 LIBS=$ac_check_lib_save_LIBS
3065 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3066 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3067 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3068 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3074 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3075 # socket/setsockopt and other routines are undefined under SCO ODT
3076 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3077 # on later versions), says Simon Leinen: it contains gethostby*
3078 # variants that don't use the nameserver (or something). -lsocket
3079 # must be given before -lnsl if both are needed. We assume that
3080 # if connect needs -lnsl, so does gethostbyname.
3081 echo "$as_me:$LINENO: checking for connect" >&5
3082 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3083 if test "${ac_cv_func_connect+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 cat >conftest.$ac_ext <<_ACEOF
3087 #line $LINENO "configure"
3088 #include "confdefs.h"
3089 /* System header to define __stub macros and hopefully few prototypes,
3090 which can conflict with char connect (); below. */
3091 #include <assert.h>
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 #ifdef __cplusplus
3094 extern "C"
3095 #endif
3096 /* We use char because int might match the return type of a gcc2
3097 builtin and then its argument prototype would still apply. */
3098 char connect ();
3099 char (*f) ();
3101 #ifdef F77_DUMMY_MAIN
3102 # ifdef __cplusplus
3103 extern "C"
3104 # endif
3105 int F77_DUMMY_MAIN() { return 1; }
3106 #endif
3108 main ()
3110 /* The GNU C library defines this for functions which it implements
3111 to always fail with ENOSYS. Some functions are actually named
3112 something starting with __ and the normal name is an alias. */
3113 #if defined (__stub_connect) || defined (__stub___connect)
3114 choke me
3115 #else
3116 f = connect;
3117 #endif
3120 return 0;
3122 _ACEOF
3123 rm -f conftest.$ac_objext conftest$ac_exeext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125 (eval $ac_link) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -s conftest$ac_exeext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 ac_cv_func_connect=yes
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 ac_cv_func_connect=no
3141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3143 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3144 echo "${ECHO_T}$ac_cv_func_connect" >&6
3146 if test $ac_cv_func_connect = no; then
3147 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3148 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3149 if test "${ac_cv_lib_socket_connect+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 ac_check_lib_save_LIBS=$LIBS
3153 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3154 cat >conftest.$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3156 #include "confdefs.h"
3158 /* Override any gcc2 internal prototype to avoid an error. */
3159 #ifdef __cplusplus
3160 extern "C"
3161 #endif
3162 /* We use char because int might match the return type of a gcc2
3163 builtin and then its argument prototype would still apply. */
3164 char connect ();
3165 #ifdef F77_DUMMY_MAIN
3166 # ifdef __cplusplus
3167 extern "C"
3168 # endif
3169 int F77_DUMMY_MAIN() { return 1; }
3170 #endif
3172 main ()
3174 connect ();
3176 return 0;
3178 _ACEOF
3179 rm -f conftest.$ac_objext conftest$ac_exeext
3180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3181 (eval $ac_link) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -s conftest$ac_exeext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_lib_socket_connect=yes
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3195 ac_cv_lib_socket_connect=no
3197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3198 LIBS=$ac_check_lib_save_LIBS
3200 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3201 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3202 if test $ac_cv_lib_socket_connect = yes; then
3203 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3208 # Guillermo Gomez says -lposix is necessary on A/UX.
3209 echo "$as_me:$LINENO: checking for remove" >&5
3210 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3211 if test "${ac_cv_func_remove+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 cat >conftest.$ac_ext <<_ACEOF
3215 #line $LINENO "configure"
3216 #include "confdefs.h"
3217 /* System header to define __stub macros and hopefully few prototypes,
3218 which can conflict with char remove (); below. */
3219 #include <assert.h>
3220 /* Override any gcc2 internal prototype to avoid an error. */
3221 #ifdef __cplusplus
3222 extern "C"
3223 #endif
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3226 char remove ();
3227 char (*f) ();
3229 #ifdef F77_DUMMY_MAIN
3230 # ifdef __cplusplus
3231 extern "C"
3232 # endif
3233 int F77_DUMMY_MAIN() { return 1; }
3234 #endif
3236 main ()
3238 /* The GNU C library defines this for functions which it implements
3239 to always fail with ENOSYS. Some functions are actually named
3240 something starting with __ and the normal name is an alias. */
3241 #if defined (__stub_remove) || defined (__stub___remove)
3242 choke me
3243 #else
3244 f = remove;
3245 #endif
3248 return 0;
3250 _ACEOF
3251 rm -f conftest.$ac_objext conftest$ac_exeext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253 (eval $ac_link) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -s conftest$ac_exeext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_func_remove=yes
3264 else
3265 echo "$as_me: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3267 ac_cv_func_remove=no
3269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3271 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3272 echo "${ECHO_T}$ac_cv_func_remove" >&6
3274 if test $ac_cv_func_remove = no; then
3275 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3276 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3277 if test "${ac_cv_lib_posix_remove+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 ac_check_lib_save_LIBS=$LIBS
3281 LIBS="-lposix $LIBS"
3282 cat >conftest.$ac_ext <<_ACEOF
3283 #line $LINENO "configure"
3284 #include "confdefs.h"
3286 /* Override any gcc2 internal prototype to avoid an error. */
3287 #ifdef __cplusplus
3288 extern "C"
3289 #endif
3290 /* We use char because int might match the return type of a gcc2
3291 builtin and then its argument prototype would still apply. */
3292 char remove ();
3293 #ifdef F77_DUMMY_MAIN
3294 # ifdef __cplusplus
3295 extern "C"
3296 # endif
3297 int F77_DUMMY_MAIN() { return 1; }
3298 #endif
3300 main ()
3302 remove ();
3304 return 0;
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309 (eval $ac_link) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest$ac_exeext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_cv_lib_posix_remove=yes
3320 else
3321 echo "$as_me: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 ac_cv_lib_posix_remove=no
3325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3326 LIBS=$ac_check_lib_save_LIBS
3328 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3329 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3330 if test $ac_cv_lib_posix_remove = yes; then
3331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3336 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3337 echo "$as_me:$LINENO: checking for shmat" >&5
3338 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3339 if test "${ac_cv_func_shmat+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 cat >conftest.$ac_ext <<_ACEOF
3343 #line $LINENO "configure"
3344 #include "confdefs.h"
3345 /* System header to define __stub macros and hopefully few prototypes,
3346 which can conflict with char shmat (); below. */
3347 #include <assert.h>
3348 /* Override any gcc2 internal prototype to avoid an error. */
3349 #ifdef __cplusplus
3350 extern "C"
3351 #endif
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3354 char shmat ();
3355 char (*f) ();
3357 #ifdef F77_DUMMY_MAIN
3358 # ifdef __cplusplus
3359 extern "C"
3360 # endif
3361 int F77_DUMMY_MAIN() { return 1; }
3362 #endif
3364 main ()
3366 /* The GNU C library defines this for functions which it implements
3367 to always fail with ENOSYS. Some functions are actually named
3368 something starting with __ and the normal name is an alias. */
3369 #if defined (__stub_shmat) || defined (__stub___shmat)
3370 choke me
3371 #else
3372 f = shmat;
3373 #endif
3376 return 0;
3378 _ACEOF
3379 rm -f conftest.$ac_objext conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest$ac_exeext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_func_shmat=yes
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 ac_cv_func_shmat=no
3397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3399 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3400 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3402 if test $ac_cv_func_shmat = no; then
3403 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3404 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3405 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 ac_check_lib_save_LIBS=$LIBS
3409 LIBS="-lipc $LIBS"
3410 cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3414 /* Override any gcc2 internal prototype to avoid an error. */
3415 #ifdef __cplusplus
3416 extern "C"
3417 #endif
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3420 char shmat ();
3421 #ifdef F77_DUMMY_MAIN
3422 # ifdef __cplusplus
3423 extern "C"
3424 # endif
3425 int F77_DUMMY_MAIN() { return 1; }
3426 #endif
3428 main ()
3430 shmat ();
3432 return 0;
3434 _ACEOF
3435 rm -f conftest.$ac_objext conftest$ac_exeext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3437 (eval $ac_link) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -s conftest$ac_exeext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_cv_lib_ipc_shmat=yes
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 ac_cv_lib_ipc_shmat=no
3453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3454 LIBS=$ac_check_lib_save_LIBS
3456 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3457 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3458 if test $ac_cv_lib_ipc_shmat = yes; then
3459 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3465 # Check for libraries that X11R6 Xt/Xaw programs need.
3466 ac_save_LDFLAGS=$LDFLAGS
3467 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3468 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3469 # check for ICE first), but we must link in the order -lSM -lICE or
3470 # we get undefined symbols. So assume we have SM if we have ICE.
3471 # These have to be linked with before -lX11, unlike the other
3472 # libraries we check for below, so use a different variable.
3473 # John Interrante, Karl Berry
3474 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3475 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3476 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479 ac_check_lib_save_LIBS=$LIBS
3480 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3481 cat >conftest.$ac_ext <<_ACEOF
3482 #line $LINENO "configure"
3483 #include "confdefs.h"
3485 /* Override any gcc2 internal prototype to avoid an error. */
3486 #ifdef __cplusplus
3487 extern "C"
3488 #endif
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 IceConnectionNumber ();
3492 #ifdef F77_DUMMY_MAIN
3493 # ifdef __cplusplus
3494 extern "C"
3495 # endif
3496 int F77_DUMMY_MAIN() { return 1; }
3497 #endif
3499 main ()
3501 IceConnectionNumber ();
3503 return 0;
3505 _ACEOF
3506 rm -f conftest.$ac_objext conftest$ac_exeext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3508 (eval $ac_link) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -s conftest$ac_exeext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 (eval $ac_try) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 ac_cv_lib_ICE_IceConnectionNumber=yes
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 ac_cv_lib_ICE_IceConnectionNumber=no
3524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3525 LIBS=$ac_check_lib_save_LIBS
3527 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3528 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3529 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3530 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3533 LDFLAGS=$ac_save_LDFLAGS
3537 for ac_prog in 'bison -y' byacc
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_YACC+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -n "$YACC"; then
3547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_YACC="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3565 YACC=$ac_cv_prog_YACC
3566 if test -n "$YACC"; then
3567 echo "$as_me:$LINENO: result: $YACC" >&5
3568 echo "${ECHO_T}$YACC" >&6
3569 else
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 test -n "$YACC" && break
3575 done
3576 test -n "$YACC" || YACC="yacc"
3578 for ac_prog in flex lex
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_LEX+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 if test -n "$LEX"; then
3588 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_LEX="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3606 LEX=$ac_cv_prog_LEX
3607 if test -n "$LEX"; then
3608 echo "$as_me:$LINENO: result: $LEX" >&5
3609 echo "${ECHO_T}$LEX" >&6
3610 else
3611 echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3615 test -n "$LEX" && break
3616 done
3617 test -n "$LEX" || LEX=":"
3619 if test -z "$LEXLIB"
3620 then
3621 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3622 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3623 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 ac_check_lib_save_LIBS=$LIBS
3627 LIBS="-lfl $LIBS"
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 #include "confdefs.h"
3632 /* Override any gcc2 internal prototype to avoid an error. */
3633 #ifdef __cplusplus
3634 extern "C"
3635 #endif
3636 /* We use char because int might match the return type of a gcc2
3637 builtin and then its argument prototype would still apply. */
3638 char yywrap ();
3639 #ifdef F77_DUMMY_MAIN
3640 # ifdef __cplusplus
3641 extern "C"
3642 # endif
3643 int F77_DUMMY_MAIN() { return 1; }
3644 #endif
3646 main ()
3648 yywrap ();
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext conftest$ac_exeext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655 (eval $ac_link) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -s conftest$ac_exeext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_lib_fl_yywrap=yes
3666 else
3667 echo "$as_me: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 ac_cv_lib_fl_yywrap=no
3671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3672 LIBS=$ac_check_lib_save_LIBS
3674 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3675 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3676 if test $ac_cv_lib_fl_yywrap = yes; then
3677 LEXLIB="-lfl"
3678 else
3679 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3680 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3681 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684 ac_check_lib_save_LIBS=$LIBS
3685 LIBS="-ll $LIBS"
3686 cat >conftest.$ac_ext <<_ACEOF
3687 #line $LINENO "configure"
3688 #include "confdefs.h"
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 #ifdef __cplusplus
3692 extern "C"
3693 #endif
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3696 char yywrap ();
3697 #ifdef F77_DUMMY_MAIN
3698 # ifdef __cplusplus
3699 extern "C"
3700 # endif
3701 int F77_DUMMY_MAIN() { return 1; }
3702 #endif
3704 main ()
3706 yywrap ();
3708 return 0;
3710 _ACEOF
3711 rm -f conftest.$ac_objext conftest$ac_exeext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3713 (eval $ac_link) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -s conftest$ac_exeext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 ac_cv_lib_l_yywrap=yes
3724 else
3725 echo "$as_me: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 ac_cv_lib_l_yywrap=no
3729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3730 LIBS=$ac_check_lib_save_LIBS
3732 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3733 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3734 if test $ac_cv_lib_l_yywrap = yes; then
3735 LEXLIB="-ll"
3742 if test "x$LEX" != "x:"; then
3743 echo "$as_me:$LINENO: checking lex output file root" >&5
3744 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3745 if test "${ac_cv_prog_lex_root+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 # The minimal lex program is just a single line: %%. But some broken lexes
3749 # (Solaris, I think it was) want two %% lines, so accommodate them.
3750 cat >conftest.l <<_ACEOF
3753 _ACEOF
3754 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3755 (eval $LEX conftest.l) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }
3759 if test -f lex.yy.c; then
3760 ac_cv_prog_lex_root=lex.yy
3761 elif test -f lexyy.c; then
3762 ac_cv_prog_lex_root=lexyy
3763 else
3764 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3765 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3766 { (exit 1); exit 1; }; }
3769 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3770 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3771 rm -f conftest.l
3772 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3774 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3775 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3776 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 # POSIX says lex can declare yytext either as a pointer or an array; the
3780 # default is implementation-dependent. Figure out which it is, since
3781 # not all implementations provide the %pointer and %array declarations.
3782 ac_cv_prog_lex_yytext_pointer=no
3783 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3784 ac_save_LIBS=$LIBS
3785 LIBS="$LIBS $LEXLIB"
3786 cat >conftest.$ac_ext <<_ACEOF
3787 `cat $LEX_OUTPUT_ROOT.c`
3788 _ACEOF
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791 (eval $ac_link) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -s conftest$ac_exeext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_cv_prog_lex_yytext_pointer=yes
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807 LIBS=$ac_save_LIBS
3808 rm -f "${LEX_OUTPUT_ROOT}.c"
3811 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3812 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3813 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3815 cat >>confdefs.h <<\_ACEOF
3816 #define YYTEXT_POINTER 1
3817 _ACEOF
3823 for ac_prog in $YACC bison yacc
3825 # Extract the first word of "$ac_prog", so it can be a program name with args.
3826 set dummy $ac_prog; ac_word=$2
3827 echo "$as_me:$LINENO: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_XYACC+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 if test -n "$XYACC"; then
3833 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_XYACC="$ac_prog"
3843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3846 done
3847 done
3851 XYACC=$ac_cv_prog_XYACC
3852 if test -n "$XYACC"; then
3853 echo "$as_me:$LINENO: result: $XYACC" >&5
3854 echo "${ECHO_T}$XYACC" >&6
3855 else
3856 echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3860 test -n "$XYACC" && break
3861 done
3862 test -n "$XYACC" || XYACC="none"
3864 if test "$XYACC" = "none"
3865 then
3866 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3867 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3868 { (exit 1); exit 1; }; }
3870 for ac_prog in $LEX flex lex
3872 # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876 if test "${ac_cv_prog_XLEX+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 if test -n "$XLEX"; then
3880 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_XLEX="$ac_prog"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3893 done
3894 done
3898 XLEX=$ac_cv_prog_XLEX
3899 if test -n "$XLEX"; then
3900 echo "$as_me:$LINENO: result: $XLEX" >&5
3901 echo "${ECHO_T}$XLEX" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6
3907 test -n "$XLEX" && break
3908 done
3909 test -n "$XLEX" || XLEX="none"
3911 if test "$XLEX" = "none"
3912 then
3913 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3914 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3915 { (exit 1); exit 1; }; }
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}ar; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_AR+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 if test -n "$AR"; then
3927 ac_cv_prog_AR="$AR" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_AR="${ac_tool_prefix}ar"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3945 AR=$ac_cv_prog_AR
3946 if test -n "$AR"; then
3947 echo "$as_me:$LINENO: result: $AR" >&5
3948 echo "${ECHO_T}$AR" >&6
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3955 if test -z "$ac_cv_prog_AR"; then
3956 ac_ct_AR=$AR
3957 # Extract the first word of "ar", so it can be a program name with args.
3958 set dummy ar; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964 if test -n "$ac_ct_AR"; then
3965 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_AR="ar"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3978 done
3979 done
3981 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3984 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3985 if test -n "$ac_ct_AR"; then
3986 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3987 echo "${ECHO_T}$ac_ct_AR" >&6
3988 else
3989 echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3993 AR=$ac_ct_AR
3994 else
3995 AR="$ac_cv_prog_AR"
3998 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4000 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 if test -n "$RANLIB"; then
4007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4020 done
4021 done
4025 RANLIB=$ac_cv_prog_RANLIB
4026 if test -n "$RANLIB"; then
4027 echo "$as_me:$LINENO: result: $RANLIB" >&5
4028 echo "${ECHO_T}$RANLIB" >&6
4029 else
4030 echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4035 if test -z "$ac_cv_prog_RANLIB"; then
4036 ac_ct_RANLIB=$RANLIB
4037 # Extract the first word of "ranlib", so it can be a program name with args.
4038 set dummy ranlib; ac_word=$2
4039 echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 if test -n "$ac_ct_RANLIB"; then
4045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_ac_ct_RANLIB="ranlib"
4055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4058 done
4059 done
4061 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4065 if test -n "$ac_ct_RANLIB"; then
4066 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4067 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4068 else
4069 echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4073 RANLIB=$ac_ct_RANLIB
4074 else
4075 RANLIB="$ac_cv_prog_RANLIB"
4078 if test -n "$ac_tool_prefix"; then
4079 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4080 set dummy ${ac_tool_prefix}strip; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_STRIP+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 if test -n "$STRIP"; then
4087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4100 done
4101 done
4105 STRIP=$ac_cv_prog_STRIP
4106 if test -n "$STRIP"; then
4107 echo "$as_me:$LINENO: result: $STRIP" >&5
4108 echo "${ECHO_T}$STRIP" >&6
4109 else
4110 echo "$as_me:$LINENO: result: no" >&5
4111 echo "${ECHO_T}no" >&6
4115 if test -z "$ac_cv_prog_STRIP"; then
4116 ac_ct_STRIP=$STRIP
4117 # Extract the first word of "strip", so it can be a program name with args.
4118 set dummy strip; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 if test -n "$ac_ct_STRIP"; then
4125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_ac_ct_STRIP="strip"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4138 done
4139 done
4141 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145 if test -n "$ac_ct_STRIP"; then
4146 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4147 echo "${ECHO_T}$ac_ct_STRIP" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4153 STRIP=$ac_ct_STRIP
4154 else
4155 STRIP="$ac_cv_prog_STRIP"
4158 if test -n "$ac_tool_prefix"; then
4159 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4160 set dummy ${ac_tool_prefix}windres; ac_word=$2
4161 echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_prog_WINDRES+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166 if test -n "$WINDRES"; then
4167 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4180 done
4181 done
4185 WINDRES=$ac_cv_prog_WINDRES
4186 if test -n "$WINDRES"; then
4187 echo "$as_me:$LINENO: result: $WINDRES" >&5
4188 echo "${ECHO_T}$WINDRES" >&6
4189 else
4190 echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4195 if test -z "$ac_cv_prog_WINDRES"; then
4196 ac_ct_WINDRES=$WINDRES
4197 # Extract the first word of "windres", so it can be a program name with args.
4198 set dummy windres; ac_word=$2
4199 echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 if test -n "$ac_ct_WINDRES"; then
4205 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_ac_ct_WINDRES="windres"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4218 done
4219 done
4221 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4224 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4225 if test -n "$ac_ct_WINDRES"; then
4226 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4227 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4228 else
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4233 WINDRES=$ac_ct_WINDRES
4234 else
4235 WINDRES="$ac_cv_prog_WINDRES"
4238 # Find a good install program. We prefer a C program (faster),
4239 # so one script is as good as another. But avoid the broken or
4240 # incompatible versions:
4241 # SysV /etc/install, /usr/sbin/install
4242 # SunOS /usr/etc/install
4243 # IRIX /sbin/install
4244 # AIX /bin/install
4245 # AmigaOS /C/install, which installs bootblocks on floppy discs
4246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4249 # ./install, which can be erroneously created by make from ./install.sh.
4250 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4251 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4252 if test -z "$INSTALL"; then
4253 if test "${ac_cv_path_install+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 # Account for people who put trailing slashes in PATH elements.
4262 case $as_dir/ in
4263 ./ | .// | /cC/* | \
4264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4265 /usr/ucb/* ) ;;
4267 # OSF1 and SCO ODT 3.0 have their own names for install.
4268 # Don't use installbsd from OSF since it installs stuff as root
4269 # by default.
4270 for ac_prog in ginstall scoinst install; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4273 if test $ac_prog = install &&
4274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4275 # AIX install. It has an incompatible calling convention.
4277 elif test $ac_prog = install &&
4278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4279 # program-specific install script used by HP pwplus--don't use.
4281 else
4282 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4283 break 3
4286 done
4287 done
4289 esac
4290 done
4294 if test "${ac_cv_path_install+set}" = set; then
4295 INSTALL=$ac_cv_path_install
4296 else
4297 # As a last resort, use the slow shell script. We don't cache a
4298 # path for INSTALL within a source directory, because that will
4299 # break other packages using the cache if that directory is
4300 # removed, or if the path is relative.
4301 INSTALL=$ac_install_sh
4304 echo "$as_me:$LINENO: result: $INSTALL" >&5
4305 echo "${ECHO_T}$INSTALL" >&6
4307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4308 # It thinks the first close brace ends the variable substitution.
4309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4315 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4316 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4317 LN_S=$as_ln_s
4318 if test "$LN_S" = "ln -s"; then
4319 echo "$as_me:$LINENO: result: yes" >&5
4320 echo "${ECHO_T}yes" >&6
4321 else
4322 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4323 echo "${ECHO_T}no, using $LN_S" >&6
4326 # Extract the first word of "c2man", so it can be a program name with args.
4327 set dummy c2man; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_prog_C2MAN+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333 if test -n "$C2MAN"; then
4334 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343 ac_cv_prog_C2MAN="c2man"
4344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 break 2
4347 done
4348 done
4350 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4353 C2MAN=$ac_cv_prog_C2MAN
4354 if test -n "$C2MAN"; then
4355 echo "$as_me:$LINENO: result: $C2MAN" >&5
4356 echo "${ECHO_T}$C2MAN" >&6
4357 else
4358 echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4362 # Extract the first word of "ldconfig", so it can be a program name with args.
4363 set dummy ldconfig; ac_word=$2
4364 echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4366 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 case $LDCONFIG in
4370 [\\/]* | ?:[\\/]*)
4371 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in /sbin /usr/sbin $PATH
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4385 done
4386 done
4388 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4390 esac
4392 LDCONFIG=$ac_cv_path_LDCONFIG
4394 if test -n "$LDCONFIG"; then
4395 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4396 echo "${ECHO_T}$LDCONFIG" >&6
4397 else
4398 echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6
4403 case $host_os in
4404 cygwin*|mingw32*)
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}ld -r --enable-stdcall-fixup", so it can be a program name with args.
4407 set dummy ${ac_tool_prefix}ld -r --enable-stdcall-fixup; ac_word=$2
4408 echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4410 if test "${ac_cv_prog_LDCOMBINE+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413 if test -n "$LDCOMBINE"; then
4414 ac_cv_prog_LDCOMBINE="$LDCOMBINE" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_LDCOMBINE="${ac_tool_prefix}ld -r --enable-stdcall-fixup"
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4427 done
4428 done
4432 LDCOMBINE=$ac_cv_prog_LDCOMBINE
4433 if test -n "$LDCOMBINE"; then
4434 echo "$as_me:$LINENO: result: $LDCOMBINE" >&5
4435 echo "${ECHO_T}$LDCOMBINE" >&6
4436 else
4437 echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6
4442 if test -z "$ac_cv_prog_LDCOMBINE"; then
4443 ac_ct_LDCOMBINE=$LDCOMBINE
4444 # Extract the first word of "ld -r --enable-stdcall-fixup", so it can be a program name with args.
4445 set dummy ld -r --enable-stdcall-fixup; ac_word=$2
4446 echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4448 if test "${ac_cv_prog_ac_ct_LDCOMBINE+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451 if test -n "$ac_ct_LDCOMBINE"; then
4452 ac_cv_prog_ac_ct_LDCOMBINE="$ac_ct_LDCOMBINE" # Let the user override the test.
4453 else
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_ac_ct_LDCOMBINE="ld -r --enable-stdcall-fixup"
4462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4465 done
4466 done
4468 test -z "$ac_cv_prog_ac_ct_LDCOMBINE" && ac_cv_prog_ac_ct_LDCOMBINE="ld -r --enable-stdcall-fixup"
4471 ac_ct_LDCOMBINE=$ac_cv_prog_ac_ct_LDCOMBINE
4472 if test -n "$ac_ct_LDCOMBINE"; then
4473 echo "$as_me:$LINENO: result: $ac_ct_LDCOMBINE" >&5
4474 echo "${ECHO_T}$ac_ct_LDCOMBINE" >&6
4475 else
4476 echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6
4480 LDCOMBINE=$ac_ct_LDCOMBINE
4481 else
4482 LDCOMBINE="$ac_cv_prog_LDCOMBINE"
4486 if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "${ac_tool_prefix}ld -r", so it can be a program name with args.
4488 set dummy ${ac_tool_prefix}ld -r; ac_word=$2
4489 echo "$as_me:$LINENO: checking for $ac_word" >&5
4490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4491 if test "${ac_cv_prog_LDCOMBINE+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494 if test -n "$LDCOMBINE"; then
4495 ac_cv_prog_LDCOMBINE="$LDCOMBINE" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 ac_cv_prog_LDCOMBINE="${ac_tool_prefix}ld -r"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4508 done
4509 done
4513 LDCOMBINE=$ac_cv_prog_LDCOMBINE
4514 if test -n "$LDCOMBINE"; then
4515 echo "$as_me:$LINENO: result: $LDCOMBINE" >&5
4516 echo "${ECHO_T}$LDCOMBINE" >&6
4517 else
4518 echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6
4523 if test -z "$ac_cv_prog_LDCOMBINE"; then
4524 ac_ct_LDCOMBINE=$LDCOMBINE
4525 # Extract the first word of "ld -r", so it can be a program name with args.
4526 set dummy ld -r; ac_word=$2
4527 echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4529 if test "${ac_cv_prog_ac_ct_LDCOMBINE+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 if test -n "$ac_ct_LDCOMBINE"; then
4533 ac_cv_prog_ac_ct_LDCOMBINE="$ac_ct_LDCOMBINE" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_prog_ac_ct_LDCOMBINE="ld -r"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4549 test -z "$ac_cv_prog_ac_ct_LDCOMBINE" && ac_cv_prog_ac_ct_LDCOMBINE="ld -r"
4552 ac_ct_LDCOMBINE=$ac_cv_prog_ac_ct_LDCOMBINE
4553 if test -n "$ac_ct_LDCOMBINE"; then
4554 echo "$as_me:$LINENO: result: $ac_ct_LDCOMBINE" >&5
4555 echo "${ECHO_T}$ac_ct_LDCOMBINE" >&6
4556 else
4557 echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4561 LDCOMBINE=$ac_ct_LDCOMBINE
4562 else
4563 LDCOMBINE="$ac_cv_prog_LDCOMBINE"
4566 esac
4568 for ac_prog in lclint lint
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_prog_LINT+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577 if test -n "$LINT"; then
4578 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_prog_LINT="$ac_prog"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4591 done
4592 done
4596 LINT=$ac_cv_prog_LINT
4597 if test -n "$LINT"; then
4598 echo "$as_me:$LINENO: result: $LINT" >&5
4599 echo "${ECHO_T}$LINT" >&6
4600 else
4601 echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6
4605 test -n "$LINT" && break
4606 done
4608 if test "$LINT" = "lint"
4609 then
4610 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4617 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4618 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4619 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622 ac_check_lib_save_LIBS=$LIBS
4623 LIBS="-lm $LIBS"
4624 cat >conftest.$ac_ext <<_ACEOF
4625 #line $LINENO "configure"
4626 #include "confdefs.h"
4628 /* Override any gcc2 internal prototype to avoid an error. */
4629 #ifdef __cplusplus
4630 extern "C"
4631 #endif
4632 /* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4634 char sqrt ();
4635 #ifdef F77_DUMMY_MAIN
4636 # ifdef __cplusplus
4637 extern "C"
4638 # endif
4639 int F77_DUMMY_MAIN() { return 1; }
4640 #endif
4642 main ()
4644 sqrt ();
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -s conftest$ac_exeext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_cv_lib_m_sqrt=yes
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4665 ac_cv_lib_m_sqrt=no
4667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4668 LIBS=$ac_check_lib_save_LIBS
4670 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4671 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4672 if test $ac_cv_lib_m_sqrt = yes; then
4673 cat >>confdefs.h <<_ACEOF
4674 #define HAVE_LIBM 1
4675 _ACEOF
4677 LIBS="-lm $LIBS"
4682 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4683 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4684 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687 ac_check_lib_save_LIBS=$LIBS
4688 LIBS="-li386 $LIBS"
4689 cat >conftest.$ac_ext <<_ACEOF
4690 #line $LINENO "configure"
4691 #include "confdefs.h"
4693 /* Override any gcc2 internal prototype to avoid an error. */
4694 #ifdef __cplusplus
4695 extern "C"
4696 #endif
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4699 char i386_set_ldt ();
4700 #ifdef F77_DUMMY_MAIN
4701 # ifdef __cplusplus
4702 extern "C"
4703 # endif
4704 int F77_DUMMY_MAIN() { return 1; }
4705 #endif
4707 main ()
4709 i386_set_ldt ();
4711 return 0;
4713 _ACEOF
4714 rm -f conftest.$ac_objext conftest$ac_exeext
4715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4716 (eval $ac_link) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } &&
4720 { ac_try='test -s conftest$ac_exeext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 ac_cv_lib_i386_i386_set_ldt=yes
4727 else
4728 echo "$as_me: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 ac_cv_lib_i386_i386_set_ldt=no
4732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4733 LIBS=$ac_check_lib_save_LIBS
4735 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4736 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4737 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4738 cat >>confdefs.h <<_ACEOF
4739 #define HAVE_LIBI386 1
4740 _ACEOF
4742 LIBS="-li386 $LIBS"
4747 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4748 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4749 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 ac_check_lib_save_LIBS=$LIBS
4753 LIBS="-lossaudio $LIBS"
4754 cat >conftest.$ac_ext <<_ACEOF
4755 #line $LINENO "configure"
4756 #include "confdefs.h"
4758 /* Override any gcc2 internal prototype to avoid an error. */
4759 #ifdef __cplusplus
4760 extern "C"
4761 #endif
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4764 char _oss_ioctl ();
4765 #ifdef F77_DUMMY_MAIN
4766 # ifdef __cplusplus
4767 extern "C"
4768 # endif
4769 int F77_DUMMY_MAIN() { return 1; }
4770 #endif
4772 main ()
4774 _oss_ioctl ();
4776 return 0;
4778 _ACEOF
4779 rm -f conftest.$ac_objext conftest$ac_exeext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4781 (eval $ac_link) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -s conftest$ac_exeext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_cv_lib_ossaudio__oss_ioctl=yes
4792 else
4793 echo "$as_me: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4795 ac_cv_lib_ossaudio__oss_ioctl=no
4797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4798 LIBS=$ac_check_lib_save_LIBS
4800 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4801 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4802 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4803 cat >>confdefs.h <<_ACEOF
4804 #define HAVE_LIBOSSAUDIO 1
4805 _ACEOF
4807 LIBS="-lossaudio $LIBS"
4812 for ac_func in iswalnum
4814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4815 echo "$as_me:$LINENO: checking for $ac_func" >&5
4816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4817 if eval "test \"\${$as_ac_var+set}\" = set"; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820 cat >conftest.$ac_ext <<_ACEOF
4821 #line $LINENO "configure"
4822 #include "confdefs.h"
4823 /* System header to define __stub macros and hopefully few prototypes,
4824 which can conflict with char $ac_func (); below. */
4825 #include <assert.h>
4826 /* Override any gcc2 internal prototype to avoid an error. */
4827 #ifdef __cplusplus
4828 extern "C"
4829 #endif
4830 /* We use char because int might match the return type of a gcc2
4831 builtin and then its argument prototype would still apply. */
4832 char $ac_func ();
4833 char (*f) ();
4835 #ifdef F77_DUMMY_MAIN
4836 # ifdef __cplusplus
4837 extern "C"
4838 # endif
4839 int F77_DUMMY_MAIN() { return 1; }
4840 #endif
4842 main ()
4844 /* The GNU C library defines this for functions which it implements
4845 to always fail with ENOSYS. Some functions are actually named
4846 something starting with __ and the normal name is an alias. */
4847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4848 choke me
4849 #else
4850 f = $ac_func;
4851 #endif
4854 return 0;
4856 _ACEOF
4857 rm -f conftest.$ac_objext conftest$ac_exeext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859 (eval $ac_link) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest$ac_exeext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 eval "$as_ac_var=yes"
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4873 eval "$as_ac_var=no"
4875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4879 if test `eval echo '${'$as_ac_var'}'` = yes; then
4880 cat >>confdefs.h <<_ACEOF
4881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4882 _ACEOF
4884 else
4886 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4887 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4888 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 ac_check_lib_save_LIBS=$LIBS
4892 LIBS="-lw $LIBS"
4893 cat >conftest.$ac_ext <<_ACEOF
4894 #line $LINENO "configure"
4895 #include "confdefs.h"
4897 /* Override any gcc2 internal prototype to avoid an error. */
4898 #ifdef __cplusplus
4899 extern "C"
4900 #endif
4901 /* We use char because int might match the return type of a gcc2
4902 builtin and then its argument prototype would still apply. */
4903 char iswalnum ();
4904 #ifdef F77_DUMMY_MAIN
4905 # ifdef __cplusplus
4906 extern "C"
4907 # endif
4908 int F77_DUMMY_MAIN() { return 1; }
4909 #endif
4911 main ()
4913 iswalnum ();
4915 return 0;
4917 _ACEOF
4918 rm -f conftest.$ac_objext conftest$ac_exeext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4920 (eval $ac_link) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -s conftest$ac_exeext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_cv_lib_w_iswalnum=yes
4931 else
4932 echo "$as_me: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4934 ac_cv_lib_w_iswalnum=no
4936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4937 LIBS=$ac_check_lib_save_LIBS
4939 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4940 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4941 if test $ac_cv_lib_w_iswalnum = yes; then
4942 cat >>confdefs.h <<_ACEOF
4943 #define HAVE_LIBW 1
4944 _ACEOF
4946 LIBS="-lw $LIBS"
4951 done
4954 for ac_func in gethostbyname
4956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4957 echo "$as_me:$LINENO: checking for $ac_func" >&5
4958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4959 if eval "test \"\${$as_ac_var+set}\" = set"; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 cat >conftest.$ac_ext <<_ACEOF
4963 #line $LINENO "configure"
4964 #include "confdefs.h"
4965 /* System header to define __stub macros and hopefully few prototypes,
4966 which can conflict with char $ac_func (); below. */
4967 #include <assert.h>
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 #ifdef __cplusplus
4970 extern "C"
4971 #endif
4972 /* We use char because int might match the return type of a gcc2
4973 builtin and then its argument prototype would still apply. */
4974 char $ac_func ();
4975 char (*f) ();
4977 #ifdef F77_DUMMY_MAIN
4978 # ifdef __cplusplus
4979 extern "C"
4980 # endif
4981 int F77_DUMMY_MAIN() { return 1; }
4982 #endif
4984 main ()
4986 /* The GNU C library defines this for functions which it implements
4987 to always fail with ENOSYS. Some functions are actually named
4988 something starting with __ and the normal name is an alias. */
4989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4990 choke me
4991 #else
4992 f = $ac_func;
4993 #endif
4996 return 0;
4998 _ACEOF
4999 rm -f conftest.$ac_objext conftest$ac_exeext
5000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5001 (eval $ac_link) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } &&
5005 { ac_try='test -s conftest$ac_exeext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 eval "$as_ac_var=yes"
5012 else
5013 echo "$as_me: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5015 eval "$as_ac_var=no"
5017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5021 if test `eval echo '${'$as_ac_var'}'` = yes; then
5022 cat >>confdefs.h <<_ACEOF
5023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5024 _ACEOF
5026 else
5028 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5029 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5030 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033 ac_check_lib_save_LIBS=$LIBS
5034 LIBS="-lnsl $LIBS"
5035 cat >conftest.$ac_ext <<_ACEOF
5036 #line $LINENO "configure"
5037 #include "confdefs.h"
5039 /* Override any gcc2 internal prototype to avoid an error. */
5040 #ifdef __cplusplus
5041 extern "C"
5042 #endif
5043 /* We use char because int might match the return type of a gcc2
5044 builtin and then its argument prototype would still apply. */
5045 char gethostbyname ();
5046 #ifdef F77_DUMMY_MAIN
5047 # ifdef __cplusplus
5048 extern "C"
5049 # endif
5050 int F77_DUMMY_MAIN() { return 1; }
5051 #endif
5053 main ()
5055 gethostbyname ();
5057 return 0;
5059 _ACEOF
5060 rm -f conftest.$ac_objext conftest$ac_exeext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062 (eval $ac_link) 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -s conftest$ac_exeext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 ac_cv_lib_nsl_gethostbyname=yes
5073 else
5074 echo "$as_me: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5076 ac_cv_lib_nsl_gethostbyname=no
5078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5081 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5082 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5083 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5084 cat >>confdefs.h <<_ACEOF
5085 #define HAVE_LIBNSL 1
5086 _ACEOF
5088 LIBS="-lnsl $LIBS"
5093 done
5096 for ac_func in connect
5098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5099 echo "$as_me:$LINENO: checking for $ac_func" >&5
5100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5101 if eval "test \"\${$as_ac_var+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104 cat >conftest.$ac_ext <<_ACEOF
5105 #line $LINENO "configure"
5106 #include "confdefs.h"
5107 /* System header to define __stub macros and hopefully few prototypes,
5108 which can conflict with char $ac_func (); below. */
5109 #include <assert.h>
5110 /* Override any gcc2 internal prototype to avoid an error. */
5111 #ifdef __cplusplus
5112 extern "C"
5113 #endif
5114 /* We use char because int might match the return type of a gcc2
5115 builtin and then its argument prototype would still apply. */
5116 char $ac_func ();
5117 char (*f) ();
5119 #ifdef F77_DUMMY_MAIN
5120 # ifdef __cplusplus
5121 extern "C"
5122 # endif
5123 int F77_DUMMY_MAIN() { return 1; }
5124 #endif
5126 main ()
5128 /* The GNU C library defines this for functions which it implements
5129 to always fail with ENOSYS. Some functions are actually named
5130 something starting with __ and the normal name is an alias. */
5131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5132 choke me
5133 #else
5134 f = $ac_func;
5135 #endif
5138 return 0;
5140 _ACEOF
5141 rm -f conftest.$ac_objext conftest$ac_exeext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143 (eval $ac_link) 2>&5
5144 ac_status=$?
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -s conftest$ac_exeext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 eval "$as_ac_var=yes"
5154 else
5155 echo "$as_me: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5157 eval "$as_ac_var=no"
5159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5163 if test `eval echo '${'$as_ac_var'}'` = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5166 _ACEOF
5168 else
5170 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5171 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5172 if test "${ac_cv_lib_socket_connect+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 ac_check_lib_save_LIBS=$LIBS
5176 LIBS="-lsocket $LIBS"
5177 cat >conftest.$ac_ext <<_ACEOF
5178 #line $LINENO "configure"
5179 #include "confdefs.h"
5181 /* Override any gcc2 internal prototype to avoid an error. */
5182 #ifdef __cplusplus
5183 extern "C"
5184 #endif
5185 /* We use char because int might match the return type of a gcc2
5186 builtin and then its argument prototype would still apply. */
5187 char connect ();
5188 #ifdef F77_DUMMY_MAIN
5189 # ifdef __cplusplus
5190 extern "C"
5191 # endif
5192 int F77_DUMMY_MAIN() { return 1; }
5193 #endif
5195 main ()
5197 connect ();
5199 return 0;
5201 _ACEOF
5202 rm -f conftest.$ac_objext conftest$ac_exeext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5204 (eval $ac_link) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
5208 { ac_try='test -s conftest$ac_exeext'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 (eval $ac_try) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; }; then
5214 ac_cv_lib_socket_connect=yes
5215 else
5216 echo "$as_me: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5218 ac_cv_lib_socket_connect=no
5220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5221 LIBS=$ac_check_lib_save_LIBS
5223 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5224 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5225 if test $ac_cv_lib_socket_connect = yes; then
5226 cat >>confdefs.h <<_ACEOF
5227 #define HAVE_LIBSOCKET 1
5228 _ACEOF
5230 LIBS="-lsocket $LIBS"
5235 done
5238 for ac_func in inet_aton
5240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5241 echo "$as_me:$LINENO: checking for $ac_func" >&5
5242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5243 if eval "test \"\${$as_ac_var+set}\" = set"; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 #include "confdefs.h"
5249 /* System header to define __stub macros and hopefully few prototypes,
5250 which can conflict with char $ac_func (); below. */
5251 #include <assert.h>
5252 /* Override any gcc2 internal prototype to avoid an error. */
5253 #ifdef __cplusplus
5254 extern "C"
5255 #endif
5256 /* We use char because int might match the return type of a gcc2
5257 builtin and then its argument prototype would still apply. */
5258 char $ac_func ();
5259 char (*f) ();
5261 #ifdef F77_DUMMY_MAIN
5262 # ifdef __cplusplus
5263 extern "C"
5264 # endif
5265 int F77_DUMMY_MAIN() { return 1; }
5266 #endif
5268 main ()
5270 /* The GNU C library defines this for functions which it implements
5271 to always fail with ENOSYS. Some functions are actually named
5272 something starting with __ and the normal name is an alias. */
5273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5274 choke me
5275 #else
5276 f = $ac_func;
5277 #endif
5280 return 0;
5282 _ACEOF
5283 rm -f conftest.$ac_objext conftest$ac_exeext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285 (eval $ac_link) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -s conftest$ac_exeext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 eval "$as_ac_var=yes"
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5299 eval "$as_ac_var=no"
5301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5305 if test `eval echo '${'$as_ac_var'}'` = yes; then
5306 cat >>confdefs.h <<_ACEOF
5307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5308 _ACEOF
5310 else
5312 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5313 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5314 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 ac_check_lib_save_LIBS=$LIBS
5318 LIBS="-lresolv $LIBS"
5319 cat >conftest.$ac_ext <<_ACEOF
5320 #line $LINENO "configure"
5321 #include "confdefs.h"
5323 /* Override any gcc2 internal prototype to avoid an error. */
5324 #ifdef __cplusplus
5325 extern "C"
5326 #endif
5327 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5329 char inet_aton ();
5330 #ifdef F77_DUMMY_MAIN
5331 # ifdef __cplusplus
5332 extern "C"
5333 # endif
5334 int F77_DUMMY_MAIN() { return 1; }
5335 #endif
5337 main ()
5339 inet_aton ();
5341 return 0;
5343 _ACEOF
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_lib_resolv_inet_aton=yes
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 ac_cv_lib_resolv_inet_aton=no
5362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363 LIBS=$ac_check_lib_save_LIBS
5365 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5366 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5367 if test $ac_cv_lib_resolv_inet_aton = yes; then
5368 cat >>confdefs.h <<_ACEOF
5369 #define HAVE_LIBRESOLV 1
5370 _ACEOF
5372 LIBS="-lresolv $LIBS"
5377 done
5380 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5381 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5382 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385 ac_check_lib_save_LIBS=$LIBS
5386 LIBS="-lxpg4 $LIBS"
5387 cat >conftest.$ac_ext <<_ACEOF
5388 #line $LINENO "configure"
5389 #include "confdefs.h"
5391 /* Override any gcc2 internal prototype to avoid an error. */
5392 #ifdef __cplusplus
5393 extern "C"
5394 #endif
5395 /* We use char because int might match the return type of a gcc2
5396 builtin and then its argument prototype would still apply. */
5397 char _xpg4_setrunelocale ();
5398 #ifdef F77_DUMMY_MAIN
5399 # ifdef __cplusplus
5400 extern "C"
5401 # endif
5402 int F77_DUMMY_MAIN() { return 1; }
5403 #endif
5405 main ()
5407 _xpg4_setrunelocale ();
5409 return 0;
5411 _ACEOF
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414 (eval $ac_link) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -s conftest$ac_exeext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5428 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 LIBS=$ac_check_lib_save_LIBS
5433 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5434 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5435 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define HAVE_LIBXPG4 1
5438 _ACEOF
5440 LIBS="-lxpg4 $LIBS"
5445 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5446 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5447 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450 ac_check_lib_save_LIBS=$LIBS
5451 LIBS="-lmmap $LIBS"
5452 cat >conftest.$ac_ext <<_ACEOF
5453 #line $LINENO "configure"
5454 #include "confdefs.h"
5456 /* Override any gcc2 internal prototype to avoid an error. */
5457 #ifdef __cplusplus
5458 extern "C"
5459 #endif
5460 /* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
5462 char mmap ();
5463 #ifdef F77_DUMMY_MAIN
5464 # ifdef __cplusplus
5465 extern "C"
5466 # endif
5467 int F77_DUMMY_MAIN() { return 1; }
5468 #endif
5470 main ()
5472 mmap ();
5474 return 0;
5476 _ACEOF
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5479 (eval $ac_link) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -s conftest$ac_exeext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 ac_cv_lib_mmap_mmap=yes
5490 else
5491 echo "$as_me: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5493 ac_cv_lib_mmap_mmap=no
5495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5496 LIBS=$ac_check_lib_save_LIBS
5498 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5499 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5500 if test $ac_cv_lib_mmap_mmap = yes; then
5501 cat >>confdefs.h <<_ACEOF
5502 #define HAVE_LIBMMAP 1
5503 _ACEOF
5505 LIBS="-lmmap $LIBS"
5510 JPEGLIB=""
5512 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5513 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5514 if test "${ac_cv_header_stdc+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 #include "confdefs.h"
5520 #include <stdlib.h>
5521 #include <stdarg.h>
5522 #include <string.h>
5523 #include <float.h>
5525 _ACEOF
5526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5528 ac_status=$?
5529 egrep -v '^ *\+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } >/dev/null; then
5534 if test -s conftest.err; then
5535 ac_cpp_err=$ac_c_preproc_warn_flag
5536 else
5537 ac_cpp_err=
5539 else
5540 ac_cpp_err=yes
5542 if test -z "$ac_cpp_err"; then
5543 ac_cv_header_stdc=yes
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5547 ac_cv_header_stdc=no
5549 rm -f conftest.err conftest.$ac_ext
5551 if test $ac_cv_header_stdc = yes; then
5552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5553 cat >conftest.$ac_ext <<_ACEOF
5554 #line $LINENO "configure"
5555 #include "confdefs.h"
5556 #include <string.h>
5558 _ACEOF
5559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5560 egrep "memchr" >/dev/null 2>&1; then
5562 else
5563 ac_cv_header_stdc=no
5565 rm -f conftest*
5569 if test $ac_cv_header_stdc = yes; then
5570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5571 cat >conftest.$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5573 #include "confdefs.h"
5574 #include <stdlib.h>
5576 _ACEOF
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 egrep "free" >/dev/null 2>&1; then
5580 else
5581 ac_cv_header_stdc=no
5583 rm -f conftest*
5587 if test $ac_cv_header_stdc = yes; then
5588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5589 if test "$cross_compiling" = yes; then
5591 else
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 #include "confdefs.h"
5595 #include <ctype.h>
5596 #if ((' ' & 0x0FF) == 0x020)
5597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5599 #else
5600 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5601 || ('j' <= (c) && (c) <= 'r') \
5602 || ('s' <= (c) && (c) <= 'z'))
5603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5604 #endif
5606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5608 main ()
5610 int i;
5611 for (i = 0; i < 256; i++)
5612 if (XOR (islower (i), ISLOWER (i))
5613 || toupper (i) != TOUPPER (i))
5614 exit(2);
5615 exit (0);
5617 _ACEOF
5618 rm -f conftest$ac_exeext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5630 else
5631 echo "$as_me: program exited with status $ac_status" >&5
5632 echo "$as_me: failed program was:" >&5
5633 cat conftest.$ac_ext >&5
5634 ( exit $ac_status )
5635 ac_cv_header_stdc=no
5637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5641 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5642 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5643 if test $ac_cv_header_stdc = yes; then
5645 cat >>confdefs.h <<\_ACEOF
5646 #define STDC_HEADERS 1
5647 _ACEOF
5651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5662 inttypes.h stdint.h unistd.h
5664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5665 echo "$as_me:$LINENO: checking for $ac_header" >&5
5666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 cat >conftest.$ac_ext <<_ACEOF
5671 #line $LINENO "configure"
5672 #include "confdefs.h"
5673 $ac_includes_default
5675 #include <$ac_header>
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } &&
5683 { ac_try='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 eval "$as_ac_Header=yes"
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5693 eval "$as_ac_Header=no"
5695 rm -f conftest.$ac_objext conftest.$ac_ext
5697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5700 cat >>confdefs.h <<_ACEOF
5701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5702 _ACEOF
5706 done
5710 for ac_header in jpeglib.h
5712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5714 echo "$as_me:$LINENO: checking for $ac_header" >&5
5715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5721 else
5722 # Is the header compilable?
5723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5725 cat >conftest.$ac_ext <<_ACEOF
5726 #line $LINENO "configure"
5727 #include "confdefs.h"
5728 $ac_includes_default
5729 #include <$ac_header>
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_header_compiler=yes
5744 else
5745 echo "$as_me: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5747 ac_header_compiler=no
5749 rm -f conftest.$ac_objext conftest.$ac_ext
5750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5751 echo "${ECHO_T}$ac_header_compiler" >&6
5753 # Is the header present?
5754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5758 #include "confdefs.h"
5759 #include <$ac_header>
5760 _ACEOF
5761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5763 ac_status=$?
5764 egrep -v '^ *\+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } >/dev/null; then
5769 if test -s conftest.err; then
5770 ac_cpp_err=$ac_c_preproc_warn_flag
5771 else
5772 ac_cpp_err=
5774 else
5775 ac_cpp_err=yes
5777 if test -z "$ac_cpp_err"; then
5778 ac_header_preproc=yes
5779 else
5780 echo "$as_me: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5782 ac_header_preproc=no
5784 rm -f conftest.err conftest.$ac_ext
5785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5786 echo "${ECHO_T}$ac_header_preproc" >&6
5788 # So? What about this header?
5789 case $ac_header_compiler:$ac_header_preproc in
5790 yes:no )
5791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5795 no:yes )
5796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5802 esac
5803 echo "$as_me:$LINENO: checking for $ac_header" >&5
5804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 eval "$as_ac_Header=$ac_header_preproc"
5810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5815 cat >>confdefs.h <<_ACEOF
5816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5817 _ACEOF
5818 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5819 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5820 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 ac_check_lib_save_LIBS=$LIBS
5824 LIBS="-ljpeg $LIBS"
5825 cat >conftest.$ac_ext <<_ACEOF
5826 #line $LINENO "configure"
5827 #include "confdefs.h"
5829 /* Override any gcc2 internal prototype to avoid an error. */
5830 #ifdef __cplusplus
5831 extern "C"
5832 #endif
5833 /* We use char because int might match the return type of a gcc2
5834 builtin and then its argument prototype would still apply. */
5835 char jpeg_start_decompress ();
5836 #ifdef F77_DUMMY_MAIN
5837 # ifdef __cplusplus
5838 extern "C"
5839 # endif
5840 int F77_DUMMY_MAIN() { return 1; }
5841 #endif
5843 main ()
5845 jpeg_start_decompress ();
5847 return 0;
5849 _ACEOF
5850 rm -f conftest.$ac_objext conftest$ac_exeext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5852 (eval $ac_link) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -s conftest$ac_exeext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 ac_cv_lib_jpeg_jpeg_start_decompress=yes
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 cat conftest.$ac_ext >&5
5866 ac_cv_lib_jpeg_jpeg_start_decompress=no
5868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5869 LIBS=$ac_check_lib_save_LIBS
5871 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5872 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5873 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5875 cat >>confdefs.h <<\_ACEOF
5876 #define HAVE_LIBJPEG 1
5877 _ACEOF
5879 JPEGLIB="-ljpeg"
5886 done
5892 XFILES=""
5894 OPENGLFILES=""
5896 GLU32FILES=""
5897 if test "$have_x" = "yes"
5898 then
5899 XLIB="-lXext -lX11"
5900 ac_save_CPPFLAGS="$CPPFLAGS"
5901 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5904 for ac_header in X11/Xlib.h
5906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5908 echo "$as_me:$LINENO: checking for $ac_header" >&5
5909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5915 else
5916 # Is the header compilable?
5917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5919 cat >conftest.$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5921 #include "confdefs.h"
5922 $ac_includes_default
5923 #include <$ac_header>
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927 (eval $ac_compile) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -s conftest.$ac_objext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_header_compiler=yes
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5941 ac_header_compiler=no
5943 rm -f conftest.$ac_objext conftest.$ac_ext
5944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5945 echo "${ECHO_T}$ac_header_compiler" >&6
5947 # Is the header present?
5948 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5950 cat >conftest.$ac_ext <<_ACEOF
5951 #line $LINENO "configure"
5952 #include "confdefs.h"
5953 #include <$ac_header>
5954 _ACEOF
5955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5957 ac_status=$?
5958 egrep -v '^ *\+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } >/dev/null; then
5963 if test -s conftest.err; then
5964 ac_cpp_err=$ac_c_preproc_warn_flag
5965 else
5966 ac_cpp_err=
5968 else
5969 ac_cpp_err=yes
5971 if test -z "$ac_cpp_err"; then
5972 ac_header_preproc=yes
5973 else
5974 echo "$as_me: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5976 ac_header_preproc=no
5978 rm -f conftest.err conftest.$ac_ext
5979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5980 echo "${ECHO_T}$ac_header_preproc" >&6
5982 # So? What about this header?
5983 case $ac_header_compiler:$ac_header_preproc in
5984 yes:no )
5985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5989 no:yes )
5990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5996 esac
5997 echo "$as_me:$LINENO: checking for $ac_header" >&5
5998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 eval "$as_ac_Header=$ac_header_preproc"
6004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6009 cat >>confdefs.h <<_ACEOF
6010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6011 _ACEOF
6014 for ac_header in X11/XKBlib.h
6016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6018 echo "$as_me:$LINENO: checking for $ac_header" >&5
6019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6025 else
6026 # Is the header compilable?
6027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6029 cat >conftest.$ac_ext <<_ACEOF
6030 #line $LINENO "configure"
6031 #include "confdefs.h"
6032 $ac_includes_default
6033 #include <$ac_header>
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try='test -s conftest.$ac_objext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 ac_header_compiler=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 cat conftest.$ac_ext >&5
6051 ac_header_compiler=no
6053 rm -f conftest.$ac_objext conftest.$ac_ext
6054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6055 echo "${ECHO_T}$ac_header_compiler" >&6
6057 # Is the header present?
6058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6060 cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 #include "confdefs.h"
6063 #include <$ac_header>
6064 _ACEOF
6065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6067 ac_status=$?
6068 egrep -v '^ *\+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } >/dev/null; then
6073 if test -s conftest.err; then
6074 ac_cpp_err=$ac_c_preproc_warn_flag
6075 else
6076 ac_cpp_err=
6078 else
6079 ac_cpp_err=yes
6081 if test -z "$ac_cpp_err"; then
6082 ac_header_preproc=yes
6083 else
6084 echo "$as_me: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6086 ac_header_preproc=no
6088 rm -f conftest.err conftest.$ac_ext
6089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6090 echo "${ECHO_T}$ac_header_preproc" >&6
6092 # So? What about this header?
6093 case $ac_header_compiler:$ac_header_preproc in
6094 yes:no )
6095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6099 no:yes )
6100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6106 esac
6107 echo "$as_me:$LINENO: checking for $ac_header" >&5
6108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 eval "$as_ac_Header=$ac_header_preproc"
6114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6119 cat >>confdefs.h <<_ACEOF
6120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6121 _ACEOF
6122 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6123 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6124 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 ac_check_lib_save_LIBS=$LIBS
6128 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6129 cat >conftest.$ac_ext <<_ACEOF
6130 #line $LINENO "configure"
6131 #include "confdefs.h"
6133 /* Override any gcc2 internal prototype to avoid an error. */
6134 #ifdef __cplusplus
6135 extern "C"
6136 #endif
6137 /* We use char because int might match the return type of a gcc2
6138 builtin and then its argument prototype would still apply. */
6139 char XkbQueryExtension ();
6140 #ifdef F77_DUMMY_MAIN
6141 # ifdef __cplusplus
6142 extern "C"
6143 # endif
6144 int F77_DUMMY_MAIN() { return 1; }
6145 #endif
6147 main ()
6149 XkbQueryExtension ();
6151 return 0;
6153 _ACEOF
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156 (eval $ac_link) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -s conftest$ac_exeext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_lib_X11_XkbQueryExtension=yes
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6170 ac_cv_lib_X11_XkbQueryExtension=no
6172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6173 LIBS=$ac_check_lib_save_LIBS
6175 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6176 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6177 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6179 cat >>confdefs.h <<\_ACEOF
6180 #define HAVE_XKB 1
6181 _ACEOF
6186 else
6187 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6188 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6192 done
6196 for ac_header in X11/extensions/XShm.h
6198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6199 echo "$as_me:$LINENO: checking for $ac_header" >&5
6200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 cat >conftest.$ac_ext <<_ACEOF
6205 #line $LINENO "configure"
6206 #include "confdefs.h"
6207 #include <X11/Xlib.h>
6209 #include <$ac_header>
6210 _ACEOF
6211 rm -f conftest.$ac_objext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213 (eval $ac_compile) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 eval "$as_ac_Header=yes"
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 eval "$as_ac_Header=no"
6229 rm -f conftest.$ac_objext conftest.$ac_ext
6231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6234 cat >>confdefs.h <<_ACEOF
6235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6236 _ACEOF
6237 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6238 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6239 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 ac_check_lib_save_LIBS=$LIBS
6243 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6244 cat >conftest.$ac_ext <<_ACEOF
6245 #line $LINENO "configure"
6246 #include "confdefs.h"
6248 /* Override any gcc2 internal prototype to avoid an error. */
6249 #ifdef __cplusplus
6250 extern "C"
6251 #endif
6252 /* We use char because int might match the return type of a gcc2
6253 builtin and then its argument prototype would still apply. */
6254 char XShmQueryExtension ();
6255 #ifdef F77_DUMMY_MAIN
6256 # ifdef __cplusplus
6257 extern "C"
6258 # endif
6259 int F77_DUMMY_MAIN() { return 1; }
6260 #endif
6262 main ()
6264 XShmQueryExtension ();
6266 return 0;
6268 _ACEOF
6269 rm -f conftest.$ac_objext conftest$ac_exeext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271 (eval $ac_link) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try='test -s conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_lib_Xext_XShmQueryExtension=yes
6282 else
6283 echo "$as_me: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6285 ac_cv_lib_Xext_XShmQueryExtension=no
6287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6288 LIBS=$ac_check_lib_save_LIBS
6290 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6291 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6292 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6294 cat >>confdefs.h <<\_ACEOF
6295 #define HAVE_LIBXXSHM 1
6296 _ACEOF
6301 else
6302 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6303 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6306 done
6310 for ac_header in X11/extensions/shape.h
6312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6313 echo "$as_me:$LINENO: checking for $ac_header" >&5
6314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 cat >conftest.$ac_ext <<_ACEOF
6319 #line $LINENO "configure"
6320 #include "confdefs.h"
6321 #include <X11/Xlib.h>
6323 #include <$ac_header>
6324 _ACEOF
6325 rm -f conftest.$ac_objext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327 (eval $ac_compile) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 eval "$as_ac_Header=yes"
6338 else
6339 echo "$as_me: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6341 eval "$as_ac_Header=no"
6343 rm -f conftest.$ac_objext conftest.$ac_ext
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6350 _ACEOF
6351 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6352 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6353 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 ac_check_lib_save_LIBS=$LIBS
6357 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6358 cat >conftest.$ac_ext <<_ACEOF
6359 #line $LINENO "configure"
6360 #include "confdefs.h"
6362 /* Override any gcc2 internal prototype to avoid an error. */
6363 #ifdef __cplusplus
6364 extern "C"
6365 #endif
6366 /* We use char because int might match the return type of a gcc2
6367 builtin and then its argument prototype would still apply. */
6368 char XShapeQueryExtension ();
6369 #ifdef F77_DUMMY_MAIN
6370 # ifdef __cplusplus
6371 extern "C"
6372 # endif
6373 int F77_DUMMY_MAIN() { return 1; }
6374 #endif
6376 main ()
6378 XShapeQueryExtension ();
6380 return 0;
6382 _ACEOF
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6385 (eval $ac_link) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } &&
6389 { ac_try='test -s conftest$ac_exeext'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 ac_cv_lib_Xext_XShapeQueryExtension=yes
6396 else
6397 echo "$as_me: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6399 ac_cv_lib_Xext_XShapeQueryExtension=no
6401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6402 LIBS=$ac_check_lib_save_LIBS
6404 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6405 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6406 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6408 cat >>confdefs.h <<\_ACEOF
6409 #define HAVE_LIBXSHAPE 1
6410 _ACEOF
6415 else
6416 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6417 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6420 done
6424 for ac_header in X11/extensions/xf86dga.h
6426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6427 echo "$as_me:$LINENO: checking for $ac_header" >&5
6428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432 cat >conftest.$ac_ext <<_ACEOF
6433 #line $LINENO "configure"
6434 #include "confdefs.h"
6435 #include <X11/Xlib.h>
6437 #include <$ac_header>
6438 _ACEOF
6439 rm -f conftest.$ac_objext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -s conftest.$ac_objext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 (eval $ac_try) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 eval "$as_ac_Header=yes"
6452 else
6453 echo "$as_me: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6455 eval "$as_ac_Header=no"
6457 rm -f conftest.$ac_objext conftest.$ac_ext
6459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6462 cat >>confdefs.h <<_ACEOF
6463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6464 _ACEOF
6465 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6466 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6467 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470 ac_check_lib_save_LIBS=$LIBS
6471 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6472 $LIBS"
6473 cat >conftest.$ac_ext <<_ACEOF
6474 #line $LINENO "configure"
6475 #include "confdefs.h"
6477 /* Override any gcc2 internal prototype to avoid an error. */
6478 #ifdef __cplusplus
6479 extern "C"
6480 #endif
6481 /* We use char because int might match the return type of a gcc2
6482 builtin and then its argument prototype would still apply. */
6483 char XDGAQueryExtension ();
6484 #ifdef F77_DUMMY_MAIN
6485 # ifdef __cplusplus
6486 extern "C"
6487 # endif
6488 int F77_DUMMY_MAIN() { return 1; }
6489 #endif
6491 main ()
6493 XDGAQueryExtension ();
6495 return 0;
6497 _ACEOF
6498 rm -f conftest.$ac_objext conftest$ac_exeext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6500 (eval $ac_link) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } &&
6504 { ac_try='test -s conftest$ac_exeext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6514 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6517 LIBS=$ac_check_lib_save_LIBS
6519 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6520 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6521 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6523 cat >>confdefs.h <<\_ACEOF
6524 #define HAVE_LIBXXF86DGA2 1
6525 _ACEOF
6527 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6529 else
6530 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6531 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6532 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535 ac_check_lib_save_LIBS=$LIBS
6536 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6537 $LIBS"
6538 cat >conftest.$ac_ext <<_ACEOF
6539 #line $LINENO "configure"
6540 #include "confdefs.h"
6542 /* Override any gcc2 internal prototype to avoid an error. */
6543 #ifdef __cplusplus
6544 extern "C"
6545 #endif
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6548 char XF86DGAQueryExtension ();
6549 #ifdef F77_DUMMY_MAIN
6550 # ifdef __cplusplus
6551 extern "C"
6552 # endif
6553 int F77_DUMMY_MAIN() { return 1; }
6554 #endif
6556 main ()
6558 XF86DGAQueryExtension ();
6560 return 0;
6562 _ACEOF
6563 rm -f conftest.$ac_objext conftest$ac_exeext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6565 (eval $ac_link) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -s conftest$ac_exeext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6579 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6582 LIBS=$ac_check_lib_save_LIBS
6584 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6585 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6586 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6588 cat >>confdefs.h <<\_ACEOF
6589 #define HAVE_LIBXXF86DGA 1
6590 _ACEOF
6592 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6600 else
6601 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6602 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6605 done
6609 for ac_header in X11/extensions/xf86vmode.h
6611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6612 echo "$as_me:$LINENO: checking for $ac_header" >&5
6613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617 cat >conftest.$ac_ext <<_ACEOF
6618 #line $LINENO "configure"
6619 #include "confdefs.h"
6620 #include <X11/Xlib.h>
6622 #include <$ac_header>
6623 _ACEOF
6624 rm -f conftest.$ac_objext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626 (eval $ac_compile) 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } &&
6630 { ac_try='test -s conftest.$ac_objext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 eval "$as_ac_Header=yes"
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6640 eval "$as_ac_Header=no"
6642 rm -f conftest.$ac_objext conftest.$ac_ext
6644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6647 cat >>confdefs.h <<_ACEOF
6648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6649 _ACEOF
6650 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6651 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6652 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655 ac_check_lib_save_LIBS=$LIBS
6656 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6657 $LIBS"
6658 cat >conftest.$ac_ext <<_ACEOF
6659 #line $LINENO "configure"
6660 #include "confdefs.h"
6662 /* Override any gcc2 internal prototype to avoid an error. */
6663 #ifdef __cplusplus
6664 extern "C"
6665 #endif
6666 /* We use char because int might match the return type of a gcc2
6667 builtin and then its argument prototype would still apply. */
6668 char XF86VidModeQueryExtension ();
6669 #ifdef F77_DUMMY_MAIN
6670 # ifdef __cplusplus
6671 extern "C"
6672 # endif
6673 int F77_DUMMY_MAIN() { return 1; }
6674 #endif
6676 main ()
6678 XF86VidModeQueryExtension ();
6680 return 0;
6682 _ACEOF
6683 rm -f conftest.$ac_objext conftest$ac_exeext
6684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6685 (eval $ac_link) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -s conftest$ac_exeext'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 (eval $ac_try) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6699 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6702 LIBS=$ac_check_lib_save_LIBS
6704 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6705 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6706 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6708 cat >>confdefs.h <<\_ACEOF
6709 #define HAVE_LIBXXF86VM 1
6710 _ACEOF
6712 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6717 else
6718 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6719 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6722 done
6726 for ac_header in X11/extensions/Xvlib.h
6728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6729 echo "$as_me:$LINENO: checking for $ac_header" >&5
6730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 cat >conftest.$ac_ext <<_ACEOF
6735 #line $LINENO "configure"
6736 #include "confdefs.h"
6737 #include <X11/Xlib.h>
6739 #include <$ac_header>
6740 _ACEOF
6741 rm -f conftest.$ac_objext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6743 (eval $ac_compile) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } &&
6747 { ac_try='test -s conftest.$ac_objext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 eval "$as_ac_Header=yes"
6754 else
6755 echo "$as_me: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6757 eval "$as_ac_Header=no"
6759 rm -f conftest.$ac_objext conftest.$ac_ext
6761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6764 cat >>confdefs.h <<_ACEOF
6765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6766 _ACEOF
6767 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6768 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6769 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 ac_check_lib_save_LIBS=$LIBS
6773 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6774 $LIBS"
6775 cat >conftest.$ac_ext <<_ACEOF
6776 #line $LINENO "configure"
6777 #include "confdefs.h"
6779 /* Override any gcc2 internal prototype to avoid an error. */
6780 #ifdef __cplusplus
6781 extern "C"
6782 #endif
6783 /* We use char because int might match the return type of a gcc2
6784 builtin and then its argument prototype would still apply. */
6785 char XvShmCreateImage ();
6786 #ifdef F77_DUMMY_MAIN
6787 # ifdef __cplusplus
6788 extern "C"
6789 # endif
6790 int F77_DUMMY_MAIN() { return 1; }
6791 #endif
6793 main ()
6795 XvShmCreateImage ();
6797 return 0;
6799 _ACEOF
6800 rm -f conftest.$ac_objext conftest$ac_exeext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802 (eval $ac_link) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -s conftest$ac_exeext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_cv_lib_Xv_XvShmCreateImage=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6816 ac_cv_lib_Xv_XvShmCreateImage=no
6818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6819 LIBS=$ac_check_lib_save_LIBS
6821 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6822 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6823 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6825 cat >>confdefs.h <<\_ACEOF
6826 #define HAVE_XVIDEO 1
6827 _ACEOF
6829 X_PRE_LIBS="$X_PRE_LIBS -lXv"
6834 else
6835 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6836 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6839 done
6843 for ac_header in X11/extensions/Xrender.h
6845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6846 echo "$as_me:$LINENO: checking for $ac_header" >&5
6847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 cat >conftest.$ac_ext <<_ACEOF
6852 #line $LINENO "configure"
6853 #include "confdefs.h"
6854 #include <X11/Xlib.h>
6856 #include <$ac_header>
6857 _ACEOF
6858 rm -f conftest.$ac_objext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -s conftest.$ac_objext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6870 eval "$as_ac_Header=yes"
6871 else
6872 echo "$as_me: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6874 eval "$as_ac_Header=no"
6876 rm -f conftest.$ac_objext conftest.$ac_ext
6878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6881 cat >>confdefs.h <<_ACEOF
6882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6883 _ACEOF
6887 done
6893 done
6895 if test "x$enable_opengl" != "xno"
6896 then
6897 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6898 then
6899 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6900 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6901 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6902 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6903 { (exit 1); exit 1; }; }
6908 for ac_header in GL/gl.h GL/glx.h
6910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6912 echo "$as_me:$LINENO: checking for $ac_header" >&5
6913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6919 else
6920 # Is the header compilable?
6921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6923 cat >conftest.$ac_ext <<_ACEOF
6924 #line $LINENO "configure"
6925 #include "confdefs.h"
6926 $ac_includes_default
6927 #include <$ac_header>
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
6935 { ac_try='test -s conftest.$ac_objext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_header_compiler=yes
6942 else
6943 echo "$as_me: failed program was:" >&5
6944 cat conftest.$ac_ext >&5
6945 ac_header_compiler=no
6947 rm -f conftest.$ac_objext conftest.$ac_ext
6948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6949 echo "${ECHO_T}$ac_header_compiler" >&6
6951 # Is the header present?
6952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6954 cat >conftest.$ac_ext <<_ACEOF
6955 #line $LINENO "configure"
6956 #include "confdefs.h"
6957 #include <$ac_header>
6958 _ACEOF
6959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6961 ac_status=$?
6962 egrep -v '^ *\+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } >/dev/null; then
6967 if test -s conftest.err; then
6968 ac_cpp_err=$ac_c_preproc_warn_flag
6969 else
6970 ac_cpp_err=
6972 else
6973 ac_cpp_err=yes
6975 if test -z "$ac_cpp_err"; then
6976 ac_header_preproc=yes
6977 else
6978 echo "$as_me: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6980 ac_header_preproc=no
6982 rm -f conftest.err conftest.$ac_ext
6983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6984 echo "${ECHO_T}$ac_header_preproc" >&6
6986 # So? What about this header?
6987 case $ac_header_compiler:$ac_header_preproc in
6988 yes:no )
6989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6993 no:yes )
6994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7000 esac
7001 echo "$as_me:$LINENO: checking for $ac_header" >&5
7002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006 eval "$as_ac_Header=$ac_header_preproc"
7008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7013 cat >>confdefs.h <<_ACEOF
7014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7015 _ACEOF
7019 done
7021 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7022 then
7024 for ac_header in GL/glext.h
7026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7027 echo "$as_me:$LINENO: checking for $ac_header" >&5
7028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 cat >conftest.$ac_ext <<_ACEOF
7033 #line $LINENO "configure"
7034 #include "confdefs.h"
7035 #include <GL/glx.h>
7037 #include <$ac_header>
7038 _ACEOF
7039 rm -f conftest.$ac_objext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7041 (eval $ac_compile) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -s conftest.$ac_objext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 eval "$as_ac_Header=yes"
7052 else
7053 echo "$as_me: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 eval "$as_ac_Header=no"
7057 rm -f conftest.$ac_objext conftest.$ac_ext
7059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7062 cat >>confdefs.h <<_ACEOF
7063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7064 _ACEOF
7068 done
7070 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7071 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7072 if test "${wine_cv_opengl_version_OK+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 cat >conftest.$ac_ext <<_ACEOF
7076 #line $LINENO "configure"
7077 #include "confdefs.h"
7078 #include <GL/gl.h>
7079 #ifdef F77_DUMMY_MAIN
7080 # ifdef __cplusplus
7081 extern "C"
7082 # endif
7083 int F77_DUMMY_MAIN() { return 1; }
7084 #endif
7086 main ()
7088 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7090 return 0;
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -s conftest.$ac_objext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 wine_cv_opengl_version_OK="yes"
7106 else
7107 echo "$as_me: failed program was:" >&5
7108 cat conftest.$ac_ext >&5
7109 wine_cv_opengl_version_OK="no"
7112 rm -f conftest.$ac_objext conftest.$ac_ext
7115 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7116 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7118 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
7119 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7120 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 saved_libs=$LIBS
7124 LIBS="$X_LIBS -lGL"
7125 cat >conftest.$ac_ext <<_ACEOF
7126 #line $LINENO "configure"
7127 #include "confdefs.h"
7129 #ifdef F77_DUMMY_MAIN
7130 # ifdef __cplusplus
7131 extern "C"
7132 # endif
7133 int F77_DUMMY_MAIN() { return 1; }
7134 #endif
7136 main ()
7138 pthread_getspecific();
7140 return 0;
7142 _ACEOF
7143 rm -f conftest.$ac_objext conftest$ac_exeext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7145 (eval $ac_link) 2>&5
7146 ac_status=$?
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
7149 { ac_try='test -s conftest$ac_exeext'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; }; then
7155 wine_cv_opengl_version_threadsafe="yes"
7156 else
7157 echo "$as_me: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7159 wine_cv_opengl_version_threadsafe="no"
7161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7162 LIBS=$saved_libs
7165 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
7166 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
7168 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
7169 then
7170 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7171 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7172 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 ac_check_lib_save_LIBS=$LIBS
7176 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7177 cat >conftest.$ac_ext <<_ACEOF
7178 #line $LINENO "configure"
7179 #include "confdefs.h"
7181 /* Override any gcc2 internal prototype to avoid an error. */
7182 #ifdef __cplusplus
7183 extern "C"
7184 #endif
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7187 char glXCreateContext ();
7188 #ifdef F77_DUMMY_MAIN
7189 # ifdef __cplusplus
7190 extern "C"
7191 # endif
7192 int F77_DUMMY_MAIN() { return 1; }
7193 #endif
7195 main ()
7197 glXCreateContext ();
7199 return 0;
7201 _ACEOF
7202 rm -f conftest.$ac_objext conftest$ac_exeext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7204 (eval $ac_link) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } &&
7208 { ac_try='test -s conftest$ac_exeext'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 (eval $ac_try) 2>&5
7211 ac_status=$?
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7214 ac_cv_lib_GL_glXCreateContext=yes
7215 else
7216 echo "$as_me: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7218 ac_cv_lib_GL_glXCreateContext=no
7220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7221 LIBS=$ac_check_lib_save_LIBS
7223 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7224 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7225 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7226 X_PRE_LIBS="$X_PRE_LIBS -lGL"
7231 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7232 then
7233 OPENGLFILES='$(OPENGLFILES)'
7235 cat >>confdefs.h <<\_ACEOF
7236 #define HAVE_OPENGL 1
7237 _ACEOF
7240 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7241 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7242 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245 ac_check_lib_save_LIBS=$LIBS
7246 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7247 cat >conftest.$ac_ext <<_ACEOF
7248 #line $LINENO "configure"
7249 #include "confdefs.h"
7251 /* Override any gcc2 internal prototype to avoid an error. */
7252 #ifdef __cplusplus
7253 extern "C"
7254 #endif
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7257 char glXGetProcAddressARB ();
7258 #ifdef F77_DUMMY_MAIN
7259 # ifdef __cplusplus
7260 extern "C"
7261 # endif
7262 int F77_DUMMY_MAIN() { return 1; }
7263 #endif
7265 main ()
7267 glXGetProcAddressARB ();
7269 return 0;
7271 _ACEOF
7272 rm -f conftest.$ac_objext conftest$ac_exeext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7274 (eval $ac_link) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try='test -s conftest$ac_exeext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_cv_lib_GL_glXGetProcAddressARB=yes
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7288 ac_cv_lib_GL_glXGetProcAddressARB=no
7290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7291 LIBS=$ac_check_lib_save_LIBS
7293 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7294 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7295 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7297 cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_GLX_GETPROCADDRESS 1
7299 _ACEOF
7304 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7305 then
7306 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7307 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7308 if test "${wine_cv_extension_prototypes+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311 cat >conftest.$ac_ext <<_ACEOF
7312 #line $LINENO "configure"
7313 #include "confdefs.h"
7314 #include <GL/gl.h>
7315 #ifdef HAVE_GL_GLEXT_H
7316 # include <GL/glext.h>
7317 #endif
7319 #ifdef F77_DUMMY_MAIN
7320 # ifdef __cplusplus
7321 extern "C"
7322 # endif
7323 int F77_DUMMY_MAIN() { return 1; }
7324 #endif
7326 main ()
7328 PFNGLCOLORTABLEEXTPROC test_proc;
7330 return 0;
7332 _ACEOF
7333 rm -f conftest.$ac_objext
7334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335 (eval $ac_compile) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
7339 { ac_try='test -s conftest.$ac_objext'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; }; then
7345 wine_cv_extension_prototypes="yes"
7346 else
7347 echo "$as_me: failed program was:" >&5
7348 cat conftest.$ac_ext >&5
7349 wine_cv_extension_prototypes="no"
7352 rm -f conftest.$ac_objext conftest.$ac_ext
7355 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7356 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7357 if test "$wine_cv_extension_prototypes" = "yes"
7358 then
7360 cat >>confdefs.h <<\_ACEOF
7361 #define HAVE_GLEXT_PROTOTYPES 1
7362 _ACEOF
7368 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7369 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7370 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373 ac_check_lib_save_LIBS=$LIBS
7374 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7375 $LIBS"
7376 cat >conftest.$ac_ext <<_ACEOF
7377 #line $LINENO "configure"
7378 #include "confdefs.h"
7380 /* Override any gcc2 internal prototype to avoid an error. */
7381 #ifdef __cplusplus
7382 extern "C"
7383 #endif
7384 /* We use char because int might match the return type of a gcc2
7385 builtin and then its argument prototype would still apply. */
7386 char gluLookAt ();
7387 #ifdef F77_DUMMY_MAIN
7388 # ifdef __cplusplus
7389 extern "C"
7390 # endif
7391 int F77_DUMMY_MAIN() { return 1; }
7392 #endif
7394 main ()
7396 gluLookAt ();
7398 return 0;
7400 _ACEOF
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -s conftest$ac_exeext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_lib_GLU_gluLookAt=yes
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 ac_cv_lib_GLU_gluLookAt=no
7419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7420 LIBS=$ac_check_lib_save_LIBS
7422 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7423 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7424 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7425 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7426 GLU32FILES='$(GLU32FILES)'
7434 CPPFLAGS="$ac_save_CPPFLAGS"
7435 XFILES='$(XFILES)'
7436 else
7437 XLIB=""
7438 X_CFLAGS=""
7439 X_LIBS=""
7442 CURSESLIBS=""
7443 if test "x$with_curses" != "xno"
7444 then
7446 for ac_header in ncurses.h
7448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7450 echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7457 else
7458 # Is the header compilable?
7459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7461 cat >conftest.$ac_ext <<_ACEOF
7462 #line $LINENO "configure"
7463 #include "confdefs.h"
7464 $ac_includes_default
7465 #include <$ac_header>
7466 _ACEOF
7467 rm -f conftest.$ac_objext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469 (eval $ac_compile) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 (eval $ac_try) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_header_compiler=yes
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 cat conftest.$ac_ext >&5
7483 ac_header_compiler=no
7485 rm -f conftest.$ac_objext conftest.$ac_ext
7486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7487 echo "${ECHO_T}$ac_header_compiler" >&6
7489 # Is the header present?
7490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7492 cat >conftest.$ac_ext <<_ACEOF
7493 #line $LINENO "configure"
7494 #include "confdefs.h"
7495 #include <$ac_header>
7496 _ACEOF
7497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7499 ac_status=$?
7500 egrep -v '^ *\+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } >/dev/null; then
7505 if test -s conftest.err; then
7506 ac_cpp_err=$ac_c_preproc_warn_flag
7507 else
7508 ac_cpp_err=
7510 else
7511 ac_cpp_err=yes
7513 if test -z "$ac_cpp_err"; then
7514 ac_header_preproc=yes
7515 else
7516 echo "$as_me: failed program was:" >&5
7517 cat conftest.$ac_ext >&5
7518 ac_header_preproc=no
7520 rm -f conftest.err conftest.$ac_ext
7521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7522 echo "${ECHO_T}$ac_header_preproc" >&6
7524 # So? What about this header?
7525 case $ac_header_compiler:$ac_header_preproc in
7526 yes:no )
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7531 no:yes )
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7538 esac
7539 echo "$as_me:$LINENO: checking for $ac_header" >&5
7540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544 eval "$as_ac_Header=$ac_header_preproc"
7546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7551 cat >>confdefs.h <<_ACEOF
7552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7553 _ACEOF
7554 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7555 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7556 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559 ac_check_lib_save_LIBS=$LIBS
7560 LIBS="-lncurses $LIBS"
7561 cat >conftest.$ac_ext <<_ACEOF
7562 #line $LINENO "configure"
7563 #include "confdefs.h"
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 #ifdef __cplusplus
7567 extern "C"
7568 #endif
7569 /* We use char because int might match the return type of a gcc2
7570 builtin and then its argument prototype would still apply. */
7571 char waddch ();
7572 #ifdef F77_DUMMY_MAIN
7573 # ifdef __cplusplus
7574 extern "C"
7575 # endif
7576 int F77_DUMMY_MAIN() { return 1; }
7577 #endif
7579 main ()
7581 waddch ();
7583 return 0;
7585 _ACEOF
7586 rm -f conftest.$ac_objext conftest$ac_exeext
7587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7588 (eval $ac_link) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -s conftest$ac_exeext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 ac_cv_lib_ncurses_waddch=yes
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 cat conftest.$ac_ext >&5
7602 ac_cv_lib_ncurses_waddch=no
7604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7605 LIBS=$ac_check_lib_save_LIBS
7607 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7608 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7609 if test $ac_cv_lib_ncurses_waddch = yes; then
7611 cat >>confdefs.h <<\_ACEOF
7612 #define HAVE_LIBNCURSES 1
7613 _ACEOF
7615 CURSESLIBS="-lncurses"
7616 else
7618 for ac_header in curses.h
7620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7622 echo "$as_me:$LINENO: checking for $ac_header" >&5
7623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7629 else
7630 # Is the header compilable?
7631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7633 cat >conftest.$ac_ext <<_ACEOF
7634 #line $LINENO "configure"
7635 #include "confdefs.h"
7636 $ac_includes_default
7637 #include <$ac_header>
7638 _ACEOF
7639 rm -f conftest.$ac_objext
7640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7641 (eval $ac_compile) 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } &&
7645 { ac_try='test -s conftest.$ac_objext'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 ac_header_compiler=yes
7652 else
7653 echo "$as_me: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7655 ac_header_compiler=no
7657 rm -f conftest.$ac_objext conftest.$ac_ext
7658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7659 echo "${ECHO_T}$ac_header_compiler" >&6
7661 # Is the header present?
7662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7664 cat >conftest.$ac_ext <<_ACEOF
7665 #line $LINENO "configure"
7666 #include "confdefs.h"
7667 #include <$ac_header>
7668 _ACEOF
7669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7671 ac_status=$?
7672 egrep -v '^ *\+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } >/dev/null; then
7677 if test -s conftest.err; then
7678 ac_cpp_err=$ac_c_preproc_warn_flag
7679 else
7680 ac_cpp_err=
7682 else
7683 ac_cpp_err=yes
7685 if test -z "$ac_cpp_err"; then
7686 ac_header_preproc=yes
7687 else
7688 echo "$as_me: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7690 ac_header_preproc=no
7692 rm -f conftest.err conftest.$ac_ext
7693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7694 echo "${ECHO_T}$ac_header_preproc" >&6
7696 # So? What about this header?
7697 case $ac_header_compiler:$ac_header_preproc in
7698 yes:no )
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7703 no:yes )
7704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7710 esac
7711 echo "$as_me:$LINENO: checking for $ac_header" >&5
7712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716 eval "$as_ac_Header=$ac_header_preproc"
7718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7723 cat >>confdefs.h <<_ACEOF
7724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7725 _ACEOF
7726 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7727 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7728 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731 ac_check_lib_save_LIBS=$LIBS
7732 LIBS="-lcurses $LIBS"
7733 cat >conftest.$ac_ext <<_ACEOF
7734 #line $LINENO "configure"
7735 #include "confdefs.h"
7737 /* Override any gcc2 internal prototype to avoid an error. */
7738 #ifdef __cplusplus
7739 extern "C"
7740 #endif
7741 /* We use char because int might match the return type of a gcc2
7742 builtin and then its argument prototype would still apply. */
7743 char waddch ();
7744 #ifdef F77_DUMMY_MAIN
7745 # ifdef __cplusplus
7746 extern "C"
7747 # endif
7748 int F77_DUMMY_MAIN() { return 1; }
7749 #endif
7751 main ()
7753 waddch ();
7755 return 0;
7757 _ACEOF
7758 rm -f conftest.$ac_objext conftest$ac_exeext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7760 (eval $ac_link) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -s conftest$ac_exeext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_cv_lib_curses_waddch=yes
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7774 ac_cv_lib_curses_waddch=no
7776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7777 LIBS=$ac_check_lib_save_LIBS
7779 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7780 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7781 if test $ac_cv_lib_curses_waddch = yes; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_LIBCURSES 1
7785 _ACEOF
7787 CURSESLIBS="-lcurses"
7792 done
7798 done
7800 saved_libs="$LIBS"
7801 LIBS="$CURSESLIBS $LIBS"
7804 for ac_func in getbkgd resizeterm
7806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7807 echo "$as_me:$LINENO: checking for $ac_func" >&5
7808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7809 if eval "test \"\${$as_ac_var+set}\" = set"; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812 cat >conftest.$ac_ext <<_ACEOF
7813 #line $LINENO "configure"
7814 #include "confdefs.h"
7815 /* System header to define __stub macros and hopefully few prototypes,
7816 which can conflict with char $ac_func (); below. */
7817 #include <assert.h>
7818 /* Override any gcc2 internal prototype to avoid an error. */
7819 #ifdef __cplusplus
7820 extern "C"
7821 #endif
7822 /* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7824 char $ac_func ();
7825 char (*f) ();
7827 #ifdef F77_DUMMY_MAIN
7828 # ifdef __cplusplus
7829 extern "C"
7830 # endif
7831 int F77_DUMMY_MAIN() { return 1; }
7832 #endif
7834 main ()
7836 /* The GNU C library defines this for functions which it implements
7837 to always fail with ENOSYS. Some functions are actually named
7838 something starting with __ and the normal name is an alias. */
7839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7840 choke me
7841 #else
7842 f = $ac_func;
7843 #endif
7846 return 0;
7848 _ACEOF
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851 (eval $ac_link) 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -s conftest$ac_exeext'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 (eval $ac_try) 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7861 eval "$as_ac_var=yes"
7862 else
7863 echo "$as_me: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7865 eval "$as_ac_var=no"
7867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7871 if test `eval echo '${'$as_ac_var'}'` = yes; then
7872 cat >>confdefs.h <<_ACEOF
7873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7874 _ACEOF
7877 done
7879 LIBS="$saved_libs"
7883 CUPSLIBS=""
7884 wine_cv_warn_cups_h=no
7885 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7886 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7887 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890 ac_check_lib_save_LIBS=$LIBS
7891 LIBS="-lcups $LIBS"
7892 cat >conftest.$ac_ext <<_ACEOF
7893 #line $LINENO "configure"
7894 #include "confdefs.h"
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 #ifdef __cplusplus
7898 extern "C"
7899 #endif
7900 /* We use char because int might match the return type of a gcc2
7901 builtin and then its argument prototype would still apply. */
7902 char cupsGetPPD ();
7903 #ifdef F77_DUMMY_MAIN
7904 # ifdef __cplusplus
7905 extern "C"
7906 # endif
7907 int F77_DUMMY_MAIN() { return 1; }
7908 #endif
7910 main ()
7912 cupsGetPPD ();
7914 return 0;
7916 _ACEOF
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 ac_cv_lib_cups_cupsGetPPD=yes
7930 else
7931 echo "$as_me: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7933 ac_cv_lib_cups_cupsGetPPD=no
7935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7936 LIBS=$ac_check_lib_save_LIBS
7938 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
7939 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7940 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
7941 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7942 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7943 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7944 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7948 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7949 else
7950 # Is the header compilable?
7951 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7952 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7953 cat >conftest.$ac_ext <<_ACEOF
7954 #line $LINENO "configure"
7955 #include "confdefs.h"
7956 $ac_includes_default
7957 #include <cups/cups.h>
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -s conftest.$ac_objext'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 (eval $ac_try) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 ac_header_compiler=yes
7972 else
7973 echo "$as_me: failed program was:" >&5
7974 cat conftest.$ac_ext >&5
7975 ac_header_compiler=no
7977 rm -f conftest.$ac_objext conftest.$ac_ext
7978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7979 echo "${ECHO_T}$ac_header_compiler" >&6
7981 # Is the header present?
7982 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7983 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7986 #include "confdefs.h"
7987 #include <cups/cups.h>
7988 _ACEOF
7989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7991 ac_status=$?
7992 egrep -v '^ *\+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } >/dev/null; then
7997 if test -s conftest.err; then
7998 ac_cpp_err=$ac_c_preproc_warn_flag
7999 else
8000 ac_cpp_err=
8002 else
8003 ac_cpp_err=yes
8005 if test -z "$ac_cpp_err"; then
8006 ac_header_preproc=yes
8007 else
8008 echo "$as_me: failed program was:" >&5
8009 cat conftest.$ac_ext >&5
8010 ac_header_preproc=no
8012 rm -f conftest.err conftest.$ac_ext
8013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8014 echo "${ECHO_T}$ac_header_preproc" >&6
8016 # So? What about this header?
8017 case $ac_header_compiler:$ac_header_preproc in
8018 yes:no )
8019 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
8020 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8021 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8022 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8023 no:yes )
8024 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
8025 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
8026 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
8027 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
8028 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8029 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8030 esac
8031 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
8032 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
8033 if test "${ac_cv_header_cups_cups_h+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036 ac_cv_header_cups_cups_h=$ac_header_preproc
8038 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
8039 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
8042 if test $ac_cv_header_cups_cups_h = yes; then
8044 cat >>confdefs.h <<\_ACEOF
8045 #define HAVE_CUPS 1
8046 _ACEOF
8048 CUPSLIBS="-lcups"
8049 else
8050 wine_cv_warn_cups_h=yes
8059 # Extract the first word of "sane-config", so it can be a program name with args.
8060 set dummy sane-config; ac_word=$2
8061 echo "$as_me:$LINENO: checking for $ac_word" >&5
8062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8063 if test "${ac_cv_prog_sane_devel+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066 if test -n "$sane_devel"; then
8067 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_sane_devel="sane-config"
8077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8080 done
8081 done
8083 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8086 sane_devel=$ac_cv_prog_sane_devel
8087 if test -n "$sane_devel"; then
8088 echo "$as_me:$LINENO: result: $sane_devel" >&5
8089 echo "${ECHO_T}$sane_devel" >&6
8090 else
8091 echo "$as_me:$LINENO: result: no" >&5
8092 echo "${ECHO_T}no" >&6
8095 if test "$sane_devel" = "no"
8096 then
8097 SANELIBS=""
8098 SANEINCL=""
8099 else
8100 SANELIBS="`$sane_devel --libs`"
8101 SANEINCL="`$sane_devel --cflags`"
8102 ac_save_CPPFLAGS="$CPPFLAGS"
8103 ac_save_LIBS="$LIBS"
8104 CPPFLAGS="$CPPFLAGS $SANEINCL"
8105 LIBS="$LIBS $SANELIBS"
8106 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8107 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8108 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8109 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8113 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8114 else
8115 # Is the header compilable?
8116 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8117 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 #include "confdefs.h"
8121 $ac_includes_default
8122 #include <sane/sane.h>
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_header_compiler=yes
8137 else
8138 echo "$as_me: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 ac_header_compiler=no
8142 rm -f conftest.$ac_objext conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8144 echo "${ECHO_T}$ac_header_compiler" >&6
8146 # Is the header present?
8147 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8148 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8149 cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 #include "confdefs.h"
8152 #include <sane/sane.h>
8153 _ACEOF
8154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8156 ac_status=$?
8157 egrep -v '^ *\+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } >/dev/null; then
8162 if test -s conftest.err; then
8163 ac_cpp_err=$ac_c_preproc_warn_flag
8164 else
8165 ac_cpp_err=
8167 else
8168 ac_cpp_err=yes
8170 if test -z "$ac_cpp_err"; then
8171 ac_header_preproc=yes
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8175 ac_header_preproc=no
8177 rm -f conftest.err conftest.$ac_ext
8178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8179 echo "${ECHO_T}$ac_header_preproc" >&6
8181 # So? What about this header?
8182 case $ac_header_compiler:$ac_header_preproc in
8183 yes:no )
8184 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8185 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8187 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8188 no:yes )
8189 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8190 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8192 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8194 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8195 esac
8196 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8197 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8198 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201 ac_cv_header_sane_sane_h=$ac_header_preproc
8203 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8204 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8207 if test $ac_cv_header_sane_sane_h = yes; then
8208 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8209 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8210 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213 ac_check_lib_save_LIBS=$LIBS
8214 LIBS="-lsane $LIBS"
8215 cat >conftest.$ac_ext <<_ACEOF
8216 #line $LINENO "configure"
8217 #include "confdefs.h"
8219 /* Override any gcc2 internal prototype to avoid an error. */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 /* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8225 char sane_open ();
8226 #ifdef F77_DUMMY_MAIN
8227 # ifdef __cplusplus
8228 extern "C"
8229 # endif
8230 int F77_DUMMY_MAIN() { return 1; }
8231 #endif
8233 main ()
8235 sane_open ();
8237 return 0;
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242 (eval $ac_link) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -s conftest$ac_exeext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 (eval $ac_try) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 ac_cv_lib_sane_sane_open=yes
8253 else
8254 echo "$as_me: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8256 ac_cv_lib_sane_sane_open=no
8258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8259 LIBS=$ac_check_lib_save_LIBS
8261 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8262 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8263 if test $ac_cv_lib_sane_sane_open = yes; then
8265 cat >>confdefs.h <<\_ACEOF
8266 #define HAVE_SANE 1
8267 _ACEOF
8269 else
8270 SANELIBS=""
8271 SANEINCL=""
8274 else
8275 SANELIBS=""
8276 SANEINCL=""
8280 LIBS="$ac_save_LIBS"
8281 CPPFLAGS="$ac_save_CPPFLAGS"
8286 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8287 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8288 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291 ac_check_lib_save_LIBS=$LIBS
8292 LIBS="-lfreetype $X_LIBS $LIBS"
8293 cat >conftest.$ac_ext <<_ACEOF
8294 #line $LINENO "configure"
8295 #include "confdefs.h"
8297 /* Override any gcc2 internal prototype to avoid an error. */
8298 #ifdef __cplusplus
8299 extern "C"
8300 #endif
8301 /* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8303 char FT_Init_FreeType ();
8304 #ifdef F77_DUMMY_MAIN
8305 # ifdef __cplusplus
8306 extern "C"
8307 # endif
8308 int F77_DUMMY_MAIN() { return 1; }
8309 #endif
8311 main ()
8313 FT_Init_FreeType ();
8315 return 0;
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_lib_freetype_FT_Init_FreeType=yes
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8334 ac_cv_lib_freetype_FT_Init_FreeType=no
8336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8337 LIBS=$ac_check_lib_save_LIBS
8339 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8340 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8341 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8342 ft_lib=yes
8343 else
8344 ft_lib=no
8347 if test "$ft_lib" = "no"
8348 then
8349 FREETYPEINCL=""
8350 wine_cv_msg_freetype=no
8351 else
8352 # Extract the first word of "freetype-config", so it can be a program name with args.
8353 set dummy freetype-config; ac_word=$2
8354 echo "$as_me:$LINENO: checking for $ac_word" >&5
8355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8356 if test "${ac_cv_prog_ft_devel+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359 if test -n "$ft_devel"; then
8360 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_ft_devel="freetype-config"
8370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8373 done
8374 done
8376 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8379 ft_devel=$ac_cv_prog_ft_devel
8380 if test -n "$ft_devel"; then
8381 echo "$as_me:$LINENO: result: $ft_devel" >&5
8382 echo "${ECHO_T}$ft_devel" >&6
8383 else
8384 echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6
8388 if test "$ft_devel" = "no"
8389 then
8390 # Extract the first word of "freetype2-config", so it can be a program name with args.
8391 set dummy freetype2-config; ac_word=$2
8392 echo "$as_me:$LINENO: checking for $ac_word" >&5
8393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8394 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 if test -n "$ft_devel2"; then
8398 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8399 else
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 for as_dir in $PATH
8403 IFS=$as_save_IFS
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8407 ac_cv_prog_ft_devel2="freetype2-config"
8408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 break 2
8411 done
8412 done
8414 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8417 ft_devel2=$ac_cv_prog_ft_devel2
8418 if test -n "$ft_devel2"; then
8419 echo "$as_me:$LINENO: result: $ft_devel2" >&5
8420 echo "${ECHO_T}$ft_devel2" >&6
8421 else
8422 echo "$as_me:$LINENO: result: no" >&5
8423 echo "${ECHO_T}no" >&6
8426 if test "$ft_devel2" = "freetype2-config"
8427 then
8428 ft_devel=$ft_devel2
8431 if test "$ft_devel" = "no"
8432 then
8433 FREETYPEINCL=""
8434 wine_cv_msg_freetype=yes
8435 else
8436 FREETYPEINCL=`$ft_devel --cflags`
8437 ac_save_CPPFLAGS="$CPPFLAGS"
8438 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8447 for ac_header in freetype/freetype.h \
8448 freetype/ftglyph.h \
8449 freetype/tttables.h \
8450 freetype/ftnames.h \
8451 freetype/ftsnames.h \
8452 freetype/ttnameid.h \
8453 freetype/ftoutln.h \
8454 freetype/internal/sfnt.h
8456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8458 echo "$as_me:$LINENO: checking for $ac_header" >&5
8459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8465 else
8466 # Is the header compilable?
8467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8469 cat >conftest.$ac_ext <<_ACEOF
8470 #line $LINENO "configure"
8471 #include "confdefs.h"
8472 $ac_includes_default
8473 #include <$ac_header>
8474 _ACEOF
8475 rm -f conftest.$ac_objext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8477 (eval $ac_compile) 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -s conftest.$ac_objext'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
8487 ac_header_compiler=yes
8488 else
8489 echo "$as_me: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8491 ac_header_compiler=no
8493 rm -f conftest.$ac_objext conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8495 echo "${ECHO_T}$ac_header_compiler" >&6
8497 # Is the header present?
8498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8500 cat >conftest.$ac_ext <<_ACEOF
8501 #line $LINENO "configure"
8502 #include "confdefs.h"
8503 #include <$ac_header>
8504 _ACEOF
8505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8507 ac_status=$?
8508 egrep -v '^ *\+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } >/dev/null; then
8513 if test -s conftest.err; then
8514 ac_cpp_err=$ac_c_preproc_warn_flag
8515 else
8516 ac_cpp_err=
8518 else
8519 ac_cpp_err=yes
8521 if test -z "$ac_cpp_err"; then
8522 ac_header_preproc=yes
8523 else
8524 echo "$as_me: failed program was:" >&5
8525 cat conftest.$ac_ext >&5
8526 ac_header_preproc=no
8528 rm -f conftest.err conftest.$ac_ext
8529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8530 echo "${ECHO_T}$ac_header_preproc" >&6
8532 # So? What about this header?
8533 case $ac_header_compiler:$ac_header_preproc in
8534 yes:no )
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8539 no:yes )
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8546 esac
8547 echo "$as_me:$LINENO: checking for $ac_header" >&5
8548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552 eval "$as_ac_Header=$ac_header_preproc"
8554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8559 cat >>confdefs.h <<_ACEOF
8560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561 _ACEOF
8565 done
8567 cat >conftest.$ac_ext <<_ACEOF
8568 #line $LINENO "configure"
8569 #include "confdefs.h"
8570 #include <ft2build.h>
8571 #include <freetype/fttrigon.h>
8572 _ACEOF
8573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8575 ac_status=$?
8576 egrep -v '^ *\+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } >/dev/null; then
8581 if test -s conftest.err; then
8582 ac_cpp_err=$ac_c_preproc_warn_flag
8583 else
8584 ac_cpp_err=
8586 else
8587 ac_cpp_err=yes
8589 if test -z "$ac_cpp_err"; then
8591 cat >>confdefs.h <<\_ACEOF
8592 #define HAVE_FREETYPE_FTTRIGON_H 1
8593 _ACEOF
8595 wine_cv_fttrigon=yes
8596 else
8597 echo "$as_me: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 wine_cv_fttrigon=no
8601 rm -f conftest.err conftest.$ac_ext
8602 CPPFLAGS="$ac_save_CPPFLAGS"
8603 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8604 then
8606 cat >>confdefs.h <<\_ACEOF
8607 #define HAVE_FREETYPE 1
8608 _ACEOF
8610 wine_cv_msg_freetype=no
8611 else
8612 FREETYPEINCL=""
8613 wine_cv_msg_freetype=yes
8619 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8620 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8621 if test "${ac_cv_c_ppdev+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624 cat >conftest.$ac_ext <<_ACEOF
8625 #line $LINENO "configure"
8626 #include "confdefs.h"
8627 #include <linux/ppdev.h>
8628 #ifdef F77_DUMMY_MAIN
8629 # ifdef __cplusplus
8630 extern "C"
8631 # endif
8632 int F77_DUMMY_MAIN() { return 1; }
8633 #endif
8635 main ()
8637 ioctl (1,PPCLAIM,0)
8639 return 0;
8641 _ACEOF
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_cv_c_ppdev="yes"
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 ac_cv_c_ppdev="no"
8660 rm -f conftest.$ac_objext conftest.$ac_ext
8663 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8664 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8665 if test "$ac_cv_c_ppdev" = "yes"
8666 then
8668 cat >>confdefs.h <<\_ACEOF
8669 #define HAVE_PPDEV 1
8670 _ACEOF
8674 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8675 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8676 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679 cat >conftest.$ac_ext <<_ACEOF
8680 #line $LINENO "configure"
8681 #include "confdefs.h"
8682 #include <sys/socket.h>
8683 #include <netipx/ipx.h>
8684 #ifdef F77_DUMMY_MAIN
8685 # ifdef __cplusplus
8686 extern "C"
8687 # endif
8688 int F77_DUMMY_MAIN() { return 1; }
8689 #endif
8691 main ()
8693 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8695 return 0;
8697 _ACEOF
8698 rm -f conftest.$ac_objext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700 (eval $ac_compile) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_c_ipx_gnu="yes"
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8714 ac_cv_c_ipx_gnu="no"
8716 rm -f conftest.$ac_objext conftest.$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8720 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8721 if test "$ac_cv_c_ipx_gnu" = "yes"
8722 then
8724 cat >>confdefs.h <<\_ACEOF
8725 #define HAVE_IPX_GNU 1
8726 _ACEOF
8730 if test "$ac_cv_c_ipx_gnu" = "no"
8731 then
8732 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8733 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8734 if test "${ac_cv_c_ipx_linux+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737 cat >conftest.$ac_ext <<_ACEOF
8738 #line $LINENO "configure"
8739 #include "confdefs.h"
8740 #include <sys/socket.h>
8741 #include <asm/types.h>
8742 #include <linux/ipx.h>
8743 #ifdef F77_DUMMY_MAIN
8744 # ifdef __cplusplus
8745 extern "C"
8746 # endif
8747 int F77_DUMMY_MAIN() { return 1; }
8748 #endif
8750 main ()
8752 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8754 return 0;
8756 _ACEOF
8757 rm -f conftest.$ac_objext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8759 (eval $ac_compile) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -s conftest.$ac_objext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_c_ipx_linux="yes"
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 cat conftest.$ac_ext >&5
8773 ac_cv_c_ipx_linux="no"
8775 rm -f conftest.$ac_objext conftest.$ac_ext
8778 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8779 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8780 if test "$ac_cv_c_ipx_linux" = "yes"
8781 then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define HAVE_IPX_LINUX 1
8785 _ACEOF
8793 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8797 echo "$as_me:$LINENO: checking for $ac_header" >&5
8798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8804 else
8805 # Is the header compilable?
8806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8808 cat >conftest.$ac_ext <<_ACEOF
8809 #line $LINENO "configure"
8810 #include "confdefs.h"
8811 $ac_includes_default
8812 #include <$ac_header>
8813 _ACEOF
8814 rm -f conftest.$ac_objext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816 (eval $ac_compile) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -s conftest.$ac_objext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 ac_header_compiler=yes
8827 else
8828 echo "$as_me: failed program was:" >&5
8829 cat conftest.$ac_ext >&5
8830 ac_header_compiler=no
8832 rm -f conftest.$ac_objext conftest.$ac_ext
8833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8834 echo "${ECHO_T}$ac_header_compiler" >&6
8836 # Is the header present?
8837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8839 cat >conftest.$ac_ext <<_ACEOF
8840 #line $LINENO "configure"
8841 #include "confdefs.h"
8842 #include <$ac_header>
8843 _ACEOF
8844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8846 ac_status=$?
8847 egrep -v '^ *\+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } >/dev/null; then
8852 if test -s conftest.err; then
8853 ac_cpp_err=$ac_c_preproc_warn_flag
8854 else
8855 ac_cpp_err=
8857 else
8858 ac_cpp_err=yes
8860 if test -z "$ac_cpp_err"; then
8861 ac_header_preproc=yes
8862 else
8863 echo "$as_me: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 ac_header_preproc=no
8867 rm -f conftest.err conftest.$ac_ext
8868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8869 echo "${ECHO_T}$ac_header_preproc" >&6
8871 # So? What about this header?
8872 case $ac_header_compiler:$ac_header_preproc in
8873 yes:no )
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8878 no:yes )
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8885 esac
8886 echo "$as_me:$LINENO: checking for $ac_header" >&5
8887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891 eval "$as_ac_Header=$ac_header_preproc"
8893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8898 cat >>confdefs.h <<_ACEOF
8899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8900 _ACEOF
8901 break
8904 done
8907 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8908 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8909 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912 cat >conftest.$ac_ext <<_ACEOF
8913 #line $LINENO "configure"
8914 #include "confdefs.h"
8916 #if defined(HAVE_SYS_SOUNDCARD_H)
8917 #include <sys/soundcard.h>
8918 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8919 #include <machine/soundcard.h>
8920 #elif defined(HAVE_SOUNDCARD_H)
8921 #include <soundcard.h>
8922 #endif
8924 #ifdef F77_DUMMY_MAIN
8925 # ifdef __cplusplus
8926 extern "C"
8927 # endif
8928 int F77_DUMMY_MAIN() { return 1; }
8929 #endif
8931 main ()
8935 /* check for one of the Open Sound System specific SNDCTL_ defines */
8936 #if !defined(SNDCTL_DSP_STEREO)
8937 #error No open sound system
8938 #endif
8941 return 0;
8943 _ACEOF
8944 rm -f conftest.$ac_objext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8946 (eval $ac_compile) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -s conftest.$ac_objext'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
8956 ac_cv_c_opensoundsystem="yes"
8957 else
8958 echo "$as_me: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8960 ac_cv_c_opensoundsystem="no"
8962 rm -f conftest.$ac_objext conftest.$ac_ext
8964 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8965 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8967 if test "$ac_cv_c_opensoundsystem" = "yes"
8968 then
8970 cat >>confdefs.h <<\_ACEOF
8971 #define HAVE_OSS 1
8972 _ACEOF
8976 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8977 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8978 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981 cat >conftest.$ac_ext <<_ACEOF
8982 #line $LINENO "configure"
8983 #include "confdefs.h"
8985 #if defined(HAVE_SYS_SOUNDCARD_H)
8986 #include <sys/soundcard.h>
8987 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8988 #include <machine/soundcard.h>
8989 #elif defined(HAVE_SOUNDCARD_H)
8990 #include <soundcard.h>
8991 #endif
8993 #ifdef F77_DUMMY_MAIN
8994 # ifdef __cplusplus
8995 extern "C"
8996 # endif
8997 int F77_DUMMY_MAIN() { return 1; }
8998 #endif
9000 main ()
9004 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9005 #if !defined(SNDCTL_SEQ_SYNC)
9006 #error No open sound system MIDI interface
9007 #endif
9010 return 0;
9012 _ACEOF
9013 rm -f conftest.$ac_objext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015 (eval $ac_compile) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -s conftest.$ac_objext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 (eval $ac_try) 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_cv_c_opensoundsystem_midi="yes"
9026 else
9027 echo "$as_me: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9029 ac_cv_c_opensoundsystem_midi="no"
9031 rm -f conftest.$ac_objext conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9034 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9036 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9037 then
9039 cat >>confdefs.h <<\_ACEOF
9040 #define HAVE_OSS_MIDI 1
9041 _ACEOF
9045 # Extract the first word of "artsc-config", so it can be a program name with args.
9046 set dummy artsc-config; ac_word=$2
9047 echo "$as_me:$LINENO: checking for $ac_word" >&5
9048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9049 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052 case $ARTSCCONFIG in
9053 [\\/]* | ?:[\\/]*)
9054 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058 for as_dir in $PATH
9060 IFS=$as_save_IFS
9061 test -z "$as_dir" && as_dir=.
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9064 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9066 break 2
9068 done
9069 done
9072 esac
9074 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9076 if test -n "$ARTSCCONFIG"; then
9077 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9078 echo "${ECHO_T}$ARTSCCONFIG" >&6
9079 else
9080 echo "$as_me:$LINENO: result: no" >&5
9081 echo "${ECHO_T}no" >&6
9084 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9085 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9086 if test "${ac_cv_c_artsserver+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9090 then
9091 ac_cv_c_artsserver=no
9092 else
9093 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9094 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9095 ac_cv_c_artsserver=no
9096 save_CFLAGS="$CFLAGS"
9097 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9098 cat >conftest.$ac_ext <<_ACEOF
9099 #line $LINENO "configure"
9100 #include "confdefs.h"
9102 #include <artsc.h>
9104 #ifdef F77_DUMMY_MAIN
9105 # ifdef __cplusplus
9106 extern "C"
9107 # endif
9108 int F77_DUMMY_MAIN() { return 1; }
9109 #endif
9111 main ()
9114 arts_stream_t stream;
9117 return 0;
9119 _ACEOF
9120 rm -f conftest.$ac_objext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9122 (eval $ac_compile) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try='test -s conftest.$ac_objext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9133 ac_cv_c_artsserver=yes
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9139 rm -f conftest.$ac_objext conftest.$ac_ext
9140 CFLAGS="$save_CFLAGS"
9143 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9144 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9146 if test "$ac_cv_c_artsserver" = "yes"
9147 then
9148 ARTSLIBS=$ARTSC_LIBS
9150 ARTSINCL=$ARTSC_CFLAGS
9154 cat >>confdefs.h <<\_ACEOF
9155 #define HAVE_ARTS 1
9156 _ACEOF
9161 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9162 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9163 if test "${ac_cv_mmap64_works+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166 if test "$cross_compiling" = yes; then
9167 ac_cv_mmap64_works="no"
9168 else
9169 cat >conftest.$ac_ext <<_ACEOF
9170 #line $LINENO "configure"
9171 #include "confdefs.h"
9173 #define _FILE_OFFSET_BITS 64
9174 #include <stdio.h>
9175 #include <unistd.h>
9176 #include <fcntl.h>
9177 #include <sys/mman.h>
9178 #include <errno.h>
9180 int main(int argc,char **argv) {
9181 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9182 if (fd == -1) exit(1);
9184 unlink("conftest.map");
9186 write(fd,"test",4);
9188 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9189 (errno == EINVAL)
9191 exit(1);
9193 close(fd);
9194 fprintf(stderr,"success!\n");
9195 exit(0);
9199 _ACEOF
9200 rm -f conftest$ac_exeext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9202 (eval $ac_link) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_cv_mmap64_works="yes"
9212 else
9213 echo "$as_me: program exited with status $ac_status" >&5
9214 echo "$as_me: failed program was:" >&5
9215 cat conftest.$ac_ext >&5
9216 ( exit $ac_status )
9217 ac_cv_mmap64_works="no"
9219 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9222 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9223 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9225 if test "$ac_cv_mmap64_works" = "yes"
9226 then
9228 cat >>confdefs.h <<\_ACEOF
9229 #define _FILE_OFFSET_BITS 64
9230 _ACEOF
9235 if test "x${GCC}" = "xyes"
9236 then
9237 CFLAGS="$CFLAGS -Wall"
9238 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9239 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9240 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243 if test "$cross_compiling" = yes; then
9244 ac_cv_c_gcc_strength_bug="yes"
9245 else
9246 cat >conftest.$ac_ext <<_ACEOF
9247 #line $LINENO "configure"
9248 #include "confdefs.h"
9250 int L[4] = {0,1,2,3};
9251 int main(void) {
9252 static int Array[3];
9253 unsigned int B = 3;
9254 int i;
9255 for(i=0; i<B; i++) Array[i] = i - 3;
9256 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9257 L[i] = 4;
9259 exit( Array[1] != -2 || L[2] != 3);
9261 _ACEOF
9262 rm -f conftest$ac_exeext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 ac_cv_c_gcc_strength_bug="no"
9274 else
9275 echo "$as_me: program exited with status $ac_status" >&5
9276 echo "$as_me: failed program was:" >&5
9277 cat conftest.$ac_ext >&5
9278 ( exit $ac_status )
9279 ac_cv_c_gcc_strength_bug="yes"
9281 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9284 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9285 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9286 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9287 then
9288 CFLAGS="$CFLAGS -fno-strength-reduce"
9291 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9292 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9293 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 saved_cflags=$CFLAGS
9297 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9298 cat >conftest.$ac_ext <<_ACEOF
9299 #line $LINENO "configure"
9300 #include "confdefs.h"
9302 #ifdef F77_DUMMY_MAIN
9303 # ifdef __cplusplus
9304 extern "C"
9305 # endif
9306 int F77_DUMMY_MAIN() { return 1; }
9307 #endif
9309 main ()
9311 return 0
9313 return 0;
9315 _ACEOF
9316 rm -f conftest.$ac_objext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9318 (eval $ac_compile) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } &&
9322 { ac_try='test -s conftest.$ac_objext'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 (eval $ac_try) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; }; then
9328 ac_cv_c_gcc_stack_boundary="yes"
9329 else
9330 echo "$as_me: failed program was:" >&5
9331 cat conftest.$ac_ext >&5
9332 ac_cv_c_gcc_stack_boundary="no"
9334 rm -f conftest.$ac_objext conftest.$ac_ext
9335 CFLAGS=$saved_cflags
9338 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9339 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9340 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9341 then
9342 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9347 echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
9348 echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
9349 if test "${ac_cv_c_type_in_def+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352 saved_libs=$LIBS
9353 LIBS="conftest_asm.s $LIBS"
9354 cat > conftest_asm.s <<EOF
9355 .globl _ac_test
9356 .def _ac_test; .scl 2; .type 32; .endef
9357 _ac_test:
9358 .long 0
9360 cat >conftest.$ac_ext <<_ACEOF
9361 #line $LINENO "configure"
9362 #include "confdefs.h"
9364 #ifdef F77_DUMMY_MAIN
9365 # ifdef __cplusplus
9366 extern "C"
9367 # endif
9368 int F77_DUMMY_MAIN() { return 1; }
9369 #endif
9371 main ()
9375 return 0;
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380 (eval $ac_link) 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -s conftest$ac_exeext'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 (eval $ac_try) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; }; then
9390 ac_cv_c_type_in_def="yes"
9391 else
9392 echo "$as_me: failed program was:" >&5
9393 cat conftest.$ac_ext >&5
9394 ac_cv_c_type_in_def="no"
9396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9397 LIBS=$saved_libs
9399 echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
9400 echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
9401 if test "$ac_cv_c_type_in_def" = "yes"
9402 then
9404 cat >>confdefs.h <<\_ACEOF
9405 #define NEED_TYPE_IN_DEF 1
9406 _ACEOF
9411 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9412 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9413 if test "${ac_cv_c_extern_prefix+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416 saved_libs=$LIBS
9417 LIBS="conftest_asm.s $LIBS"
9418 cat > conftest_asm.s <<EOF
9419 .globl _ac_test
9420 _ac_test:
9421 .long 0
9423 cat >conftest.$ac_ext <<_ACEOF
9424 #line $LINENO "configure"
9425 #include "confdefs.h"
9426 extern int ac_test;
9427 #ifdef F77_DUMMY_MAIN
9428 # ifdef __cplusplus
9429 extern "C"
9430 # endif
9431 int F77_DUMMY_MAIN() { return 1; }
9432 #endif
9434 main ()
9436 if (ac_test) return 1
9438 return 0;
9440 _ACEOF
9441 rm -f conftest.$ac_objext conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_c_extern_prefix="yes"
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 ac_cv_c_extern_prefix="no"
9459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9460 LIBS=$saved_libs
9462 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9463 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9464 if test "$ac_cv_c_extern_prefix" = "yes"
9465 then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define NEED_UNDERSCORE_PREFIX 1
9469 _ACEOF
9474 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9475 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9476 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479 saved_libs=$LIBS
9480 LIBS="conftest_asm.s $LIBS"
9481 if test "$ac_cv_c_extern_prefix" = "yes"
9482 then
9483 cat > conftest_asm.s <<EOF
9484 .globl _ac_test@0
9485 _ac_test@0:
9487 else
9488 cat > conftest_asm.s <<EOF
9489 .globl ac_test@0
9490 ac_test@0:
9493 cat >conftest.$ac_ext <<_ACEOF
9494 #line $LINENO "configure"
9495 #include "confdefs.h"
9496 extern void __attribute__((__stdcall__)) ac_test(void);
9497 #ifdef F77_DUMMY_MAIN
9498 # ifdef __cplusplus
9499 extern "C"
9500 # endif
9501 int F77_DUMMY_MAIN() { return 1; }
9502 #endif
9504 main ()
9506 ac_test(); return 0
9508 return 0;
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_cv_c_stdcall_decoration="yes"
9524 else
9525 echo "$as_me: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 ac_cv_c_stdcall_decoration="no"
9529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9530 LIBS=$saved_libs
9532 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9533 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9534 if test "$ac_cv_c_stdcall_decoration" = "yes"
9535 then
9537 cat >>confdefs.h <<\_ACEOF
9538 #define NEED_STDCALL_DECORATION 1
9539 _ACEOF
9544 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9545 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9546 if test "${ac_cv_c_asm_string+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 saved_libs=$LIBS
9550 LIBS="conftest_asm.s $LIBS"
9551 cat > conftest_asm.s <<EOF
9552 .string "test"
9554 cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9556 #include "confdefs.h"
9558 #ifdef F77_DUMMY_MAIN
9559 # ifdef __cplusplus
9560 extern "C"
9561 # endif
9562 int F77_DUMMY_MAIN() { return 1; }
9563 #endif
9565 main ()
9569 return 0;
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9574 (eval $ac_link) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_c_asm_string="yes"
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9588 ac_cv_c_asm_string="no"
9590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$saved_libs
9593 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9594 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9595 if test "$ac_cv_c_asm_string" = "yes"
9596 then
9598 cat >>confdefs.h <<\_ACEOF
9599 #define HAVE_ASM_STRING 1
9600 _ACEOF
9605 LDSHARED=""
9606 LDDLLFLAGS=""
9607 DLLIBS=""
9609 case $host_os in
9610 cygwin*|mingw32*)
9611 if test -n "$ac_tool_prefix"; then
9612 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9613 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9614 echo "$as_me:$LINENO: checking for $ac_word" >&5
9615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9616 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 if test -n "$DLLWRAP"; then
9620 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9621 else
9622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623 for as_dir in $PATH
9625 IFS=$as_save_IFS
9626 test -z "$as_dir" && as_dir=.
9627 for ac_exec_ext in '' $ac_executable_extensions; do
9628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9629 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9631 break 2
9633 done
9634 done
9638 DLLWRAP=$ac_cv_prog_DLLWRAP
9639 if test -n "$DLLWRAP"; then
9640 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9641 echo "${ECHO_T}$DLLWRAP" >&6
9642 else
9643 echo "$as_me:$LINENO: result: no" >&5
9644 echo "${ECHO_T}no" >&6
9648 if test -z "$ac_cv_prog_DLLWRAP"; then
9649 ac_ct_DLLWRAP=$DLLWRAP
9650 # Extract the first word of "dllwrap", so it can be a program name with args.
9651 set dummy dllwrap; ac_word=$2
9652 echo "$as_me:$LINENO: checking for $ac_word" >&5
9653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9654 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657 if test -n "$ac_ct_DLLWRAP"; then
9658 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9659 else
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9667 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9671 done
9672 done
9674 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
9677 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
9678 if test -n "$ac_ct_DLLWRAP"; then
9679 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
9680 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
9681 else
9682 echo "$as_me:$LINENO: result: no" >&5
9683 echo "${ECHO_T}no" >&6
9686 DLLWRAP=$ac_ct_DLLWRAP
9687 else
9688 DLLWRAP="$ac_cv_prog_DLLWRAP"
9691 if test "$DLLWRAP" = "false"; then
9692 LIBEXT="a"
9693 else
9694 LIBEXT="dll"
9699 for ac_header in dlfcn.h
9701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9703 echo "$as_me:$LINENO: checking for $ac_header" >&5
9704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9710 else
9711 # Is the header compilable?
9712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9714 cat >conftest.$ac_ext <<_ACEOF
9715 #line $LINENO "configure"
9716 #include "confdefs.h"
9717 $ac_includes_default
9718 #include <$ac_header>
9719 _ACEOF
9720 rm -f conftest.$ac_objext
9721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9722 (eval $ac_compile) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -s conftest.$ac_objext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_header_compiler=yes
9733 else
9734 echo "$as_me: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9736 ac_header_compiler=no
9738 rm -f conftest.$ac_objext conftest.$ac_ext
9739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9740 echo "${ECHO_T}$ac_header_compiler" >&6
9742 # Is the header present?
9743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9745 cat >conftest.$ac_ext <<_ACEOF
9746 #line $LINENO "configure"
9747 #include "confdefs.h"
9748 #include <$ac_header>
9749 _ACEOF
9750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9752 ac_status=$?
9753 egrep -v '^ *\+' conftest.er1 >conftest.err
9754 rm -f conftest.er1
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } >/dev/null; then
9758 if test -s conftest.err; then
9759 ac_cpp_err=$ac_c_preproc_warn_flag
9760 else
9761 ac_cpp_err=
9763 else
9764 ac_cpp_err=yes
9766 if test -z "$ac_cpp_err"; then
9767 ac_header_preproc=yes
9768 else
9769 echo "$as_me: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9771 ac_header_preproc=no
9773 rm -f conftest.err conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9775 echo "${ECHO_T}$ac_header_preproc" >&6
9777 # So? What about this header?
9778 case $ac_header_compiler:$ac_header_preproc in
9779 yes:no )
9780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9784 no:yes )
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9791 esac
9792 echo "$as_me:$LINENO: checking for $ac_header" >&5
9793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797 eval "$as_ac_Header=$ac_header_preproc"
9799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9804 cat >>confdefs.h <<_ACEOF
9805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9806 _ACEOF
9808 for ac_func in dlopen
9810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9811 echo "$as_me:$LINENO: checking for $ac_func" >&5
9812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9813 if eval "test \"\${$as_ac_var+set}\" = set"; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816 cat >conftest.$ac_ext <<_ACEOF
9817 #line $LINENO "configure"
9818 #include "confdefs.h"
9819 /* System header to define __stub macros and hopefully few prototypes,
9820 which can conflict with char $ac_func (); below. */
9821 #include <assert.h>
9822 /* Override any gcc2 internal prototype to avoid an error. */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9828 char $ac_func ();
9829 char (*f) ();
9831 #ifdef F77_DUMMY_MAIN
9832 # ifdef __cplusplus
9833 extern "C"
9834 # endif
9835 int F77_DUMMY_MAIN() { return 1; }
9836 #endif
9838 main ()
9840 /* The GNU C library defines this for functions which it implements
9841 to always fail with ENOSYS. Some functions are actually named
9842 something starting with __ and the normal name is an alias. */
9843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9844 choke me
9845 #else
9846 f = $ac_func;
9847 #endif
9850 return 0;
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 eval "$as_ac_var=yes"
9866 else
9867 echo "$as_me: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 eval "$as_ac_var=no"
9871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9875 if test `eval echo '${'$as_ac_var'}'` = yes; then
9876 cat >>confdefs.h <<_ACEOF
9877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9878 _ACEOF
9880 else
9881 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9882 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 ac_check_lib_save_LIBS=$LIBS
9887 LIBS="-ldl $LIBS"
9888 cat >conftest.$ac_ext <<_ACEOF
9889 #line $LINENO "configure"
9890 #include "confdefs.h"
9892 /* Override any gcc2 internal prototype to avoid an error. */
9893 #ifdef __cplusplus
9894 extern "C"
9895 #endif
9896 /* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9898 char dlopen ();
9899 #ifdef F77_DUMMY_MAIN
9900 # ifdef __cplusplus
9901 extern "C"
9902 # endif
9903 int F77_DUMMY_MAIN() { return 1; }
9904 #endif
9906 main ()
9908 dlopen ();
9910 return 0;
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -s conftest$ac_exeext'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 (eval $ac_try) 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_cv_lib_dl_dlopen=yes
9926 else
9927 echo "$as_me: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 ac_cv_lib_dl_dlopen=no
9931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9934 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9935 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9936 if test $ac_cv_lib_dl_dlopen = yes; then
9938 cat >>confdefs.h <<\_ACEOF
9939 #define HAVE_DLOPEN 1
9940 _ACEOF
9942 DLLIBS="-ldl"
9943 else
9944 LIBEXT="a"
9948 done
9950 else
9951 LIBEXT="a"
9954 done
9957 if test "$LIBEXT" = "so"
9958 then
9959 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
9960 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
9961 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 saved_cflags=$CFLAGS
9965 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
9966 cat >conftest.$ac_ext <<_ACEOF
9967 #line $LINENO "configure"
9968 #include "confdefs.h"
9970 #ifdef F77_DUMMY_MAIN
9971 # ifdef __cplusplus
9972 extern "C"
9973 # endif
9974 int F77_DUMMY_MAIN() { return 1; }
9975 #endif
9977 main ()
9979 return 1
9981 return 0;
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_cv_c_dll_gnuelf="yes"
9997 else
9998 echo "$as_me: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 ac_cv_c_dll_gnuelf="no"
10002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10003 CFLAGS=$saved_cflags
10006 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10007 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10008 if test "$ac_cv_c_dll_gnuelf" = "yes"
10009 then
10010 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10011 LDDLLFLAGS="-Wl,-Bsymbolic"
10012 else
10013 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10014 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10015 if test "${ac_cv_c_dll_unixware+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018 saved_cflags=$CFLAGS
10019 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10020 cat >conftest.$ac_ext <<_ACEOF
10021 #line $LINENO "configure"
10022 #include "confdefs.h"
10024 #ifdef F77_DUMMY_MAIN
10025 # ifdef __cplusplus
10026 extern "C"
10027 # endif
10028 int F77_DUMMY_MAIN() { return 1; }
10029 #endif
10031 main ()
10033 return 1
10035 return 0;
10037 _ACEOF
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10040 (eval $ac_link) 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 ac_cv_c_dll_unixware="yes"
10051 else
10052 echo "$as_me: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 ac_cv_c_dll_unixware="no"
10056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10057 CFLAGS=$saved_cflags
10060 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10061 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10062 if test "$ac_cv_c_dll_unixware" = "yes"
10063 then
10064 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10065 LDDLLFLAGS="-Wl,-B,symbolic"
10070 esac
10072 if test "$LIBEXT" = "a"; then
10073 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10074 It is currently not possible to build Wine without shared library
10075 (.so) support to allow transparent switch between .so and .dll files.
10076 If you are using Linux, you will need a newer binutils.
10077 " >&5
10078 echo "$as_me: error: could not find a way to build shared libraries.
10079 It is currently not possible to build Wine without shared library
10080 (.so) support to allow transparent switch between .so and .dll files.
10081 If you are using Linux, you will need a newer binutils.
10082 " >&2;}
10083 { (exit 1); exit 1; }; }
10086 DLLFLAGS=""
10088 if test "$LIBEXT" = "so"; then
10089 DLLFLAGS="-fPIC"
10090 DLLEXT=".so"
10091 elif test "$LIBEXT" = "dll"; then
10092 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
10093 DLLEXT=""
10096 case $build_os in
10097 cygwin*|mingw32*)
10098 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" ;;
10100 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" ;;
10101 esac
10114 wine_cv_libc_reentrant=no
10116 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
10117 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10118 if test "${wine_cv_libc_r___errno_location+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 if test "$cross_compiling" = yes; then
10122 wine_cv_libc_r___errno_location=yes
10123 else
10124 cat >conftest.$ac_ext <<_ACEOF
10125 #line $LINENO "configure"
10126 #include "confdefs.h"
10127 int myerrno = 0;
10128 char buf[256];
10129 int *__errno_location(){return &myerrno;}
10130 main(){connect(0,buf,255); exit(!myerrno);}
10131 _ACEOF
10132 rm -f conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 wine_cv_libc_r___errno_location=yes
10144 else
10145 echo "$as_me: program exited with status $ac_status" >&5
10146 echo "$as_me: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 ( exit $ac_status )
10149 wine_cv_libc_r___errno_location=no
10151 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10155 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
10156 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
10157 if test "$wine_cv_libc_r___errno_location" = "yes"
10158 then
10159 wine_cv_libc_reentrant=__errno_location
10163 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
10164 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10165 if test "${wine_cv_libc_r___error+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168 if test "$cross_compiling" = yes; then
10169 wine_cv_libc_r___error=yes
10170 else
10171 cat >conftest.$ac_ext <<_ACEOF
10172 #line $LINENO "configure"
10173 #include "confdefs.h"
10174 int myerrno = 0;
10175 char buf[256];
10176 int *__error(){return &myerrno;}
10177 main(){connect(0,buf,255); exit(!myerrno);}
10178 _ACEOF
10179 rm -f conftest$ac_exeext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 wine_cv_libc_r___error=yes
10191 else
10192 echo "$as_me: program exited with status $ac_status" >&5
10193 echo "$as_me: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10195 ( exit $ac_status )
10196 wine_cv_libc_r___error=no
10198 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10202 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
10203 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
10204 if test "$wine_cv_libc_r___error" = "yes"
10205 then
10206 wine_cv_libc_reentrant=__error
10210 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
10211 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
10212 if test "${wine_cv_libc_r____errno+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215 if test "$cross_compiling" = yes; then
10216 wine_cv_libc_r____errno=yes
10217 else
10218 cat >conftest.$ac_ext <<_ACEOF
10219 #line $LINENO "configure"
10220 #include "confdefs.h"
10221 int myerrno = 0;
10222 char buf[256];
10223 int *___errno(){return &myerrno;}
10224 main(){connect(0,buf,255); exit(!myerrno);}
10225 _ACEOF
10226 rm -f conftest$ac_exeext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10228 (eval $ac_link) 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 wine_cv_libc_r____errno=yes
10238 else
10239 echo "$as_me: program exited with status $ac_status" >&5
10240 echo "$as_me: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10242 ( exit $ac_status )
10243 wine_cv_libc_r____errno=no
10245 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10249 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
10250 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
10251 if test "$wine_cv_libc_r____errno" = "yes"
10252 then
10253 wine_cv_libc_reentrant=___errno
10257 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
10258 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10259 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262 if test "$cross_compiling" = yes; then
10263 wine_cv_libc_r___thr_errno=yes
10264 else
10265 cat >conftest.$ac_ext <<_ACEOF
10266 #line $LINENO "configure"
10267 #include "confdefs.h"
10268 int myerrno = 0;
10269 char buf[256];
10270 int *__thr_errno(){return &myerrno;}
10271 main(){connect(0,buf,255); exit(!myerrno);}
10272 _ACEOF
10273 rm -f conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 wine_cv_libc_r___thr_errno=yes
10285 else
10286 echo "$as_me: program exited with status $ac_status" >&5
10287 echo "$as_me: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10289 ( exit $ac_status )
10290 wine_cv_libc_r___thr_errno=no
10292 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10296 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
10297 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
10298 if test "$wine_cv_libc_r___thr_errno" = "yes"
10299 then
10300 wine_cv_libc_reentrant=__thr_errno
10304 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
10305 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
10306 if test "${wine_cv_libc_r___errno+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309 if test "$cross_compiling" = yes; then
10310 wine_cv_libc_r___errno=yes
10311 else
10312 cat >conftest.$ac_ext <<_ACEOF
10313 #line $LINENO "configure"
10314 #include "confdefs.h"
10315 int myerrno = 0;
10316 char buf[256];
10317 int *__errno(){return &myerrno;}
10318 main(){connect(0,buf,255); exit(!myerrno);}
10319 _ACEOF
10320 rm -f conftest$ac_exeext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322 (eval $ac_link) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 wine_cv_libc_r___errno=yes
10332 else
10333 echo "$as_me: program exited with status $ac_status" >&5
10334 echo "$as_me: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 ( exit $ac_status )
10337 wine_cv_libc_r___errno=no
10339 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10343 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
10344 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
10345 if test "$wine_cv_libc_r___errno" = "yes"
10346 then
10347 wine_cv_libc_reentrant=__errno
10351 if test "$wine_cv_libc_reentrant" != "no"
10352 then
10354 cat >>confdefs.h <<_ACEOF
10355 #define ERRNO_LOCATION $wine_cv_libc_reentrant
10356 _ACEOF
10361 if test "$have_x" = "yes"
10362 then
10363 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
10364 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
10365 if test "${wine_cv_x_reentrant+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368 libX11_check=none
10369 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
10370 if test -r $dir/libX11.so; then
10371 libX11_check="-D $dir/libX11.so"
10372 break
10374 if test -r $dir/libX11.a; then
10375 libX11_check="$dir/libX11.a"
10376 break
10378 done
10379 if test "$libX11_check" != "none"; then
10380 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
10381 then
10382 wine_cv_x_reentrant=yes
10383 else
10384 wine_cv_x_reentrant=no
10386 else
10387 wine_cv_x_reentrant=unknown
10390 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
10391 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
10395 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10396 # for constant arguments. Useless!
10397 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10398 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10399 if test "${ac_cv_working_alloca_h+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402 cat >conftest.$ac_ext <<_ACEOF
10403 #line $LINENO "configure"
10404 #include "confdefs.h"
10405 #include <alloca.h>
10406 #ifdef F77_DUMMY_MAIN
10407 # ifdef __cplusplus
10408 extern "C"
10409 # endif
10410 int F77_DUMMY_MAIN() { return 1; }
10411 #endif
10413 main ()
10415 char *p = (char *) alloca (2 * sizeof (int));
10417 return 0;
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422 (eval $ac_link) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
10426 { ac_try='test -s conftest$ac_exeext'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_cv_working_alloca_h=yes
10433 else
10434 echo "$as_me: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10436 ac_cv_working_alloca_h=no
10438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10440 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10441 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10442 if test $ac_cv_working_alloca_h = yes; then
10444 cat >>confdefs.h <<\_ACEOF
10445 #define HAVE_ALLOCA_H 1
10446 _ACEOF
10450 echo "$as_me:$LINENO: checking for alloca" >&5
10451 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10452 if test "${ac_cv_func_alloca_works+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 cat >conftest.$ac_ext <<_ACEOF
10456 #line $LINENO "configure"
10457 #include "confdefs.h"
10458 #ifdef __GNUC__
10459 # define alloca __builtin_alloca
10460 #else
10461 # ifdef _MSC_VER
10462 # include <malloc.h>
10463 # define alloca _alloca
10464 # else
10465 # if HAVE_ALLOCA_H
10466 # include <alloca.h>
10467 # else
10468 # ifdef _AIX
10469 #pragma alloca
10470 # else
10471 # ifndef alloca /* predefined by HP cc +Olibcalls */
10472 char *alloca ();
10473 # endif
10474 # endif
10475 # endif
10476 # endif
10477 #endif
10479 #ifdef F77_DUMMY_MAIN
10480 # ifdef __cplusplus
10481 extern "C"
10482 # endif
10483 int F77_DUMMY_MAIN() { return 1; }
10484 #endif
10486 main ()
10488 char *p = (char *) alloca (1);
10490 return 0;
10492 _ACEOF
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495 (eval $ac_link) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -s conftest$ac_exeext'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_func_alloca_works=yes
10506 else
10507 echo "$as_me: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10509 ac_cv_func_alloca_works=no
10511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10513 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10514 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10516 if test $ac_cv_func_alloca_works = yes; then
10518 cat >>confdefs.h <<\_ACEOF
10519 #define HAVE_ALLOCA 1
10520 _ACEOF
10522 else
10523 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10524 # that cause trouble. Some versions do not even contain alloca or
10525 # contain a buggy version. If you still want to use their alloca,
10526 # use ar to extract alloca.o from them instead of compiling alloca.c.
10528 ALLOCA=alloca.$ac_objext
10530 cat >>confdefs.h <<\_ACEOF
10531 #define C_ALLOCA 1
10532 _ACEOF
10535 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10536 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10537 if test "${ac_cv_os_cray+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540 cat >conftest.$ac_ext <<_ACEOF
10541 #line $LINENO "configure"
10542 #include "confdefs.h"
10543 #if defined(CRAY) && ! defined(CRAY2)
10544 webecray
10545 #else
10546 wenotbecray
10547 #endif
10549 _ACEOF
10550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10551 egrep "webecray" >/dev/null 2>&1; then
10552 ac_cv_os_cray=yes
10553 else
10554 ac_cv_os_cray=no
10556 rm -f conftest*
10559 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10560 echo "${ECHO_T}$ac_cv_os_cray" >&6
10561 if test $ac_cv_os_cray = yes; then
10562 for ac_func in _getb67 GETB67 getb67; do
10563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10564 echo "$as_me:$LINENO: checking for $ac_func" >&5
10565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10566 if eval "test \"\${$as_ac_var+set}\" = set"; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569 cat >conftest.$ac_ext <<_ACEOF
10570 #line $LINENO "configure"
10571 #include "confdefs.h"
10572 /* System header to define __stub macros and hopefully few prototypes,
10573 which can conflict with char $ac_func (); below. */
10574 #include <assert.h>
10575 /* Override any gcc2 internal prototype to avoid an error. */
10576 #ifdef __cplusplus
10577 extern "C"
10578 #endif
10579 /* We use char because int might match the return type of a gcc2
10580 builtin and then its argument prototype would still apply. */
10581 char $ac_func ();
10582 char (*f) ();
10584 #ifdef F77_DUMMY_MAIN
10585 # ifdef __cplusplus
10586 extern "C"
10587 # endif
10588 int F77_DUMMY_MAIN() { return 1; }
10589 #endif
10591 main ()
10593 /* The GNU C library defines this for functions which it implements
10594 to always fail with ENOSYS. Some functions are actually named
10595 something starting with __ and the normal name is an alias. */
10596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10597 choke me
10598 #else
10599 f = $ac_func;
10600 #endif
10603 return 0;
10605 _ACEOF
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608 (eval $ac_link) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try='test -s conftest$ac_exeext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 eval "$as_ac_var=yes"
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 eval "$as_ac_var=no"
10624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10628 if test `eval echo '${'$as_ac_var'}'` = yes; then
10630 cat >>confdefs.h <<_ACEOF
10631 #define CRAY_STACKSEG_END $ac_func
10632 _ACEOF
10634 break
10637 done
10640 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10641 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10642 if test "${ac_cv_c_stack_direction+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645 if test "$cross_compiling" = yes; then
10646 ac_cv_c_stack_direction=0
10647 else
10648 cat >conftest.$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10650 #include "confdefs.h"
10652 find_stack_direction ()
10654 static char *addr = 0;
10655 auto char dummy;
10656 if (addr == 0)
10658 addr = &dummy;
10659 return find_stack_direction ();
10661 else
10662 return (&dummy > addr) ? 1 : -1;
10666 main ()
10668 exit (find_stack_direction () < 0);
10670 _ACEOF
10671 rm -f conftest$ac_exeext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673 (eval $ac_link) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 ac_cv_c_stack_direction=1
10683 else
10684 echo "$as_me: program exited with status $ac_status" >&5
10685 echo "$as_me: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10687 ( exit $ac_status )
10688 ac_cv_c_stack_direction=-1
10690 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10693 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10694 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10696 cat >>confdefs.h <<_ACEOF
10697 #define STACK_DIRECTION $ac_cv_c_stack_direction
10698 _ACEOF
10749 for ac_func in \
10750 __libc_fork \
10751 _lwp_create \
10752 _pclose \
10753 _popen \
10754 _snprintf \
10755 _stricmp \
10756 _strnicmp \
10757 chsize \
10758 clone \
10759 ecvt \
10760 finite \
10761 fpclass \
10762 ftruncate \
10763 ftruncate64 \
10764 getnetbyaddr \
10765 getnetbyname \
10766 getpagesize \
10767 getprotobyname \
10768 getprotobynumber \
10769 getservbyport \
10770 getsockopt \
10771 inet_network \
10772 lseek64 \
10773 lstat \
10774 memmove \
10775 mmap \
10776 pclose \
10777 popen \
10778 pread \
10779 pwrite \
10780 rfork \
10781 select \
10782 sendmsg \
10783 settimeofday \
10784 sigaltstack \
10785 snprintf \
10786 statfs \
10787 strcasecmp \
10788 strerror \
10789 strncasecmp \
10790 tcgetattr \
10791 timegm \
10792 usleep \
10793 vfscanf \
10794 wait4 \
10795 waitpid \
10798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10799 echo "$as_me:$LINENO: checking for $ac_func" >&5
10800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_var+set}\" = set"; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804 cat >conftest.$ac_ext <<_ACEOF
10805 #line $LINENO "configure"
10806 #include "confdefs.h"
10807 /* System header to define __stub macros and hopefully few prototypes,
10808 which can conflict with char $ac_func (); below. */
10809 #include <assert.h>
10810 /* Override any gcc2 internal prototype to avoid an error. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 /* We use char because int might match the return type of a gcc2
10815 builtin and then its argument prototype would still apply. */
10816 char $ac_func ();
10817 char (*f) ();
10819 #ifdef F77_DUMMY_MAIN
10820 # ifdef __cplusplus
10821 extern "C"
10822 # endif
10823 int F77_DUMMY_MAIN() { return 1; }
10824 #endif
10826 main ()
10828 /* The GNU C library defines this for functions which it implements
10829 to always fail with ENOSYS. Some functions are actually named
10830 something starting with __ and the normal name is an alias. */
10831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10832 choke me
10833 #else
10834 f = $ac_func;
10835 #endif
10838 return 0;
10840 _ACEOF
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10843 (eval $ac_link) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 eval "$as_ac_var=yes"
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10857 eval "$as_ac_var=no"
10859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10863 if test `eval echo '${'$as_ac_var'}'` = yes; then
10864 cat >>confdefs.h <<_ACEOF
10865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10866 _ACEOF
10869 done
10939 for ac_header in \
10940 arpa/inet.h \
10941 arpa/nameser.h \
10942 direct.h \
10943 elf.h \
10944 float.h \
10945 ieeefp.h \
10946 io.h \
10947 libio.h \
10948 libutil.h \
10949 link.h \
10950 linux/cdrom.h \
10951 linux/hdreg.h \
10952 linux/input.h \
10953 linux/joystick.h \
10954 linux/major.h \
10955 linux/param.h \
10956 linux/serial.h \
10957 linux/ucdrom.h \
10958 net/if.h \
10959 netdb.h \
10960 netinet/in.h \
10961 netinet/in_systm.h \
10962 netinet/ip.h \
10963 netinet/tcp.h \
10964 pty.h \
10965 resolv.h \
10966 sched.h \
10967 scsi/sg.h \
10968 socket.h \
10969 stdint.h \
10970 strings.h \
10971 sys/cdio.h \
10972 sys/errno.h \
10973 sys/file.h \
10974 sys/filio.h \
10975 sys/inttypes.h \
10976 sys/ioctl.h \
10977 sys/ipc.h \
10978 sys/link.h \
10979 sys/lwp.h \
10980 sys/mman.h \
10981 sys/modem.h \
10982 sys/mount.h \
10983 sys/msg.h \
10984 sys/param.h \
10985 sys/ptrace.h \
10986 sys/reg.h \
10987 sys/shm.h \
10988 sys/signal.h \
10989 sys/socket.h \
10990 sys/sockio.h \
10991 sys/statfs.h \
10992 sys/strtio.h \
10993 sys/syscall.h \
10994 sys/sysctl.h \
10995 sys/time.h \
10996 sys/user.h \
10997 sys/v86.h \
10998 sys/v86intr.h \
10999 sys/vfs.h \
11000 sys/vm86.h \
11001 sys/wait.h \
11002 syscall.h \
11003 termios.h \
11004 ucontext.h \
11005 unistd.h \
11008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11010 echo "$as_me:$LINENO: checking for $ac_header" >&5
11011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11017 else
11018 # Is the header compilable?
11019 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11021 cat >conftest.$ac_ext <<_ACEOF
11022 #line $LINENO "configure"
11023 #include "confdefs.h"
11024 $ac_includes_default
11025 #include <$ac_header>
11026 _ACEOF
11027 rm -f conftest.$ac_objext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11029 (eval $ac_compile) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -s conftest.$ac_objext'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_header_compiler=yes
11040 else
11041 echo "$as_me: failed program was:" >&5
11042 cat conftest.$ac_ext >&5
11043 ac_header_compiler=no
11045 rm -f conftest.$ac_objext conftest.$ac_ext
11046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11047 echo "${ECHO_T}$ac_header_compiler" >&6
11049 # Is the header present?
11050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11052 cat >conftest.$ac_ext <<_ACEOF
11053 #line $LINENO "configure"
11054 #include "confdefs.h"
11055 #include <$ac_header>
11056 _ACEOF
11057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11059 ac_status=$?
11060 egrep -v '^ *\+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } >/dev/null; then
11065 if test -s conftest.err; then
11066 ac_cpp_err=$ac_c_preproc_warn_flag
11067 else
11068 ac_cpp_err=
11070 else
11071 ac_cpp_err=yes
11073 if test -z "$ac_cpp_err"; then
11074 ac_header_preproc=yes
11075 else
11076 echo "$as_me: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 ac_header_preproc=no
11080 rm -f conftest.err conftest.$ac_ext
11081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11082 echo "${ECHO_T}$ac_header_preproc" >&6
11084 # So? What about this header?
11085 case $ac_header_compiler:$ac_header_preproc in
11086 yes:no )
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11091 no:yes )
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11098 esac
11099 echo "$as_me:$LINENO: checking for $ac_header" >&5
11100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104 eval "$as_ac_Header=$ac_header_preproc"
11106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11111 cat >>confdefs.h <<_ACEOF
11112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11113 _ACEOF
11117 done
11119 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11120 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11121 if test "${ac_cv_header_stat_broken+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124 cat >conftest.$ac_ext <<_ACEOF
11125 #line $LINENO "configure"
11126 #include "confdefs.h"
11127 #include <sys/types.h>
11128 #include <sys/stat.h>
11130 #if defined(S_ISBLK) && defined(S_IFDIR)
11131 # if S_ISBLK (S_IFDIR)
11132 You lose.
11133 # endif
11134 #endif
11136 #if defined(S_ISBLK) && defined(S_IFCHR)
11137 # if S_ISBLK (S_IFCHR)
11138 You lose.
11139 # endif
11140 #endif
11142 #if defined(S_ISLNK) && defined(S_IFREG)
11143 # if S_ISLNK (S_IFREG)
11144 You lose.
11145 # endif
11146 #endif
11148 #if defined(S_ISSOCK) && defined(S_IFREG)
11149 # if S_ISSOCK (S_IFREG)
11150 You lose.
11151 # endif
11152 #endif
11154 _ACEOF
11155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11156 egrep "You lose" >/dev/null 2>&1; then
11157 ac_cv_header_stat_broken=yes
11158 else
11159 ac_cv_header_stat_broken=no
11161 rm -f conftest*
11164 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11165 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11166 if test $ac_cv_header_stat_broken = yes; then
11168 cat >>confdefs.h <<\_ACEOF
11169 #define STAT_MACROS_BROKEN 1
11170 _ACEOF
11176 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11177 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11178 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181 ac_cv_prog_cc_stdc=no
11182 ac_save_CC=$CC
11183 cat >conftest.$ac_ext <<_ACEOF
11184 #line $LINENO "configure"
11185 #include "confdefs.h"
11186 #include <stdarg.h>
11187 #include <stdio.h>
11188 #include <sys/types.h>
11189 #include <sys/stat.h>
11190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11191 struct buf { int x; };
11192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11193 static char *e (p, i)
11194 char **p;
11195 int i;
11197 return p[i];
11199 static char *f (char * (*g) (char **, int), char **p, ...)
11201 char *s;
11202 va_list v;
11203 va_start (v,p);
11204 s = g (p, va_arg (v,int));
11205 va_end (v);
11206 return s;
11208 int test (int i, double x);
11209 struct s1 {int (*f) (int a);};
11210 struct s2 {int (*f) (double a);};
11211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11212 int argc;
11213 char **argv;
11214 #ifdef F77_DUMMY_MAIN
11215 # ifdef __cplusplus
11216 extern "C"
11217 # endif
11218 int F77_DUMMY_MAIN() { return 1; }
11219 #endif
11221 main ()
11223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11225 return 0;
11227 _ACEOF
11228 # Don't try gcc -ansi; that turns off useful extensions and
11229 # breaks some systems' header files.
11230 # AIX -qlanglvl=ansi
11231 # Ultrix and OSF/1 -std1
11232 # HP-UX 10.20 and later -Ae
11233 # HP-UX older versions -Aa -D_HPUX_SOURCE
11234 # SVR4 -Xc -D__EXTENSIONS__
11235 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11237 CC="$ac_save_CC $ac_arg"
11238 rm -f conftest.$ac_objext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11240 (eval $ac_compile) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -s conftest.$ac_objext'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; }; then
11250 ac_cv_prog_cc_stdc=$ac_arg
11251 break
11252 else
11253 echo "$as_me: failed program was:" >&5
11254 cat conftest.$ac_ext >&5
11256 rm -f conftest.$ac_objext
11257 done
11258 rm -f conftest.$ac_ext conftest.$ac_objext
11259 CC=$ac_save_CC
11263 case "x$ac_cv_prog_cc_stdc" in
11264 x|xno)
11265 echo "$as_me:$LINENO: result: none needed" >&5
11266 echo "${ECHO_T}none needed" >&6 ;;
11268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11269 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11270 CC="$CC $ac_cv_prog_cc_stdc" ;;
11271 esac
11273 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11274 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11275 if test "${ac_cv_c_const+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 cat >conftest.$ac_ext <<_ACEOF
11279 #line $LINENO "configure"
11280 #include "confdefs.h"
11282 #ifdef F77_DUMMY_MAIN
11283 # ifdef __cplusplus
11284 extern "C"
11285 # endif
11286 int F77_DUMMY_MAIN() { return 1; }
11287 #endif
11289 main ()
11291 /* FIXME: Include the comments suggested by Paul. */
11292 #ifndef __cplusplus
11293 /* Ultrix mips cc rejects this. */
11294 typedef int charset[2];
11295 const charset x;
11296 /* SunOS 4.1.1 cc rejects this. */
11297 char const *const *ccp;
11298 char **p;
11299 /* NEC SVR4.0.2 mips cc rejects this. */
11300 struct point {int x, y;};
11301 static struct point const zero = {0,0};
11302 /* AIX XL C 1.02.0.0 rejects this.
11303 It does not let you subtract one const X* pointer from another in
11304 an arm of an if-expression whose if-part is not a constant
11305 expression */
11306 const char *g = "string";
11307 ccp = &g + (g ? g-g : 0);
11308 /* HPUX 7.0 cc rejects these. */
11309 ++ccp;
11310 p = (char**) ccp;
11311 ccp = (char const *const *) p;
11312 { /* SCO 3.2v4 cc rejects this. */
11313 char *t;
11314 char const *s = 0 ? (char *) 0 : (char const *) 0;
11316 *t++ = 0;
11318 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11319 int x[] = {25, 17};
11320 const int *foo = &x[0];
11321 ++foo;
11323 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11324 typedef const int *iptr;
11325 iptr p = 0;
11326 ++p;
11328 { /* AIX XL C 1.02.0.0 rejects this saying
11329 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11330 struct s { int j; const int *ap[3]; };
11331 struct s *b; b->j = 5;
11333 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11334 const int foo = 10;
11336 #endif
11339 return 0;
11341 _ACEOF
11342 rm -f conftest.$ac_objext
11343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11344 (eval $ac_compile) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -s conftest.$ac_objext'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 ac_cv_c_const=yes
11355 else
11356 echo "$as_me: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 ac_cv_c_const=no
11360 rm -f conftest.$ac_objext conftest.$ac_ext
11362 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11363 echo "${ECHO_T}$ac_cv_c_const" >&6
11364 if test $ac_cv_c_const = no; then
11366 cat >>confdefs.h <<\_ACEOF
11367 #define const
11368 _ACEOF
11372 echo "$as_me:$LINENO: checking for inline" >&5
11373 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11374 if test "${ac_cv_c_inline+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377 ac_cv_c_inline=no
11378 for ac_kw in inline __inline__ __inline; do
11379 cat >conftest.$ac_ext <<_ACEOF
11380 #line $LINENO "configure"
11381 #include "confdefs.h"
11382 #ifndef __cplusplus
11383 static $ac_kw int static_foo () {return 0; }
11384 $ac_kw int foo () {return 0; }
11385 #endif
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -s conftest.$ac_objext'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_cv_c_inline=$ac_kw; break
11401 else
11402 echo "$as_me: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11405 rm -f conftest.$ac_objext conftest.$ac_ext
11406 done
11409 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11410 echo "${ECHO_T}$ac_cv_c_inline" >&6
11411 case $ac_cv_c_inline in
11412 inline | yes) ;;
11414 cat >>confdefs.h <<\_ACEOF
11415 #define inline
11416 _ACEOF
11418 *) cat >>confdefs.h <<_ACEOF
11419 #define inline $ac_cv_c_inline
11420 _ACEOF
11422 esac
11424 echo "$as_me:$LINENO: checking for mode_t" >&5
11425 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11426 if test "${ac_cv_type_mode_t+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 else
11429 cat >conftest.$ac_ext <<_ACEOF
11430 #line $LINENO "configure"
11431 #include "confdefs.h"
11432 $ac_includes_default
11433 #ifdef F77_DUMMY_MAIN
11434 # ifdef __cplusplus
11435 extern "C"
11436 # endif
11437 int F77_DUMMY_MAIN() { return 1; }
11438 #endif
11440 main ()
11442 if ((mode_t *) 0)
11443 return 0;
11444 if (sizeof (mode_t))
11445 return 0;
11447 return 0;
11449 _ACEOF
11450 rm -f conftest.$ac_objext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452 (eval $ac_compile) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_cv_type_mode_t=yes
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11466 ac_cv_type_mode_t=no
11468 rm -f conftest.$ac_objext conftest.$ac_ext
11470 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11471 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11472 if test $ac_cv_type_mode_t = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475 #define HAVE_MODE_T 1
11476 _ACEOF
11480 echo "$as_me:$LINENO: checking for off_t" >&5
11481 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11482 if test "${ac_cv_type_off_t+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485 cat >conftest.$ac_ext <<_ACEOF
11486 #line $LINENO "configure"
11487 #include "confdefs.h"
11488 $ac_includes_default
11489 #ifdef F77_DUMMY_MAIN
11490 # ifdef __cplusplus
11491 extern "C"
11492 # endif
11493 int F77_DUMMY_MAIN() { return 1; }
11494 #endif
11496 main ()
11498 if ((off_t *) 0)
11499 return 0;
11500 if (sizeof (off_t))
11501 return 0;
11503 return 0;
11505 _ACEOF
11506 rm -f conftest.$ac_objext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11508 (eval $ac_compile) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -s conftest.$ac_objext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_type_off_t=yes
11519 else
11520 echo "$as_me: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 ac_cv_type_off_t=no
11524 rm -f conftest.$ac_objext conftest.$ac_ext
11526 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11527 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11528 if test $ac_cv_type_off_t = yes; then
11530 cat >>confdefs.h <<_ACEOF
11531 #define HAVE_OFF_T 1
11532 _ACEOF
11536 echo "$as_me:$LINENO: checking for pid_t" >&5
11537 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11538 if test "${ac_cv_type_pid_t+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541 cat >conftest.$ac_ext <<_ACEOF
11542 #line $LINENO "configure"
11543 #include "confdefs.h"
11544 $ac_includes_default
11545 #ifdef F77_DUMMY_MAIN
11546 # ifdef __cplusplus
11547 extern "C"
11548 # endif
11549 int F77_DUMMY_MAIN() { return 1; }
11550 #endif
11552 main ()
11554 if ((pid_t *) 0)
11555 return 0;
11556 if (sizeof (pid_t))
11557 return 0;
11559 return 0;
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -s conftest.$ac_objext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_cv_type_pid_t=yes
11575 else
11576 echo "$as_me: failed program was:" >&5
11577 cat conftest.$ac_ext >&5
11578 ac_cv_type_pid_t=no
11580 rm -f conftest.$ac_objext conftest.$ac_ext
11582 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11583 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11584 if test $ac_cv_type_pid_t = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_PID_T 1
11588 _ACEOF
11592 echo "$as_me:$LINENO: checking for size_t" >&5
11593 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11594 if test "${ac_cv_type_size_t+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597 cat >conftest.$ac_ext <<_ACEOF
11598 #line $LINENO "configure"
11599 #include "confdefs.h"
11600 $ac_includes_default
11601 #ifdef F77_DUMMY_MAIN
11602 # ifdef __cplusplus
11603 extern "C"
11604 # endif
11605 int F77_DUMMY_MAIN() { return 1; }
11606 #endif
11608 main ()
11610 if ((size_t *) 0)
11611 return 0;
11612 if (sizeof (size_t))
11613 return 0;
11615 return 0;
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -s conftest.$ac_objext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 ac_cv_type_size_t=yes
11631 else
11632 echo "$as_me: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11634 ac_cv_type_size_t=no
11636 rm -f conftest.$ac_objext conftest.$ac_ext
11638 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11639 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11640 if test $ac_cv_type_size_t = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define HAVE_SIZE_T 1
11644 _ACEOF
11648 echo "$as_me:$LINENO: checking for ssize_t" >&5
11649 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11650 if test "${ac_cv_type_ssize_t+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653 cat >conftest.$ac_ext <<_ACEOF
11654 #line $LINENO "configure"
11655 #include "confdefs.h"
11656 $ac_includes_default
11657 #ifdef F77_DUMMY_MAIN
11658 # ifdef __cplusplus
11659 extern "C"
11660 # endif
11661 int F77_DUMMY_MAIN() { return 1; }
11662 #endif
11664 main ()
11666 if ((ssize_t *) 0)
11667 return 0;
11668 if (sizeof (ssize_t))
11669 return 0;
11671 return 0;
11673 _ACEOF
11674 rm -f conftest.$ac_objext
11675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11676 (eval $ac_compile) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -s conftest.$ac_objext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_cv_type_ssize_t=yes
11687 else
11688 echo "$as_me: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11690 ac_cv_type_ssize_t=no
11692 rm -f conftest.$ac_objext conftest.$ac_ext
11694 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11695 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11696 if test $ac_cv_type_ssize_t = yes; then
11698 cat >>confdefs.h <<_ACEOF
11699 #define HAVE_SSIZE_T 1
11700 _ACEOF
11705 echo "$as_me:$LINENO: checking for long long" >&5
11706 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11707 if test "${ac_cv_type_long_long+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710 cat >conftest.$ac_ext <<_ACEOF
11711 #line $LINENO "configure"
11712 #include "confdefs.h"
11713 $ac_includes_default
11714 #ifdef F77_DUMMY_MAIN
11715 # ifdef __cplusplus
11716 extern "C"
11717 # endif
11718 int F77_DUMMY_MAIN() { return 1; }
11719 #endif
11721 main ()
11723 if ((long long *) 0)
11724 return 0;
11725 if (sizeof (long long))
11726 return 0;
11728 return 0;
11730 _ACEOF
11731 rm -f conftest.$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -s conftest.$ac_objext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 ac_cv_type_long_long=yes
11744 else
11745 echo "$as_me: failed program was:" >&5
11746 cat conftest.$ac_ext >&5
11747 ac_cv_type_long_long=no
11749 rm -f conftest.$ac_objext conftest.$ac_ext
11751 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11752 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11754 echo "$as_me:$LINENO: checking size of long long" >&5
11755 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11756 if test "${ac_cv_sizeof_long_long+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759 if test "$ac_cv_type_long_long" = yes; then
11760 # The cast to unsigned long works around a bug in the HP C Compiler
11761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11763 # This bug is HP SR number 8606223364.
11764 if test "$cross_compiling" = yes; then
11765 # Depending upon the size, compute the lo and hi bounds.
11766 cat >conftest.$ac_ext <<_ACEOF
11767 #line $LINENO "configure"
11768 #include "confdefs.h"
11769 $ac_includes_default
11770 #ifdef F77_DUMMY_MAIN
11771 # ifdef __cplusplus
11772 extern "C"
11773 # endif
11774 int F77_DUMMY_MAIN() { return 1; }
11775 #endif
11777 main ()
11779 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11780 test_array [0] = 0
11783 return 0;
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try='test -s conftest.$ac_objext'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; }; then
11798 ac_lo=0 ac_mid=0
11799 while :; do
11800 cat >conftest.$ac_ext <<_ACEOF
11801 #line $LINENO "configure"
11802 #include "confdefs.h"
11803 $ac_includes_default
11804 #ifdef F77_DUMMY_MAIN
11805 # ifdef __cplusplus
11806 extern "C"
11807 # endif
11808 int F77_DUMMY_MAIN() { return 1; }
11809 #endif
11811 main ()
11813 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11814 test_array [0] = 0
11817 return 0;
11819 _ACEOF
11820 rm -f conftest.$ac_objext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822 (eval $ac_compile) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -s conftest.$ac_objext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_hi=$ac_mid; break
11833 else
11834 echo "$as_me: failed program was:" >&5
11835 cat conftest.$ac_ext >&5
11836 ac_lo=`expr $ac_mid + 1`
11837 if test $ac_lo -le $ac_mid; then
11838 ac_lo= ac_hi=
11839 break
11841 ac_mid=`expr 2 '*' $ac_mid + 1`
11843 rm -f conftest.$ac_objext conftest.$ac_ext
11844 done
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11848 cat >conftest.$ac_ext <<_ACEOF
11849 #line $LINENO "configure"
11850 #include "confdefs.h"
11851 $ac_includes_default
11852 #ifdef F77_DUMMY_MAIN
11853 # ifdef __cplusplus
11854 extern "C"
11855 # endif
11856 int F77_DUMMY_MAIN() { return 1; }
11857 #endif
11859 main ()
11861 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11862 test_array [0] = 0
11865 return 0;
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_hi=-1 ac_mid=-1
11881 while :; do
11882 cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11884 #include "confdefs.h"
11885 $ac_includes_default
11886 #ifdef F77_DUMMY_MAIN
11887 # ifdef __cplusplus
11888 extern "C"
11889 # endif
11890 int F77_DUMMY_MAIN() { return 1; }
11891 #endif
11893 main ()
11895 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11896 test_array [0] = 0
11899 return 0;
11901 _ACEOF
11902 rm -f conftest.$ac_objext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11904 (eval $ac_compile) 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -s conftest.$ac_objext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_lo=$ac_mid; break
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 cat conftest.$ac_ext >&5
11918 ac_hi=`expr '(' $ac_mid ')' - 1`
11919 if test $ac_mid -le $ac_hi; then
11920 ac_lo= ac_hi=
11921 break
11923 ac_mid=`expr 2 '*' $ac_mid`
11925 rm -f conftest.$ac_objext conftest.$ac_ext
11926 done
11927 else
11928 echo "$as_me: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11930 ac_lo= ac_hi=
11932 rm -f conftest.$ac_objext conftest.$ac_ext
11934 rm -f conftest.$ac_objext conftest.$ac_ext
11935 # Binary search between lo and hi bounds.
11936 while test "x$ac_lo" != "x$ac_hi"; do
11937 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11938 cat >conftest.$ac_ext <<_ACEOF
11939 #line $LINENO "configure"
11940 #include "confdefs.h"
11941 $ac_includes_default
11942 #ifdef F77_DUMMY_MAIN
11943 # ifdef __cplusplus
11944 extern "C"
11945 # endif
11946 int F77_DUMMY_MAIN() { return 1; }
11947 #endif
11949 main ()
11951 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11952 test_array [0] = 0
11955 return 0;
11957 _ACEOF
11958 rm -f conftest.$ac_objext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11960 (eval $ac_compile) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -s conftest.$ac_objext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 ac_hi=$ac_mid
11971 else
11972 echo "$as_me: failed program was:" >&5
11973 cat conftest.$ac_ext >&5
11974 ac_lo=`expr '(' $ac_mid ')' + 1`
11976 rm -f conftest.$ac_objext conftest.$ac_ext
11977 done
11978 case $ac_lo in
11979 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11980 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11981 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11982 { (exit 1); exit 1; }; } ;;
11983 esac
11984 else
11985 if test "$cross_compiling" = yes; then
11986 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11987 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11988 { (exit 1); exit 1; }; }
11989 else
11990 cat >conftest.$ac_ext <<_ACEOF
11991 #line $LINENO "configure"
11992 #include "confdefs.h"
11993 $ac_includes_default
11994 long longval () { return (long) (sizeof (long long)); }
11995 unsigned long ulongval () { return (long) (sizeof (long long)); }
11996 #include <stdio.h>
11997 #include <stdlib.h>
11998 #ifdef F77_DUMMY_MAIN
11999 # ifdef __cplusplus
12000 extern "C"
12001 # endif
12002 int F77_DUMMY_MAIN() { return 1; }
12003 #endif
12005 main ()
12008 FILE *f = fopen ("conftest.val", "w");
12009 if (! f)
12010 exit (1);
12011 if (((long) (sizeof (long long))) < 0)
12013 long i = longval ();
12014 if (i != ((long) (sizeof (long long))))
12015 exit (1);
12016 fprintf (f, "%ld\n", i);
12018 else
12020 unsigned long i = ulongval ();
12021 if (i != ((long) (sizeof (long long))))
12022 exit (1);
12023 fprintf (f, "%lu\n", i);
12025 exit (ferror (f) || fclose (f) != 0);
12028 return 0;
12030 _ACEOF
12031 rm -f conftest$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_cv_sizeof_long_long=`cat conftest.val`
12043 else
12044 echo "$as_me: program exited with status $ac_status" >&5
12045 echo "$as_me: failed program was:" >&5
12046 cat conftest.$ac_ext >&5
12047 ( exit $ac_status )
12048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12049 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12050 { (exit 1); exit 1; }; }
12052 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12055 rm -f conftest.val
12056 else
12057 ac_cv_sizeof_long_long=0
12060 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12061 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12062 cat >>confdefs.h <<_ACEOF
12063 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12064 _ACEOF
12068 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
12069 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12070 if test "${wine_cv_linux_input_h+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073 cat >conftest.$ac_ext <<_ACEOF
12074 #line $LINENO "configure"
12075 #include "confdefs.h"
12077 #include <linux/input.h>
12079 #ifdef F77_DUMMY_MAIN
12080 # ifdef __cplusplus
12081 extern "C"
12082 # endif
12083 int F77_DUMMY_MAIN() { return 1; }
12084 #endif
12086 main ()
12089 int foo = EVIOCGBIT(EV_ABS,42);
12090 int bar = BTN_PINKIE;
12091 int fortytwo = 42;
12094 return 0;
12096 _ACEOF
12097 rm -f conftest.$ac_objext
12098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12099 (eval $ac_compile) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -s conftest.$ac_objext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 wine_cv_linux_input_h=yes
12110 else
12111 echo "$as_me: failed program was:" >&5
12112 cat conftest.$ac_ext >&5
12113 wine_cv_linux_input_h=no
12115 rm -f conftest.$ac_objext conftest.$ac_ext
12118 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
12119 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
12120 if test "$wine_cv_linux_input_h" = "yes"
12121 then
12123 cat >>confdefs.h <<\_ACEOF
12124 #define HAVE_CORRECT_LINUXINPUT_H 1
12125 _ACEOF
12130 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
12131 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
12132 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 #include "confdefs.h"
12139 #include <netdb.h>
12141 #ifdef F77_DUMMY_MAIN
12142 # ifdef __cplusplus
12143 extern "C"
12144 # endif
12145 int F77_DUMMY_MAIN() { return 1; }
12146 #endif
12148 main ()
12151 char *name=NULL;
12152 struct hostent he;
12153 struct hostent *result;
12154 char *buf=NULL;
12155 int bufsize=0;
12156 int res,errnr;
12157 char *addr=NULL;
12158 int addrlen=0;
12159 int addrtype=0;
12160 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
12161 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
12164 return 0;
12166 _ACEOF
12167 rm -f conftest.$ac_objext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169 (eval $ac_compile) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try='test -s conftest.$ac_objext'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12176 ac_status=$?
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 wine_cv_linux_gethostbyname_r_6=yes
12180 else
12181 echo "$as_me: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 wine_cv_linux_gethostbyname_r_6=no
12186 rm -f conftest.$ac_objext conftest.$ac_ext
12189 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
12190 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
12191 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
12192 then
12194 cat >>confdefs.h <<\_ACEOF
12195 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
12196 _ACEOF
12200 if test "$ac_cv_header_linux_joystick_h" = "yes"
12201 then
12202 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
12203 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
12204 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 cat >conftest.$ac_ext <<_ACEOF
12208 #line $LINENO "configure"
12209 #include "confdefs.h"
12211 #include <sys/ioctl.h>
12212 #include <linux/joystick.h>
12214 struct js_event blub;
12215 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
12216 #error "no 2.2 header"
12217 #endif
12219 #ifdef F77_DUMMY_MAIN
12220 # ifdef __cplusplus
12221 extern "C"
12222 # endif
12223 int F77_DUMMY_MAIN() { return 1; }
12224 #endif
12226 main ()
12228 /*empty*/
12230 return 0;
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235 (eval $ac_compile) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 wine_cv_linux_joystick_22_api=yes
12246 else
12247 echo "$as_me: failed program was:" >&5
12248 cat conftest.$ac_ext >&5
12249 wine_cv_linux_joystick_22_api=no
12251 rm -f conftest.$ac_objext conftest.$ac_ext
12254 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
12255 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
12256 if test "$wine_cv_linux_joystick_22_api" = "yes"
12257 then
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_LINUX_22_JOYSTICK_API 1
12261 _ACEOF
12267 if test "$ac_cv_header_sys_vfs_h" = "yes"
12268 then
12269 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
12270 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
12271 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274 cat >conftest.$ac_ext <<_ACEOF
12275 #line $LINENO "configure"
12276 #include "confdefs.h"
12278 #include <sys/types.h>
12279 #ifdef HAVE_SYS_PARAM_H
12280 # include <sys/param.h>
12281 #endif
12282 #include <sys/vfs.h>
12284 #ifdef F77_DUMMY_MAIN
12285 # ifdef __cplusplus
12286 extern "C"
12287 # endif
12288 int F77_DUMMY_MAIN() { return 1; }
12289 #endif
12291 main ()
12294 struct statfs stfs;
12296 memset(&stfs,0,sizeof(stfs));
12299 return 0;
12301 _ACEOF
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -s conftest.$ac_objext'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 wine_cv_sys_vfs_has_statfs=yes
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 cat conftest.$ac_ext >&5
12318 wine_cv_sys_vfs_has_statfs=no
12321 rm -f conftest.$ac_objext conftest.$ac_ext
12324 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
12325 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
12326 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
12327 then
12329 cat >>confdefs.h <<\_ACEOF
12330 #define STATFS_DEFINED_BY_SYS_VFS 1
12331 _ACEOF
12336 if test "$ac_cv_header_sys_statfs_h" = "yes"
12337 then
12338 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
12339 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
12340 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343 cat >conftest.$ac_ext <<_ACEOF
12344 #line $LINENO "configure"
12345 #include "confdefs.h"
12347 #include <sys/types.h>
12348 #ifdef HAVE_SYS_PARAM_H
12349 # include <sys/param.h>
12350 #endif
12351 #include <sys/statfs.h>
12353 #ifdef F77_DUMMY_MAIN
12354 # ifdef __cplusplus
12355 extern "C"
12356 # endif
12357 int F77_DUMMY_MAIN() { return 1; }
12358 #endif
12360 main ()
12363 struct statfs stfs;
12366 return 0;
12368 _ACEOF
12369 rm -f conftest.$ac_objext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371 (eval $ac_compile) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -s conftest.$ac_objext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 wine_cv_sys_statfs_has_statfs=yes
12382 else
12383 echo "$as_me: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 wine_cv_sys_statfs_has_statfs=no
12388 rm -f conftest.$ac_objext conftest.$ac_ext
12391 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
12392 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
12393 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
12394 then
12396 cat >>confdefs.h <<\_ACEOF
12397 #define STATFS_DEFINED_BY_SYS_STATFS 1
12398 _ACEOF
12403 if test "$ac_cv_header_sys_mount_h" = "yes"
12404 then
12405 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
12406 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
12407 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 #include "confdefs.h"
12414 #include <sys/types.h>
12415 #ifdef HAVE_SYS_PARAM_H
12416 # include <sys/param.h>
12417 #endif
12418 #include <sys/mount.h>
12420 #ifdef F77_DUMMY_MAIN
12421 # ifdef __cplusplus
12422 extern "C"
12423 # endif
12424 int F77_DUMMY_MAIN() { return 1; }
12425 #endif
12427 main ()
12430 struct statfs stfs;
12433 return 0;
12435 _ACEOF
12436 rm -f conftest.$ac_objext
12437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12438 (eval $ac_compile) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -s conftest.$ac_objext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 wine_cv_sys_mount_has_statfs=yes
12449 else
12450 echo "$as_me: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12452 wine_cv_sys_mount_has_statfs=no
12455 rm -f conftest.$ac_objext conftest.$ac_ext
12458 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
12459 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
12460 if test "$wine_cv_sys_mount_has_statfs" = "yes"
12461 then
12463 cat >>confdefs.h <<\_ACEOF
12464 #define STATFS_DEFINED_BY_SYS_MOUNT 1
12465 _ACEOF
12475 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
12476 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
12477 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480 cat >conftest.$ac_ext <<_ACEOF
12481 #line $LINENO "configure"
12482 #include "confdefs.h"
12483 #include <sys/types.h>
12484 #ifdef HAVE_SYS_PARAM_H
12485 # include <sys/param.h>
12486 #endif
12487 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12488 # include <sys/mount.h>
12489 #else
12490 # ifdef STATFS_DEFINED_BY_SYS_VFS
12491 # include <sys/vfs.h>
12492 # else
12493 # ifdef STATFS_DEFINED_BY_SYS_STATFS
12494 # include <sys/statfs.h>
12495 # endif
12496 # endif
12497 #endif
12498 #ifdef F77_DUMMY_MAIN
12499 # ifdef __cplusplus
12500 extern "C"
12501 # endif
12502 int F77_DUMMY_MAIN() { return 1; }
12503 #endif
12505 main ()
12507 struct statfs s; s.f_bfree = 0
12509 return 0;
12511 _ACEOF
12512 rm -f conftest.$ac_objext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12514 (eval $ac_compile) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 ac_cv_c_statfs_f_bfree="yes"
12525 else
12526 echo "$as_me: failed program was:" >&5
12527 cat conftest.$ac_ext >&5
12528 ac_cv_c_statfs_f_bfree="no"
12530 rm -f conftest.$ac_objext conftest.$ac_ext
12532 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
12533 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
12534 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
12536 cat >>confdefs.h <<\_ACEOF
12537 #define STATFS_HAS_BFREE 1
12538 _ACEOF
12544 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
12545 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
12546 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549 cat >conftest.$ac_ext <<_ACEOF
12550 #line $LINENO "configure"
12551 #include "confdefs.h"
12552 #include <sys/types.h>
12553 #ifdef HAVE_SYS_PARAM_H
12554 # include <sys/param.h>
12555 #endif
12556 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12557 # include <sys/mount.h>
12558 #else
12559 # ifdef STATFS_DEFINED_BY_SYS_VFS
12560 # include <sys/vfs.h>
12561 # else
12562 # ifdef STATFS_DEFINED_BY_SYS_STATFS
12563 # include <sys/statfs.h>
12564 # endif
12565 # endif
12566 #endif
12567 #ifdef F77_DUMMY_MAIN
12568 # ifdef __cplusplus
12569 extern "C"
12570 # endif
12571 int F77_DUMMY_MAIN() { return 1; }
12572 #endif
12574 main ()
12576 struct statfs s; s.f_bavail = 0
12578 return 0;
12580 _ACEOF
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583 (eval $ac_compile) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -s conftest.$ac_objext'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 ac_cv_c_statfs_f_bavail="yes"
12594 else
12595 echo "$as_me: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12597 ac_cv_c_statfs_f_bavail="no"
12599 rm -f conftest.$ac_objext conftest.$ac_ext
12601 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
12602 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
12603 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
12605 cat >>confdefs.h <<\_ACEOF
12606 #define STATFS_HAS_BAVAIL 1
12607 _ACEOF
12613 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
12614 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
12615 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618 cat >conftest.$ac_ext <<_ACEOF
12619 #line $LINENO "configure"
12620 #include "confdefs.h"
12621 #include <sys/types.h>
12622 #include <sys/socket.h>
12623 #ifdef F77_DUMMY_MAIN
12624 # ifdef __cplusplus
12625 extern "C"
12626 # endif
12627 int F77_DUMMY_MAIN() { return 1; }
12628 #endif
12630 main ()
12632 struct msghdr s; s.msg_accrights = 0
12634 return 0;
12636 _ACEOF
12637 rm -f conftest.$ac_objext
12638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12639 (eval $ac_compile) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } &&
12643 { ac_try='test -s conftest.$ac_objext'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
12649 ac_cv_c_msghdr_msg_accrights="yes"
12650 else
12651 echo "$as_me: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12653 ac_cv_c_msghdr_msg_accrights="no"
12655 rm -f conftest.$ac_objext conftest.$ac_ext
12657 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
12658 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
12659 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
12661 cat >>confdefs.h <<\_ACEOF
12662 #define HAVE_MSGHDR_ACCRIGHTS 1
12663 _ACEOF
12669 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
12670 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
12671 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674 cat >conftest.$ac_ext <<_ACEOF
12675 #line $LINENO "configure"
12676 #include "confdefs.h"
12677 #include <sys/types.h>
12678 #include <sys/socket.h>
12679 #ifdef F77_DUMMY_MAIN
12680 # ifdef __cplusplus
12681 extern "C"
12682 # endif
12683 int F77_DUMMY_MAIN() { return 1; }
12684 #endif
12686 main ()
12688 struct sockaddr s; s.sa_len = 0
12690 return 0;
12692 _ACEOF
12693 rm -f conftest.$ac_objext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12695 (eval $ac_compile) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 ac_cv_c_sockaddr_sa_len="yes"
12706 else
12707 echo "$as_me: failed program was:" >&5
12708 cat conftest.$ac_ext >&5
12709 ac_cv_c_sockaddr_sa_len="no"
12711 rm -f conftest.$ac_objext conftest.$ac_ext
12713 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
12714 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
12715 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
12717 cat >>confdefs.h <<\_ACEOF
12718 #define HAVE_SOCKADDR_SA_LEN 1
12719 _ACEOF
12725 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
12726 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
12727 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730 cat >conftest.$ac_ext <<_ACEOF
12731 #line $LINENO "configure"
12732 #include "confdefs.h"
12733 #include <sys/types.h>
12734 #include <sys/socket.h>
12735 #include <sys/un.h>
12736 #ifdef F77_DUMMY_MAIN
12737 # ifdef __cplusplus
12738 extern "C"
12739 # endif
12740 int F77_DUMMY_MAIN() { return 1; }
12741 #endif
12743 main ()
12745 struct sockaddr_un s; s.sun_len = 0
12747 return 0;
12749 _ACEOF
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -s conftest.$ac_objext'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ac_cv_c_sockaddr_un_sun_len="yes"
12763 else
12764 echo "$as_me: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12766 ac_cv_c_sockaddr_un_sun_len="no"
12768 rm -f conftest.$ac_objext conftest.$ac_ext
12770 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
12771 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
12772 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
12774 cat >>confdefs.h <<\_ACEOF
12775 #define HAVE_SOCKADDR_SUN_LEN 1
12776 _ACEOF
12783 case $host_cpu in
12784 *i345678986* )
12785 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
12786 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
12787 if test "${ac_cv_cpp_def_i386+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790 cat >conftest.$ac_ext <<_ACEOF
12791 #line $LINENO "configure"
12792 #include "confdefs.h"
12793 #ifndef __i386__
12795 #endif
12796 _ACEOF
12797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12798 egrep "yes" >/dev/null 2>&1; then
12799 ac_cv_cpp_def_i386="yes"
12800 else
12801 ac_cv_cpp_def_i386="no"
12803 rm -f conftest*
12806 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
12807 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
12809 esac
12810 if test "$ac_cv_cpp_def_i386" = "yes"
12811 then
12812 CFLAGS="$CFLAGS -D__i386__"
12813 LINTFLAGS="$LINTFLAGS -D__i386__"
12822 ac_config_commands="$ac_config_commands controls"
12824 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
12826 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
12828 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
12830 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
12832 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
12834 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
12836 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
12838 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
12840 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
12842 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
12844 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
12846 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
12848 ac_config_commands="$ac_config_commands dlls/kernel/messages"
12850 ac_config_commands="$ac_config_commands dlls/kernel/tests"
12852 ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
12854 ac_config_commands="$ac_config_commands dlls/shlwapi/tests"
12856 ac_config_commands="$ac_config_commands dlls/user/dde"
12858 ac_config_commands="$ac_config_commands dlls/user/resources"
12860 ac_config_commands="$ac_config_commands dlls/user/tests"
12862 ac_config_commands="$ac_config_commands dlls/wineps/data"
12864 ac_config_commands="$ac_config_commands dlls/winsock/tests"
12866 ac_config_commands="$ac_config_commands files"
12868 ac_config_commands="$ac_config_commands graphics"
12870 ac_config_commands="$ac_config_commands graphics/x11drv"
12872 ac_config_commands="$ac_config_commands if1632"
12874 ac_config_commands="$ac_config_commands include/wine"
12876 ac_config_commands="$ac_config_commands loader"
12878 ac_config_commands="$ac_config_commands loader/ne"
12880 ac_config_commands="$ac_config_commands memory"
12882 ac_config_commands="$ac_config_commands misc"
12884 ac_config_commands="$ac_config_commands msdos"
12886 ac_config_commands="$ac_config_commands objects"
12888 ac_config_commands="$ac_config_commands programs/regapi/tests"
12890 ac_config_commands="$ac_config_commands programs/winetest/tests"
12892 ac_config_commands="$ac_config_commands relay32"
12894 ac_config_commands="$ac_config_commands scheduler"
12896 ac_config_commands="$ac_config_commands win32"
12898 ac_config_commands="$ac_config_commands windows"
12901 MAKE_RULES=Make.rules
12904 MAKE_DLL_RULES=dlls/Makedll.rules
12907 MAKE_PROG_RULES=programs/Makeprog.rules
12910 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msg711/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile libtest/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile"
12913 cat >confcache <<\_ACEOF
12914 # This file is a shell script that caches the results of configure
12915 # tests run on this system so they can be shared between configure
12916 # scripts and configure runs, see configure's option --config-cache.
12917 # It is not useful on other systems. If it contains results you don't
12918 # want to keep, you may remove or edit it.
12920 # config.status only pays attention to the cache file if you give it
12921 # the --recheck option to rerun configure.
12923 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12924 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12925 # following values.
12927 _ACEOF
12929 # The following way of writing the cache mishandles newlines in values,
12930 # but we know of no workaround that is simple, portable, and efficient.
12931 # So, don't put newlines in cache variables' values.
12932 # Ultrix sh set writes to stderr and can't be redirected directly,
12933 # and sets the high bit in the cache file unless we assign to the vars.
12935 (set) 2>&1 |
12936 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12937 *ac_space=\ *)
12938 # `set' does not quote correctly, so add quotes (double-quote
12939 # substitution turns \\\\ into \\, and sed turns \\ into \).
12940 sed -n \
12941 "s/'/'\\\\''/g;
12942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12945 # `set' quotes correctly as required by POSIX, so do not add quotes.
12946 sed -n \
12947 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12949 esac;
12951 sed '
12952 t clear
12953 : clear
12954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12955 t end
12956 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12957 : end' >>confcache
12958 if cmp -s $cache_file confcache; then :; else
12959 if test -w $cache_file; then
12960 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12961 cat confcache >$cache_file
12962 else
12963 echo "not updating unwritable cache $cache_file"
12966 rm -f confcache
12968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12969 # Let make expand exec_prefix.
12970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12972 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12973 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12974 # trailing colons and then remove the whole line if VPATH becomes empty
12975 # (actually we leave an empty line to preserve line numbers).
12976 if test "x$srcdir" = x.; then
12977 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12978 s/:*\$(srcdir):*/:/;
12979 s/:*\${srcdir}:*/:/;
12980 s/:*@srcdir@:*/:/;
12981 s/^\([^=]*=[ ]*\):*/\1/;
12982 s/:*$//;
12983 s/^[^=]*=[ ]*$//;
12987 DEFS=-DHAVE_CONFIG_H
12990 : ${CONFIG_STATUS=./config.status}
12991 ac_clean_files_save=$ac_clean_files
12992 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12993 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12994 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12995 cat >$CONFIG_STATUS <<_ACEOF
12996 #! $SHELL
12997 # Generated by $as_me.
12998 # Run this file to recreate the current configuration.
12999 # Compiler output produced by configure, useful for debugging
13000 # configure, is in config.log if it exists.
13002 debug=false
13003 SHELL=\${CONFIG_SHELL-$SHELL}
13004 _ACEOF
13006 cat >>$CONFIG_STATUS <<\_ACEOF
13008 ## --------------------- ##
13009 ## M4sh Initialization. ##
13010 ## --------------------- ##
13012 # Be Bourne compatible
13013 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13014 emulate sh
13015 NULLCMD=:
13016 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13017 set -o posix
13020 # NLS nuisances.
13021 # Support unset when possible.
13022 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13023 as_unset=unset
13024 else
13025 as_unset=false
13028 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
13029 { $as_unset LANG || test "${LANG+set}" != set; } ||
13030 { LANG=C; export LANG; }
13031 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
13032 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
13033 { LC_ALL=C; export LC_ALL; }
13034 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
13035 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
13036 { LC_TIME=C; export LC_TIME; }
13037 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
13038 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
13039 { LC_CTYPE=C; export LC_CTYPE; }
13040 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
13041 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
13042 { LANGUAGE=C; export LANGUAGE; }
13043 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
13044 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
13045 { LC_COLLATE=C; export LC_COLLATE; }
13046 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
13047 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
13048 { LC_NUMERIC=C; export LC_NUMERIC; }
13049 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
13050 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
13051 { LC_MESSAGES=C; export LC_MESSAGES; }
13054 # Name of the executable.
13055 as_me=`(basename "$0") 2>/dev/null ||
13056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13057 X"$0" : 'X\(//\)$' \| \
13058 X"$0" : 'X\(/\)$' \| \
13059 . : '\(.\)' 2>/dev/null ||
13060 echo X/"$0" |
13061 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13062 /^X\/\(\/\/\)$/{ s//\1/; q; }
13063 /^X\/\(\/\).*/{ s//\1/; q; }
13064 s/.*/./; q'`
13066 # PATH needs CR, and LINENO needs CR and PATH.
13067 # Avoid depending upon Character Ranges.
13068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13071 as_cr_digits='0123456789'
13072 as_cr_alnum=$as_cr_Letters$as_cr_digits
13074 # The user is always right.
13075 if test "${PATH_SEPARATOR+set}" != set; then
13076 echo "#! /bin/sh" >conftest.sh
13077 echo "exit 0" >>conftest.sh
13078 chmod +x conftest.sh
13079 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
13080 PATH_SEPARATOR=';'
13081 else
13082 PATH_SEPARATOR=:
13084 rm -f conftest.sh
13088 as_lineno_1=$LINENO
13089 as_lineno_2=$LINENO
13090 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13091 test "x$as_lineno_1" != "x$as_lineno_2" &&
13092 test "x$as_lineno_3" = "x$as_lineno_2" || {
13093 # Find who we are. Look in the path if we contain no path at all
13094 # relative or not.
13095 case $0 in
13096 *[\\/]* ) as_myself=$0 ;;
13097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13100 IFS=$as_save_IFS
13101 test -z "$as_dir" && as_dir=.
13102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13103 done
13106 esac
13107 # We did not find ourselves, most probably we were run as `sh COMMAND'
13108 # in which case we are not to be found in the path.
13109 if test "x$as_myself" = x; then
13110 as_myself=$0
13112 if test ! -f "$as_myself"; then
13113 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13114 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13115 { (exit 1); exit 1; }; }
13117 case $CONFIG_SHELL in
13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13122 IFS=$as_save_IFS
13123 test -z "$as_dir" && as_dir=.
13124 for as_base in sh bash ksh sh5; do
13125 case $as_dir in
13127 if ("$as_dir/$as_base" -c '
13128 as_lineno_1=$LINENO
13129 as_lineno_2=$LINENO
13130 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13131 test "x$as_lineno_1" != "x$as_lineno_2" &&
13132 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13133 CONFIG_SHELL=$as_dir/$as_base
13134 export CONFIG_SHELL
13135 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13136 fi;;
13137 esac
13138 done
13139 done
13141 esac
13143 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13144 # uniformly replaced by the line number. The first 'sed' inserts a
13145 # line-number line before each line; the second 'sed' does the real
13146 # work. The second script uses 'N' to pair each line-number line
13147 # with the numbered line, and appends trailing '-' during
13148 # substitution so that $LINENO is not a special case at line end.
13149 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13150 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13151 sed '=' <$as_myself |
13152 sed '
13154 s,$,-,
13155 : loop
13156 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13157 t loop
13158 s,-$,,
13159 s,^['$as_cr_digits']*\n,,
13160 ' >$as_me.lineno &&
13161 chmod +x $as_me.lineno ||
13162 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13163 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13164 { (exit 1); exit 1; }; }
13166 # Don't try to exec as it changes $[0], causing all sort of problems
13167 # (the dirname of $[0] is not the place where we might find the
13168 # original and so on. Autoconf is especially sensible to this).
13169 . ./$as_me.lineno
13170 # Exit status is that of the last command.
13171 exit
13175 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13176 *c*,-n*) ECHO_N= ECHO_C='
13177 ' ECHO_T=' ' ;;
13178 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13179 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13180 esac
13182 if expr a : '\(a\)' >/dev/null 2>&1; then
13183 as_expr=expr
13184 else
13185 as_expr=false
13188 rm -f conf$$ conf$$.exe conf$$.file
13189 echo >conf$$.file
13190 if ln -s conf$$.file conf$$ 2>/dev/null; then
13191 # We could just check for DJGPP; but this test a) works b) is more generic
13192 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13193 if test -f conf$$.exe; then
13194 # Don't use ln at all; we don't have any links
13195 as_ln_s='cp -p'
13196 else
13197 as_ln_s='ln -s'
13199 elif ln conf$$.file conf$$ 2>/dev/null; then
13200 as_ln_s=ln
13201 else
13202 as_ln_s='cp -p'
13204 rm -f conf$$ conf$$.exe conf$$.file
13206 as_executable_p="test -f"
13208 # Sed expression to map a string onto a valid CPP name.
13209 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13211 # Sed expression to map a string onto a valid variable name.
13212 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13215 # IFS
13216 # We need space, tab and new line, in precisely that order.
13217 as_nl='
13219 IFS=" $as_nl"
13221 # CDPATH.
13222 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
13224 exec 6>&1
13226 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13227 # report actual input values of CONFIG_FILES etc. instead of their
13228 # values after options handling. Logging --version etc. is OK.
13229 exec 5>>config.log
13231 echo
13232 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13233 ## Running $as_me. ##
13234 _ASBOX
13235 } >&5
13236 cat >&5 <<_CSEOF
13238 This file was extended by Wine $as_me 20020509, which was
13239 generated by GNU Autoconf 2.53. Invocation command line was
13241 CONFIG_FILES = $CONFIG_FILES
13242 CONFIG_HEADERS = $CONFIG_HEADERS
13243 CONFIG_LINKS = $CONFIG_LINKS
13244 CONFIG_COMMANDS = $CONFIG_COMMANDS
13245 $ $0 $@
13247 _CSEOF
13248 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13249 echo >&5
13250 _ACEOF
13252 # Files that config.status was made for.
13253 if test -n "$ac_config_files"; then
13254 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13257 if test -n "$ac_config_headers"; then
13258 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13261 if test -n "$ac_config_links"; then
13262 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13265 if test -n "$ac_config_commands"; then
13266 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13269 cat >>$CONFIG_STATUS <<\_ACEOF
13271 ac_cs_usage="\
13272 \`$as_me' instantiates files from templates according to the
13273 current configuration.
13275 Usage: $0 [OPTIONS] [FILE]...
13277 -h, --help print this help, then exit
13278 -V, --version print version number, then exit
13279 -d, --debug don't remove temporary files
13280 --recheck update $as_me by reconfiguring in the same conditions
13281 --file=FILE[:TEMPLATE]
13282 instantiate the configuration file FILE
13283 --header=FILE[:TEMPLATE]
13284 instantiate the configuration header FILE
13286 Configuration files:
13287 $config_files
13289 Configuration headers:
13290 $config_headers
13292 Configuration commands:
13293 $config_commands
13295 Report bugs to <bug-autoconf@gnu.org>."
13296 _ACEOF
13298 cat >>$CONFIG_STATUS <<_ACEOF
13299 ac_cs_version="\\
13300 Wine config.status 20020509
13301 configured by $0, generated by GNU Autoconf 2.53,
13302 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13304 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13305 Free Software Foundation, Inc.
13306 This config.status script is free software; the Free Software Foundation
13307 gives unlimited permission to copy, distribute and modify it."
13308 srcdir=$srcdir
13309 INSTALL="$INSTALL"
13310 _ACEOF
13312 cat >>$CONFIG_STATUS <<\_ACEOF
13313 # If no file are specified by the user, then we need to provide default
13314 # value. By we need to know if files were specified by the user.
13315 ac_need_defaults=:
13316 while test $# != 0
13318 case $1 in
13319 --*=*)
13320 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13321 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13322 shift
13323 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13324 shift
13326 -*);;
13327 *) # This is not an option, so the user has probably given explicit
13328 # arguments.
13329 ac_need_defaults=false;;
13330 esac
13332 case $1 in
13333 # Handling of the options.
13334 _ACEOF
13335 cat >>$CONFIG_STATUS <<_ACEOF
13336 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13337 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13338 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13339 _ACEOF
13340 cat >>$CONFIG_STATUS <<\_ACEOF
13341 --version | --vers* | -V )
13342 echo "$ac_cs_version"; exit 0 ;;
13343 --he | --h)
13344 # Conflict between --help and --header
13345 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13346 Try \`$0 --help' for more information." >&5
13347 echo "$as_me: error: ambiguous option: $1
13348 Try \`$0 --help' for more information." >&2;}
13349 { (exit 1); exit 1; }; };;
13350 --help | --hel | -h )
13351 echo "$ac_cs_usage"; exit 0 ;;
13352 --debug | --d* | -d )
13353 debug=: ;;
13354 --file | --fil | --fi | --f )
13355 shift
13356 CONFIG_FILES="$CONFIG_FILES $1"
13357 ac_need_defaults=false;;
13358 --header | --heade | --head | --hea )
13359 shift
13360 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13361 ac_need_defaults=false;;
13363 # This is an error.
13364 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13365 Try \`$0 --help' for more information." >&5
13366 echo "$as_me: error: unrecognized option: $1
13367 Try \`$0 --help' for more information." >&2;}
13368 { (exit 1); exit 1; }; } ;;
13370 *) ac_config_targets="$ac_config_targets $1" ;;
13372 esac
13373 shift
13374 done
13376 _ACEOF
13382 cat >>$CONFIG_STATUS <<\_ACEOF
13383 for ac_config_target in $ac_config_targets
13385 case "$ac_config_target" in
13386 # Handling of arguments.
13387 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
13388 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
13389 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
13390 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13391 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
13392 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
13393 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
13394 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
13395 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
13396 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
13397 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
13398 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
13399 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
13400 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
13401 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
13402 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
13403 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
13404 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
13405 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
13406 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
13407 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
13408 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
13409 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
13410 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
13411 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
13412 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
13413 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
13414 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
13415 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
13416 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
13417 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
13418 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
13419 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
13420 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
13421 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
13422 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
13423 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
13424 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
13425 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
13426 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
13427 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
13428 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
13429 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
13430 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
13431 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
13432 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
13433 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
13434 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
13435 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
13436 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
13437 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
13438 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
13439 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
13440 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
13441 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
13442 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
13443 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
13444 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
13445 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
13446 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
13447 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
13448 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
13449 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
13450 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
13451 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
13452 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
13453 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
13454 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
13455 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
13456 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
13457 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
13458 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
13459 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
13460 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
13461 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
13462 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
13463 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
13464 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
13465 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
13466 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
13467 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
13468 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
13469 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
13470 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
13471 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
13472 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
13473 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
13474 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
13475 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
13476 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
13477 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
13478 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
13479 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
13480 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
13481 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
13482 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
13483 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13484 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
13485 "libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtest/Makefile" ;;
13486 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
13487 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
13488 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
13489 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
13490 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
13491 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
13492 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
13493 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
13494 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
13495 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
13496 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
13497 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
13498 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
13499 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
13500 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
13501 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
13502 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
13503 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
13504 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
13505 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
13506 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
13507 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
13508 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
13509 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13510 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13511 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
13512 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
13513 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
13514 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
13515 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
13516 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
13517 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
13518 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
13519 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
13520 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
13521 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
13522 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
13523 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
13524 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
13525 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
13526 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
13527 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
13528 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
13529 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
13530 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
13531 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
13532 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
13533 "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
13534 "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;;
13535 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
13536 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
13537 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
13538 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
13539 "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;;
13540 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
13541 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
13542 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
13543 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
13544 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
13545 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
13546 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
13547 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
13548 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
13549 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
13550 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
13551 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
13552 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
13553 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
13554 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
13555 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
13556 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
13557 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13558 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13559 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13560 { (exit 1); exit 1; }; };;
13561 esac
13562 done
13564 # If the user did not use the arguments to specify the items to instantiate,
13565 # then the envvar interface is used. Set only those that are not.
13566 # We use the long form for the default assignment because of an extremely
13567 # bizarre bug on SunOS 4.1.3.
13568 if $ac_need_defaults; then
13569 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13570 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13571 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13574 # Create a temporary directory, and hook for its removal unless debugging.
13575 $debug ||
13577 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13578 trap '{ (exit 1); exit 1; }' 1 2 13 15
13581 # Create a (secure) tmp directory for tmp files.
13582 : ${TMPDIR=/tmp}
13584 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13585 test -n "$tmp" && test -d "$tmp"
13586 } ||
13588 tmp=$TMPDIR/cs$$-$RANDOM
13589 (umask 077 && mkdir $tmp)
13590 } ||
13592 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13593 { (exit 1); exit 1; }
13596 _ACEOF
13598 cat >>$CONFIG_STATUS <<_ACEOF
13601 # CONFIG_FILES section.
13604 # No need to generate the scripts if there are no CONFIG_FILES.
13605 # This happens for instance when ./config.status config.h
13606 if test -n "\$CONFIG_FILES"; then
13607 # Protect against being on the right side of a sed subst in config.status.
13608 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13609 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13610 s,@SHELL@,$SHELL,;t t
13611 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13612 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13613 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13614 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13615 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13616 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13617 s,@exec_prefix@,$exec_prefix,;t t
13618 s,@prefix@,$prefix,;t t
13619 s,@program_transform_name@,$program_transform_name,;t t
13620 s,@bindir@,$bindir,;t t
13621 s,@sbindir@,$sbindir,;t t
13622 s,@libexecdir@,$libexecdir,;t t
13623 s,@datadir@,$datadir,;t t
13624 s,@sysconfdir@,$sysconfdir,;t t
13625 s,@sharedstatedir@,$sharedstatedir,;t t
13626 s,@localstatedir@,$localstatedir,;t t
13627 s,@libdir@,$libdir,;t t
13628 s,@includedir@,$includedir,;t t
13629 s,@oldincludedir@,$oldincludedir,;t t
13630 s,@infodir@,$infodir,;t t
13631 s,@mandir@,$mandir,;t t
13632 s,@build_alias@,$build_alias,;t t
13633 s,@host_alias@,$host_alias,;t t
13634 s,@target_alias@,$target_alias,;t t
13635 s,@DEFS@,$DEFS,;t t
13636 s,@ECHO_C@,$ECHO_C,;t t
13637 s,@ECHO_N@,$ECHO_N,;t t
13638 s,@ECHO_T@,$ECHO_T,;t t
13639 s,@LIBS@,$LIBS,;t t
13640 s,@OPTIONS@,$OPTIONS,;t t
13641 s,@build@,$build,;t t
13642 s,@build_cpu@,$build_cpu,;t t
13643 s,@build_vendor@,$build_vendor,;t t
13644 s,@build_os@,$build_os,;t t
13645 s,@host@,$host,;t t
13646 s,@host_cpu@,$host_cpu,;t t
13647 s,@host_vendor@,$host_vendor,;t t
13648 s,@host_os@,$host_os,;t t
13649 s,@SET_MAKE@,$SET_MAKE,;t t
13650 s,@CC@,$CC,;t t
13651 s,@CFLAGS@,$CFLAGS,;t t
13652 s,@LDFLAGS@,$LDFLAGS,;t t
13653 s,@CPPFLAGS@,$CPPFLAGS,;t t
13654 s,@ac_ct_CC@,$ac_ct_CC,;t t
13655 s,@EXEEXT@,$EXEEXT,;t t
13656 s,@OBJEXT@,$OBJEXT,;t t
13657 s,@CPP@,$CPP,;t t
13658 s,@TOOLSDIR@,$TOOLSDIR,;t t
13659 s,@X_CFLAGS@,$X_CFLAGS,;t t
13660 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13661 s,@X_LIBS@,$X_LIBS,;t t
13662 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13663 s,@YACC@,$YACC,;t t
13664 s,@LEX@,$LEX,;t t
13665 s,@LEXLIB@,$LEXLIB,;t t
13666 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13667 s,@XYACC@,$XYACC,;t t
13668 s,@XLEX@,$XLEX,;t t
13669 s,@AR@,$AR,;t t
13670 s,@ac_ct_AR@,$ac_ct_AR,;t t
13671 s,@RANLIB@,$RANLIB,;t t
13672 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13673 s,@STRIP@,$STRIP,;t t
13674 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13675 s,@WINDRES@,$WINDRES,;t t
13676 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
13677 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13678 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13679 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13680 s,@LN_S@,$LN_S,;t t
13681 s,@C2MAN@,$C2MAN,;t t
13682 s,@LDCONFIG@,$LDCONFIG,;t t
13683 s,@LDCOMBINE@,$LDCOMBINE,;t t
13684 s,@ac_ct_LDCOMBINE@,$ac_ct_LDCOMBINE,;t t
13685 s,@LINT@,$LINT,;t t
13686 s,@LINTFLAGS@,$LINTFLAGS,;t t
13687 s,@JPEGLIB@,$JPEGLIB,;t t
13688 s,@XLIB@,$XLIB,;t t
13689 s,@XFILES@,$XFILES,;t t
13690 s,@OPENGLFILES@,$OPENGLFILES,;t t
13691 s,@GLU32FILES@,$GLU32FILES,;t t
13692 s,@CURSESLIBS@,$CURSESLIBS,;t t
13693 s,@CUPSLIBS@,$CUPSLIBS,;t t
13694 s,@sane_devel@,$sane_devel,;t t
13695 s,@SANELIBS@,$SANELIBS,;t t
13696 s,@SANEINCL@,$SANEINCL,;t t
13697 s,@ft_devel@,$ft_devel,;t t
13698 s,@ft_devel2@,$ft_devel2,;t t
13699 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
13700 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
13701 s,@ARTSLIBS@,$ARTSLIBS,;t t
13702 s,@ARTSINCL@,$ARTSINCL,;t t
13703 s,@DLLWRAP@,$DLLWRAP,;t t
13704 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
13705 s,@DLLIBS@,$DLLIBS,;t t
13706 s,@DLLFLAGS@,$DLLFLAGS,;t t
13707 s,@DLLEXT@,$DLLEXT,;t t
13708 s,@LDSHARED@,$LDSHARED,;t t
13709 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
13710 s,@LIBEXT@,$LIBEXT,;t t
13711 s,@LDPATH@,$LDPATH,;t t
13712 s,@ALLOCA@,$ALLOCA,;t t
13713 /@MAKE_RULES@/r $MAKE_RULES
13714 s,@MAKE_RULES@,,;t t
13715 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
13716 s,@MAKE_DLL_RULES@,,;t t
13717 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
13718 s,@MAKE_PROG_RULES@,,;t t
13719 CEOF
13721 _ACEOF
13723 cat >>$CONFIG_STATUS <<\_ACEOF
13724 # Split the substitutions into bite-sized pieces for seds with
13725 # small command number limits, like on Digital OSF/1 and HP-UX.
13726 ac_max_sed_lines=48
13727 ac_sed_frag=1 # Number of current file.
13728 ac_beg=1 # First line for current file.
13729 ac_end=$ac_max_sed_lines # Line after last line for current file.
13730 ac_more_lines=:
13731 ac_sed_cmds=
13732 while $ac_more_lines; do
13733 if test $ac_beg -gt 1; then
13734 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13735 else
13736 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13738 if test ! -s $tmp/subs.frag; then
13739 ac_more_lines=false
13740 else
13741 # The purpose of the label and of the branching condition is to
13742 # speed up the sed processing (if there are no `@' at all, there
13743 # is no need to browse any of the substitutions).
13744 # These are the two extra sed commands mentioned above.
13745 (echo ':t
13746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13747 if test -z "$ac_sed_cmds"; then
13748 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13749 else
13750 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13752 ac_sed_frag=`expr $ac_sed_frag + 1`
13753 ac_beg=$ac_end
13754 ac_end=`expr $ac_end + $ac_max_sed_lines`
13756 done
13757 if test -z "$ac_sed_cmds"; then
13758 ac_sed_cmds=cat
13760 fi # test -n "$CONFIG_FILES"
13762 _ACEOF
13763 cat >>$CONFIG_STATUS <<\_ACEOF
13764 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13766 case $ac_file in
13767 - | *:- | *:-:* ) # input from stdin
13768 cat >$tmp/stdin
13769 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13771 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13773 * ) ac_file_in=$ac_file.in ;;
13774 esac
13776 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13777 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13779 X"$ac_file" : 'X\(//\)[^/]' \| \
13780 X"$ac_file" : 'X\(//\)$' \| \
13781 X"$ac_file" : 'X\(/\)' \| \
13782 . : '\(.\)' 2>/dev/null ||
13783 echo X"$ac_file" |
13784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13786 /^X\(\/\/\)$/{ s//\1/; q; }
13787 /^X\(\/\).*/{ s//\1/; q; }
13788 s/.*/./; q'`
13789 { case "$ac_dir" in
13790 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13791 *) as_incr_dir=.;;
13792 esac
13793 as_dummy="$ac_dir"
13794 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13795 case $as_mkdir_dir in
13796 # Skip DOS drivespec
13797 ?:) as_incr_dir=$as_mkdir_dir ;;
13799 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13800 test -d "$as_incr_dir" ||
13801 mkdir "$as_incr_dir" ||
13802 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13803 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13804 { (exit 1); exit 1; }; }
13806 esac
13807 done; }
13809 ac_builddir=.
13811 if test "$ac_dir" != .; then
13812 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13813 # A "../" for each directory in $ac_dir_suffix.
13814 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13815 else
13816 ac_dir_suffix= ac_top_builddir=
13819 case $srcdir in
13820 .) # No --srcdir option. We are building in place.
13821 ac_srcdir=.
13822 if test -z "$ac_top_builddir"; then
13823 ac_top_srcdir=.
13824 else
13825 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13826 fi ;;
13827 [\\/]* | ?:[\\/]* ) # Absolute path.
13828 ac_srcdir=$srcdir$ac_dir_suffix;
13829 ac_top_srcdir=$srcdir ;;
13830 *) # Relative path.
13831 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13832 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13833 esac
13834 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13835 # absolute.
13836 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13837 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13838 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13839 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13842 case $INSTALL in
13843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13844 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13845 esac
13847 if test x"$ac_file" != x-; then
13848 { echo "$as_me:$LINENO: creating $ac_file" >&5
13849 echo "$as_me: creating $ac_file" >&6;}
13850 rm -f "$ac_file"
13852 # Let's still pretend it is `configure' which instantiates (i.e., don't
13853 # use $as_me), people would be surprised to read:
13854 # /* config.h. Generated by config.status. */
13855 if test x"$ac_file" = x-; then
13856 configure_input=
13857 else
13858 configure_input="$ac_file. "
13860 configure_input=$configure_input"Generated from `echo $ac_file_in |
13861 sed 's,.*/,,'` by configure."
13863 # First look for the input files in the build tree, otherwise in the
13864 # src tree.
13865 ac_file_inputs=`IFS=:
13866 for f in $ac_file_in; do
13867 case $f in
13868 -) echo $tmp/stdin ;;
13869 [\\/$]*)
13870 # Absolute (can't be DOS-style, as IFS=:)
13871 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13872 echo "$as_me: error: cannot find input file: $f" >&2;}
13873 { (exit 1); exit 1; }; }
13874 echo $f;;
13875 *) # Relative
13876 if test -f "$f"; then
13877 # Build tree
13878 echo $f
13879 elif test -f "$srcdir/$f"; then
13880 # Source tree
13881 echo $srcdir/$f
13882 else
13883 # /dev/null tree
13884 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13885 echo "$as_me: error: cannot find input file: $f" >&2;}
13886 { (exit 1); exit 1; }; }
13887 fi;;
13888 esac
13889 done` || { (exit 1); exit 1; }
13890 _ACEOF
13891 cat >>$CONFIG_STATUS <<_ACEOF
13892 sed "$ac_vpsub
13893 $extrasub
13894 _ACEOF
13895 cat >>$CONFIG_STATUS <<\_ACEOF
13897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13898 s,@configure_input@,$configure_input,;t t
13899 s,@srcdir@,$ac_srcdir,;t t
13900 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13901 s,@top_srcdir@,$ac_top_srcdir,;t t
13902 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13903 s,@builddir@,$ac_builddir,;t t
13904 s,@abs_builddir@,$ac_abs_builddir,;t t
13905 s,@top_builddir@,$ac_top_builddir,;t t
13906 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13907 s,@INSTALL@,$ac_INSTALL,;t t
13908 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13909 rm -f $tmp/stdin
13910 if test x"$ac_file" != x-; then
13911 mv $tmp/out $ac_file
13912 else
13913 cat $tmp/out
13914 rm -f $tmp/out
13917 done
13918 _ACEOF
13919 cat >>$CONFIG_STATUS <<\_ACEOF
13922 # CONFIG_HEADER section.
13925 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13926 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13928 # ac_d sets the value in "#define NAME VALUE" lines.
13929 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13930 ac_dB='[ ].*$,\1#\2'
13931 ac_dC=' '
13932 ac_dD=',;t'
13933 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13934 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13935 ac_uB='$,\1#\2define\3'
13936 ac_uC=' '
13937 ac_uD=',;t'
13939 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13940 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13941 case $ac_file in
13942 - | *:- | *:-:* ) # input from stdin
13943 cat >$tmp/stdin
13944 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13946 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13948 * ) ac_file_in=$ac_file.in ;;
13949 esac
13951 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13952 echo "$as_me: creating $ac_file" >&6;}
13954 # First look for the input files in the build tree, otherwise in the
13955 # src tree.
13956 ac_file_inputs=`IFS=:
13957 for f in $ac_file_in; do
13958 case $f in
13959 -) echo $tmp/stdin ;;
13960 [\\/$]*)
13961 # Absolute (can't be DOS-style, as IFS=:)
13962 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13963 echo "$as_me: error: cannot find input file: $f" >&2;}
13964 { (exit 1); exit 1; }; }
13965 echo $f;;
13966 *) # Relative
13967 if test -f "$f"; then
13968 # Build tree
13969 echo $f
13970 elif test -f "$srcdir/$f"; then
13971 # Source tree
13972 echo $srcdir/$f
13973 else
13974 # /dev/null tree
13975 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13976 echo "$as_me: error: cannot find input file: $f" >&2;}
13977 { (exit 1); exit 1; }; }
13978 fi;;
13979 esac
13980 done` || { (exit 1); exit 1; }
13981 # Remove the trailing spaces.
13982 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13984 _ACEOF
13986 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13987 # `conftest.undefs', that substitutes the proper values into
13988 # config.h.in to produce config.h. The first handles `#define'
13989 # templates, and the second `#undef' templates.
13990 # And first: Protect against being on the right side of a sed subst in
13991 # config.status. Protect against being in an unquoted here document
13992 # in config.status.
13993 rm -f conftest.defines conftest.undefs
13994 # Using a here document instead of a string reduces the quoting nightmare.
13995 # Putting comments in sed scripts is not portable.
13997 # `end' is used to avoid that the second main sed command (meant for
13998 # 0-ary CPP macros) applies to n-ary macro definitions.
13999 # See the Autoconf documentation for `clear'.
14000 cat >confdef2sed.sed <<\_ACEOF
14001 s/[\\&,]/\\&/g
14002 s,[\\$`],\\&,g
14003 t clear
14004 : clear
14005 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14006 t end
14007 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14008 : end
14009 _ACEOF
14010 # If some macros were called several times there might be several times
14011 # the same #defines, which is useless. Nevertheless, we may not want to
14012 # sort them, since we want the *last* AC-DEFINE to be honored.
14013 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14014 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14015 rm -f confdef2sed.sed
14017 # This sed command replaces #undef with comments. This is necessary, for
14018 # example, in the case of _POSIX_SOURCE, which is predefined and required
14019 # on some systems where configure will not decide to define it.
14020 cat >>conftest.undefs <<\_ACEOF
14021 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14022 _ACEOF
14024 # Break up conftest.defines because some shells have a limit on the size
14025 # of here documents, and old seds have small limits too (100 cmds).
14026 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14027 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14028 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14029 echo ' :' >>$CONFIG_STATUS
14030 rm -f conftest.tail
14031 while grep . conftest.defines >/dev/null
14033 # Write a limited-size here document to $tmp/defines.sed.
14034 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14035 # Speed up: don't consider the non `#define' lines.
14036 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14037 # Work around the forget-to-reset-the-flag bug.
14038 echo 't clr' >>$CONFIG_STATUS
14039 echo ': clr' >>$CONFIG_STATUS
14040 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14041 echo 'CEOF
14042 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14043 rm -f $tmp/in
14044 mv $tmp/out $tmp/in
14045 ' >>$CONFIG_STATUS
14046 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14047 rm -f conftest.defines
14048 mv conftest.tail conftest.defines
14049 done
14050 rm -f conftest.defines
14051 echo ' fi # egrep' >>$CONFIG_STATUS
14052 echo >>$CONFIG_STATUS
14054 # Break up conftest.undefs because some shells have a limit on the size
14055 # of here documents, and old seds have small limits too (100 cmds).
14056 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14057 rm -f conftest.tail
14058 while grep . conftest.undefs >/dev/null
14060 # Write a limited-size here document to $tmp/undefs.sed.
14061 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14062 # Speed up: don't consider the non `#undef'
14063 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14064 # Work around the forget-to-reset-the-flag bug.
14065 echo 't clr' >>$CONFIG_STATUS
14066 echo ': clr' >>$CONFIG_STATUS
14067 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14068 echo 'CEOF
14069 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14070 rm -f $tmp/in
14071 mv $tmp/out $tmp/in
14072 ' >>$CONFIG_STATUS
14073 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14074 rm -f conftest.undefs
14075 mv conftest.tail conftest.undefs
14076 done
14077 rm -f conftest.undefs
14079 cat >>$CONFIG_STATUS <<\_ACEOF
14080 # Let's still pretend it is `configure' which instantiates (i.e., don't
14081 # use $as_me), people would be surprised to read:
14082 # /* config.h. Generated by config.status. */
14083 if test x"$ac_file" = x-; then
14084 echo "/* Generated by configure. */" >$tmp/config.h
14085 else
14086 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14088 cat $tmp/in >>$tmp/config.h
14089 rm -f $tmp/in
14090 if test x"$ac_file" != x-; then
14091 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14092 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14093 echo "$as_me: $ac_file is unchanged" >&6;}
14094 else
14095 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14097 X"$ac_file" : 'X\(//\)[^/]' \| \
14098 X"$ac_file" : 'X\(//\)$' \| \
14099 X"$ac_file" : 'X\(/\)' \| \
14100 . : '\(.\)' 2>/dev/null ||
14101 echo X"$ac_file" |
14102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14104 /^X\(\/\/\)$/{ s//\1/; q; }
14105 /^X\(\/\).*/{ s//\1/; q; }
14106 s/.*/./; q'`
14107 { case "$ac_dir" in
14108 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14109 *) as_incr_dir=.;;
14110 esac
14111 as_dummy="$ac_dir"
14112 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14113 case $as_mkdir_dir in
14114 # Skip DOS drivespec
14115 ?:) as_incr_dir=$as_mkdir_dir ;;
14117 as_incr_dir=$as_incr_dir/$as_mkdir_dir
14118 test -d "$as_incr_dir" ||
14119 mkdir "$as_incr_dir" ||
14120 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14121 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14122 { (exit 1); exit 1; }; }
14124 esac
14125 done; }
14127 rm -f $ac_file
14128 mv $tmp/config.h $ac_file
14130 else
14131 cat $tmp/config.h
14132 rm -f $tmp/config.h
14134 done
14135 _ACEOF
14136 cat >>$CONFIG_STATUS <<\_ACEOF
14139 # CONFIG_COMMANDS section.
14141 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14142 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14143 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14144 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14145 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14146 X"$ac_dest" : 'X\(//\)[^/]' \| \
14147 X"$ac_dest" : 'X\(//\)$' \| \
14148 X"$ac_dest" : 'X\(/\)' \| \
14149 . : '\(.\)' 2>/dev/null ||
14150 echo X"$ac_dest" |
14151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14153 /^X\(\/\/\)$/{ s//\1/; q; }
14154 /^X\(\/\).*/{ s//\1/; q; }
14155 s/.*/./; q'`
14156 ac_builddir=.
14158 if test "$ac_dir" != .; then
14159 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14160 # A "../" for each directory in $ac_dir_suffix.
14161 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14162 else
14163 ac_dir_suffix= ac_top_builddir=
14166 case $srcdir in
14167 .) # No --srcdir option. We are building in place.
14168 ac_srcdir=.
14169 if test -z "$ac_top_builddir"; then
14170 ac_top_srcdir=.
14171 else
14172 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14173 fi ;;
14174 [\\/]* | ?:[\\/]* ) # Absolute path.
14175 ac_srcdir=$srcdir$ac_dir_suffix;
14176 ac_top_srcdir=$srcdir ;;
14177 *) # Relative path.
14178 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14179 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14180 esac
14181 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14182 # absolute.
14183 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14184 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14185 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14186 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14189 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14190 echo "$as_me: executing $ac_dest commands" >&6;}
14191 case $ac_dest in
14192 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
14193 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
14194 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
14195 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
14196 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
14197 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
14198 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
14199 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
14200 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
14201 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
14202 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
14203 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
14204 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
14205 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
14206 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
14207 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
14208 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
14209 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
14210 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
14211 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
14212 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
14213 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
14214 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
14215 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
14216 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
14217 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
14218 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
14219 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
14220 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
14221 echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
14222 dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
14223 echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
14224 dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5
14225 echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;;
14226 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
14227 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
14228 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
14229 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
14230 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
14231 echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
14232 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
14233 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
14234 dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5
14235 echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;;
14236 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
14237 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
14238 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
14239 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
14240 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
14241 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
14242 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
14243 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
14244 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
14245 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
14246 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
14247 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
14248 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
14249 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
14250 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
14251 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
14252 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
14253 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
14254 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
14255 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
14256 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
14257 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
14258 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
14259 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
14260 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
14261 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
14262 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
14263 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
14264 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
14265 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
14266 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
14267 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
14268 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
14269 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
14270 esac
14271 done
14272 _ACEOF
14274 cat >>$CONFIG_STATUS <<\_ACEOF
14276 { (exit 0); exit 0; }
14277 _ACEOF
14278 chmod +x $CONFIG_STATUS
14279 ac_clean_files=$ac_clean_files_save
14282 # configure is writing to config.log, and then calls config.status.
14283 # config.status does its own redirection, appending to config.log.
14284 # Unfortunately, on DOS this fails, as config.log is still kept open
14285 # by configure, so config.status won't be able to write to it; its
14286 # output is simply discarded. So we exec the FD to /dev/null,
14287 # effectively closing config.log, so it can be properly (re)opened and
14288 # appended to by config.status. When coming back to configure, we
14289 # need to make the FD available again.
14290 if test "$no_create" != yes; then
14291 ac_cs_success=:
14292 exec 5>/dev/null
14293 $SHELL $CONFIG_STATUS || ac_cs_success=false
14294 exec 5>>config.log
14295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14296 # would make configure fail if this is the last instruction.
14297 $ac_cs_success || { (exit 1); exit 1; }
14301 if test "$have_x" = "no"
14302 then
14303 echo
14304 echo "*** Warning: X development files not found. Wine will be built without"
14305 echo "*** X support, which currently does not work, and would probably not be"
14306 echo "*** what you want anyway. You will need to install devel packages of"
14307 echo "*** Xlib/Xfree86 at the very least."
14310 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
14311 then
14312 echo
14313 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
14314 echo "*** terminal resize support. Consider upgrading ncurses."
14317 if test "$wine_cv_libc_reentrant" = "no"
14318 then
14319 echo
14320 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
14321 echo "*** threading support. Consider upgrading libc to a more recent"
14322 echo "*** reentrant version of libc."
14325 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
14326 then
14327 echo
14328 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
14329 echo "*** applications won't work properly. You should upgrade your X11 library."
14332 if test "$wine_cv_opengl_version_OK" = "no"
14333 then
14334 echo
14335 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
14336 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
14339 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
14340 then
14341 echo
14342 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
14343 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
14344 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
14345 echo "*** start configure with '--enable-opengl' to force OpenGL support."
14348 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
14349 then
14350 echo
14351 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
14352 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
14353 echo "*** support before reporting bugs."
14356 if test "$wine_cv_warn_cups_h" = "yes"
14357 then
14358 echo
14359 echo "*** Note: You have cups runtime libraries, but no development"
14360 echo "*** libraries. Install the cups-devel package or whichever package"
14361 echo "*** contains cups.h to enable CUPS support in Wine."
14364 if test "$wine_cv_msg_freetype" = "yes"
14365 then
14366 echo
14367 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
14368 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
14369 echo "*** freetype-devel package (or its equivalent on your distribution) to"
14370 echo "*** enable Wine to use TrueType fonts."
14373 echo
14374 echo "Configure finished. Do 'make depend && make' to compile Wine."
14375 echo