Added check for ln.
[wine] / configure
CommitLineData
e2991ea7 1#! /bin/sh
e2991ea7 2# Guess values for system-dependent variables and create Makefiles.
f85d8da4 3# Generated by GNU Autoconf 2.53 for Wine 20020509.
e2991ea7 4#
daa2886c 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
f5818d2f 6# Free Software Foundation, Inc.
e2991ea7
AJ
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
daa2886c
AJ
10if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
f5818d2f 15
f5818d2f 16
daa2886c
AJ
17## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
f5818d2f
AJ
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
daa2886c
AJ
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
36
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; }
61
62
f5818d2f 63# Name of the executable.
daa2886c
AJ
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if 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=:
92 fi
93 rm -f conftest.sh
94fi
95
96
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
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
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
120 fi
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; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
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
134 /*)
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
147done
148;;
149 esac
150
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 '
161 N
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; }; }
172
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
179}
180
181
182case `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= ;;
187esac
f5818d2f
AJ
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if 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'
205 fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
daa2886c
AJ
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
f5818d2f 220
f5818d2f
AJ
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" $as_nl"
227
228# CDPATH.
daa2886c
AJ
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
f5818d2f
AJ
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
e2991ea7 242ac_default_prefix=/usr/local
f5818d2f
AJ
243cross_compiling=no
244subdirs=
daa2886c
AJ
245MFLAGS=
246MAKEFLAGS=
f5818d2f
AJ
247SHELL=${CONFIG_SHELL-/bin/sh}
248
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}
253
daa2886c
AJ
254# Identity of this package.
255PACKAGE_NAME='Wine'
256PACKAGE_TARNAME='wine'
f85d8da4
AJ
257PACKAGE_VERSION='20020509'
258PACKAGE_STRING='Wine 20020509'
daa2886c
AJ
259PACKAGE_BUGREPORT=''
260
f5818d2f
AJ
261ac_unique_file="server/atom.c"
262# Factoring default headers for most tests.
263ac_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"
e2991ea7 298
daa2886c 299
e2991ea7 300# Initialize some variables set by options.
f5818d2f
AJ
301ac_init_help=
302ac_init_version=false
e2991ea7
AJ
303# The variables have the same names as the options, with
304# dashes changed to underlines.
f5818d2f 305cache_file=/dev/null
e2991ea7 306exec_prefix=NONE
e2991ea7 307no_create=
e2991ea7
AJ
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
e2991ea7
AJ
316verbose=
317x_includes=NONE
318x_libraries=NONE
f5818d2f
AJ
319
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.
d7d4fdf8
AJ
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
e2991ea7 337
e2991ea7
AJ
338ac_prev=
339for ac_option
340do
e2991ea7
AJ
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
346 fi
347
f5818d2f 348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
e2991ea7
AJ
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
f5818d2f 352 case $ac_option in
e2991ea7 353
d7d4fdf8
AJ
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f5818d2f 357 bindir=$ac_optarg ;;
d7d4fdf8
AJ
358
359 -build | --build | --buil | --bui | --bu)
f5818d2f 360 ac_prev=build_alias ;;
d7d4fdf8 361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f5818d2f 362 build_alias=$ac_optarg ;;
e2991ea7
AJ
363
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=*)
f5818d2f
AJ
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
e2991ea7 373
d7d4fdf8
AJ
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
f5818d2f 378 datadir=$ac_optarg ;;
d7d4fdf8 379
e2991ea7 380 -disable-* | --disable-*)
f5818d2f 381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
e2991ea7 382 # Reject names that are not valid shell variable names.
f5818d2f
AJ
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" ;;
e2991ea7
AJ
388
389 -enable-* | --enable-*)
f5818d2f 390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
e2991ea7 391 # Reject names that are not valid shell variable names.
f5818d2f
AJ
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"`;;
e2991ea7
AJ
398 *) ac_optarg=yes ;;
399 esac
f5818d2f 400 eval "enable_$ac_feature='$ac_optarg'" ;;
e2991ea7
AJ
401
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=*)
f5818d2f 409 exec_prefix=$ac_optarg ;;
e2991ea7
AJ
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
f5818d2f
AJ
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 ;;
e2991ea7
AJ
421
422 -host | --host | --hos | --ho)
f5818d2f 423 ac_prev=host_alias ;;
e2991ea7 424 -host=* | --host=* | --hos=* | --ho=*)
f5818d2f 425 host_alias=$ac_optarg ;;
e2991ea7 426
d7d4fdf8
AJ
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=*)
f5818d2f 432 includedir=$ac_optarg ;;
d7d4fdf8
AJ
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f5818d2f 437 infodir=$ac_optarg ;;
d7d4fdf8
AJ
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f5818d2f 442 libdir=$ac_optarg ;;
d7d4fdf8
AJ
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
f5818d2f 449 libexecdir=$ac_optarg ;;
d7d4fdf8
AJ
450
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=*)
f5818d2f 458 localstatedir=$ac_optarg ;;
d7d4fdf8
AJ
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f5818d2f 463 mandir=$ac_optarg ;;
d7d4fdf8 464
e2991ea7
AJ
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
daa2886c 470 | --no-cr | --no-c | -n)
e2991ea7
AJ
471 no_create=yes ;;
472
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 ;;
476
d7d4fdf8
AJ
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=*)
f5818d2f 484 oldincludedir=$ac_optarg ;;
d7d4fdf8 485
e2991ea7
AJ
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f5818d2f 489 prefix=$ac_optarg ;;
e2991ea7
AJ
490
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=*)
f5818d2f 496 program_prefix=$ac_optarg ;;
e2991ea7
AJ
497
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=*)
f5818d2f 503 program_suffix=$ac_optarg ;;
e2991ea7
AJ
504
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=*)
f5818d2f 520 program_transform_name=$ac_optarg ;;
e2991ea7
AJ
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
d7d4fdf8
AJ
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
f5818d2f 530 sbindir=$ac_optarg ;;
d7d4fdf8
AJ
531
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=*)
f5818d2f 541 sharedstatedir=$ac_optarg ;;
d7d4fdf8 542
e2991ea7
AJ
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
f5818d2f 546 site=$ac_optarg ;;
e2991ea7
AJ
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f5818d2f 551 srcdir=$ac_optarg ;;
e2991ea7 552
d7d4fdf8
AJ
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=*)
f5818d2f 558 sysconfdir=$ac_optarg ;;
d7d4fdf8 559
e2991ea7 560 -target | --target | --targe | --targ | --tar | --ta | --t)
f5818d2f 561 ac_prev=target_alias ;;
e2991ea7 562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f5818d2f 563 target_alias=$ac_optarg ;;
e2991ea7
AJ
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
f5818d2f
AJ
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
e2991ea7
AJ
570
571 -with-* | --with-*)
f5818d2f 572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
e2991ea7 573 # Reject names that are not valid shell variable names.
f5818d2f
AJ
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; }; }
e2991ea7 577 ac_package=`echo $ac_package| sed 's/-/_/g'`
f5818d2f
AJ
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
e2991ea7
AJ
580 *) ac_optarg=yes ;;
581 esac
f5818d2f 582 eval "with_$ac_package='$ac_optarg'" ;;
e2991ea7
AJ
583
584 -without-* | --without-*)
f5818d2f 585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
e2991ea7 586 # Reject names that are not valid shell variable names.
f5818d2f
AJ
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" ;;
e2991ea7
AJ
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
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=*)
f5818d2f 602 x_includes=$ac_optarg ;;
e2991ea7
AJ
603
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=*)
f5818d2f 609 x_libraries=$ac_optarg ;;
e2991ea7 610
f5818d2f
AJ
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
e2991ea7
AJ
614 ;;
615
f5818d2f
AJ
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 ;;
625
d7d4fdf8 626 *)
f5818d2f
AJ
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}
e2991ea7
AJ
632 ;;
633
634 esac
635done
636
637if test -n "$ac_prev"; then
f5818d2f
AJ
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; }; }
e2991ea7 641fi
e2991ea7 642
f5818d2f
AJ
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
daa2886c 649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
f5818d2f
AJ
650 { (exit 1); exit 1; }; };;
651 esac
652done
e2991ea7 653
f5818d2f
AJ
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
e2991ea7 657do
f5818d2f
AJ
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
daa2886c 661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
f5818d2f 662 { (exit 1); exit 1; }; };;
e2991ea7
AJ
663 esac
664done
665
f5818d2f
AJ
666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
daa2886c 668# FIXME: To remove some day.
f5818d2f
AJ
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
daa2886c 673# FIXME: To remove some day.
f5818d2f
AJ
674if 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
681 fi
682fi
e2991ea7 683
f5818d2f
AJ
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
e2991ea7 686
f5818d2f 687test "$silent" = yes && exec 6>/dev/null
e2991ea7 688
daa2886c 689
e2991ea7
AJ
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
daa2886c
AJ
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 ||
700echo 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'`
e2991ea7
AJ
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710else
711 ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
daa2886c 715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
f5818d2f 716 { (exit 1); exit 1; }; }
e2991ea7 717 else
daa2886c 718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
f5818d2f 719 { (exit 1); exit 1; }; }
e2991ea7
AJ
720 fi
721fi
f5818d2f
AJ
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
755
756#
757# Report the --help message.
758#
759if 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.
daa2886c 762 cat <<_ACEOF
f85d8da4 763\`configure' configures Wine 20020509 to adapt to many kinds of systems.
f5818d2f
AJ
764
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE. See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
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 \`..']
782
daa2886c 783_ACEOF
f5818d2f 784
daa2886c 785 cat <<_ACEOF
f5818d2f
AJ
786Installation 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]
791
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine 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]
daa2886c 812_ACEOF
f5818d2f 813
daa2886c 814 cat <<\_ACEOF
f5818d2f
AJ
815
816X features:
817 --x-includes=DIR X include files are in DIR
818 --x-libraries=DIR X library files are in DIR
819
820System types:
821 --build=BUILD configure for building on BUILD [guessed]
daa2886c 822 --host=HOST cross-compile to build programs to run on HOST [BUILD]
daa2886c 823_ACEOF
f5818d2f
AJ
824fi
825
826if test -n "$ac_init_help"; then
827 case $ac_init_help in
f85d8da4 828 short | recursive ) echo "Configuration of Wine 20020509:";;
f5818d2f 829 esac
daa2886c 830 cat <<\_ACEOF
f5818d2f
AJ
831
832Optional 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
839
840Optional 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
fc01b729 844 --with-wine-tools=<dir> use Wine tools from directory <dir>
f5818d2f
AJ
845 --with-x use the X Window System
846
847Some 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
855
856Use these variables to override the choices made by `configure' or to help
857it to find libraries and programs with nonstandard names/locations.
858
daa2886c 859_ACEOF
f5818d2f
AJ
860fi
861
862if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
864 ac_popdir=`pwd`
daa2886c
AJ
865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866 test -d $ac_dir || continue
867 ac_builddir=.
868
869if 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'`
873else
874 ac_dir_suffix= ac_top_builddir=
875fi
f5818d2f 876
daa2886c
AJ
877case $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 ;;
891esac
892# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893# absolute.
894ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
896ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
898
899 cd $ac_dir
f5818d2f 900 # Check for guested configure; otherwise get Cygnus style configure.
daa2886c 901 if test -f $ac_srcdir/configure.gnu; then
f5818d2f 902 echo
daa2886c
AJ
903 $SHELL $ac_srcdir/configure.gnu --help=recursive
904 elif test -f $ac_srcdir/configure; then
f5818d2f 905 echo
daa2886c
AJ
906 $SHELL $ac_srcdir/configure --help=recursive
907 elif test -f $ac_srcdir/configure.ac ||
908 test -f $ac_srcdir/configure.in; then
f5818d2f
AJ
909 echo
910 $ac_configure --help
911 else
daa2886c 912 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
f5818d2f
AJ
913 fi
914 cd $ac_popdir
915 done
916fi
e2991ea7 917
f5818d2f
AJ
918test -n "$ac_init_help" && exit 0
919if $ac_init_version; then
daa2886c 920 cat <<\_ACEOF
f85d8da4 921Wine configure 20020509
daa2886c 922generated by GNU Autoconf 2.53
f5818d2f 923
daa2886c 924Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
f5818d2f
AJ
925Free Software Foundation, Inc.
926This configure script is free software; the Free Software Foundation
927gives unlimited permission to copy, distribute and modify it.
daa2886c 928_ACEOF
f5818d2f
AJ
929 exit 0
930fi
931exec 5>config.log
daa2886c 932cat >&5 <<_ACEOF
f5818d2f
AJ
933This file contains any messages produced by compilers while
934running configure, to aid debugging if configure makes a mistake.
935
f85d8da4 936It was created by Wine $as_me 20020509, which was
daa2886c 937generated by GNU Autoconf 2.53. Invocation command line was
f5818d2f
AJ
938
939 $ $0 $@
940
daa2886c 941_ACEOF
f5818d2f
AJ
942{
943cat <<_ASUNAME
daa2886c
AJ
944## --------- ##
945## Platform. ##
946## --------- ##
f5818d2f
AJ
947
948hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949uname -m = `(uname -m) 2>/dev/null || echo unknown`
950uname -r = `(uname -r) 2>/dev/null || echo unknown`
951uname -s = `(uname -s) 2>/dev/null || echo unknown`
952uname -v = `(uname -v) 2>/dev/null || echo unknown`
953
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`
956
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`
960hostinfo = `(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`
964
f5818d2f 965_ASUNAME
daa2886c
AJ
966
967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968for as_dir in $PATH
969do
970 IFS=$as_save_IFS
971 test -z "$as_dir" && as_dir=.
972 echo "PATH: $as_dir"
973done
974
f5818d2f
AJ
975} >&5
976
daa2886c
AJ
977cat >&5 <<_ACEOF
978
979
980## ----------- ##
981## Core tests. ##
982## ----------- ##
983
984_ACEOF
f5818d2f 985
f5818d2f
AJ
986
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.
990ac_configure_args=
991ac_sep=
992for ac_arg
993do
994 case $ac_arg in
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
daa2886c 996 | --no-cr | --no-c | -n ) continue ;;
f5818d2f 997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
daa2886c
AJ
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 continue ;;
f5818d2f 1000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
daa2886c
AJ
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=" " ;;
f5818d2f
AJ
1007 esac
1008 # Get rid of the leading space.
1009done
1010
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.
daa2886c
AJ
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.
f5818d2f
AJ
1016trap 'exit_status=$?
1017 # Save into config.log some information that might help in debugging.
daa2886c
AJ
1018 {
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,
f5818d2f
AJ
1027{
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"
1034 ;;
1035 *)
1036 sed -n \
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1038 ;;
1039 esac;
daa2886c
AJ
1040}
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
1051 fi
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 &&
f5818d2f
AJ
1058 exit $exit_status
1059 ' 0
1060for ac_signal in 1 2 13 15; do
1061 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1062done
1063ac_signal=0
1064
1065# confdefs.h avoids OS command line length limits that DEFS can exceed.
1066rm -rf conftest* confdefs.h
1067# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1068echo >confdefs.h
1069
daa2886c
AJ
1070# Predefined preprocessor variables.
1071
1072cat >>confdefs.h <<_ACEOF
1073#define PACKAGE_NAME "$PACKAGE_NAME"
1074_ACEOF
1075
1076
1077cat >>confdefs.h <<_ACEOF
1078#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1079_ACEOF
1080
1081
1082cat >>confdefs.h <<_ACEOF
1083#define PACKAGE_VERSION "$PACKAGE_VERSION"
1084_ACEOF
1085
1086
1087cat >>confdefs.h <<_ACEOF
1088#define PACKAGE_STRING "$PACKAGE_STRING"
1089_ACEOF
1090
1091
1092cat >>confdefs.h <<_ACEOF
1093#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1094_ACEOF
1095
1096
f5818d2f 1097# Let the site file select an alternate cache file if it wants to.
e2991ea7
AJ
1098# Prefer explicitly selected file to automatically selected ones.
1099if 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"
1104 fi
1105fi
1106for ac_site_file in $CONFIG_SITE; do
1107 if test -r "$ac_site_file"; then
daa2886c 1108 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
f5818d2f 1109echo "$as_me: loading site script $ac_site_file" >&6;}
daa2886c 1110 sed 's/^/| /' "$ac_site_file" >&5
e2991ea7
AJ
1111 . "$ac_site_file"
1112 fi
1113done
1114
1115if test -r "$cache_file"; then
f5818d2f
AJ
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
daa2886c 1119 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
f5818d2f
AJ
1120echo "$as_me: loading cache $cache_file" >&6;}
1121 case $cache_file in
1122 [\\/]* | ?:[\\/]* ) . $cache_file;;
1123 *) . ./$cache_file;;
1124 esac
1125 fi
e2991ea7 1126else
daa2886c 1127 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
f5818d2f
AJ
1128echo "$as_me: creating cache $cache_file" >&6;}
1129 >$cache_file
1130fi
1131
1132# Check that the precious variables saved in the cache have kept the same
1133# value.
1134ac_cache_corrupted=false
1135for 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,)
daa2886c 1143 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f5818d2f
AJ
1144echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1145 ac_cache_corrupted=: ;;
1146 ,set)
daa2886c 1147 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
f5818d2f
AJ
1148echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1149 ac_cache_corrupted=: ;;
1150 ,);;
1151 *)
1152 if test "x$ac_old_val" != "x$ac_new_val"; then
daa2886c 1153 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
f5818d2f 1154echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
daa2886c 1155 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
f5818d2f 1156echo "$as_me: former value: $ac_old_val" >&2;}
daa2886c 1157 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
f5818d2f
AJ
1158echo "$as_me: current value: $ac_new_val" >&2;}
1159 ac_cache_corrupted=:
1160 fi;;
1161 esac
daa2886c 1162 # Pass precious variables to config.status.
f5818d2f
AJ
1163 if test "$ac_new_set" = set; then
1164 case $ac_new_val in
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
daa2886c
AJ
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'" ;;
f5818d2f
AJ
1172 esac
1173 fi
1174done
1175if $ac_cache_corrupted; then
daa2886c 1176 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
f5818d2f 1177echo "$as_me: error: changes in the environment can compromise the build" >&2;}
daa2886c 1178 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
f5818d2f
AJ
1179echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1180 { (exit 1); exit 1; }; }
e2991ea7
AJ
1181fi
1182
1183ac_ext=c
b817f4fb 1184ac_cpp='$CPP $CPPFLAGS'
f5818d2f
AJ
1185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187ac_compiler_gnu=$ac_cv_c_compiler_gnu
1188
daa2886c
AJ
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
e2991ea7 1214
f5818d2f 1215ac_config_headers="$ac_config_headers include/config.h"
18f92e76 1216
d7d4fdf8
AJ
1217ac_aux_dir=
1218for 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
f5818d2f
AJ
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
d7d4fdf8
AJ
1231 fi
1232done
1233if test -z "$ac_aux_dir"; then
daa2886c 1234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
f5818d2f
AJ
1235echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1236 { (exit 1); exit 1; }; }
d7d4fdf8 1237fi
f5818d2f
AJ
1238ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
ff8331ea 1241
daa2886c
AJ
1242
1243
318f4cef 1244LIBEXT=so # library type .so or .a
a0b2b1d0 1245
f90efa9c
AJ
1246# Check whether --enable-debug or --disable-debug was given.
1247if test "${enable_debug+set}" = set; then
1248 enableval="$enable_debug"
f90efa9c 1249
f5818d2f
AJ
1250fi;
1251# Check whether --enable-trace or --disable-trace was given.
1252if test "${enable_trace+set}" = set; then
1253 enableval="$enable_trace"
f90efa9c 1254
f5818d2f 1255fi;
fbc15b17
LU
1256# Check whether --enable-opengl or --disable-opengl was given.
1257if test "${enable_opengl+set}" = set; then
1258 enableval="$enable_opengl"
f90efa9c 1259
f5818d2f 1260fi;
f90efa9c 1261
5e5ad531
PS
1262# Check whether --with-curses or --without-curses was given.
1263if test "${with_curses+set}" = set; then
1264 withval="$with_curses"
5e5ad531 1265
f5818d2f 1266fi;
5e5ad531 1267
fc01b729
AJ
1268# Check whether --with-wine-tools or --without-wine-tools was given.
1269if test "${with_wine_tools+set}" = set; then
1270 withval="$with_wine_tools"
1271
1272fi;
1273
daa2886c 1274
f5818d2f
AJ
1275if test "x$enable_debug" = "xno"
1276then
b7258bef 1277
daa2886c 1278cat >>confdefs.h <<\_ACEOF
f5818d2f 1279#define NO_DEBUG_MSGS 1
daa2886c 1280_ACEOF
b7258bef 1281
ed2f19a6 1282fi
f5818d2f 1283if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
ed2f19a6 1284then
a0b2b1d0 1285
daa2886c 1286cat >>confdefs.h <<\_ACEOF
f5818d2f 1287#define NO_TRACE_MSGS 1
daa2886c 1288_ACEOF
f5818d2f
AJ
1289
1290fi
1291
daa2886c 1292
f5818d2f
AJ
1293# Make sure we can run config.sub.
1294$ac_config_sub sun4 >/dev/null 2>&1 ||
daa2886c 1295 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
f5818d2f
AJ
1296echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1297 { (exit 1); exit 1; }; }
1298
daa2886c 1299echo "$as_me:$LINENO: checking build system type" >&5
f5818d2f
AJ
1300echo $ECHO_N "checking build system type... $ECHO_C" >&6
1301if test "${ac_cv_build+set}" = set; then
1302 echo $ECHO_N "(cached) $ECHO_C" >&6
1303else
1304 ac_cv_build_alias=$build_alias
1305test -z "$ac_cv_build_alias" &&
1306 ac_cv_build_alias=`$ac_config_guess`
1307test -z "$ac_cv_build_alias" &&
daa2886c 1308 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
f5818d2f
AJ
1309echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1310 { (exit 1); exit 1; }; }
1311ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
daa2886c
AJ
1312 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1313echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
f5818d2f
AJ
1314 { (exit 1); exit 1; }; }
1315
1316fi
daa2886c 1317echo "$as_me:$LINENO: result: $ac_cv_build" >&5
f5818d2f
AJ
1318echo "${ECHO_T}$ac_cv_build" >&6
1319build=$ac_cv_build
1320build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1321build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1322build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1323
daa2886c
AJ
1324
1325echo "$as_me:$LINENO: checking host system type" >&5
f5818d2f
AJ
1326echo $ECHO_N "checking host system type... $ECHO_C" >&6
1327if test "${ac_cv_host+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329else
1330 ac_cv_host_alias=$host_alias
1331test -z "$ac_cv_host_alias" &&
1332 ac_cv_host_alias=$ac_cv_build_alias
1333ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
daa2886c 1334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
f5818d2f
AJ
1335echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1336 { (exit 1); exit 1; }; }
1337
1338fi
daa2886c 1339echo "$as_me:$LINENO: result: $ac_cv_host" >&5
f5818d2f
AJ
1340echo "${ECHO_T}$ac_cv_host" >&6
1341host=$ac_cv_host
1342host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1343host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1344host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345
daa2886c 1346
daa2886c 1347echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
f5818d2f
AJ
1348echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1349set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1350if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1352else
daa2886c 1353 cat >conftest.make <<\_ACEOF
e2991ea7
AJ
1354all:
1355 @echo 'ac_maketemp="${MAKE}"'
daa2886c 1356_ACEOF
e2991ea7 1357# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f5818d2f 1358eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
e2991ea7
AJ
1359if test -n "$ac_maketemp"; then
1360 eval ac_cv_prog_make_${ac_make}_set=yes
1361else
1362 eval ac_cv_prog_make_${ac_make}_set=no
1363fi
f5818d2f 1364rm -f conftest.make
e2991ea7
AJ
1365fi
1366if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
daa2886c 1367 echo "$as_me:$LINENO: result: yes" >&5
f5818d2f 1368echo "${ECHO_T}yes" >&6
e2991ea7
AJ
1369 SET_MAKE=
1370else
daa2886c 1371 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 1372echo "${ECHO_T}no" >&6
e2991ea7
AJ
1373 SET_MAKE="MAKE=${MAKE-make}"
1374fi
1375
f5818d2f
AJ
1376ac_ext=c
1377ac_cpp='$CPP $CPPFLAGS'
1378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381if 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.
1383set dummy ${ac_tool_prefix}gcc; ac_word=$2
daa2886c 1384echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386if test "${ac_cv_prog_CC+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388else
1389 if test -n "$CC"; then
1390 ac_cv_prog_CC="$CC" # Let the user override the test.
1391else
daa2886c
AJ
1392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393for as_dir in $PATH
1394do
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
1402 fi
1403done
f5818d2f
AJ
1404done
1405
1406fi
1407fi
1408CC=$ac_cv_prog_CC
1409if test -n "$CC"; then
daa2886c 1410 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f
AJ
1411echo "${ECHO_T}$CC" >&6
1412else
daa2886c 1413 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1414echo "${ECHO_T}no" >&6
1415fi
1416
1417fi
1418if 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.
e2991ea7 1421set dummy gcc; ac_word=$2
daa2886c 1422echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426else
1427 if test -n "$ac_ct_CC"; then
1428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429else
daa2886c
AJ
1430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431for as_dir in $PATH
1432do
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
1440 fi
1441done
f5818d2f
AJ
1442done
1443
1444fi
1445fi
1446ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447if test -n "$ac_ct_CC"; then
daa2886c 1448 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f5818d2f
AJ
1449echo "${ECHO_T}$ac_ct_CC" >&6
1450else
daa2886c 1451 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1452echo "${ECHO_T}no" >&6
1453fi
1454
1455 CC=$ac_ct_CC
1456else
1457 CC="$ac_cv_prog_CC"
1458fi
1459
1460if 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.
1463set dummy ${ac_tool_prefix}cc; ac_word=$2
daa2886c 1464echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
1468else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471else
daa2886c
AJ
1472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
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
1482 fi
1483done
f5818d2f
AJ
1484done
1485
e2991ea7
AJ
1486fi
1487fi
f5818d2f 1488CC=$ac_cv_prog_CC
e2991ea7 1489if test -n "$CC"; then
daa2886c 1490 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f
AJ
1491echo "${ECHO_T}$CC" >&6
1492else
daa2886c 1493 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1494echo "${ECHO_T}no" >&6
1495fi
1496
1497fi
1498if 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.
1501set dummy cc; ac_word=$2
daa2886c 1502echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509else
daa2886c
AJ
1510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
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
1520 fi
1521done
f5818d2f
AJ
1522done
1523
1524fi
1525fi
1526ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527if test -n "$ac_ct_CC"; then
daa2886c 1528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f5818d2f
AJ
1529echo "${ECHO_T}$ac_ct_CC" >&6
1530else
daa2886c 1531 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1532echo "${ECHO_T}no" >&6
1533fi
1534
1535 CC=$ac_ct_CC
e2991ea7 1536else
f5818d2f 1537 CC="$ac_cv_prog_CC"
e2991ea7
AJ
1538fi
1539
f5818d2f 1540fi
b817f4fb
AJ
1541if test -z "$CC"; then
1542 # Extract the first word of "cc", so it can be a program name with args.
1543set dummy cc; ac_word=$2
daa2886c 1544echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
b817f4fb
AJ
1548else
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1551else
b817f4fb 1552 ac_prog_rejected=no
daa2886c
AJ
1553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554for as_dir in $PATH
1555do
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
1563 fi
1564 ac_cv_prog_CC="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1567 fi
1568done
f5818d2f
AJ
1569done
1570
b817f4fb
AJ
1571if 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
f5818d2f 1575 if test $# != 0; then
b817f4fb
AJ
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
daa2886c 1580 set dummy "$as_dir/$ac_word" ${1+"$@"}
b817f4fb
AJ
1581 shift
1582 ac_cv_prog_CC="$@"
1583 fi
1584fi
1585fi
1586fi
f5818d2f 1587CC=$ac_cv_prog_CC
b817f4fb 1588if test -n "$CC"; then
daa2886c 1589 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f 1590echo "${ECHO_T}$CC" >&6
b817f4fb 1591else
daa2886c 1592 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 1593echo "${ECHO_T}no" >&6
b817f4fb
AJ
1594fi
1595
f5818d2f
AJ
1596fi
1597if test -z "$CC"; then
1598 if test -n "$ac_tool_prefix"; then
1599 for ac_prog in cl
1600 do
1601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
daa2886c 1603echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 if test -n "$CC"; then
18ad24a7
EP
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610else
daa2886c
AJ
1611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
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
1621 fi
1622done
f5818d2f
AJ
1623done
1624
18ad24a7
EP
1625fi
1626fi
f5818d2f 1627CC=$ac_cv_prog_CC
18ad24a7 1628if test -n "$CC"; then
daa2886c 1629 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f 1630echo "${ECHO_T}$CC" >&6
18ad24a7 1631else
daa2886c 1632 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 1633echo "${ECHO_T}no" >&6
b817f4fb 1634fi
e2991ea7 1635
f5818d2f
AJ
1636 test -n "$CC" && break
1637 done
1638fi
1639if test -z "$CC"; then
1640 ac_ct_CC=$CC
1641 for ac_prog in cl
1642do
1643 # Extract the first word of "$ac_prog", so it can be a program name with args.
1644set dummy $ac_prog; ac_word=$2
daa2886c 1645echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652else
daa2886c
AJ
1653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
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
1663 fi
1664done
f5818d2f 1665done
da0cfb36 1666
f5818d2f
AJ
1667fi
1668fi
1669ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670if test -n "$ac_ct_CC"; then
daa2886c 1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f5818d2f
AJ
1672echo "${ECHO_T}$ac_ct_CC" >&6
1673else
daa2886c 1674 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1675echo "${ECHO_T}no" >&6
1676fi
da0cfb36 1677
f5818d2f
AJ
1678 test -n "$ac_ct_CC" && break
1679done
18ad24a7 1680
f5818d2f
AJ
1681 CC=$ac_ct_CC
1682fi
1683
1684fi
1685
daa2886c
AJ
1686
1687test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1688echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
f5818d2f
AJ
1689 { (exit 1); exit 1; }; }
1690
1691# Provide some information about the compiler.
daa2886c 1692echo "$as_me:$LINENO:" \
f5818d2f
AJ
1693 "checking for C compiler version" >&5
1694ac_compiler=`set X $ac_compile; echo $2`
daa2886c 1695{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
f5818d2f
AJ
1696 (eval $ac_compiler --version </dev/null >&5) 2>&5
1697 ac_status=$?
daa2886c 1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 1699 (exit $ac_status); }
daa2886c 1700{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
f5818d2f
AJ
1701 (eval $ac_compiler -v </dev/null >&5) 2>&5
1702 ac_status=$?
daa2886c 1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 1704 (exit $ac_status); }
daa2886c 1705{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
f5818d2f
AJ
1706 (eval $ac_compiler -V </dev/null >&5) 2>&5
1707 ac_status=$?
daa2886c 1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1709 (exit $ac_status); }
1710
1711cat >conftest.$ac_ext <<_ACEOF
daa2886c 1712#line $LINENO "configure"
da0cfb36 1713#include "confdefs.h"
18ad24a7 1714
daa2886c
AJ
1715#ifdef F77_DUMMY_MAIN
1716# ifdef __cplusplus
1717 extern "C"
1718# endif
1719 int F77_DUMMY_MAIN() { return 1; }
1720#endif
f5818d2f
AJ
1721int
1722main ()
1723{
1724
1725 ;
1726 return 0;
1727}
1728_ACEOF
1729ac_clean_files_save=$ac_clean_files
1730ac_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.
daa2886c 1734echo "$as_me:$LINENO: checking for C compiler default output" >&5
f5818d2f
AJ
1735echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
daa2886c 1737if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
f5818d2f
AJ
1738 (eval $ac_link_default) 2>&5
1739 ac_status=$?
daa2886c 1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
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.
daa2886c
AJ
1745
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.
1748ac_cv_exeext=
1749for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
f5818d2f
AJ
1750 ls a.out conftest 2>/dev/null;
1751 ls a.* conftest.* 2>/dev/null`; do
1752 case $ac_file in
daa2886c 1753 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
f5818d2f
AJ
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
1763done
1764else
1765 echo "$as_me: failed program was:" >&5
1766cat conftest.$ac_ext >&5
daa2886c 1767{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
f5818d2f
AJ
1768echo "$as_me: error: C compiler cannot create executables" >&2;}
1769 { (exit 77); exit 77; }; }
1770fi
1771
1772ac_exeext=$ac_cv_exeext
daa2886c 1773echo "$as_me:$LINENO: result: $ac_file" >&5
f5818d2f
AJ
1774echo "${ECHO_T}$ac_file" >&6
1775
1776# Check the compiler produces executables we can run. If not, either
1777# the compiler is broken, or we cross compile.
daa2886c 1778echo "$as_me:$LINENO: checking whether the C compiler works" >&5
f5818d2f
AJ
1779echo $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.
1782if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
daa2886c 1784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
1785 (eval $ac_try) 2>&5
1786 ac_status=$?
daa2886c 1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1788 (exit $ac_status); }; }; then
1789 cross_compiling=no
7e6ae4ba 1790 else
f5818d2f
AJ
1791 if test "$cross_compiling" = maybe; then
1792 cross_compiling=yes
1793 else
daa2886c 1794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
f5818d2f
AJ
1795If you meant to cross compile, use \`--host'." >&5
1796echo "$as_me: error: cannot run C compiled programs.
1797If you meant to cross compile, use \`--host'." >&2;}
1798 { (exit 1); exit 1; }; }
1799 fi
7e6ae4ba 1800 fi
f5818d2f 1801fi
daa2886c 1802echo "$as_me:$LINENO: result: yes" >&5
f5818d2f
AJ
1803echo "${ECHO_T}yes" >&6
1804
1805rm -f a.out a.exe conftest$ac_cv_exeext
1806ac_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.
daa2886c 1809echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
f5818d2f 1810echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
daa2886c 1811echo "$as_me:$LINENO: result: $cross_compiling" >&5
f5818d2f
AJ
1812echo "${ECHO_T}$cross_compiling" >&6
1813
daa2886c
AJ
1814echo "$as_me:$LINENO: checking for suffix of executables" >&5
1815echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
1817 (eval $ac_link) 2>&5
1818 ac_status=$?
daa2886c 1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
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'.
1825for 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
1833done
da0cfb36 1834else
daa2886c
AJ
1835 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1836echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
f5818d2f 1837 { (exit 1); exit 1; }; }
da0cfb36 1838fi
da0cfb36 1839
f5818d2f 1840rm -f conftest$ac_cv_exeext
daa2886c 1841echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
f5818d2f 1842echo "${ECHO_T}$ac_cv_exeext" >&6
da0cfb36 1843
f5818d2f
AJ
1844rm -f conftest.$ac_ext
1845EXEEXT=$ac_cv_exeext
1846ac_exeext=$EXEEXT
daa2886c
AJ
1847echo "$as_me:$LINENO: checking for suffix of object files" >&5
1848echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
f5818d2f
AJ
1849if test "${ac_cv_objext+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 1851else
f5818d2f 1852 cat >conftest.$ac_ext <<_ACEOF
daa2886c 1853#line $LINENO "configure"
f5818d2f 1854#include "confdefs.h"
d7d4fdf8 1855
daa2886c
AJ
1856#ifdef F77_DUMMY_MAIN
1857# ifdef __cplusplus
1858 extern "C"
1859# endif
1860 int F77_DUMMY_MAIN() { return 1; }
1861#endif
f5818d2f
AJ
1862int
1863main ()
1864{
da0cfb36 1865
f5818d2f
AJ
1866 ;
1867 return 0;
1868}
1869_ACEOF
1870rm -f conftest.o conftest.obj
daa2886c 1871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
1872 (eval $ac_compile) 2>&5
1873 ac_status=$?
daa2886c 1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
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
1882done
18ad24a7 1883else
f5818d2f
AJ
1884 echo "$as_me: failed program was:" >&5
1885cat conftest.$ac_ext >&5
daa2886c
AJ
1886{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1887echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
f5818d2f 1888 { (exit 1); exit 1; }; }
18ad24a7
EP
1889fi
1890
f5818d2f
AJ
1891rm -f conftest.$ac_cv_objext conftest.$ac_ext
1892fi
daa2886c 1893echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
f5818d2f
AJ
1894echo "${ECHO_T}$ac_cv_objext" >&6
1895OBJEXT=$ac_cv_objext
1896ac_objext=$OBJEXT
daa2886c 1897echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
f5818d2f
AJ
1898echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1899if test "${ac_cv_c_compiler_gnu+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 1901else
f5818d2f 1902 cat >conftest.$ac_ext <<_ACEOF
daa2886c 1903#line $LINENO "configure"
f5818d2f
AJ
1904#include "confdefs.h"
1905
daa2886c
AJ
1906#ifdef F77_DUMMY_MAIN
1907# ifdef __cplusplus
1908 extern "C"
1909# endif
1910 int F77_DUMMY_MAIN() { return 1; }
1911#endif
f5818d2f
AJ
1912int
1913main ()
1914{
1915#ifndef __GNUC__
1916 choke me
1917#endif
1918
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923rm -f conftest.$ac_objext
daa2886c 1924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
1925 (eval $ac_compile) 2>&5
1926 ac_status=$?
daa2886c 1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1928 (exit $ac_status); } &&
1929 { ac_try='test -s conftest.$ac_objext'
daa2886c 1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
1931 (eval $ac_try) 2>&5
1932 ac_status=$?
daa2886c 1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1934 (exit $ac_status); }; }; then
1935 ac_compiler_gnu=yes
1936else
1937 echo "$as_me: failed program was:" >&5
1938cat conftest.$ac_ext >&5
1939ac_compiler_gnu=no
1940fi
1941rm -f conftest.$ac_objext conftest.$ac_ext
1942ac_cv_c_compiler_gnu=$ac_compiler_gnu
1943
1944fi
daa2886c 1945echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
f5818d2f
AJ
1946echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1947GCC=`test $ac_compiler_gnu = yes && echo yes`
1948ac_test_CFLAGS=${CFLAGS+set}
1949ac_save_CFLAGS=$CFLAGS
1950CFLAGS="-g"
daa2886c 1951echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
f5818d2f
AJ
1952echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1953if test "${ac_cv_prog_cc_g+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956 cat >conftest.$ac_ext <<_ACEOF
daa2886c 1957#line $LINENO "configure"
f5818d2f
AJ
1958#include "confdefs.h"
1959
daa2886c
AJ
1960#ifdef F77_DUMMY_MAIN
1961# ifdef __cplusplus
1962 extern "C"
1963# endif
1964 int F77_DUMMY_MAIN() { return 1; }
1965#endif
f5818d2f
AJ
1966int
1967main ()
1968{
1969
1970 ;
1971 return 0;
1972}
1973_ACEOF
1974rm -f conftest.$ac_objext
daa2886c 1975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
1976 (eval $ac_compile) 2>&5
1977 ac_status=$?
daa2886c 1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1979 (exit $ac_status); } &&
1980 { ac_try='test -s conftest.$ac_objext'
daa2886c 1981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
1982 (eval $ac_try) 2>&5
1983 ac_status=$?
daa2886c 1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 1985 (exit $ac_status); }; }; then
7e6ae4ba 1986 ac_cv_prog_cc_g=yes
e2991ea7 1987else
f5818d2f
AJ
1988 echo "$as_me: failed program was:" >&5
1989cat conftest.$ac_ext >&5
1990ac_cv_prog_cc_g=no
e2991ea7 1991fi
f5818d2f 1992rm -f conftest.$ac_objext conftest.$ac_ext
e2991ea7 1993fi
daa2886c 1994echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
f5818d2f 1995echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
18ad24a7 1996if test "$ac_test_CFLAGS" = set; then
f5818d2f 1997 CFLAGS=$ac_save_CFLAGS
18ad24a7
EP
1998elif test $ac_cv_prog_cc_g = yes; then
1999 if test "$GCC" = yes; then
da0cfb36
AJ
2000 CFLAGS="-g -O2"
2001 else
18ad24a7 2002 CFLAGS="-g"
e2991ea7
AJ
2003 fi
2004else
18ad24a7
EP
2005 if test "$GCC" = yes; then
2006 CFLAGS="-O2"
2007 else
2008 CFLAGS=
2009 fi
e2991ea7 2010fi
f5818d2f
AJ
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.
2015cat >conftest.$ac_ext <<_ACEOF
2016#ifndef __cplusplus
2017 choke me
2018#endif
2019_ACEOF
2020rm -f conftest.$ac_objext
daa2886c 2021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2022 (eval $ac_compile) 2>&5
2023 ac_status=$?
daa2886c 2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
daa2886c 2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
daa2886c 2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2031 (exit $ac_status); }; }; then
2032 for ac_declaration in \
2033 ''\
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);'
2040do
2041 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2042#line $LINENO "configure"
f5818d2f
AJ
2043#include "confdefs.h"
2044#include <stdlib.h>
2045$ac_declaration
daa2886c
AJ
2046#ifdef F77_DUMMY_MAIN
2047# ifdef __cplusplus
2048 extern "C"
2049# endif
2050 int F77_DUMMY_MAIN() { return 1; }
2051#endif
f5818d2f
AJ
2052int
2053main ()
2054{
2055exit (42);
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060rm -f conftest.$ac_objext
daa2886c 2061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2062 (eval $ac_compile) 2>&5
2063 ac_status=$?
daa2886c 2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2065 (exit $ac_status); } &&
2066 { ac_try='test -s conftest.$ac_objext'
daa2886c 2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
daa2886c 2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2071 (exit $ac_status); }; }; then
2072 :
2073else
2074 echo "$as_me: failed program was:" >&5
2075cat conftest.$ac_ext >&5
2076continue
2077fi
2078rm -f conftest.$ac_objext conftest.$ac_ext
2079 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2080#line $LINENO "configure"
f5818d2f
AJ
2081#include "confdefs.h"
2082$ac_declaration
daa2886c
AJ
2083#ifdef F77_DUMMY_MAIN
2084# ifdef __cplusplus
2085 extern "C"
2086# endif
2087 int F77_DUMMY_MAIN() { return 1; }
2088#endif
f5818d2f
AJ
2089int
2090main ()
2091{
2092exit (42);
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097rm -f conftest.$ac_objext
daa2886c 2098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2099 (eval $ac_compile) 2>&5
2100 ac_status=$?
daa2886c 2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2102 (exit $ac_status); } &&
2103 { ac_try='test -s conftest.$ac_objext'
daa2886c 2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2105 (eval $ac_try) 2>&5
2106 ac_status=$?
daa2886c 2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2108 (exit $ac_status); }; }; then
2109 break
2110else
2111 echo "$as_me: failed program was:" >&5
2112cat conftest.$ac_ext >&5
2113fi
2114rm -f conftest.$ac_objext conftest.$ac_ext
2115done
2116rm -f conftest*
2117if test -n "$ac_declaration"; then
2118 echo '#ifdef __cplusplus' >>confdefs.h
2119 echo $ac_declaration >>confdefs.h
2120 echo '#endif' >>confdefs.h
2121fi
2122
2123else
2124 echo "$as_me: failed program was:" >&5
2125cat conftest.$ac_ext >&5
2126fi
2127rm -f conftest.$ac_objext conftest.$ac_ext
2128ac_ext=c
2129ac_cpp='$CPP $CPPFLAGS'
2130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132ac_compiler_gnu=$ac_cv_c_compiler_gnu
e2991ea7 2133
f5818d2f
AJ
2134ac_ext=c
2135ac_cpp='$CPP $CPPFLAGS'
2136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138ac_compiler_gnu=$ac_cv_c_compiler_gnu
daa2886c 2139echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
f5818d2f 2140echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
e2991ea7
AJ
2141# On Suns, sometimes $CPP names a directory.
2142if test -n "$CPP" && test -d "$CPP"; then
2143 CPP=
2144fi
2145if test -z "$CPP"; then
f5818d2f
AJ
2146 if test "${ac_cv_prog_CPP+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148else
2149 # Double quotes because CPP needs to be expanded
2150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2151 do
2152 ac_preproc_ok=false
2153for ac_c_preproc_warn_flag in '' yes
2154do
2155 # Use a header file that comes with gcc, so configuring glibc
2156 # with a fresh cross-compiler works.
e2991ea7 2157 # On the NeXT, cc -E runs the code through the compiler's parser,
f5818d2f
AJ
2158 # not just through cpp. "Syntax error" is here to catch this case.
2159 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2160#line $LINENO "configure"
e2991ea7
AJ
2161#include "confdefs.h"
2162#include <assert.h>
f5818d2f
AJ
2163 Syntax error
2164_ACEOF
daa2886c 2165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
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
daa2886c 2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
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=
2177 fi
2178else
2179 ac_cpp_err=yes
2180fi
2181if test -z "$ac_cpp_err"; then
e2991ea7
AJ
2182 :
2183else
f5818d2f 2184 echo "$as_me: failed program was:" >&5
da0cfb36 2185 cat conftest.$ac_ext >&5
f5818d2f
AJ
2186 # Broken: fails on valid input.
2187continue
2188fi
2189rm -f conftest.err conftest.$ac_ext
2190
2191 # OK, works on sane cases. Now check whether non-existent headers
2192 # can be detected and how.
2193 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2194#line $LINENO "configure"
e2991ea7 2195#include "confdefs.h"
f5818d2f
AJ
2196#include <ac_nonexistent.h>
2197_ACEOF
daa2886c 2198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
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
daa2886c 2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
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=
2210 fi
2211else
2212 ac_cpp_err=yes
2213fi
2214if test -z "$ac_cpp_err"; then
2215 # Broken: success on invalid input.
2216continue
18ad24a7 2217else
f5818d2f 2218 echo "$as_me: failed program was:" >&5
18ad24a7 2219 cat conftest.$ac_ext >&5
f5818d2f
AJ
2220 # Passes both tests.
2221ac_preproc_ok=:
2222break
2223fi
2224rm -f conftest.err conftest.$ac_ext
2225
2226done
2227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228rm -f conftest.err conftest.$ac_ext
2229if $ac_preproc_ok; then
2230 break
2231fi
2232
2233 done
2234 ac_cv_prog_CPP=$CPP
2235
2236fi
2237 CPP=$ac_cv_prog_CPP
2238else
2239 ac_cv_prog_CPP=$CPP
2240fi
daa2886c 2241echo "$as_me:$LINENO: result: $CPP" >&5
f5818d2f
AJ
2242echo "${ECHO_T}$CPP" >&6
2243ac_preproc_ok=false
2244for ac_c_preproc_warn_flag in '' yes
2245do
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
daa2886c 2251#line $LINENO "configure"
18ad24a7
EP
2252#include "confdefs.h"
2253#include <assert.h>
f5818d2f
AJ
2254 Syntax error
2255_ACEOF
daa2886c 2256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
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
daa2886c 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
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=
2268 fi
2269else
2270 ac_cpp_err=yes
2271fi
2272if test -z "$ac_cpp_err"; then
e2991ea7
AJ
2273 :
2274else
f5818d2f 2275 echo "$as_me: failed program was:" >&5
da0cfb36 2276 cat conftest.$ac_ext >&5
f5818d2f
AJ
2277 # Broken: fails on valid input.
2278continue
e2991ea7 2279fi
f5818d2f
AJ
2280rm -f conftest.err conftest.$ac_ext
2281
2282 # OK, works on sane cases. Now check whether non-existent headers
2283 # can be detected and how.
2284 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2285#line $LINENO "configure"
f5818d2f
AJ
2286#include "confdefs.h"
2287#include <ac_nonexistent.h>
2288_ACEOF
daa2886c 2289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
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
daa2886c 2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
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=
2301 fi
2302else
2303 ac_cpp_err=yes
18ad24a7 2304fi
f5818d2f
AJ
2305if test -z "$ac_cpp_err"; then
2306 # Broken: success on invalid input.
2307continue
2308else
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 # Passes both tests.
2312ac_preproc_ok=:
2313break
e2991ea7 2314fi
f5818d2f
AJ
2315rm -f conftest.err conftest.$ac_ext
2316
2317done
2318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319rm -f conftest.err conftest.$ac_ext
2320if $ac_preproc_ok; then
2321 :
e2991ea7 2322else
daa2886c 2323 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
f5818d2f
AJ
2324echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325 { (exit 1); exit 1; }; }
e2991ea7 2326fi
e2991ea7 2327
f5818d2f
AJ
2328ac_ext=c
2329ac_cpp='$CPP $CPPFLAGS'
2330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
daa2886c 2334
fc01b729
AJ
2335echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2336echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2337if test "${wine_cv_toolsdir+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
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
2343echo "$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)"
2347 fi
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
2355echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2356 { (exit 1); exit 1; }; }
2357 fi
2358fi
2359echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2360echo "${ECHO_T}$wine_cv_toolsdir" >&6
2361TOOLSDIR=$wine_cv_toolsdir
2362
2363
2364
daa2886c
AJ
2365
2366echo "$as_me:$LINENO: checking for X" >&5
f5818d2f 2367echo $ECHO_N "checking for X... $ECHO_C" >&6
e2991ea7 2368
daa2886c 2369
e2991ea7 2370# Check whether --with-x or --without-x was given.
d7d4fdf8
AJ
2371if test "${with_x+set}" = set; then
2372 withval="$with_x"
e2991ea7 2373
f5818d2f 2374fi;
b817f4fb 2375# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
e2991ea7 2376if test "x$with_x" = xno; then
b817f4fb
AJ
2377 # The user explicitly disabled X.
2378 have_x=disabled
e2991ea7
AJ
2379else
2380 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
b817f4fb
AJ
2381 # Both variables are already set.
2382 have_x=yes
e2991ea7 2383 else
f5818d2f
AJ
2384 if test "${ac_cv_have_x+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
2386else
2387 # One or both of the vars are not set, and there is no cached value.
f5818d2f
AJ
2388ac_x_includes=no ac_x_libraries=no
2389rm -fr conftest.dir
2390if mkdir conftest.dir; then
2391 cd conftest.dir
e2991ea7 2392 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
daa2886c 2393 cat >Imakefile <<'_ACEOF'
e2991ea7
AJ
2394acfindx:
2395 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
daa2886c 2396_ACEOF
e2991ea7 2397 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
e2991ea7 2398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
d7d4fdf8 2399 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
e2991ea7
AJ
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 &&
f5818d2f 2403 test -f $ac_im_libdir/libX11.$ac_extension; then
e2991ea7
AJ
2404 ac_im_usrlibdir=$ac_im_libdir; break
2405 fi
2406 done
da0cfb36
AJ
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.
f5818d2f 2410 case $ac_im_incroot in
e2991ea7 2411 /usr/include) ;;
f5818d2f 2412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
e2991ea7 2413 esac
f5818d2f 2414 case $ac_im_usrlibdir in
e2991ea7 2415 /usr/lib | /lib) ;;
f5818d2f 2416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
e2991ea7
AJ
2417 esac
2418 fi
2419 cd ..
f5818d2f 2420 rm -fr conftest.dir
e2991ea7
AJ
2421fi
2422
f5818d2f
AJ
2423# Standard set of common directories for X headers.
2424# Check X11 before X11Rn because it is often a symlink to the current release.
2425ac_x_header_dirs='
2426/usr/X11/include
2427/usr/X11R6/include
2428/usr/X11R5/include
2429/usr/X11R4/include
2430
2431/usr/include/X11
2432/usr/include/X11R6
2433/usr/include/X11R5
2434/usr/include/X11R4
2435
2436/usr/local/X11/include
2437/usr/local/X11R6/include
2438/usr/local/X11R5/include
2439/usr/local/X11R4/include
2440
2441/usr/local/include/X11
2442/usr/local/include/X11R6
2443/usr/local/include/X11R5
2444/usr/local/include/X11R4
2445
2446/usr/X386/include
2447/usr/x386/include
2448/usr/XFree86/include/X11
2449
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
2456
2457/usr/openwin/include
2458/usr/openwin/share/include'
2459
2460if test "$ac_x_includes" = no; then
2461 # Guess where to find include files, by looking for Intrinsic.h.
b817f4fb 2462 # First, try using that file with no special directory specified.
f5818d2f 2463 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2464#line $LINENO "configure"
e2991ea7 2465#include "confdefs.h"
f5818d2f
AJ
2466#include <X11/Intrinsic.h>
2467_ACEOF
daa2886c 2468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
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
daa2886c 2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
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=
2480 fi
2481else
2482 ac_cpp_err=yes
2483fi
2484if test -z "$ac_cpp_err"; then
b817f4fb
AJ
2485 # We can compile using X headers with no special include directory.
2486ac_x_includes=
e2991ea7 2487else
f5818d2f 2488 echo "$as_me: failed program was:" >&5
da0cfb36 2489 cat conftest.$ac_ext >&5
f5818d2f
AJ
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
2494 fi
2495done
e2991ea7 2496fi
f5818d2f
AJ
2497rm -f conftest.err conftest.$ac_ext
2498fi # $ac_x_includes = no
b817f4fb 2499
f5818d2f 2500if test "$ac_x_libraries" = no; then
b817f4fb 2501 # Check for the libraries.
b817f4fb
AJ
2502 # See if we find them without any special options.
2503 # Don't add to $LIBS permanently.
f5818d2f
AJ
2504 ac_save_LIBS=$LIBS
2505 LIBS="-lXt $LIBS"
2506 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2507#line $LINENO "configure"
e2991ea7 2508#include "confdefs.h"
f5818d2f 2509#include <X11/Intrinsic.h>
daa2886c
AJ
2510#ifdef F77_DUMMY_MAIN
2511# ifdef __cplusplus
2512 extern "C"
2513# endif
2514 int F77_DUMMY_MAIN() { return 1; }
2515#endif
f5818d2f
AJ
2516int
2517main ()
2518{
2519XtMalloc (0)
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2526 (eval $ac_link) 2>&5
2527 ac_status=$?
daa2886c 2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest$ac_exeext'
daa2886c 2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
daa2886c 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2535 (exit $ac_status); }; }; then
2536 LIBS=$ac_save_LIBS
b817f4fb
AJ
2537# We can link X programs with no special library path.
2538ac_x_libraries=
e2991ea7 2539else
f5818d2f
AJ
2540 echo "$as_me: failed program was:" >&5
2541cat conftest.$ac_ext >&5
2542LIBS=$ac_save_LIBS
2543for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
e2991ea7 2544do
f5818d2f 2545 # Don't even attempt the hair of trying to link an X program!
e2991ea7 2546 for ac_extension in a so sl; do
f5818d2f 2547 if test -r $ac_dir/libXt.$ac_extension; then
b817f4fb 2548 ac_x_libraries=$ac_dir
e2991ea7
AJ
2549 break 2
2550 fi
2551 done
2552done
2553fi
f5818d2f
AJ
2554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2555fi # $ac_x_libraries = no
b817f4fb 2556
f5818d2f 2557if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
b817f4fb
AJ
2558 # Didn't find X anywhere. Cache the known absence of X.
2559 ac_cv_have_x="have_x=no"
e2991ea7 2560else
b817f4fb
AJ
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"
e2991ea7
AJ
2564fi
2565fi
f5818d2f 2566
e2991ea7 2567 fi
b817f4fb 2568 eval "$ac_cv_have_x"
e2991ea7
AJ
2569fi # $with_x != no
2570
b817f4fb 2571if test "$have_x" != yes; then
daa2886c 2572 echo "$as_me:$LINENO: result: $have_x" >&5
f5818d2f 2573echo "${ECHO_T}$have_x" >&6
b817f4fb 2574 no_x=yes
e2991ea7 2575else
b817f4fb 2576 # If each of the values was on the command line, it overrides each guess.
e2991ea7
AJ
2577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
b817f4fb
AJ
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"
daa2886c 2582 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
f5818d2f 2583echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
e2991ea7
AJ
2584fi
2585
b817f4fb 2586if test "$no_x" = yes; then
ff8331ea 2587 # Not all programs may use this symbol, but it does not hurt to define it.
f5818d2f 2588
daa2886c 2589cat >>confdefs.h <<\_ACEOF
da0cfb36 2590#define X_DISPLAY_MISSING 1
daa2886c 2591_ACEOF
da0cfb36
AJ
2592
2593 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
ff8331ea
AJ
2594else
2595 if test -n "$x_includes"; then
2596 X_CFLAGS="$X_CFLAGS -I$x_includes"
2597 fi
2598
ff8331ea
AJ
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"
da0cfb36
AJ
2602 # For Solaris; some versions of Sun CC require a space after -R and
2603 # others require no space. Words are not sufficient . . . .
f5818d2f 2604 case `(uname -sr) 2>/dev/null` in
da0cfb36 2605 "SunOS 5"*)
daa2886c 2606 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
f5818d2f
AJ
2607echo $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
daa2886c 2610#line $LINENO "configure"
ff8331ea
AJ
2611#include "confdefs.h"
2612
daa2886c
AJ
2613#ifdef F77_DUMMY_MAIN
2614# ifdef __cplusplus
2615 extern "C"
2616# endif
2617 int F77_DUMMY_MAIN() { return 1; }
2618#endif
f5818d2f
AJ
2619int
2620main ()
2621{
da0cfb36 2622
f5818d2f
AJ
2623 ;
2624 return 0;
2625}
2626_ACEOF
2627rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2629 (eval $ac_link) 2>&5
2630 ac_status=$?
daa2886c 2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest$ac_exeext'
daa2886c 2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
daa2886c 2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2638 (exit $ac_status); }; }; then
da0cfb36 2639 ac_R_nospace=yes
ff8331ea 2640else
f5818d2f
AJ
2641 echo "$as_me: failed program was:" >&5
2642cat conftest.$ac_ext >&5
2643ac_R_nospace=no
ff8331ea 2644fi
f5818d2f 2645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
da0cfb36 2646 if test $ac_R_nospace = yes; then
daa2886c 2647 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 2648echo "${ECHO_T}no" >&6
da0cfb36
AJ
2649 X_LIBS="$X_LIBS -R$x_libraries"
2650 else
2651 LIBS="$ac_xsave_LIBS -R $x_libraries"
f5818d2f 2652 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2653#line $LINENO "configure"
da0cfb36
AJ
2654#include "confdefs.h"
2655
daa2886c
AJ
2656#ifdef F77_DUMMY_MAIN
2657# ifdef __cplusplus
2658 extern "C"
2659# endif
2660 int F77_DUMMY_MAIN() { return 1; }
2661#endif
f5818d2f
AJ
2662int
2663main ()
2664{
da0cfb36 2665
f5818d2f
AJ
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2672 (eval $ac_link) 2>&5
2673 ac_status=$?
daa2886c 2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest$ac_exeext'
daa2886c 2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
daa2886c 2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2681 (exit $ac_status); }; }; then
da0cfb36 2682 ac_R_space=yes
ff8331ea 2683else
f5818d2f
AJ
2684 echo "$as_me: failed program was:" >&5
2685cat conftest.$ac_ext >&5
2686ac_R_space=no
ff8331ea 2687fi
f5818d2f 2688rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
da0cfb36 2689 if test $ac_R_space = yes; then
daa2886c 2690 echo "$as_me:$LINENO: result: yes" >&5
f5818d2f 2691echo "${ECHO_T}yes" >&6
da0cfb36
AJ
2692 X_LIBS="$X_LIBS -R $x_libraries"
2693 else
daa2886c 2694 echo "$as_me:$LINENO: result: neither works" >&5
f5818d2f 2695echo "${ECHO_T}neither works" >&6
da0cfb36
AJ
2696 fi
2697 fi
f5818d2f 2698 LIBS=$ac_xsave_LIBS
da0cfb36
AJ
2699 esac
2700 fi
ff8331ea
AJ
2701
2702 # Check for system-dependent libraries X programs must link with.
da0cfb36
AJ
2703 # Do this before checking for the system-independent R6 libraries
2704 # (-lICE), since we may need -lsocket or whatever for X linking.
ff8331ea
AJ
2705
2706 if test "$ISC" = yes; then
2707 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2708 else
f5818d2f
AJ
2709 # Martyn Johnson says this is needed for Ultrix, if the X
2710 # libraries were built with DECnet support. And Karl Berry says
ff8331ea 2711 # the Alpha needs dnet_stub (dnet does not exist).
f5818d2f
AJ
2712 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2713 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2714#line $LINENO "configure"
ff8331ea 2715#include "confdefs.h"
f5818d2f 2716
59730ae1 2717/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
2718#ifdef __cplusplus
2719extern "C"
2720#endif
e2bfa4c7 2721/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
2722 builtin and then its argument prototype would still apply. */
2723char XOpenDisplay ();
daa2886c
AJ
2724#ifdef F77_DUMMY_MAIN
2725# ifdef __cplusplus
2726 extern "C"
2727# endif
2728 int F77_DUMMY_MAIN() { return 1; }
2729#endif
f5818d2f
AJ
2730int
2731main ()
2732{
2733XOpenDisplay ();
2734 ;
2735 return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2740 (eval $ac_link) 2>&5
2741 ac_status=$?
daa2886c 2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2743 (exit $ac_status); } &&
2744 { ac_try='test -s conftest$ac_exeext'
daa2886c 2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
daa2886c 2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2749 (exit $ac_status); }; }; then
2750 :
ff8331ea 2751else
f5818d2f
AJ
2752 echo "$as_me: failed program was:" >&5
2753cat conftest.$ac_ext >&5
daa2886c 2754echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
f5818d2f
AJ
2755echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2756if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758else
2759 ac_check_lib_save_LIBS=$LIBS
2760LIBS="-ldnet $LIBS"
2761cat >conftest.$ac_ext <<_ACEOF
daa2886c 2762#line $LINENO "configure"
f5818d2f 2763#include "confdefs.h"
ff8331ea 2764
f5818d2f
AJ
2765/* Override any gcc2 internal prototype to avoid an error. */
2766#ifdef __cplusplus
2767extern "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. */
2771char dnet_ntoa ();
daa2886c
AJ
2772#ifdef F77_DUMMY_MAIN
2773# ifdef __cplusplus
2774 extern "C"
2775# endif
2776 int F77_DUMMY_MAIN() { return 1; }
2777#endif
f5818d2f
AJ
2778int
2779main ()
2780{
2781dnet_ntoa ();
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2788 (eval $ac_link) 2>&5
2789 ac_status=$?
daa2886c 2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2791 (exit $ac_status); } &&
2792 { ac_try='test -s conftest$ac_exeext'
daa2886c 2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
daa2886c 2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2797 (exit $ac_status); }; }; then
2798 ac_cv_lib_dnet_dnet_ntoa=yes
2799else
2800 echo "$as_me: failed program was:" >&5
2801cat conftest.$ac_ext >&5
2802ac_cv_lib_dnet_dnet_ntoa=no
2803fi
2804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2805LIBS=$ac_check_lib_save_LIBS
2806fi
daa2886c 2807echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
f5818d2f
AJ
2808echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2809if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
ff8331ea 2810 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
ff8331ea
AJ
2811fi
2812
59730ae1 2813 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
daa2886c 2814 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
f5818d2f
AJ
2815echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2816if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 2818else
f5818d2f 2819 ac_check_lib_save_LIBS=$LIBS
ff8331ea 2820LIBS="-ldnet_stub $LIBS"
f5818d2f 2821cat >conftest.$ac_ext <<_ACEOF
daa2886c 2822#line $LINENO "configure"
ff8331ea 2823#include "confdefs.h"
f5818d2f 2824
59730ae1 2825/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
2826#ifdef __cplusplus
2827extern "C"
2828#endif
e2bfa4c7 2829/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
2830 builtin and then its argument prototype would still apply. */
2831char dnet_ntoa ();
daa2886c
AJ
2832#ifdef F77_DUMMY_MAIN
2833# ifdef __cplusplus
2834 extern "C"
2835# endif
2836 int F77_DUMMY_MAIN() { return 1; }
2837#endif
f5818d2f
AJ
2838int
2839main ()
2840{
2841dnet_ntoa ();
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2848 (eval $ac_link) 2>&5
2849 ac_status=$?
daa2886c 2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2851 (exit $ac_status); } &&
2852 { ac_try='test -s conftest$ac_exeext'
daa2886c 2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
daa2886c 2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2857 (exit $ac_status); }; }; then
2858 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2859else
2860 echo "$as_me: failed program was:" >&5
2861cat conftest.$ac_ext >&5
2862ac_cv_lib_dnet_stub_dnet_ntoa=no
2863fi
2864rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2865LIBS=$ac_check_lib_save_LIBS
2866fi
daa2886c 2867echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
f5818d2f
AJ
2868echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2869if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
ff8331ea 2870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
ff8331ea
AJ
2871fi
2872
2873 fi
f5818d2f
AJ
2874fi
2875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876 LIBS="$ac_xsave_LIBS"
ff8331ea
AJ
2877
2878 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2879 # to get the SysV transport functions.
f5818d2f 2880 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
da0cfb36
AJ
2881 # needs -lnsl.
2882 # The nsl library prevents programs from opening the X display
f5818d2f
AJ
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.
daa2886c 2886 echo "$as_me:$LINENO: checking for gethostbyname" >&5
f5818d2f
AJ
2887echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2888if test "${ac_cv_func_gethostbyname+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2892#line $LINENO "configure"
da0cfb36
AJ
2893#include "confdefs.h"
2894/* System header to define __stub macros and hopefully few prototypes,
f5818d2f 2895 which can conflict with char gethostbyname (); below. */
da0cfb36
AJ
2896#include <assert.h>
2897/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
2898#ifdef __cplusplus
2899extern "C"
2900#endif
da0cfb36 2901/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
2902 builtin and then its argument prototype would still apply. */
2903char gethostbyname ();
2904char (*f) ();
da0cfb36 2905
daa2886c
AJ
2906#ifdef F77_DUMMY_MAIN
2907# ifdef __cplusplus
2908 extern "C"
2909# endif
2910 int F77_DUMMY_MAIN() { return 1; }
2911#endif
f5818d2f
AJ
2912int
2913main ()
2914{
da0cfb36
AJ
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)
2919choke me
2920#else
f5818d2f 2921f = gethostbyname;
da0cfb36
AJ
2922#endif
2923
f5818d2f
AJ
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2930 (eval $ac_link) 2>&5
2931 ac_status=$?
daa2886c 2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest$ac_exeext'
daa2886c 2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
daa2886c 2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2939 (exit $ac_status); }; }; then
2940 ac_cv_func_gethostbyname=yes
2941else
2942 echo "$as_me: failed program was:" >&5
2943cat conftest.$ac_ext >&5
2944ac_cv_func_gethostbyname=no
2945fi
2946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2947fi
daa2886c 2948echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
f5818d2f 2949echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
da0cfb36
AJ
2950
2951 if test $ac_cv_func_gethostbyname = no; then
daa2886c 2952 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
f5818d2f
AJ
2953echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2954if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 2956else
f5818d2f 2957 ac_check_lib_save_LIBS=$LIBS
ff8331ea 2958LIBS="-lnsl $LIBS"
f5818d2f 2959cat >conftest.$ac_ext <<_ACEOF
daa2886c 2960#line $LINENO "configure"
ff8331ea 2961#include "confdefs.h"
f5818d2f 2962
59730ae1 2963/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
2964#ifdef __cplusplus
2965extern "C"
2966#endif
e2bfa4c7 2967/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
2968 builtin and then its argument prototype would still apply. */
2969char gethostbyname ();
daa2886c
AJ
2970#ifdef F77_DUMMY_MAIN
2971# ifdef __cplusplus
2972 extern "C"
2973# endif
2974 int F77_DUMMY_MAIN() { return 1; }
2975#endif
f5818d2f
AJ
2976int
2977main ()
2978{
2979gethostbyname ();
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2986 (eval $ac_link) 2>&5
2987 ac_status=$?
daa2886c 2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2989 (exit $ac_status); } &&
2990 { ac_try='test -s conftest$ac_exeext'
daa2886c 2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
daa2886c 2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2995 (exit $ac_status); }; }; then
2996 ac_cv_lib_nsl_gethostbyname=yes
2997else
2998 echo "$as_me: failed program was:" >&5
2999cat conftest.$ac_ext >&5
3000ac_cv_lib_nsl_gethostbyname=no
3001fi
3002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3003LIBS=$ac_check_lib_save_LIBS
3004fi
daa2886c 3005echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
f5818d2f
AJ
3006echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3007if test $ac_cv_lib_nsl_gethostbyname = yes; then
3008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3009fi
ff8331ea 3010
f5818d2f 3011 if test $ac_cv_lib_nsl_gethostbyname = no; then
daa2886c 3012 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
f5818d2f
AJ
3013echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3014if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 3016else
f5818d2f
AJ
3017 ac_check_lib_save_LIBS=$LIBS
3018LIBS="-lbsd $LIBS"
3019cat >conftest.$ac_ext <<_ACEOF
daa2886c 3020#line $LINENO "configure"
f5818d2f 3021#include "confdefs.h"
ff8331ea 3022
f5818d2f
AJ
3023/* Override any gcc2 internal prototype to avoid an error. */
3024#ifdef __cplusplus
3025extern "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. */
3029char gethostbyname ();
daa2886c
AJ
3030#ifdef F77_DUMMY_MAIN
3031# ifdef __cplusplus
3032 extern "C"
3033# endif
3034 int F77_DUMMY_MAIN() { return 1; }
3035#endif
f5818d2f
AJ
3036int
3037main ()
3038{
3039gethostbyname ();
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3046 (eval $ac_link) 2>&5
3047 ac_status=$?
daa2886c 3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest$ac_exeext'
daa2886c 3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
daa2886c 3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3055 (exit $ac_status); }; }; then
3056 ac_cv_lib_bsd_gethostbyname=yes
3057else
3058 echo "$as_me: failed program was:" >&5
3059cat conftest.$ac_ext >&5
3060ac_cv_lib_bsd_gethostbyname=no
3061fi
3062rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3063LIBS=$ac_check_lib_save_LIBS
3064fi
daa2886c 3065echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
f5818d2f
AJ
3066echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3067if test $ac_cv_lib_bsd_gethostbyname = yes; then
3068 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
ff8331ea
AJ
3069fi
3070
f5818d2f 3071 fi
da0cfb36 3072 fi
ff8331ea
AJ
3073
3074 # lieder@skyler.mavd.honeywell.com says without -lsocket,
da0cfb36
AJ
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
f5818d2f
AJ
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.
daa2886c 3081 echo "$as_me:$LINENO: checking for connect" >&5
f5818d2f
AJ
3082echo $ECHO_N "checking for connect... $ECHO_C" >&6
3083if test "${ac_cv_func_connect+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3087#line $LINENO "configure"
da0cfb36
AJ
3088#include "confdefs.h"
3089/* System header to define __stub macros and hopefully few prototypes,
f5818d2f 3090 which can conflict with char connect (); below. */
da0cfb36
AJ
3091#include <assert.h>
3092/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3093#ifdef __cplusplus
3094extern "C"
3095#endif
da0cfb36 3096/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3097 builtin and then its argument prototype would still apply. */
3098char connect ();
3099char (*f) ();
da0cfb36 3100
daa2886c
AJ
3101#ifdef F77_DUMMY_MAIN
3102# ifdef __cplusplus
3103 extern "C"
3104# endif
3105 int F77_DUMMY_MAIN() { return 1; }
3106#endif
f5818d2f
AJ
3107int
3108main ()
3109{
da0cfb36
AJ
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)
3114choke me
3115#else
f5818d2f 3116f = connect;
da0cfb36
AJ
3117#endif
3118
f5818d2f
AJ
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3125 (eval $ac_link) 2>&5
3126 ac_status=$?
daa2886c 3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3128 (exit $ac_status); } &&
3129 { ac_try='test -s conftest$ac_exeext'
daa2886c 3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
daa2886c 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3134 (exit $ac_status); }; }; then
3135 ac_cv_func_connect=yes
3136else
3137 echo "$as_me: failed program was:" >&5
3138cat conftest.$ac_ext >&5
3139ac_cv_func_connect=no
3140fi
3141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3142fi
daa2886c 3143echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
f5818d2f 3144echo "${ECHO_T}$ac_cv_func_connect" >&6
da0cfb36
AJ
3145
3146 if test $ac_cv_func_connect = no; then
daa2886c 3147 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
f5818d2f
AJ
3148echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3149if test "${ac_cv_lib_socket_connect+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 3151else
f5818d2f 3152 ac_check_lib_save_LIBS=$LIBS
da0cfb36 3153LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
f5818d2f 3154cat >conftest.$ac_ext <<_ACEOF
daa2886c 3155#line $LINENO "configure"
ff8331ea 3156#include "confdefs.h"
f5818d2f 3157
59730ae1 3158/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3159#ifdef __cplusplus
3160extern "C"
3161#endif
e2bfa4c7 3162/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3163 builtin and then its argument prototype would still apply. */
3164char connect ();
daa2886c
AJ
3165#ifdef F77_DUMMY_MAIN
3166# ifdef __cplusplus
3167 extern "C"
3168# endif
3169 int F77_DUMMY_MAIN() { return 1; }
3170#endif
f5818d2f
AJ
3171int
3172main ()
3173{
3174connect ();
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3181 (eval $ac_link) 2>&5
3182 ac_status=$?
daa2886c 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3184 (exit $ac_status); } &&
3185 { ac_try='test -s conftest$ac_exeext'
daa2886c 3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
daa2886c 3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3190 (exit $ac_status); }; }; then
3191 ac_cv_lib_socket_connect=yes
3192else
3193 echo "$as_me: failed program was:" >&5
3194cat conftest.$ac_ext >&5
3195ac_cv_lib_socket_connect=no
3196fi
3197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3198LIBS=$ac_check_lib_save_LIBS
3199fi
daa2886c 3200echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
f5818d2f
AJ
3201echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3202if test $ac_cv_lib_socket_connect = yes; then
da0cfb36 3203 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
ff8331ea
AJ
3204fi
3205
da0cfb36
AJ
3206 fi
3207
f5818d2f 3208 # Guillermo Gomez says -lposix is necessary on A/UX.
daa2886c 3209 echo "$as_me:$LINENO: checking for remove" >&5
f5818d2f
AJ
3210echo $ECHO_N "checking for remove... $ECHO_C" >&6
3211if test "${ac_cv_func_remove+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 3213else
f5818d2f 3214 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3215#line $LINENO "configure"
da0cfb36
AJ
3216#include "confdefs.h"
3217/* System header to define __stub macros and hopefully few prototypes,
f5818d2f 3218 which can conflict with char remove (); below. */
da0cfb36
AJ
3219#include <assert.h>
3220/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3221#ifdef __cplusplus
3222extern "C"
3223#endif
da0cfb36 3224/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3225 builtin and then its argument prototype would still apply. */
3226char remove ();
3227char (*f) ();
da0cfb36 3228
daa2886c
AJ
3229#ifdef F77_DUMMY_MAIN
3230# ifdef __cplusplus
3231 extern "C"
3232# endif
3233 int F77_DUMMY_MAIN() { return 1; }
3234#endif
f5818d2f
AJ
3235int
3236main ()
3237{
da0cfb36
AJ
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)
3242choke me
3243#else
f5818d2f 3244f = remove;
da0cfb36
AJ
3245#endif
3246
f5818d2f
AJ
3247 ;
3248 return 0;
3249}
3250_ACEOF
3251rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3253 (eval $ac_link) 2>&5
3254 ac_status=$?
daa2886c 3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3256 (exit $ac_status); } &&
3257 { ac_try='test -s conftest$ac_exeext'
daa2886c 3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
daa2886c 3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3262 (exit $ac_status); }; }; then
3263 ac_cv_func_remove=yes
3264else
3265 echo "$as_me: failed program was:" >&5
3266cat conftest.$ac_ext >&5
3267ac_cv_func_remove=no
3268fi
3269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3270fi
daa2886c 3271echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
f5818d2f 3272echo "${ECHO_T}$ac_cv_func_remove" >&6
da0cfb36
AJ
3273
3274 if test $ac_cv_func_remove = no; then
daa2886c 3275 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
f5818d2f
AJ
3276echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3277if test "${ac_cv_lib_posix_remove+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
e2bfa4c7 3279else
f5818d2f 3280 ac_check_lib_save_LIBS=$LIBS
da0cfb36 3281LIBS="-lposix $LIBS"
f5818d2f 3282cat >conftest.$ac_ext <<_ACEOF
daa2886c 3283#line $LINENO "configure"
e2bfa4c7 3284#include "confdefs.h"
f5818d2f 3285
e2bfa4c7 3286/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3287#ifdef __cplusplus
3288extern "C"
3289#endif
e2bfa4c7 3290/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3291 builtin and then its argument prototype would still apply. */
3292char remove ();
daa2886c
AJ
3293#ifdef F77_DUMMY_MAIN
3294# ifdef __cplusplus
3295 extern "C"
3296# endif
3297 int F77_DUMMY_MAIN() { return 1; }
3298#endif
f5818d2f
AJ
3299int
3300main ()
3301{
3302remove ();
3303 ;
3304 return 0;
3305}
3306_ACEOF
3307rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3309 (eval $ac_link) 2>&5
3310 ac_status=$?
daa2886c 3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest$ac_exeext'
daa2886c 3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
daa2886c 3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3318 (exit $ac_status); }; }; then
3319 ac_cv_lib_posix_remove=yes
3320else
3321 echo "$as_me: failed program was:" >&5
3322cat conftest.$ac_ext >&5
3323ac_cv_lib_posix_remove=no
3324fi
3325rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3326LIBS=$ac_check_lib_save_LIBS
3327fi
daa2886c 3328echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
f5818d2f
AJ
3329echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3330if test $ac_cv_lib_posix_remove = yes; then
da0cfb36 3331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
da0cfb36
AJ
3332fi
3333
3334 fi
3335
3336 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
daa2886c 3337 echo "$as_me:$LINENO: checking for shmat" >&5
f5818d2f
AJ
3338echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3339if test "${ac_cv_func_shmat+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 3341else
f5818d2f 3342 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3343#line $LINENO "configure"
da0cfb36
AJ
3344#include "confdefs.h"
3345/* System header to define __stub macros and hopefully few prototypes,
f5818d2f 3346 which can conflict with char shmat (); below. */
da0cfb36
AJ
3347#include <assert.h>
3348/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3349#ifdef __cplusplus
3350extern "C"
3351#endif
da0cfb36 3352/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3353 builtin and then its argument prototype would still apply. */
3354char shmat ();
3355char (*f) ();
da0cfb36 3356
daa2886c
AJ
3357#ifdef F77_DUMMY_MAIN
3358# ifdef __cplusplus
3359 extern "C"
3360# endif
3361 int F77_DUMMY_MAIN() { return 1; }
3362#endif
f5818d2f
AJ
3363int
3364main ()
3365{
da0cfb36
AJ
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)
3370choke me
3371#else
f5818d2f 3372f = shmat;
da0cfb36
AJ
3373#endif
3374
f5818d2f
AJ
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3381 (eval $ac_link) 2>&5
3382 ac_status=$?
daa2886c 3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest$ac_exeext'
daa2886c 3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
daa2886c 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3390 (exit $ac_status); }; }; then
3391 ac_cv_func_shmat=yes
3392else
3393 echo "$as_me: failed program was:" >&5
3394cat conftest.$ac_ext >&5
3395ac_cv_func_shmat=no
3396fi
3397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3398fi
daa2886c 3399echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
f5818d2f 3400echo "${ECHO_T}$ac_cv_func_shmat" >&6
da0cfb36
AJ
3401
3402 if test $ac_cv_func_shmat = no; then
daa2886c 3403 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
f5818d2f
AJ
3404echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3405if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 3407else
f5818d2f 3408 ac_check_lib_save_LIBS=$LIBS
da0cfb36 3409LIBS="-lipc $LIBS"
f5818d2f 3410cat >conftest.$ac_ext <<_ACEOF
daa2886c 3411#line $LINENO "configure"
da0cfb36 3412#include "confdefs.h"
f5818d2f 3413
da0cfb36 3414/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3415#ifdef __cplusplus
3416extern "C"
3417#endif
da0cfb36 3418/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3419 builtin and then its argument prototype would still apply. */
3420char shmat ();
daa2886c
AJ
3421#ifdef F77_DUMMY_MAIN
3422# ifdef __cplusplus
3423 extern "C"
3424# endif
3425 int F77_DUMMY_MAIN() { return 1; }
3426#endif
f5818d2f
AJ
3427int
3428main ()
3429{
3430shmat ();
3431 ;
3432 return 0;
3433}
3434_ACEOF
3435rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3437 (eval $ac_link) 2>&5
3438 ac_status=$?
daa2886c 3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3440 (exit $ac_status); } &&
3441 { ac_try='test -s conftest$ac_exeext'
daa2886c 3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
daa2886c 3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3446 (exit $ac_status); }; }; then
3447 ac_cv_lib_ipc_shmat=yes
3448else
3449 echo "$as_me: failed program was:" >&5
3450cat conftest.$ac_ext >&5
3451ac_cv_lib_ipc_shmat=no
3452fi
3453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3454LIBS=$ac_check_lib_save_LIBS
3455fi
daa2886c 3456echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
f5818d2f
AJ
3457echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3458if test $ac_cv_lib_ipc_shmat = yes; then
da0cfb36 3459 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
e2bfa4c7
AJ
3460fi
3461
ff8331ea
AJ
3462 fi
3463 fi
da0cfb36
AJ
3464
3465 # Check for libraries that X11R6 Xt/Xaw programs need.
f5818d2f 3466 ac_save_LDFLAGS=$LDFLAGS
da0cfb36
AJ
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.
f5818d2f 3473 # John Interrante, Karl Berry
daa2886c 3474 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
f5818d2f
AJ
3475echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3476if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479 ac_check_lib_save_LIBS=$LIBS
18ad24a7 3480LIBS="-lICE $X_EXTRA_LIBS $LIBS"
f5818d2f 3481cat >conftest.$ac_ext <<_ACEOF
daa2886c 3482#line $LINENO "configure"
da0cfb36 3483#include "confdefs.h"
f5818d2f 3484
da0cfb36 3485/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3486#ifdef __cplusplus
3487extern "C"
3488#endif
da0cfb36 3489/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3490 builtin and then its argument prototype would still apply. */
3491char IceConnectionNumber ();
daa2886c
AJ
3492#ifdef F77_DUMMY_MAIN
3493# ifdef __cplusplus
3494 extern "C"
3495# endif
3496 int F77_DUMMY_MAIN() { return 1; }
3497#endif
f5818d2f
AJ
3498int
3499main ()
3500{
3501IceConnectionNumber ();
3502 ;
3503 return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3508 (eval $ac_link) 2>&5
3509 ac_status=$?
daa2886c 3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3511 (exit $ac_status); } &&
3512 { ac_try='test -s conftest$ac_exeext'
daa2886c 3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3514 (eval $ac_try) 2>&5
3515 ac_status=$?
daa2886c 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3517 (exit $ac_status); }; }; then
3518 ac_cv_lib_ICE_IceConnectionNumber=yes
3519else
3520 echo "$as_me: failed program was:" >&5
3521cat conftest.$ac_ext >&5
3522ac_cv_lib_ICE_IceConnectionNumber=no
3523fi
3524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3525LIBS=$ac_check_lib_save_LIBS
3526fi
daa2886c 3527echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
f5818d2f
AJ
3528echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3529if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
da0cfb36 3530 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
da0cfb36
AJ
3531fi
3532
f5818d2f 3533 LDFLAGS=$ac_save_LDFLAGS
da0cfb36 3534
ff8331ea
AJ
3535fi
3536
e2991ea7
AJ
3537for ac_prog in 'bison -y' byacc
3538do
f5818d2f 3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
e2991ea7 3540set dummy $ac_prog; ac_word=$2
daa2886c 3541echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
3542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543if test "${ac_cv_prog_YACC+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
3545else
3546 if test -n "$YACC"; then
3547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3548else
daa2886c
AJ
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
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
3559 fi
3560done
f5818d2f
AJ
3561done
3562
e2991ea7
AJ
3563fi
3564fi
f5818d2f 3565YACC=$ac_cv_prog_YACC
e2991ea7 3566if test -n "$YACC"; then
daa2886c 3567 echo "$as_me:$LINENO: result: $YACC" >&5
f5818d2f 3568echo "${ECHO_T}$YACC" >&6
e2991ea7 3569else
daa2886c 3570 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 3571echo "${ECHO_T}no" >&6
e2991ea7
AJ
3572fi
3573
f5818d2f 3574 test -n "$YACC" && break
e2991ea7
AJ
3575done
3576test -n "$YACC" || YACC="yacc"
3577
f5818d2f
AJ
3578for ac_prog in flex lex
3579do
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581set dummy $ac_prog; ac_word=$2
daa2886c 3582echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
3583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584if test "${ac_cv_prog_LEX+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
3586else
3587 if test -n "$LEX"; then
3588 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3589else
daa2886c
AJ
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
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
3600 fi
3601done
f5818d2f
AJ
3602done
3603
e2991ea7
AJ
3604fi
3605fi
f5818d2f 3606LEX=$ac_cv_prog_LEX
e2991ea7 3607if test -n "$LEX"; then
daa2886c 3608 echo "$as_me:$LINENO: result: $LEX" >&5
f5818d2f 3609echo "${ECHO_T}$LEX" >&6
e2991ea7 3610else
daa2886c 3611 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 3612echo "${ECHO_T}no" >&6
e2991ea7
AJ
3613fi
3614
f5818d2f
AJ
3615 test -n "$LEX" && break
3616done
3617test -n "$LEX" || LEX=":"
3618
e2991ea7
AJ
3619if test -z "$LEXLIB"
3620then
daa2886c 3621 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
f5818d2f
AJ
3622echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3623if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626 ac_check_lib_save_LIBS=$LIBS
3627LIBS="-lfl $LIBS"
3628cat >conftest.$ac_ext <<_ACEOF
daa2886c 3629#line $LINENO "configure"
e2991ea7 3630#include "confdefs.h"
f5818d2f 3631
59730ae1 3632/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3633#ifdef __cplusplus
3634extern "C"
3635#endif
e2bfa4c7 3636/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3637 builtin and then its argument prototype would still apply. */
3638char yywrap ();
daa2886c
AJ
3639#ifdef F77_DUMMY_MAIN
3640# ifdef __cplusplus
3641 extern "C"
3642# endif
3643 int F77_DUMMY_MAIN() { return 1; }
3644#endif
f5818d2f
AJ
3645int
3646main ()
3647{
3648yywrap ();
3649 ;
3650 return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3655 (eval $ac_link) 2>&5
3656 ac_status=$?
daa2886c 3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3658 (exit $ac_status); } &&
3659 { ac_try='test -s conftest$ac_exeext'
daa2886c 3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
daa2886c 3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3664 (exit $ac_status); }; }; then
3665 ac_cv_lib_fl_yywrap=yes
3666else
3667 echo "$as_me: failed program was:" >&5
3668cat conftest.$ac_ext >&5
3669ac_cv_lib_fl_yywrap=no
3670fi
3671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3672LIBS=$ac_check_lib_save_LIBS
3673fi
daa2886c 3674echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
f5818d2f
AJ
3675echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3676if test $ac_cv_lib_fl_yywrap = yes; then
3677 LEXLIB="-lfl"
3678else
daa2886c 3679 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
f5818d2f
AJ
3680echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3681if test "${ac_cv_lib_l_yywrap+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684 ac_check_lib_save_LIBS=$LIBS
3685LIBS="-ll $LIBS"
3686cat >conftest.$ac_ext <<_ACEOF
daa2886c 3687#line $LINENO "configure"
f5818d2f 3688#include "confdefs.h"
e2991ea7 3689
f5818d2f
AJ
3690/* Override any gcc2 internal prototype to avoid an error. */
3691#ifdef __cplusplus
3692extern "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. */
3696char yywrap ();
daa2886c
AJ
3697#ifdef F77_DUMMY_MAIN
3698# ifdef __cplusplus
3699 extern "C"
3700# endif
3701 int F77_DUMMY_MAIN() { return 1; }
3702#endif
f5818d2f
AJ
3703int
3704main ()
3705{
3706yywrap ();
3707 ;
3708 return 0;
3709}
3710_ACEOF
3711rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3713 (eval $ac_link) 2>&5
3714 ac_status=$?
daa2886c 3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3716 (exit $ac_status); } &&
3717 { ac_try='test -s conftest$ac_exeext'
daa2886c 3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
daa2886c 3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3722 (exit $ac_status); }; }; then
3723 ac_cv_lib_l_yywrap=yes
e2991ea7 3724else
f5818d2f
AJ
3725 echo "$as_me: failed program was:" >&5
3726cat conftest.$ac_ext >&5
3727ac_cv_lib_l_yywrap=no
3728fi
3729rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3730LIBS=$ac_check_lib_save_LIBS
3731fi
daa2886c 3732echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
f5818d2f
AJ
3733echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3734if test $ac_cv_lib_l_yywrap = yes; then
3735 LEXLIB="-ll"
3736fi
3737
e2991ea7 3738fi
e2991ea7
AJ
3739
3740fi
f5818d2f
AJ
3741
3742if test "x$LEX" != "x:"; then
daa2886c 3743 echo "$as_me:$LINENO: checking lex output file root" >&5
f5818d2f
AJ
3744echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3745if test "${ac_cv_prog_lex_root+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
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.
daa2886c
AJ
3750cat >conftest.l <<_ACEOF
3751%%
3752%%
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); }
f5818d2f
AJ
3759if test -f lex.yy.c; then
3760 ac_cv_prog_lex_root=lex.yy
3761elif test -f lexyy.c; then
3762 ac_cv_prog_lex_root=lexyy
3763else
daa2886c 3764 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
f5818d2f
AJ
3765echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3766 { (exit 1); exit 1; }; }
3767fi
3768fi
daa2886c 3769echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
f5818d2f 3770echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
daa2886c 3771rm -f conftest.l
f5818d2f
AJ
3772LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3773
daa2886c 3774echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
f5818d2f
AJ
3775echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3776if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 3778else
f5818d2f
AJ
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.
3782ac_cv_prog_lex_yytext_pointer=no
3783echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3784ac_save_LIBS=$LIBS
3785LIBS="$LIBS $LEXLIB"
3786cat >conftest.$ac_ext <<_ACEOF
3787`cat $LEX_OUTPUT_ROOT.c`
3788_ACEOF
3789rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3791 (eval $ac_link) 2>&5
3792 ac_status=$?
daa2886c 3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3794 (exit $ac_status); } &&
3795 { ac_try='test -s conftest$ac_exeext'
daa2886c 3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
daa2886c 3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3800 (exit $ac_status); }; }; then
3801 ac_cv_prog_lex_yytext_pointer=yes
3802else
3803 echo "$as_me: failed program was:" >&5
3804cat conftest.$ac_ext >&5
3805fi
3806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807LIBS=$ac_save_LIBS
3808rm -f "${LEX_OUTPUT_ROOT}.c"
3809
e2991ea7 3810fi
daa2886c 3811echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
f5818d2f
AJ
3812echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3813if test $ac_cv_prog_lex_yytext_pointer = yes; then
3814
daa2886c 3815cat >>confdefs.h <<\_ACEOF
f5818d2f 3816#define YYTEXT_POINTER 1
daa2886c 3817_ACEOF
e2991ea7
AJ
3818
3819fi
3820
f5818d2f 3821fi
5c5a6217
MM
3822
3823for ac_prog in $YACC bison yacc
3824do
f5818d2f 3825 # Extract the first word of "$ac_prog", so it can be a program name with args.
5c5a6217 3826set dummy $ac_prog; ac_word=$2
daa2886c 3827echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
3828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829if test "${ac_cv_prog_XYACC+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
5c5a6217
MM
3831else
3832 if test -n "$XYACC"; then
3833 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3834else
daa2886c
AJ
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
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
3845 fi
3846done
f5818d2f
AJ
3847done
3848
5c5a6217
MM
3849fi
3850fi
f5818d2f 3851XYACC=$ac_cv_prog_XYACC
5c5a6217 3852if test -n "$XYACC"; then
daa2886c 3853 echo "$as_me:$LINENO: result: $XYACC" >&5
f5818d2f 3854echo "${ECHO_T}$XYACC" >&6
5c5a6217 3855else
daa2886c 3856 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 3857echo "${ECHO_T}no" >&6
5c5a6217
MM
3858fi
3859
f5818d2f 3860 test -n "$XYACC" && break
5c5a6217
MM
3861done
3862test -n "$XYACC" || XYACC="none"
3863
3864if test "$XYACC" = "none"
3865then
daa2886c 3866 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
f5818d2f
AJ
3867echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3868 { (exit 1); exit 1; }; }
5c5a6217 3869fi
b53bb419
MM
3870for ac_prog in $LEX flex lex
3871do
f5818d2f 3872 # Extract the first word of "$ac_prog", so it can be a program name with args.
b53bb419 3873set dummy $ac_prog; ac_word=$2
daa2886c 3874echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
3875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876if test "${ac_cv_prog_XLEX+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
b53bb419
MM
3878else
3879 if test -n "$XLEX"; then
3880 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3881else
daa2886c
AJ
3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH
3884do
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
3892 fi
3893done
f5818d2f
AJ
3894done
3895
b53bb419
MM
3896fi
3897fi
f5818d2f 3898XLEX=$ac_cv_prog_XLEX
b53bb419 3899if test -n "$XLEX"; then
daa2886c 3900 echo "$as_me:$LINENO: result: $XLEX" >&5
f5818d2f 3901echo "${ECHO_T}$XLEX" >&6
b53bb419 3902else
daa2886c 3903 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 3904echo "${ECHO_T}no" >&6
b53bb419
MM
3905fi
3906
f5818d2f 3907 test -n "$XLEX" && break
b53bb419
MM
3908done
3909test -n "$XLEX" || XLEX="none"
3910
3911if test "$XLEX" = "none"
3912then
daa2886c 3913 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
f5818d2f
AJ
3914echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3915 { (exit 1); exit 1; }; }
3916fi
fc01b729
AJ
3917
3918if 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.
3920set dummy ${ac_tool_prefix}ar; ac_word=$2
3921echo "$as_me:$LINENO: checking for $ac_word" >&5
3922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923if test "${ac_cv_prog_AR+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 if test -n "$AR"; then
3927 ac_cv_prog_AR="$AR" # Let the user override the test.
3928else
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
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
3939 fi
3940done
3941done
3942
3943fi
3944fi
3945AR=$ac_cv_prog_AR
3946if test -n "$AR"; then
3947 echo "$as_me:$LINENO: result: $AR" >&5
3948echo "${ECHO_T}$AR" >&6
3949else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952fi
3953
3954fi
3955if 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.
3958set dummy ar; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964 if test -n "$ac_ct_AR"; then
3965 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
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
3977 fi
3978done
3979done
3980
3981 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3982fi
3983fi
3984ac_ct_AR=$ac_cv_prog_ac_ct_AR
3985if test -n "$ac_ct_AR"; then
3986 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3987echo "${ECHO_T}$ac_ct_AR" >&6
3988else
3989 echo "$as_me:$LINENO: result: no" >&5
3990echo "${ECHO_T}no" >&6
3991fi
3992
3993 AR=$ac_ct_AR
3994else
3995 AR="$ac_cv_prog_AR"
3996fi
3997
f5818d2f
AJ
3998if 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.
4000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
daa2886c 4001echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003if test "${ac_cv_prog_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea
AJ
4005else
4006 if test -n "$RANLIB"; then
4007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4008else
daa2886c
AJ
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
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
4019 fi
4020done
f5818d2f
AJ
4021done
4022
e2991ea7 4023fi
e2991ea7 4024fi
f5818d2f 4025RANLIB=$ac_cv_prog_RANLIB
ff8331ea 4026if test -n "$RANLIB"; then
daa2886c 4027 echo "$as_me:$LINENO: result: $RANLIB" >&5
f5818d2f
AJ
4028echo "${ECHO_T}$RANLIB" >&6
4029else
daa2886c 4030 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
4031echo "${ECHO_T}no" >&6
4032fi
4033
4034fi
4035if 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.
4038set dummy ranlib; ac_word=$2
daa2886c 4039echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043else
4044 if test -n "$ac_ct_RANLIB"; then
4045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4046else
daa2886c
AJ
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
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
4057 fi
4058done
f5818d2f
AJ
4059done
4060
4061 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4062fi
4063fi
4064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4065if test -n "$ac_ct_RANLIB"; then
daa2886c 4066 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
f5818d2f
AJ
4067echo "${ECHO_T}$ac_ct_RANLIB" >&6
4068else
daa2886c 4069 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
4070echo "${ECHO_T}no" >&6
4071fi
4072
4073 RANLIB=$ac_ct_RANLIB
ff8331ea 4074else
f5818d2f 4075 RANLIB="$ac_cv_prog_RANLIB"
ff8331ea 4076fi
e2991ea7 4077
fc01b729
AJ
4078if 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.
4080set dummy ${ac_tool_prefix}strip; ac_word=$2
4081echo "$as_me:$LINENO: checking for $ac_word" >&5
4082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083if test "${ac_cv_prog_STRIP+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086 if test -n "$STRIP"; then
4087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
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
4099 fi
4100done
4101done
4102
4103fi
4104fi
4105STRIP=$ac_cv_prog_STRIP
4106if test -n "$STRIP"; then
4107 echo "$as_me:$LINENO: result: $STRIP" >&5
4108echo "${ECHO_T}$STRIP" >&6
4109else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112fi
4113
4114fi
4115if 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.
4118set dummy strip; ac_word=$2
4119echo "$as_me:$LINENO: checking for $ac_word" >&5
4120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 if test -n "$ac_ct_STRIP"; then
4125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
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
4137 fi
4138done
4139done
4140
4141 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4142fi
4143fi
4144ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145if test -n "$ac_ct_STRIP"; then
4146 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4147echo "${ECHO_T}$ac_ct_STRIP" >&6
4148else
4149 echo "$as_me:$LINENO: result: no" >&5
4150echo "${ECHO_T}no" >&6
4151fi
4152
4153 STRIP=$ac_ct_STRIP
4154else
4155 STRIP="$ac_cv_prog_STRIP"
4156fi
4157
4158if 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.
4160set dummy ${ac_tool_prefix}windres; ac_word=$2
4161echo "$as_me:$LINENO: checking for $ac_word" >&5
4162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163if test "${ac_cv_prog_WINDRES+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166 if test -n "$WINDRES"; then
4167 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4168else
4169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170for as_dir in $PATH
4171do
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
4179 fi
4180done
4181done
4182
4183fi
4184fi
4185WINDRES=$ac_cv_prog_WINDRES
4186if test -n "$WINDRES"; then
4187 echo "$as_me:$LINENO: result: $WINDRES" >&5
4188echo "${ECHO_T}$WINDRES" >&6
4189else
4190 echo "$as_me:$LINENO: result: no" >&5
4191echo "${ECHO_T}no" >&6
4192fi
4193
4194fi
4195if 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.
4198set dummy windres; ac_word=$2
4199echo "$as_me:$LINENO: checking for $ac_word" >&5
4200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204 if test -n "$ac_ct_WINDRES"; then
4205 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4206else
4207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH
4209do
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
4217 fi
4218done
4219done
4220
4221 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4222fi
4223fi
4224ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4225if test -n "$ac_ct_WINDRES"; then
4226 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4227echo "${ECHO_T}$ac_ct_WINDRES" >&6
4228else
4229 echo "$as_me:$LINENO: result: no" >&5
4230echo "${ECHO_T}no" >&6
4231fi
4232
4233 WINDRES=$ac_ct_WINDRES
4234else
4235 WINDRES="$ac_cv_prog_WINDRES"
4236fi
4237
d7d4fdf8
AJ
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
f5818d2f 4245# AmigaOS /C/install, which installs bootblocks on floppy discs
18ad24a7 4246# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
d7d4fdf8
AJ
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.
daa2886c
AJ
4250echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4251echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
d7d4fdf8 4252if test -z "$INSTALL"; then
f5818d2f
AJ
4253if test "${ac_cv_path_install+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
d7d4fdf8 4255else
daa2886c
AJ
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257for as_dir in $PATH
4258do
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 # Account for people who put trailing slashes in PATH elements.
4262case $as_dir/ in
4263 ./ | .// | /cC/* | \
4264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4265 /usr/ucb/* ) ;;
4266 *)
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.
4276 :
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.
4280 :
4281 else
4282 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4283 break 3
4284 fi
4285 fi
d7d4fdf8 4286 done
daa2886c
AJ
4287 done
4288 ;;
4289esac
4290done
4291
d7d4fdf8
AJ
4292
4293fi
4294 if test "${ac_cv_path_install+set}" = set; then
f5818d2f 4295 INSTALL=$ac_cv_path_install
d7d4fdf8
AJ
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.
f5818d2f 4301 INSTALL=$ac_install_sh
d7d4fdf8
AJ
4302 fi
4303fi
daa2886c 4304echo "$as_me:$LINENO: result: $INSTALL" >&5
f5818d2f 4305echo "${ECHO_T}$INSTALL" >&6
d7d4fdf8
AJ
4306
4307# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4308# It thinks the first close brace ends the variable substitution.
4309test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4310
f5818d2f 4311test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18ad24a7 4312
d7d4fdf8
AJ
4313test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4314
daa2886c 4315echo "$as_me:$LINENO: checking whether ln -s works" >&5
f5818d2f
AJ
4316echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4317LN_S=$as_ln_s
4318if test "$LN_S" = "ln -s"; then
daa2886c 4319 echo "$as_me:$LINENO: result: yes" >&5
f5818d2f 4320echo "${ECHO_T}yes" >&6
641ee76a 4321else
daa2886c 4322 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
f5818d2f 4323echo "${ECHO_T}no, using $LN_S" >&6
641ee76a
AJ
4324fi
4325
df234a9f
AJ
4326echo "$as_me:$LINENO: checking whether ln works" >&5
4327echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4328rm -f conf$$ conf$$.file
4329echo >conf$$.file
4330if ln conf$$.file conf$$ 2>/dev/null; then
4331 LN=ln
4332
4333 echo "$as_me:$LINENO: result: yes" >&5
4334echo "${ECHO_T}yes" >&6
4335else
4336 LN="cp -p"
4337
4338 echo "$as_me:$LINENO: result: no, using $LN" >&5
4339echo "${ECHO_T}no, using $LN" >&6
4340fi
4341rm -f conf$$ conf$$.file
c7c217b3
AJ
4342# Extract the first word of "c2man", so it can be a program name with args.
4343set dummy c2man; ac_word=$2
daa2886c 4344echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346if test "${ac_cv_prog_C2MAN+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3
AJ
4348else
4349 if test -n "$C2MAN"; then
4350 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4351else
daa2886c
AJ
4352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359 ac_cv_prog_C2MAN="c2man"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4362 fi
4363done
f5818d2f
AJ
4364done
4365
e0df32ff 4366 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
c7c217b3
AJ
4367fi
4368fi
f5818d2f 4369C2MAN=$ac_cv_prog_C2MAN
c7c217b3 4370if test -n "$C2MAN"; then
daa2886c 4371 echo "$as_me:$LINENO: result: $C2MAN" >&5
f5818d2f 4372echo "${ECHO_T}$C2MAN" >&6
c7c217b3 4373else
daa2886c 4374 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4375echo "${ECHO_T}no" >&6
c7c217b3
AJ
4376fi
4377
ffe6b767
JJ
4378# Extract the first word of "ldconfig", so it can be a program name with args.
4379set dummy ldconfig; ac_word=$2
daa2886c 4380echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4382if test "${ac_cv_path_LDCONFIG+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
ffe6b767 4384else
f5818d2f
AJ
4385 case $LDCONFIG in
4386 [\\/]* | ?:[\\/]*)
ffe6b767
JJ
4387 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4388 ;;
4389 *)
daa2886c 4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91372b39 4391for as_dir in /sbin /usr/sbin $PATH
daa2886c
AJ
4392do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4400 fi
4401done
f5818d2f
AJ
4402done
4403
318f4cef 4404 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
ffe6b767
JJ
4405 ;;
4406esac
4407fi
f5818d2f 4408LDCONFIG=$ac_cv_path_LDCONFIG
79e44abe 4409
f5818d2f 4410if test -n "$LDCONFIG"; then
daa2886c 4411 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
f5818d2f 4412echo "${ECHO_T}$LDCONFIG" >&6
d48ca948 4413else
daa2886c 4414 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4415echo "${ECHO_T}no" >&6
d48ca948
HT
4416fi
4417
daa2886c 4418
fc01b729
AJ
4419case $host_os in
4420 cygwin*|mingw32*)
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}ld -r --enable-stdcall-fixup", so it can be a program name with args.
4423set dummy ${ac_tool_prefix}ld -r --enable-stdcall-fixup; ac_word=$2
4424echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426if test "${ac_cv_prog_LDCOMBINE+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428else
4429 if test -n "$LDCOMBINE"; then
4430 ac_cv_prog_LDCOMBINE="$LDCOMBINE" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 ac_cv_prog_LDCOMBINE="${ac_tool_prefix}ld -r --enable-stdcall-fixup"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443done
4444done
4445
4446fi
4447fi
4448LDCOMBINE=$ac_cv_prog_LDCOMBINE
4449if test -n "$LDCOMBINE"; then
4450 echo "$as_me:$LINENO: result: $LDCOMBINE" >&5
4451echo "${ECHO_T}$LDCOMBINE" >&6
4452else
4453 echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6
4455fi
4456
4457fi
4458if test -z "$ac_cv_prog_LDCOMBINE"; then
4459 ac_ct_LDCOMBINE=$LDCOMBINE
4460 # Extract the first word of "ld -r --enable-stdcall-fixup", so it can be a program name with args.
4461set dummy ld -r --enable-stdcall-fixup; ac_word=$2
4462echo "$as_me:$LINENO: checking for $ac_word" >&5
4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4464if test "${ac_cv_prog_ac_ct_LDCOMBINE+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466else
4467 if test -n "$ac_ct_LDCOMBINE"; then
4468 ac_cv_prog_ac_ct_LDCOMBINE="$ac_ct_LDCOMBINE" # Let the user override the test.
4469else
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_ac_ct_LDCOMBINE="ld -r --enable-stdcall-fixup"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481done
4482done
4483
4484 test -z "$ac_cv_prog_ac_ct_LDCOMBINE" && ac_cv_prog_ac_ct_LDCOMBINE="ld -r --enable-stdcall-fixup"
4485fi
4486fi
4487ac_ct_LDCOMBINE=$ac_cv_prog_ac_ct_LDCOMBINE
4488if test -n "$ac_ct_LDCOMBINE"; then
4489 echo "$as_me:$LINENO: result: $ac_ct_LDCOMBINE" >&5
4490echo "${ECHO_T}$ac_ct_LDCOMBINE" >&6
4491else
4492 echo "$as_me:$LINENO: result: no" >&5
4493echo "${ECHO_T}no" >&6
4494fi
4495
4496 LDCOMBINE=$ac_ct_LDCOMBINE
4497else
4498 LDCOMBINE="$ac_cv_prog_LDCOMBINE"
4499fi
4500 ;;
4501 *)
4502 if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}ld -r", so it can be a program name with args.
4504set dummy ${ac_tool_prefix}ld -r; ac_word=$2
4505echo "$as_me:$LINENO: checking for $ac_word" >&5
4506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4507if test "${ac_cv_prog_LDCOMBINE+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510 if test -n "$LDCOMBINE"; then
4511 ac_cv_prog_LDCOMBINE="$LDCOMBINE" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_LDCOMBINE="${ac_tool_prefix}ld -r"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524done
4525done
4526
4527fi
4528fi
4529LDCOMBINE=$ac_cv_prog_LDCOMBINE
4530if test -n "$LDCOMBINE"; then
4531 echo "$as_me:$LINENO: result: $LDCOMBINE" >&5
4532echo "${ECHO_T}$LDCOMBINE" >&6
4533else
4534 echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6
4536fi
4537
4538fi
4539if test -z "$ac_cv_prog_LDCOMBINE"; then
4540 ac_ct_LDCOMBINE=$LDCOMBINE
4541 # Extract the first word of "ld -r", so it can be a program name with args.
4542set dummy ld -r; ac_word=$2
4543echo "$as_me:$LINENO: checking for $ac_word" >&5
4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545if test "${ac_cv_prog_ac_ct_LDCOMBINE+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548 if test -n "$ac_ct_LDCOMBINE"; then
4549 ac_cv_prog_ac_ct_LDCOMBINE="$ac_ct_LDCOMBINE" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_ac_ct_LDCOMBINE="ld -r"
4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562done
4563done
4564
4565 test -z "$ac_cv_prog_ac_ct_LDCOMBINE" && ac_cv_prog_ac_ct_LDCOMBINE="ld -r"
4566fi
4567fi
4568ac_ct_LDCOMBINE=$ac_cv_prog_ac_ct_LDCOMBINE
4569if test -n "$ac_ct_LDCOMBINE"; then
4570 echo "$as_me:$LINENO: result: $ac_ct_LDCOMBINE" >&5
4571echo "${ECHO_T}$ac_ct_LDCOMBINE" >&6
4572else
4573 echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
4575fi
4576
4577 LDCOMBINE=$ac_ct_LDCOMBINE
4578else
4579 LDCOMBINE="$ac_cv_prog_LDCOMBINE"
4580fi
4581 ;;
4582esac
4583
a9be64e2
PS
4584for ac_prog in lclint lint
4585do
f5818d2f 4586 # Extract the first word of "$ac_prog", so it can be a program name with args.
a9be64e2 4587set dummy $ac_prog; ac_word=$2
daa2886c 4588echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4590if test "${ac_cv_prog_LINT+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
a9be64e2
PS
4592else
4593 if test -n "$LINT"; then
4594 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4595else
daa2886c
AJ
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_prog_LINT="$ac_prog"
4604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4606 fi
4607done
f5818d2f
AJ
4608done
4609
a9be64e2
PS
4610fi
4611fi
f5818d2f 4612LINT=$ac_cv_prog_LINT
a9be64e2 4613if test -n "$LINT"; then
daa2886c 4614 echo "$as_me:$LINENO: result: $LINT" >&5
f5818d2f 4615echo "${ECHO_T}$LINT" >&6
a9be64e2 4616else
daa2886c 4617 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4618echo "${ECHO_T}no" >&6
a9be64e2
PS
4619fi
4620
f5818d2f 4621 test -n "$LINT" && break
a9be64e2
PS
4622done
4623
4624if test "$LINT" = "lint"
4625then
4626 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4627 fi
4628
daa2886c
AJ
4629
4630
daa2886c
AJ
4631
4632
4633echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
f5818d2f
AJ
4634echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4635if test "${ac_cv_lib_m_sqrt+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
13277480 4637else
f5818d2f 4638 ac_check_lib_save_LIBS=$LIBS
13277480 4639LIBS="-lm $LIBS"
f5818d2f 4640cat >conftest.$ac_ext <<_ACEOF
daa2886c 4641#line $LINENO "configure"
13277480 4642#include "confdefs.h"
f5818d2f 4643
13277480 4644/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
4645#ifdef __cplusplus
4646extern "C"
4647#endif
13277480 4648/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
4649 builtin and then its argument prototype would still apply. */
4650char sqrt ();
daa2886c
AJ
4651#ifdef F77_DUMMY_MAIN
4652# ifdef __cplusplus
4653 extern "C"
4654# endif
4655 int F77_DUMMY_MAIN() { return 1; }
4656#endif
f5818d2f
AJ
4657int
4658main ()
4659{
4660sqrt ();
4661 ;
4662 return 0;
4663}
4664_ACEOF
4665rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 4666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
4667 (eval $ac_link) 2>&5
4668 ac_status=$?
daa2886c 4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4670 (exit $ac_status); } &&
4671 { ac_try='test -s conftest$ac_exeext'
daa2886c 4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
daa2886c 4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4676 (exit $ac_status); }; }; then
4677 ac_cv_lib_m_sqrt=yes
4678else
4679 echo "$as_me: failed program was:" >&5
4680cat conftest.$ac_ext >&5
4681ac_cv_lib_m_sqrt=no
4682fi
4683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4684LIBS=$ac_check_lib_save_LIBS
4685fi
daa2886c 4686echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
f5818d2f
AJ
4687echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4688if test $ac_cv_lib_m_sqrt = yes; then
daa2886c 4689 cat >>confdefs.h <<_ACEOF
f5818d2f 4690#define HAVE_LIBM 1
daa2886c 4691_ACEOF
f5818d2f
AJ
4692
4693 LIBS="-lm $LIBS"
13277480
HA
4694
4695fi
13277480 4696
daa2886c
AJ
4697
4698echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
f5818d2f
AJ
4699echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4700if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
902da699 4702else
f5818d2f 4703 ac_check_lib_save_LIBS=$LIBS
902da699 4704LIBS="-li386 $LIBS"
f5818d2f 4705cat >conftest.$ac_ext <<_ACEOF
daa2886c 4706#line $LINENO "configure"
902da699 4707#include "confdefs.h"
f5818d2f 4708
59730ae1 4709/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
4710#ifdef __cplusplus
4711extern "C"
4712#endif
e2bfa4c7 4713/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
4714 builtin and then its argument prototype would still apply. */
4715char i386_set_ldt ();
daa2886c
AJ
4716#ifdef F77_DUMMY_MAIN
4717# ifdef __cplusplus
4718 extern "C"
4719# endif
4720 int F77_DUMMY_MAIN() { return 1; }
4721#endif
f5818d2f
AJ
4722int
4723main ()
4724{
4725i386_set_ldt ();
4726 ;
4727 return 0;
4728}
4729_ACEOF
4730rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 4731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
4732 (eval $ac_link) 2>&5
4733 ac_status=$?
daa2886c 4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4735 (exit $ac_status); } &&
4736 { ac_try='test -s conftest$ac_exeext'
daa2886c 4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
daa2886c 4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4741 (exit $ac_status); }; }; then
4742 ac_cv_lib_i386_i386_set_ldt=yes
4743else
4744 echo "$as_me: failed program was:" >&5
4745cat conftest.$ac_ext >&5
4746ac_cv_lib_i386_i386_set_ldt=no
4747fi
4748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4749LIBS=$ac_check_lib_save_LIBS
4750fi
daa2886c 4751echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
f5818d2f
AJ
4752echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4753if test $ac_cv_lib_i386_i386_set_ldt = yes; then
daa2886c 4754 cat >>confdefs.h <<_ACEOF
f5818d2f 4755#define HAVE_LIBI386 1
daa2886c 4756_ACEOF
02e90087
AJ
4757
4758 LIBS="-li386 $LIBS"
4759
02e90087
AJ
4760fi
4761
daa2886c
AJ
4762
4763echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
f5818d2f
AJ
4764echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4765if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
ecc7669d 4767else
f5818d2f 4768 ac_check_lib_save_LIBS=$LIBS
ecc7669d 4769LIBS="-lossaudio $LIBS"
f5818d2f 4770cat >conftest.$ac_ext <<_ACEOF
daa2886c 4771#line $LINENO "configure"
ecc7669d 4772#include "confdefs.h"
f5818d2f 4773
ecc7669d 4774/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
4775#ifdef __cplusplus
4776extern "C"
4777#endif
ecc7669d 4778/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
4779 builtin and then its argument prototype would still apply. */
4780char _oss_ioctl ();
daa2886c
AJ
4781#ifdef F77_DUMMY_MAIN
4782# ifdef __cplusplus
4783 extern "C"
4784# endif
4785 int F77_DUMMY_MAIN() { return 1; }
4786#endif
f5818d2f
AJ
4787int
4788main ()
4789{
4790_oss_ioctl ();
4791 ;
4792 return 0;
4793}
4794_ACEOF
4795rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 4796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
4797 (eval $ac_link) 2>&5
4798 ac_status=$?
daa2886c 4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4800 (exit $ac_status); } &&
4801 { ac_try='test -s conftest$ac_exeext'
daa2886c 4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
daa2886c 4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4806 (exit $ac_status); }; }; then
4807 ac_cv_lib_ossaudio__oss_ioctl=yes
4808else
4809 echo "$as_me: failed program was:" >&5
4810cat conftest.$ac_ext >&5
4811ac_cv_lib_ossaudio__oss_ioctl=no
4812fi
4813rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4814LIBS=$ac_check_lib_save_LIBS
4815fi
daa2886c 4816echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
f5818d2f
AJ
4817echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4818if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
daa2886c 4819 cat >>confdefs.h <<_ACEOF
f5818d2f 4820#define HAVE_LIBOSSAUDIO 1
daa2886c 4821_ACEOF
ecc7669d
TV
4822
4823 LIBS="-lossaudio $LIBS"
4824
ecc7669d
TV
4825fi
4826
daa2886c 4827
2e8e2334
UW
4828for ac_func in iswalnum
4829do
f5818d2f 4830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 4831echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
4832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4833if eval "test \"\${$as_ac_var+set}\" = set"; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836 cat >conftest.$ac_ext <<_ACEOF
daa2886c 4837#line $LINENO "configure"
2e8e2334
UW
4838#include "confdefs.h"
4839/* System header to define __stub macros and hopefully few prototypes,
f5818d2f 4840 which can conflict with char $ac_func (); below. */
2e8e2334
UW
4841#include <assert.h>
4842/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
4843#ifdef __cplusplus
4844extern "C"
4845#endif
2e8e2334 4846/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
4847 builtin and then its argument prototype would still apply. */
4848char $ac_func ();
4849char (*f) ();
2e8e2334 4850
daa2886c
AJ
4851#ifdef F77_DUMMY_MAIN
4852# ifdef __cplusplus
4853 extern "C"
4854# endif
4855 int F77_DUMMY_MAIN() { return 1; }
4856#endif
f5818d2f
AJ
4857int
4858main ()
4859{
2e8e2334
UW
4860/* The GNU C library defines this for functions which it implements
4861 to always fail with ENOSYS. Some functions are actually named
4862 something starting with __ and the normal name is an alias. */
4863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4864choke me
4865#else
f5818d2f 4866f = $ac_func;
2e8e2334
UW
4867#endif
4868
f5818d2f
AJ
4869 ;
4870 return 0;
4871}
4872_ACEOF
4873rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 4874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
4875 (eval $ac_link) 2>&5
4876 ac_status=$?
daa2886c 4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4878 (exit $ac_status); } &&
4879 { ac_try='test -s conftest$ac_exeext'
daa2886c 4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
4881 (eval $ac_try) 2>&5
4882 ac_status=$?
daa2886c 4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4884 (exit $ac_status); }; }; then
4885 eval "$as_ac_var=yes"
4886else
4887 echo "$as_me: failed program was:" >&5
4888cat conftest.$ac_ext >&5
4889eval "$as_ac_var=no"
4890fi
4891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4892fi
daa2886c 4893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
4894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4895if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 4896 cat >>confdefs.h <<_ACEOF
f5818d2f 4897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 4898_ACEOF
f5818d2f
AJ
4899
4900else
4901
daa2886c 4902echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
f5818d2f
AJ
4903echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4904if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907 ac_check_lib_save_LIBS=$LIBS
02e90087 4908LIBS="-lw $LIBS"
f5818d2f 4909cat >conftest.$ac_ext <<_ACEOF
daa2886c 4910#line $LINENO "configure"
02e90087 4911#include "confdefs.h"
f5818d2f 4912
02e90087 4913/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
4914#ifdef __cplusplus
4915extern "C"
4916#endif
02e90087 4917/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
4918 builtin and then its argument prototype would still apply. */
4919char iswalnum ();
daa2886c
AJ
4920#ifdef F77_DUMMY_MAIN
4921# ifdef __cplusplus
4922 extern "C"
4923# endif
4924 int F77_DUMMY_MAIN() { return 1; }
4925#endif
f5818d2f
AJ
4926int
4927main ()
4928{
4929iswalnum ();
4930 ;
4931 return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 4935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
4936 (eval $ac_link) 2>&5
4937 ac_status=$?
daa2886c 4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4939 (exit $ac_status); } &&
4940 { ac_try='test -s conftest$ac_exeext'
daa2886c 4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
daa2886c 4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4945 (exit $ac_status); }; }; then
4946 ac_cv_lib_w_iswalnum=yes
4947else
4948 echo "$as_me: failed program was:" >&5
4949cat conftest.$ac_ext >&5
4950ac_cv_lib_w_iswalnum=no
4951fi
4952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4953LIBS=$ac_check_lib_save_LIBS
4954fi
daa2886c 4955echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
f5818d2f
AJ
4956echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4957if test $ac_cv_lib_w_iswalnum = yes; then
daa2886c 4958 cat >>confdefs.h <<_ACEOF
f5818d2f 4959#define HAVE_LIBW 1
daa2886c 4960_ACEOF
02e90087
AJ
4961
4962 LIBS="-lw $LIBS"
4963
02e90087
AJ
4964fi
4965
2e8e2334
UW
4966fi
4967done
4968
daa2886c 4969
ea584724
PS
4970for ac_func in gethostbyname
4971do
f5818d2f 4972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 4973echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
4974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4975if eval "test \"\${$as_ac_var+set}\" = set"; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978 cat >conftest.$ac_ext <<_ACEOF
daa2886c 4979#line $LINENO "configure"
ea584724
PS
4980#include "confdefs.h"
4981/* System header to define __stub macros and hopefully few prototypes,
f5818d2f 4982 which can conflict with char $ac_func (); below. */
ea584724
PS
4983#include <assert.h>
4984/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
4985#ifdef __cplusplus
4986extern "C"
4987#endif
ea584724 4988/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
4989 builtin and then its argument prototype would still apply. */
4990char $ac_func ();
4991char (*f) ();
ea584724 4992
daa2886c
AJ
4993#ifdef F77_DUMMY_MAIN
4994# ifdef __cplusplus
4995 extern "C"
4996# endif
4997 int F77_DUMMY_MAIN() { return 1; }
4998#endif
f5818d2f
AJ
4999int
5000main ()
5001{
ea584724
PS
5002/* The GNU C library defines this for functions which it implements
5003 to always fail with ENOSYS. Some functions are actually named
5004 something starting with __ and the normal name is an alias. */
5005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5006choke me
5007#else
f5818d2f 5008f = $ac_func;
ea584724
PS
5009#endif
5010
f5818d2f
AJ
5011 ;
5012 return 0;
5013}
5014_ACEOF
5015rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5017 (eval $ac_link) 2>&5
5018 ac_status=$?
daa2886c 5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5020 (exit $ac_status); } &&
5021 { ac_try='test -s conftest$ac_exeext'
daa2886c 5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
daa2886c 5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5026 (exit $ac_status); }; }; then
5027 eval "$as_ac_var=yes"
5028else
5029 echo "$as_me: failed program was:" >&5
5030cat conftest.$ac_ext >&5
5031eval "$as_ac_var=no"
5032fi
5033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5034fi
daa2886c 5035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
5036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5037if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5038 cat >>confdefs.h <<_ACEOF
f5818d2f 5039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5040_ACEOF
f5818d2f
AJ
5041
5042else
5043
daa2886c 5044echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
f5818d2f
AJ
5045echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5046if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048else
5049 ac_check_lib_save_LIBS=$LIBS
2e8e2334 5050LIBS="-lnsl $LIBS"
f5818d2f 5051cat >conftest.$ac_ext <<_ACEOF
daa2886c 5052#line $LINENO "configure"
ea584724 5053#include "confdefs.h"
f5818d2f 5054
ea584724 5055/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5056#ifdef __cplusplus
5057extern "C"
5058#endif
ea584724 5059/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5060 builtin and then its argument prototype would still apply. */
5061char gethostbyname ();
daa2886c
AJ
5062#ifdef F77_DUMMY_MAIN
5063# ifdef __cplusplus
5064 extern "C"
5065# endif
5066 int F77_DUMMY_MAIN() { return 1; }
5067#endif
f5818d2f
AJ
5068int
5069main ()
5070{
5071gethostbyname ();
5072 ;
5073 return 0;
5074}
5075_ACEOF
5076rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5078 (eval $ac_link) 2>&5
5079 ac_status=$?
daa2886c 5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5081 (exit $ac_status); } &&
5082 { ac_try='test -s conftest$ac_exeext'
daa2886c 5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
daa2886c 5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5087 (exit $ac_status); }; }; then
5088 ac_cv_lib_nsl_gethostbyname=yes
5089else
5090 echo "$as_me: failed program was:" >&5
5091cat conftest.$ac_ext >&5
5092ac_cv_lib_nsl_gethostbyname=no
5093fi
5094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5095LIBS=$ac_check_lib_save_LIBS
5096fi
daa2886c 5097echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
f5818d2f
AJ
5098echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5099if test $ac_cv_lib_nsl_gethostbyname = yes; then
daa2886c 5100 cat >>confdefs.h <<_ACEOF
f5818d2f 5101#define HAVE_LIBNSL 1
daa2886c 5102_ACEOF
ea584724 5103
2e8e2334
UW
5104 LIBS="-lnsl $LIBS"
5105
ea584724
PS
5106fi
5107
715a55e7 5108fi
f070fda2
MM
5109done
5110
daa2886c 5111
715a55e7
UW
5112for ac_func in connect
5113do
f5818d2f 5114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 5115echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
5116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5117if eval "test \"\${$as_ac_var+set}\" = set"; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119else
5120 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5121#line $LINENO "configure"
715a55e7
UW
5122#include "confdefs.h"
5123/* System header to define __stub macros and hopefully few prototypes,
f5818d2f 5124 which can conflict with char $ac_func (); below. */
715a55e7
UW
5125#include <assert.h>
5126/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5127#ifdef __cplusplus
5128extern "C"
5129#endif
715a55e7 5130/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5131 builtin and then its argument prototype would still apply. */
5132char $ac_func ();
5133char (*f) ();
715a55e7 5134
daa2886c
AJ
5135#ifdef F77_DUMMY_MAIN
5136# ifdef __cplusplus
5137 extern "C"
5138# endif
5139 int F77_DUMMY_MAIN() { return 1; }
5140#endif
f5818d2f
AJ
5141int
5142main ()
5143{
715a55e7
UW
5144/* The GNU C library defines this for functions which it implements
5145 to always fail with ENOSYS. Some functions are actually named
5146 something starting with __ and the normal name is an alias. */
5147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5148choke me
5149#else
f5818d2f 5150f = $ac_func;
715a55e7
UW
5151#endif
5152
f5818d2f
AJ
5153 ;
5154 return 0;
5155}
5156_ACEOF
5157rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5159 (eval $ac_link) 2>&5
5160 ac_status=$?
daa2886c 5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5162 (exit $ac_status); } &&
5163 { ac_try='test -s conftest$ac_exeext'
daa2886c 5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
daa2886c 5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5168 (exit $ac_status); }; }; then
5169 eval "$as_ac_var=yes"
5170else
5171 echo "$as_me: failed program was:" >&5
5172cat conftest.$ac_ext >&5
5173eval "$as_ac_var=no"
5174fi
5175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5176fi
daa2886c 5177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
5178echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5179if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5180 cat >>confdefs.h <<_ACEOF
f5818d2f 5181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5182_ACEOF
f5818d2f
AJ
5183
5184else
5185
daa2886c 5186echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
f5818d2f
AJ
5187echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5188if test "${ac_cv_lib_socket_connect+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191 ac_check_lib_save_LIBS=$LIBS
715a55e7 5192LIBS="-lsocket $LIBS"
f5818d2f 5193cat >conftest.$ac_ext <<_ACEOF
daa2886c 5194#line $LINENO "configure"
715a55e7 5195#include "confdefs.h"
f5818d2f 5196
715a55e7 5197/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5198#ifdef __cplusplus
5199extern "C"
5200#endif
715a55e7 5201/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5202 builtin and then its argument prototype would still apply. */
5203char connect ();
daa2886c
AJ
5204#ifdef F77_DUMMY_MAIN
5205# ifdef __cplusplus
5206 extern "C"
5207# endif
5208 int F77_DUMMY_MAIN() { return 1; }
5209#endif
f5818d2f
AJ
5210int
5211main ()
5212{
5213connect ();
5214 ;
5215 return 0;
5216}
5217_ACEOF
5218rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5220 (eval $ac_link) 2>&5
5221 ac_status=$?
daa2886c 5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5223 (exit $ac_status); } &&
5224 { ac_try='test -s conftest$ac_exeext'
daa2886c 5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
daa2886c 5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5229 (exit $ac_status); }; }; then
5230 ac_cv_lib_socket_connect=yes
5231else
5232 echo "$as_me: failed program was:" >&5
5233cat conftest.$ac_ext >&5
5234ac_cv_lib_socket_connect=no
5235fi
5236rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5237LIBS=$ac_check_lib_save_LIBS
5238fi
daa2886c 5239echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
f5818d2f
AJ
5240echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5241if test $ac_cv_lib_socket_connect = yes; then
daa2886c 5242 cat >>confdefs.h <<_ACEOF
f5818d2f 5243#define HAVE_LIBSOCKET 1
daa2886c 5244_ACEOF
715a55e7
UW
5245
5246 LIBS="-lsocket $LIBS"
5247
715a55e7
UW
5248fi
5249
ea584724 5250fi
f070fda2
MM
5251done
5252
daa2886c 5253
c555274d
AJ
5254for ac_func in inet_aton
5255do
5256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 5257echo "$as_me:$LINENO: checking for $ac_func" >&5
c555274d
AJ
5258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5259if eval "test \"\${$as_ac_var+set}\" = set"; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5263#line $LINENO "configure"
c555274d
AJ
5264#include "confdefs.h"
5265/* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char $ac_func (); below. */
5267#include <assert.h>
5268/* Override any gcc2 internal prototype to avoid an error. */
5269#ifdef __cplusplus
5270extern "C"
5271#endif
5272/* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5274char $ac_func ();
5275char (*f) ();
5276
daa2886c
AJ
5277#ifdef F77_DUMMY_MAIN
5278# ifdef __cplusplus
5279 extern "C"
5280# endif
5281 int F77_DUMMY_MAIN() { return 1; }
5282#endif
c555274d
AJ
5283int
5284main ()
5285{
5286/* The GNU C library defines this for functions which it implements
5287 to always fail with ENOSYS. Some functions are actually named
5288 something starting with __ and the normal name is an alias. */
5289#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5290choke me
5291#else
5292f = $ac_func;
5293#endif
5294
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c555274d
AJ
5301 (eval $ac_link) 2>&5
5302 ac_status=$?
daa2886c 5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
c555274d
AJ
5304 (exit $ac_status); } &&
5305 { ac_try='test -s conftest$ac_exeext'
daa2886c 5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
c555274d
AJ
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
daa2886c 5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
c555274d
AJ
5310 (exit $ac_status); }; }; then
5311 eval "$as_ac_var=yes"
5312else
5313 echo "$as_me: failed program was:" >&5
5314cat conftest.$ac_ext >&5
5315eval "$as_ac_var=no"
5316fi
5317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5318fi
daa2886c 5319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
c555274d
AJ
5320echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5321if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5322 cat >>confdefs.h <<_ACEOF
c555274d 5323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5324_ACEOF
c555274d
AJ
5325
5326else
5327
daa2886c 5328echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
3b943bca
FG
5329echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5330if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
f5818d2f 5331 echo $ECHO_N "(cached) $ECHO_C" >&6
d30dfd24 5332else
f5818d2f 5333 ac_check_lib_save_LIBS=$LIBS
3b943bca 5334LIBS="-lresolv $LIBS"
f5818d2f 5335cat >conftest.$ac_ext <<_ACEOF
daa2886c 5336#line $LINENO "configure"
d30dfd24 5337#include "confdefs.h"
f5818d2f 5338
d30dfd24 5339/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5340#ifdef __cplusplus
5341extern "C"
5342#endif
d30dfd24 5343/* We use char because int might match the return type of a gcc2
f5818d2f 5344 builtin and then its argument prototype would still apply. */
3b943bca 5345char inet_aton ();
daa2886c
AJ
5346#ifdef F77_DUMMY_MAIN
5347# ifdef __cplusplus
5348 extern "C"
5349# endif
5350 int F77_DUMMY_MAIN() { return 1; }
5351#endif
f5818d2f
AJ
5352int
5353main ()
5354{
3b943bca 5355inet_aton ();
f5818d2f
AJ
5356 ;
5357 return 0;
5358}
5359_ACEOF
5360rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5362 (eval $ac_link) 2>&5
5363 ac_status=$?
daa2886c 5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5365 (exit $ac_status); } &&
5366 { ac_try='test -s conftest$ac_exeext'
daa2886c 5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
daa2886c 5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5371 (exit $ac_status); }; }; then
3b943bca
FG
5372 ac_cv_lib_resolv_inet_aton=yes
5373else
5374 echo "$as_me: failed program was:" >&5
5375cat conftest.$ac_ext >&5
5376ac_cv_lib_resolv_inet_aton=no
5377fi
5378rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5379LIBS=$ac_check_lib_save_LIBS
5380fi
daa2886c 5381echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
3b943bca
FG
5382echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5383if test $ac_cv_lib_resolv_inet_aton = yes; then
daa2886c 5384 cat >>confdefs.h <<_ACEOF
3b943bca 5385#define HAVE_LIBRESOLV 1
daa2886c 5386_ACEOF
3b943bca
FG
5387
5388 LIBS="-lresolv $LIBS"
5389
5390fi
5391
c555274d
AJ
5392fi
5393done
5394
daa2886c
AJ
5395
5396echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
3b943bca
FG
5397echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5398if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401 ac_check_lib_save_LIBS=$LIBS
5402LIBS="-lxpg4 $LIBS"
5403cat >conftest.$ac_ext <<_ACEOF
daa2886c 5404#line $LINENO "configure"
3b943bca
FG
5405#include "confdefs.h"
5406
5407/* Override any gcc2 internal prototype to avoid an error. */
5408#ifdef __cplusplus
5409extern "C"
5410#endif
5411/* We use char because int might match the return type of a gcc2
5412 builtin and then its argument prototype would still apply. */
5413char _xpg4_setrunelocale ();
daa2886c
AJ
5414#ifdef F77_DUMMY_MAIN
5415# ifdef __cplusplus
5416 extern "C"
5417# endif
5418 int F77_DUMMY_MAIN() { return 1; }
5419#endif
3b943bca
FG
5420int
5421main ()
5422{
5423_xpg4_setrunelocale ();
5424 ;
5425 return 0;
5426}
5427_ACEOF
5428rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3b943bca
FG
5430 (eval $ac_link) 2>&5
5431 ac_status=$?
daa2886c 5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3b943bca
FG
5433 (exit $ac_status); } &&
5434 { ac_try='test -s conftest$ac_exeext'
daa2886c 5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3b943bca
FG
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
daa2886c 5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3b943bca 5439 (exit $ac_status); }; }; then
f5818d2f
AJ
5440 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5441else
5442 echo "$as_me: failed program was:" >&5
5443cat conftest.$ac_ext >&5
5444ac_cv_lib_xpg4__xpg4_setrunelocale=no
5445fi
5446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5447LIBS=$ac_check_lib_save_LIBS
5448fi
daa2886c 5449echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
f5818d2f
AJ
5450echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5451if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
daa2886c 5452 cat >>confdefs.h <<_ACEOF
f5818d2f 5453#define HAVE_LIBXPG4 1
daa2886c 5454_ACEOF
d30dfd24
AJ
5455
5456 LIBS="-lxpg4 $LIBS"
5457
d30dfd24
AJ
5458fi
5459
daa2886c
AJ
5460
5461echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
f5818d2f
AJ
5462echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5463if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
0e7bd08c 5465else
f5818d2f 5466 ac_check_lib_save_LIBS=$LIBS
0e7bd08c 5467LIBS="-lmmap $LIBS"
f5818d2f 5468cat >conftest.$ac_ext <<_ACEOF
daa2886c 5469#line $LINENO "configure"
0e7bd08c 5470#include "confdefs.h"
f5818d2f 5471
0e7bd08c 5472/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5473#ifdef __cplusplus
5474extern "C"
5475#endif
0e7bd08c 5476/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5477 builtin and then its argument prototype would still apply. */
5478char mmap ();
daa2886c
AJ
5479#ifdef F77_DUMMY_MAIN
5480# ifdef __cplusplus
5481 extern "C"
5482# endif
5483 int F77_DUMMY_MAIN() { return 1; }
5484#endif
f5818d2f
AJ
5485int
5486main ()
5487{
5488mmap ();
5489 ;
5490 return 0;
5491}
5492_ACEOF
5493rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5495 (eval $ac_link) 2>&5
5496 ac_status=$?
daa2886c 5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5498 (exit $ac_status); } &&
5499 { ac_try='test -s conftest$ac_exeext'
daa2886c 5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
daa2886c 5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5504 (exit $ac_status); }; }; then
5505 ac_cv_lib_mmap_mmap=yes
5506else
5507 echo "$as_me: failed program was:" >&5
5508cat conftest.$ac_ext >&5
5509ac_cv_lib_mmap_mmap=no
5510fi
5511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5512LIBS=$ac_check_lib_save_LIBS
5513fi
daa2886c 5514echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
f5818d2f
AJ
5515echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5516if test $ac_cv_lib_mmap_mmap = yes; then
daa2886c 5517 cat >>confdefs.h <<_ACEOF
f5818d2f 5518#define HAVE_LIBMMAP 1
daa2886c 5519_ACEOF
0e7bd08c
AJ
5520
5521 LIBS="-lmmap $LIBS"
5522
0e7bd08c
AJ
5523fi
5524
daa2886c 5525
fa3a5360 5526JPEGLIB=""
562089b5 5527
daa2886c
AJ
5528echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5529echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5530if test "${ac_cv_header_stdc+set}" = set; then
f5818d2f
AJ
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5534#line $LINENO "configure"
f070fda2 5535#include "confdefs.h"
daa2886c
AJ
5536#include <stdlib.h>
5537#include <stdarg.h>
5538#include <string.h>
5539#include <float.h>
5540
f5818d2f 5541_ACEOF
daa2886c 5542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
5543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5544 ac_status=$?
5545 egrep -v '^ *\+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
daa2886c 5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5549 (exit $ac_status); } >/dev/null; then
5550 if test -s conftest.err; then
5551 ac_cpp_err=$ac_c_preproc_warn_flag
5552 else
5553 ac_cpp_err=
5554 fi
5555else
5556 ac_cpp_err=yes
5557fi
5558if test -z "$ac_cpp_err"; then
daa2886c 5559 ac_cv_header_stdc=yes
f5818d2f
AJ
5560else
5561 echo "$as_me: failed program was:" >&5
f070fda2 5562 cat conftest.$ac_ext >&5
daa2886c 5563 ac_cv_header_stdc=no
f070fda2 5564fi
f5818d2f 5565rm -f conftest.err conftest.$ac_ext
f5818d2f 5566
daa2886c
AJ
5567if test $ac_cv_header_stdc = yes; then
5568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
f5818d2f 5569 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5570#line $LINENO "configure"
f070fda2 5571#include "confdefs.h"
daa2886c 5572#include <string.h>
f070fda2 5573
f5818d2f 5574_ACEOF
daa2886c
AJ
5575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5576 egrep "memchr" >/dev/null 2>&1; then
5577 :
f5818d2f 5578else
daa2886c 5579 ac_cv_header_stdc=no
f5818d2f 5580fi
daa2886c
AJ
5581rm -f conftest*
5582
f5818d2f 5583fi
f5818d2f 5584
daa2886c
AJ
5585if test $ac_cv_header_stdc = yes; then
5586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5587 cat >conftest.$ac_ext <<_ACEOF
5588#line $LINENO "configure"
8220bc9d 5589#include "confdefs.h"
daa2886c 5590#include <stdlib.h>
f5818d2f 5591
daa2886c
AJ
5592_ACEOF
5593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5594 egrep "free" >/dev/null 2>&1; then
5595 :
5596else
5597 ac_cv_header_stdc=no
5598fi
5599rm -f conftest*
5600
5601fi
5602
5603if test $ac_cv_header_stdc = yes; then
5604 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5605 if test "$cross_compiling" = yes; then
5606 :
5607else
5608 cat >conftest.$ac_ext <<_ACEOF
5609#line $LINENO "configure"
5610#include "confdefs.h"
5611#include <ctype.h>
5612#if ((' ' & 0x0FF) == 0x020)
5613# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5614# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5615#else
5616# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5617 || ('j' <= (c) && (c) <= 'r') \
5618 || ('s' <= (c) && (c) <= 'z'))
5619# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5620#endif
5621
5622#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5623int
5624main ()
5625{
5626 int i;
5627 for (i = 0; i < 256; i++)
5628 if (XOR (islower (i), ISLOWER (i))
5629 || toupper (i) != TOUPPER (i))
5630 exit(2);
5631 exit (0);
5632}
5633_ACEOF
5634rm -f conftest$ac_exeext
5635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 :
5646else
5647 echo "$as_me: program exited with status $ac_status" >&5
5648echo "$as_me: failed program was:" >&5
5649cat conftest.$ac_ext >&5
5650( exit $ac_status )
5651ac_cv_header_stdc=no
5652fi
5653rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5654fi
5655fi
5656fi
5657echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5658echo "${ECHO_T}$ac_cv_header_stdc" >&6
5659if test $ac_cv_header_stdc = yes; then
5660
5661cat >>confdefs.h <<\_ACEOF
5662#define STDC_HEADERS 1
5663_ACEOF
5664
5665fi
5666
5667# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5678 inttypes.h stdint.h unistd.h
5679do
5680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5681echo "$as_me:$LINENO: checking for $ac_header" >&5
5682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5683if eval "test \"\${$as_ac_Header+set}\" = set"; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686 cat >conftest.$ac_ext <<_ACEOF
5687#line $LINENO "configure"
5688#include "confdefs.h"
5689$ac_includes_default
5690
5691#include <$ac_header>
5692_ACEOF
5693rm -f conftest.$ac_objext
5694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -s conftest.$ac_objext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 eval "$as_ac_Header=yes"
5706else
5707 echo "$as_me: failed program was:" >&5
5708cat conftest.$ac_ext >&5
5709eval "$as_ac_Header=no"
5710fi
5711rm -f conftest.$ac_objext conftest.$ac_ext
5712fi
5713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5715if test `eval echo '${'$as_ac_Header'}'` = yes; then
5716 cat >>confdefs.h <<_ACEOF
5717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5718_ACEOF
5719
5720fi
5721
5722done
5723
5724
5725
f5818d2f 5726for ac_header in jpeglib.h
252b0fe0 5727do
f5818d2f 5728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
5729if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
5731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5732if eval "test \"\${$as_ac_Header+set}\" = set"; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
5734fi
5735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 5737else
daa2886c
AJ
5738 # Is the header compilable?
5739echo "$as_me:$LINENO: checking $ac_header usability" >&5
5740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5741cat >conftest.$ac_ext <<_ACEOF
5742#line $LINENO "configure"
5743#include "confdefs.h"
5744$ac_includes_default
5745#include <$ac_header>
5746_ACEOF
5747rm -f conftest.$ac_objext
5748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -s conftest.$ac_objext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_header_compiler=yes
5760else
5761 echo "$as_me: failed program was:" >&5
5762cat conftest.$ac_ext >&5
5763ac_header_compiler=no
5764fi
5765rm -f conftest.$ac_objext conftest.$ac_ext
5766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5767echo "${ECHO_T}$ac_header_compiler" >&6
5768
5769# Is the header present?
5770echo "$as_me:$LINENO: checking $ac_header presence" >&5
5771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5772cat >conftest.$ac_ext <<_ACEOF
5773#line $LINENO "configure"
252b0fe0 5774#include "confdefs.h"
f5818d2f
AJ
5775#include <$ac_header>
5776_ACEOF
daa2886c 5777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
5778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5779 ac_status=$?
5780 egrep -v '^ *\+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
daa2886c 5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5784 (exit $ac_status); } >/dev/null; then
5785 if test -s conftest.err; then
5786 ac_cpp_err=$ac_c_preproc_warn_flag
5787 else
5788 ac_cpp_err=
5789 fi
5790else
5791 ac_cpp_err=yes
5792fi
5793if test -z "$ac_cpp_err"; then
daa2886c 5794 ac_header_preproc=yes
f5818d2f
AJ
5795else
5796 echo "$as_me: failed program was:" >&5
252b0fe0 5797 cat conftest.$ac_ext >&5
daa2886c 5798 ac_header_preproc=no
252b0fe0 5799fi
f5818d2f 5800rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
5801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5802echo "${ECHO_T}$ac_header_preproc" >&6
5803
5804# So? What about this header?
5805case $ac_header_compiler:$ac_header_preproc in
5806 yes:no )
5807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5811 no:yes )
5812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5818esac
5819echo "$as_me:$LINENO: checking for $ac_header" >&5
5820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5821if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 eval "$as_ac_Header=$ac_header_preproc"
252b0fe0 5825fi
daa2886c 5826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 5827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
5828
5829fi
f5818d2f 5830if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 5831 cat >>confdefs.h <<_ACEOF
f5818d2f 5832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
5833_ACEOF
5834 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
f5818d2f
AJ
5835echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5836if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
252b0fe0 5838else
f5818d2f 5839 ac_check_lib_save_LIBS=$LIBS
252b0fe0 5840LIBS="-ljpeg $LIBS"
f5818d2f 5841cat >conftest.$ac_ext <<_ACEOF
daa2886c 5842#line $LINENO "configure"
252b0fe0 5843#include "confdefs.h"
f5818d2f 5844
252b0fe0 5845/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5846#ifdef __cplusplus
5847extern "C"
5848#endif
252b0fe0 5849/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5850 builtin and then its argument prototype would still apply. */
5851char jpeg_start_decompress ();
daa2886c
AJ
5852#ifdef F77_DUMMY_MAIN
5853# ifdef __cplusplus
5854 extern "C"
5855# endif
5856 int F77_DUMMY_MAIN() { return 1; }
5857#endif
f5818d2f
AJ
5858int
5859main ()
5860{
5861jpeg_start_decompress ();
5862 ;
5863 return 0;
5864}
5865_ACEOF
5866rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5868 (eval $ac_link) 2>&5
5869 ac_status=$?
daa2886c 5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5871 (exit $ac_status); } &&
5872 { ac_try='test -s conftest$ac_exeext'
daa2886c 5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
daa2886c 5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5877 (exit $ac_status); }; }; then
5878 ac_cv_lib_jpeg_jpeg_start_decompress=yes
5879else
5880 echo "$as_me: failed program was:" >&5
5881cat conftest.$ac_ext >&5
5882ac_cv_lib_jpeg_jpeg_start_decompress=no
5883fi
5884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5885LIBS=$ac_check_lib_save_LIBS
5886fi
daa2886c 5887echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
f5818d2f
AJ
5888echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5889if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5890
daa2886c 5891cat >>confdefs.h <<\_ACEOF
252b0fe0 5892#define HAVE_LIBJPEG 1
daa2886c 5893_ACEOF
252b0fe0
MM
5894
5895 JPEGLIB="-ljpeg"
252b0fe0 5896
f5818d2f 5897fi
252b0fe0 5898
daa2886c 5899
252b0fe0 5900fi
daa2886c 5901
252b0fe0
MM
5902done
5903
daa2886c
AJ
5904
5905
5906
5907
2941a212 5908XFILES=""
10ad97c8 5909
bedf40b5
LU
5910OPENGLFILES=""
5911
b63ab445 5912GLU32FILES=""
ea584724
PS
5913if test "$have_x" = "yes"
5914then
24110288 5915 XLIB="-lXext -lX11"
1eb593cb
OK
5916 ac_save_CPPFLAGS="$CPPFLAGS"
5917 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24110288 5918
daa2886c 5919
f5818d2f 5920for ac_header in X11/Xlib.h
24110288 5921do
f5818d2f 5922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
5923if eval "test \"\${$as_ac_Header+set}\" = set"; then
5924 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
5925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5926if eval "test \"\${$as_ac_Header+set}\" = set"; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
5928fi
5929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 5931else
daa2886c
AJ
5932 # Is the header compilable?
5933echo "$as_me:$LINENO: checking $ac_header usability" >&5
5934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5935cat >conftest.$ac_ext <<_ACEOF
5936#line $LINENO "configure"
24110288 5937#include "confdefs.h"
daa2886c 5938$ac_includes_default
f5818d2f
AJ
5939#include <$ac_header>
5940_ACEOF
daa2886c
AJ
5941rm -f conftest.$ac_objext
5942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_header_compiler=yes
5954else
5955 echo "$as_me: failed program was:" >&5
5956cat conftest.$ac_ext >&5
5957ac_header_compiler=no
5958fi
5959rm -f conftest.$ac_objext conftest.$ac_ext
5960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5961echo "${ECHO_T}$ac_header_compiler" >&6
5962
5963# Is the header present?
5964echo "$as_me:$LINENO: checking $ac_header presence" >&5
5965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5966cat >conftest.$ac_ext <<_ACEOF
5967#line $LINENO "configure"
5968#include "confdefs.h"
5969#include <$ac_header>
5970_ACEOF
5971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
5972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5973 ac_status=$?
5974 egrep -v '^ *\+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
daa2886c 5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5978 (exit $ac_status); } >/dev/null; then
5979 if test -s conftest.err; then
5980 ac_cpp_err=$ac_c_preproc_warn_flag
5981 else
5982 ac_cpp_err=
5983 fi
5984else
5985 ac_cpp_err=yes
5986fi
5987if test -z "$ac_cpp_err"; then
daa2886c 5988 ac_header_preproc=yes
f5818d2f
AJ
5989else
5990 echo "$as_me: failed program was:" >&5
24110288 5991 cat conftest.$ac_ext >&5
daa2886c 5992 ac_header_preproc=no
24110288 5993fi
f5818d2f 5994rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
5995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5996echo "${ECHO_T}$ac_header_preproc" >&6
5997
5998# So? What about this header?
5999case $ac_header_compiler:$ac_header_preproc in
6000 yes:no )
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6005 no:yes )
6006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6009echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6012esac
6013echo "$as_me:$LINENO: checking for $ac_header" >&5
6014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018 eval "$as_ac_Header=$ac_header_preproc"
24110288 6019fi
daa2886c 6020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 6021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
6022
6023fi
f5818d2f 6024if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6025 cat >>confdefs.h <<_ACEOF
f5818d2f 6026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6027_ACEOF
6028
f5818d2f
AJ
6029
6030for ac_header in X11/XKBlib.h
f2b77ccb 6031do
f5818d2f 6032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
6033if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6036if eval "test \"\${$as_ac_Header+set}\" = set"; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
6038fi
6039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 6041else
daa2886c
AJ
6042 # Is the header compilable?
6043echo "$as_me:$LINENO: checking $ac_header usability" >&5
6044echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6045cat >conftest.$ac_ext <<_ACEOF
6046#line $LINENO "configure"
6047#include "confdefs.h"
6048$ac_includes_default
6049#include <$ac_header>
6050_ACEOF
6051rm -f conftest.$ac_objext
6052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_header_compiler=yes
6064else
6065 echo "$as_me: failed program was:" >&5
6066cat conftest.$ac_ext >&5
6067ac_header_compiler=no
6068fi
6069rm -f conftest.$ac_objext conftest.$ac_ext
6070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6071echo "${ECHO_T}$ac_header_compiler" >&6
6072
6073# Is the header present?
6074echo "$as_me:$LINENO: checking $ac_header presence" >&5
6075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6076cat >conftest.$ac_ext <<_ACEOF
6077#line $LINENO "configure"
f2b77ccb 6078#include "confdefs.h"
f5818d2f
AJ
6079#include <$ac_header>
6080_ACEOF
daa2886c 6081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
6082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6083 ac_status=$?
6084 egrep -v '^ *\+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
daa2886c 6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6088 (exit $ac_status); } >/dev/null; then
6089 if test -s conftest.err; then
6090 ac_cpp_err=$ac_c_preproc_warn_flag
6091 else
6092 ac_cpp_err=
6093 fi
6094else
6095 ac_cpp_err=yes
6096fi
6097if test -z "$ac_cpp_err"; then
daa2886c 6098 ac_header_preproc=yes
f5818d2f
AJ
6099else
6100 echo "$as_me: failed program was:" >&5
f2b77ccb 6101 cat conftest.$ac_ext >&5
daa2886c 6102 ac_header_preproc=no
24110288 6103fi
f5818d2f 6104rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
6105echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6106echo "${ECHO_T}$ac_header_preproc" >&6
6107
6108# So? What about this header?
6109case $ac_header_compiler:$ac_header_preproc in
6110 yes:no )
6111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6112echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6115 no:yes )
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6117echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6119echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6122esac
6123echo "$as_me:$LINENO: checking for $ac_header" >&5
6124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6125if eval "test \"\${$as_ac_Header+set}\" = set"; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128 eval "$as_ac_Header=$ac_header_preproc"
f2b77ccb 6129fi
daa2886c 6130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 6131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
6132
6133fi
f5818d2f 6134if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6135 cat >>confdefs.h <<_ACEOF
f5818d2f 6136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6137_ACEOF
6138 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
f5818d2f
AJ
6139echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6140if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
c90fb25c 6142else
f5818d2f 6143 ac_check_lib_save_LIBS=$LIBS
c90fb25c 6144LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 6145cat >conftest.$ac_ext <<_ACEOF
daa2886c 6146#line $LINENO "configure"
c90fb25c 6147#include "confdefs.h"
f5818d2f 6148
c90fb25c 6149/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6150#ifdef __cplusplus
6151extern "C"
6152#endif
c90fb25c 6153/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6154 builtin and then its argument prototype would still apply. */
6155char XkbQueryExtension ();
daa2886c
AJ
6156#ifdef F77_DUMMY_MAIN
6157# ifdef __cplusplus
6158 extern "C"
6159# endif
6160 int F77_DUMMY_MAIN() { return 1; }
6161#endif
f5818d2f
AJ
6162int
6163main ()
6164{
6165XkbQueryExtension ();
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6172 (eval $ac_link) 2>&5
6173 ac_status=$?
daa2886c 6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest$ac_exeext'
daa2886c 6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
daa2886c 6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6181 (exit $ac_status); }; }; then
6182 ac_cv_lib_X11_XkbQueryExtension=yes
6183else
6184 echo "$as_me: failed program was:" >&5
6185cat conftest.$ac_ext >&5
6186ac_cv_lib_X11_XkbQueryExtension=no
6187fi
6188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189LIBS=$ac_check_lib_save_LIBS
6190fi
daa2886c 6191echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
f5818d2f
AJ
6192echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6193if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6194
daa2886c 6195cat >>confdefs.h <<\_ACEOF
c90fb25c 6196#define HAVE_XKB 1
daa2886c 6197_ACEOF
c90fb25c 6198
c90fb25c
OK
6199fi
6200
daa2886c 6201
c90fb25c 6202else
daa2886c 6203 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
f5818d2f
AJ
6204echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6205
c90fb25c 6206fi
daa2886c 6207
c90fb25c
OK
6208done
6209
daa2886c
AJ
6210
6211
f5818d2f 6212for ac_header in X11/extensions/XShm.h
c90fb25c 6213do
f5818d2f 6214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 6215echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6217if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6221#line $LINENO "configure"
c90fb25c 6222#include "confdefs.h"
daa2886c
AJ
6223#include <X11/Xlib.h>
6224
f5818d2f
AJ
6225#include <$ac_header>
6226_ACEOF
daa2886c
AJ
6227rm -f conftest.$ac_objext
6228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6229 (eval $ac_compile) 2>&5
f5818d2f 6230 ac_status=$?
daa2886c
AJ
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
f5818d2f
AJ
6239 eval "$as_ac_Header=yes"
6240else
6241 echo "$as_me: failed program was:" >&5
daa2886c
AJ
6242cat conftest.$ac_ext >&5
6243eval "$as_ac_Header=no"
c90fb25c 6244fi
daa2886c 6245rm -f conftest.$ac_objext conftest.$ac_ext
c90fb25c 6246fi
daa2886c 6247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
6248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6249if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6250 cat >>confdefs.h <<_ACEOF
f5818d2f 6251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6252_ACEOF
6253 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
f5818d2f
AJ
6254echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6255if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
ea584724 6257else
f5818d2f 6258 ac_check_lib_save_LIBS=$LIBS
376ec88e 6259LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 6260cat >conftest.$ac_ext <<_ACEOF
daa2886c 6261#line $LINENO "configure"
ea584724 6262#include "confdefs.h"
f5818d2f 6263
ea584724 6264/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6265#ifdef __cplusplus
6266extern "C"
6267#endif
ea584724 6268/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6269 builtin and then its argument prototype would still apply. */
6270char XShmQueryExtension ();
daa2886c
AJ
6271#ifdef F77_DUMMY_MAIN
6272# ifdef __cplusplus
6273 extern "C"
6274# endif
6275 int F77_DUMMY_MAIN() { return 1; }
6276#endif
f5818d2f
AJ
6277int
6278main ()
6279{
6280XShmQueryExtension ();
6281 ;
6282 return 0;
6283}
6284_ACEOF
6285rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6287 (eval $ac_link) 2>&5
6288 ac_status=$?
daa2886c 6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6290 (exit $ac_status); } &&
6291 { ac_try='test -s conftest$ac_exeext'
daa2886c 6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
daa2886c 6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6296 (exit $ac_status); }; }; then
6297 ac_cv_lib_Xext_XShmQueryExtension=yes
6298else
6299 echo "$as_me: failed program was:" >&5
6300cat conftest.$ac_ext >&5
6301ac_cv_lib_Xext_XShmQueryExtension=no
6302fi
6303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6304LIBS=$ac_check_lib_save_LIBS
6305fi
daa2886c 6306echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
f5818d2f
AJ
6307echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6308if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6309
daa2886c 6310cat >>confdefs.h <<\_ACEOF
ea584724 6311#define HAVE_LIBXXSHM 1
daa2886c 6312_ACEOF
ea584724 6313
ea584724
PS
6314fi
6315
daa2886c 6316
f2b77ccb 6317else
daa2886c 6318 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
f5818d2f 6319echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
f2b77ccb 6320fi
daa2886c 6321
f2b77ccb
JS
6322done
6323
daa2886c
AJ
6324
6325
f5818d2f 6326for ac_header in X11/extensions/shape.h
24110288 6327do
f5818d2f 6328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 6329echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6331if eval "test \"\${$as_ac_Header+set}\" = set"; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
6334 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6335#line $LINENO "configure"
24110288 6336#include "confdefs.h"
daa2886c
AJ
6337#include <X11/Xlib.h>
6338
f5818d2f
AJ
6339#include <$ac_header>
6340_ACEOF
daa2886c
AJ
6341rm -f conftest.$ac_objext
6342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>&5
f5818d2f 6344 ac_status=$?
daa2886c
AJ
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -s conftest.$ac_objext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
f5818d2f
AJ
6353 eval "$as_ac_Header=yes"
6354else
6355 echo "$as_me: failed program was:" >&5
daa2886c
AJ
6356cat conftest.$ac_ext >&5
6357eval "$as_ac_Header=no"
24110288 6358fi
daa2886c 6359rm -f conftest.$ac_objext conftest.$ac_ext
24110288 6360fi
daa2886c 6361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
6362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6363if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6364 cat >>confdefs.h <<_ACEOF
f5818d2f 6365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6366_ACEOF
6367 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
f5818d2f
AJ
6368echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6369if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
5b6879c5 6371else
f5818d2f 6372 ac_check_lib_save_LIBS=$LIBS
5b6879c5 6373LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 6374cat >conftest.$ac_ext <<_ACEOF
daa2886c 6375#line $LINENO "configure"
5b6879c5 6376#include "confdefs.h"
f5818d2f 6377
5b6879c5 6378/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6379#ifdef __cplusplus
6380extern "C"
6381#endif
5b6879c5 6382/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6383 builtin and then its argument prototype would still apply. */
6384char XShapeQueryExtension ();
daa2886c
AJ
6385#ifdef F77_DUMMY_MAIN
6386# ifdef __cplusplus
6387 extern "C"
6388# endif
6389 int F77_DUMMY_MAIN() { return 1; }
6390#endif
f5818d2f
AJ
6391int
6392main ()
6393{
6394XShapeQueryExtension ();
6395 ;
6396 return 0;
6397}
6398_ACEOF
6399rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6401 (eval $ac_link) 2>&5
6402 ac_status=$?
daa2886c 6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6404 (exit $ac_status); } &&
6405 { ac_try='test -s conftest$ac_exeext'
daa2886c 6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
daa2886c 6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6410 (exit $ac_status); }; }; then
6411 ac_cv_lib_Xext_XShapeQueryExtension=yes
6412else
6413 echo "$as_me: failed program was:" >&5
6414cat conftest.$ac_ext >&5
6415ac_cv_lib_Xext_XShapeQueryExtension=no
6416fi
6417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6418LIBS=$ac_check_lib_save_LIBS
6419fi
daa2886c 6420echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
f5818d2f
AJ
6421echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6422if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6423
daa2886c 6424cat >>confdefs.h <<\_ACEOF
5b6879c5 6425#define HAVE_LIBXSHAPE 1
daa2886c 6426_ACEOF
5b6879c5 6427
5b6879c5
FJ
6428fi
6429
daa2886c 6430
5b6879c5 6431else
daa2886c 6432 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
f5818d2f 6433echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
5b6879c5 6434fi
daa2886c 6435
5b6879c5
FJ
6436done
6437
daa2886c
AJ
6438
6439
f5818d2f 6440for ac_header in X11/extensions/xf86dga.h
5b6879c5 6441do
f5818d2f 6442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 6443echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6445if eval "test \"\${$as_ac_Header+set}\" = set"; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447else
6448 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6449#line $LINENO "configure"
5b6879c5 6450#include "confdefs.h"
daa2886c
AJ
6451#include <X11/Xlib.h>
6452
f5818d2f
AJ
6453#include <$ac_header>
6454_ACEOF
daa2886c
AJ
6455rm -f conftest.$ac_objext
6456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457 (eval $ac_compile) 2>&5
f5818d2f 6458 ac_status=$?
daa2886c
AJ
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } &&
6461 { ac_try='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
f5818d2f
AJ
6467 eval "$as_ac_Header=yes"
6468else
6469 echo "$as_me: failed program was:" >&5
daa2886c
AJ
6470cat conftest.$ac_ext >&5
6471eval "$as_ac_Header=no"
5b6879c5 6472fi
daa2886c 6473rm -f conftest.$ac_objext conftest.$ac_ext
5b6879c5 6474fi
daa2886c 6475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
6476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6477if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6478 cat >>confdefs.h <<_ACEOF
f5818d2f 6479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6480_ACEOF
6481 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
f5818d2f
AJ
6482echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6483if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
d94475bd 6485else
f5818d2f 6486 ac_check_lib_save_LIBS=$LIBS
10ad97c8 6487LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
f2b77ccb 6488 $LIBS"
f5818d2f 6489cat >conftest.$ac_ext <<_ACEOF
daa2886c 6490#line $LINENO "configure"
d94475bd 6491#include "confdefs.h"
f5818d2f 6492
d94475bd 6493/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6494#ifdef __cplusplus
6495extern "C"
6496#endif
d94475bd 6497/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6498 builtin and then its argument prototype would still apply. */
6499char XDGAQueryExtension ();
daa2886c
AJ
6500#ifdef F77_DUMMY_MAIN
6501# ifdef __cplusplus
6502 extern "C"
6503# endif
6504 int F77_DUMMY_MAIN() { return 1; }
6505#endif
f5818d2f
AJ
6506int
6507main ()
6508{
6509XDGAQueryExtension ();
6510 ;
6511 return 0;
6512}
6513_ACEOF
6514rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6516 (eval $ac_link) 2>&5
6517 ac_status=$?
daa2886c 6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6519 (exit $ac_status); } &&
6520 { ac_try='test -s conftest$ac_exeext'
daa2886c 6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6522 (eval $ac_try) 2>&5
6523 ac_status=$?
daa2886c 6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6525 (exit $ac_status); }; }; then
6526 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6527else
6528 echo "$as_me: failed program was:" >&5
6529cat conftest.$ac_ext >&5
6530ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6531fi
6532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6533LIBS=$ac_check_lib_save_LIBS
6534fi
daa2886c 6535echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
f5818d2f
AJ
6536echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6537if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6538
daa2886c 6539cat >>confdefs.h <<\_ACEOF
d94475bd 6540#define HAVE_LIBXXF86DGA2 1
daa2886c 6541_ACEOF
10ad97c8 6542
f2b77ccb 6543 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
f5818d2f 6544
d94475bd 6545else
daa2886c 6546 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
f5818d2f
AJ
6547echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6548if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
02e90087 6550else
f5818d2f 6551 ac_check_lib_save_LIBS=$LIBS
f2b77ccb
JS
6552LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6553 $LIBS"
f5818d2f 6554cat >conftest.$ac_ext <<_ACEOF
daa2886c 6555#line $LINENO "configure"
02e90087 6556#include "confdefs.h"
f5818d2f 6557
02e90087 6558/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6559#ifdef __cplusplus
6560extern "C"
6561#endif
02e90087 6562/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6563 builtin and then its argument prototype would still apply. */
6564char XF86DGAQueryExtension ();
daa2886c
AJ
6565#ifdef F77_DUMMY_MAIN
6566# ifdef __cplusplus
6567 extern "C"
6568# endif
6569 int F77_DUMMY_MAIN() { return 1; }
6570#endif
f5818d2f
AJ
6571int
6572main ()
6573{
6574XF86DGAQueryExtension ();
6575 ;
6576 return 0;
6577}
6578_ACEOF
6579rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6581 (eval $ac_link) 2>&5
6582 ac_status=$?
daa2886c 6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6584 (exit $ac_status); } &&
6585 { ac_try='test -s conftest$ac_exeext'
daa2886c 6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
daa2886c 6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6590 (exit $ac_status); }; }; then
6591 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6592else
6593 echo "$as_me: failed program was:" >&5
6594cat conftest.$ac_ext >&5
6595ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6596fi
6597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS
6599fi
daa2886c 6600echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
f5818d2f
AJ
6601echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6602if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6603
daa2886c 6604cat >>confdefs.h <<\_ACEOF
0623a6f3 6605#define HAVE_LIBXXF86DGA 1
daa2886c 6606_ACEOF
10ad97c8 6607
f2b77ccb 6608 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
f5818d2f 6609
0623a6f3
AJ
6610fi
6611
daa2886c 6612
f2b77ccb
JS
6613fi
6614
daa2886c 6615
f2b77ccb 6616else
daa2886c 6617 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
f5818d2f 6618echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
f2b77ccb 6619fi
daa2886c 6620
f2b77ccb
JS
6621done
6622
daa2886c
AJ
6623
6624
f5818d2f 6625for ac_header in X11/extensions/xf86vmode.h
24110288 6626do
f5818d2f 6627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 6628echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6630if eval "test \"\${$as_ac_Header+set}\" = set"; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6634#line $LINENO "configure"
24110288 6635#include "confdefs.h"
daa2886c
AJ
6636#include <X11/Xlib.h>
6637
f5818d2f
AJ
6638#include <$ac_header>
6639_ACEOF
daa2886c
AJ
6640rm -f conftest.$ac_objext
6641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>&5
f5818d2f 6643 ac_status=$?
daa2886c
AJ
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -s conftest.$ac_objext'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 (eval $ac_try) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
f5818d2f
AJ
6652 eval "$as_ac_Header=yes"
6653else
6654 echo "$as_me: failed program was:" >&5
daa2886c
AJ
6655cat conftest.$ac_ext >&5
6656eval "$as_ac_Header=no"
24110288 6657fi
daa2886c 6658rm -f conftest.$ac_objext conftest.$ac_ext
24110288 6659fi
daa2886c 6660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
6661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6662if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6663 cat >>confdefs.h <<_ACEOF
f5818d2f 6664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6665_ACEOF
6666 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
f5818d2f
AJ
6667echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6668if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
399931a2 6670else
f5818d2f 6671 ac_check_lib_save_LIBS=$LIBS
f2b77ccb
JS
6672LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6673 $LIBS"
f5818d2f 6674cat >conftest.$ac_ext <<_ACEOF
daa2886c 6675#line $LINENO "configure"
399931a2 6676#include "confdefs.h"
f5818d2f 6677
399931a2 6678/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6679#ifdef __cplusplus
6680extern "C"
6681#endif
399931a2 6682/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6683 builtin and then its argument prototype would still apply. */
6684char XF86VidModeQueryExtension ();
daa2886c
AJ
6685#ifdef F77_DUMMY_MAIN
6686# ifdef __cplusplus
6687 extern "C"
6688# endif
6689 int F77_DUMMY_MAIN() { return 1; }
6690#endif
f5818d2f
AJ
6691int
6692main ()
6693{
6694XF86VidModeQueryExtension ();
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6701 (eval $ac_link) 2>&5
6702 ac_status=$?
daa2886c 6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest$ac_exeext'
daa2886c 6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
daa2886c 6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6710 (exit $ac_status); }; }; then
6711 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6712else
6713 echo "$as_me: failed program was:" >&5
6714cat conftest.$ac_ext >&5
6715ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6716fi
6717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6718LIBS=$ac_check_lib_save_LIBS
6719fi
daa2886c 6720echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
f5818d2f
AJ
6721echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6722if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6723
daa2886c 6724cat >>confdefs.h <<\_ACEOF
399931a2 6725#define HAVE_LIBXXF86VM 1
daa2886c 6726_ACEOF
f2b77ccb
JS
6727
6728 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
f5818d2f 6729
399931a2
SC
6730fi
6731
daa2886c 6732
f2b77ccb 6733else
daa2886c 6734 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
f5818d2f 6735echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
f2b77ccb 6736fi
daa2886c 6737
f2b77ccb 6738done
5c085704 6739
daa2886c
AJ
6740
6741
f5818d2f 6742for ac_header in X11/extensions/Xvlib.h
3d2f32dc 6743do
f5818d2f 6744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 6745echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6747if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749else
6750 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6751#line $LINENO "configure"
3d2f32dc 6752#include "confdefs.h"
daa2886c
AJ
6753#include <X11/Xlib.h>
6754
f5818d2f
AJ
6755#include <$ac_header>
6756_ACEOF
daa2886c
AJ
6757rm -f conftest.$ac_objext
6758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>&5
f5818d2f 6760 ac_status=$?
daa2886c
AJ
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -s conftest.$ac_objext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
f5818d2f
AJ
6769 eval "$as_ac_Header=yes"
6770else
6771 echo "$as_me: failed program was:" >&5
daa2886c
AJ
6772cat conftest.$ac_ext >&5
6773eval "$as_ac_Header=no"
3d2f32dc 6774fi
daa2886c 6775rm -f conftest.$ac_objext conftest.$ac_ext
3d2f32dc 6776fi
daa2886c 6777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
6778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6779if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6780 cat >>confdefs.h <<_ACEOF
f5818d2f 6781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6782_ACEOF
6783 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
f5818d2f
AJ
6784echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6785if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
3d2f32dc 6787else
f5818d2f 6788 ac_check_lib_save_LIBS=$LIBS
3d2f32dc
LU
6789LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6790 $LIBS"
f5818d2f 6791cat >conftest.$ac_ext <<_ACEOF
daa2886c 6792#line $LINENO "configure"
3d2f32dc 6793#include "confdefs.h"
f5818d2f 6794
3d2f32dc 6795/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6796#ifdef __cplusplus
6797extern "C"
6798#endif
3d2f32dc 6799/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6800 builtin and then its argument prototype would still apply. */
6801char XvShmCreateImage ();
daa2886c
AJ
6802#ifdef F77_DUMMY_MAIN
6803# ifdef __cplusplus
6804 extern "C"
6805# endif
6806 int F77_DUMMY_MAIN() { return 1; }
6807#endif
f5818d2f
AJ
6808int
6809main ()
6810{
6811XvShmCreateImage ();
6812 ;
6813 return 0;
6814}
6815_ACEOF
6816rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6818 (eval $ac_link) 2>&5
6819 ac_status=$?
daa2886c 6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6821 (exit $ac_status); } &&
6822 { ac_try='test -s conftest$ac_exeext'
daa2886c 6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
daa2886c 6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6827 (exit $ac_status); }; }; then
6828 ac_cv_lib_Xv_XvShmCreateImage=yes
6829else
6830 echo "$as_me: failed program was:" >&5
6831cat conftest.$ac_ext >&5
6832ac_cv_lib_Xv_XvShmCreateImage=no
6833fi
6834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6835LIBS=$ac_check_lib_save_LIBS
6836fi
daa2886c 6837echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
f5818d2f
AJ
6838echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6839if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6840
daa2886c 6841cat >>confdefs.h <<\_ACEOF
3d2f32dc 6842#define HAVE_XVIDEO 1
daa2886c 6843_ACEOF
3d2f32dc
LU
6844
6845 X_PRE_LIBS="$X_PRE_LIBS -lXv"
f5818d2f 6846
3d2f32dc
LU
6847fi
6848
daa2886c 6849
3d2f32dc 6850else
daa2886c 6851 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
f5818d2f 6852echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
3d2f32dc 6853fi
daa2886c 6854
3d2f32dc
LU
6855done
6856
daa2886c
AJ
6857
6858
f5818d2f 6859for ac_header in X11/extensions/Xrender.h
ff453fcd 6860do
f5818d2f 6861as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 6862echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6868#line $LINENO "configure"
ff453fcd 6869#include "confdefs.h"
daa2886c
AJ
6870#include <X11/Xlib.h>
6871
f5818d2f
AJ
6872#include <$ac_header>
6873_ACEOF
daa2886c
AJ
6874rm -f conftest.$ac_objext
6875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>&5
f5818d2f 6877 ac_status=$?
daa2886c
AJ
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
f5818d2f
AJ
6886 eval "$as_ac_Header=yes"
6887else
6888 echo "$as_me: failed program was:" >&5
daa2886c
AJ
6889cat conftest.$ac_ext >&5
6890eval "$as_ac_Header=no"
ff453fcd 6891fi
daa2886c 6892rm -f conftest.$ac_objext conftest.$ac_ext
ff453fcd 6893fi
daa2886c 6894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
6895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6896if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6897 cat >>confdefs.h <<_ACEOF
f5818d2f 6898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 6899_ACEOF
f5818d2f 6900
ff453fcd 6901fi
daa2886c 6902
ff453fcd
HD
6903done
6904
daa2886c
AJ
6905
6906
f2b77ccb 6907fi
daa2886c 6908
f2b77ccb 6909done
f5818d2f
AJ
6910
6911 if test "x$enable_opengl" != "xno"
fbc15b17 6912 then
42dcd97e 6913 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
b508a1da 6914 then
daa2886c 6915 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
f5818d2f
AJ
6916This prevents linking to OpenGL. Delete the file and restart configure." >&5
6917echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6918This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6919 { (exit 1); exit 1; }; }
b508a1da
AJ
6920 fi
6921
daa2886c
AJ
6922
6923
6924for ac_header in GL/gl.h GL/glx.h
24110288 6925do
f5818d2f 6926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
6927if eval "test \"\${$as_ac_Header+set}\" = set"; then
6928 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6930if eval "test \"\${$as_ac_Header+set}\" = set"; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
6932fi
6933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 6935else
daa2886c
AJ
6936 # Is the header compilable?
6937echo "$as_me:$LINENO: checking $ac_header usability" >&5
6938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6939cat >conftest.$ac_ext <<_ACEOF
6940#line $LINENO "configure"
6941#include "confdefs.h"
6942$ac_includes_default
6943#include <$ac_header>
6944_ACEOF
6945rm -f conftest.$ac_objext
6946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
6951 { ac_try='test -s conftest.$ac_objext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 ac_header_compiler=yes
6958else
6959 echo "$as_me: failed program was:" >&5
6960cat conftest.$ac_ext >&5
6961ac_header_compiler=no
6962fi
6963rm -f conftest.$ac_objext conftest.$ac_ext
6964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6965echo "${ECHO_T}$ac_header_compiler" >&6
6966
6967# Is the header present?
6968echo "$as_me:$LINENO: checking $ac_header presence" >&5
6969echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6970cat >conftest.$ac_ext <<_ACEOF
6971#line $LINENO "configure"
24110288 6972#include "confdefs.h"
f5818d2f
AJ
6973#include <$ac_header>
6974_ACEOF
daa2886c 6975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
6976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6977 ac_status=$?
6978 egrep -v '^ *\+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
daa2886c 6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6982 (exit $ac_status); } >/dev/null; then
6983 if test -s conftest.err; then
6984 ac_cpp_err=$ac_c_preproc_warn_flag
6985 else
6986 ac_cpp_err=
6987 fi
6988else
6989 ac_cpp_err=yes
6990fi
6991if test -z "$ac_cpp_err"; then
daa2886c 6992 ac_header_preproc=yes
f5818d2f
AJ
6993else
6994 echo "$as_me: failed program was:" >&5
24110288 6995 cat conftest.$ac_ext >&5
daa2886c 6996 ac_header_preproc=no
24110288 6997fi
f5818d2f 6998rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
6999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7000echo "${ECHO_T}$ac_header_preproc" >&6
7001
7002# So? What about this header?
7003case $ac_header_compiler:$ac_header_preproc in
7004 yes:no )
7005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7006echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7009 no:yes )
7010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7011echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7013echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7016esac
7017echo "$as_me:$LINENO: checking for $ac_header" >&5
7018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7019if eval "test \"\${$as_ac_Header+set}\" = set"; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022 eval "$as_ac_Header=$ac_header_preproc"
24110288 7023fi
daa2886c 7024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 7025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
7026
7027fi
f5818d2f 7028if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7029 cat >>confdefs.h <<_ACEOF
f5818d2f 7030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7031_ACEOF
f5818d2f 7032
24110288 7033fi
daa2886c 7034
24110288
PS
7035done
7036
22a969ba 7037 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
fbc15b17 7038 then
daa2886c
AJ
7039
7040for ac_header in GL/glext.h
7041do
7042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7043echo "$as_me:$LINENO: checking for $ac_header" >&5
7044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7045if eval "test \"\${$as_ac_Header+set}\" = set"; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048 cat >conftest.$ac_ext <<_ACEOF
7049#line $LINENO "configure"
7050#include "confdefs.h"
7051#include <GL/glx.h>
7052
7053#include <$ac_header>
7054_ACEOF
7055rm -f conftest.$ac_objext
7056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -s conftest.$ac_objext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7067 eval "$as_ac_Header=yes"
7068else
7069 echo "$as_me: failed program was:" >&5
7070cat conftest.$ac_ext >&5
7071eval "$as_ac_Header=no"
7072fi
7073rm -f conftest.$ac_objext conftest.$ac_ext
7074fi
7075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7077if test `eval echo '${'$as_ac_Header'}'` = yes; then
7078 cat >>confdefs.h <<_ACEOF
7079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7080_ACEOF
7081
7082fi
7083
7084done
7085
7086 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
f5818d2f
AJ
7087echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7088if test "${wine_cv_opengl_version_OK+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
5c085704 7090else
f5818d2f 7091 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7092#line $LINENO "configure"
5c085704
LU
7093#include "confdefs.h"
7094#include <GL/gl.h>
daa2886c
AJ
7095#ifdef F77_DUMMY_MAIN
7096# ifdef __cplusplus
7097 extern "C"
7098# endif
7099 int F77_DUMMY_MAIN() { return 1; }
7100#endif
f5818d2f
AJ
7101int
7102main ()
7103{
5c085704 7104GLenum test = GL_UNSIGNED_SHORT_5_6_5;
f5818d2f
AJ
7105 ;
7106 return 0;
7107}
7108_ACEOF
7109rm -f conftest.$ac_objext
daa2886c 7110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
7111 (eval $ac_compile) 2>&5
7112 ac_status=$?
daa2886c 7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7114 (exit $ac_status); } &&
7115 { ac_try='test -s conftest.$ac_objext'
daa2886c 7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
daa2886c 7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7120 (exit $ac_status); }; }; then
bedf40b5 7121 wine_cv_opengl_version_OK="yes"
5c085704 7122else
f5818d2f
AJ
7123 echo "$as_me: failed program was:" >&5
7124cat conftest.$ac_ext >&5
7125wine_cv_opengl_version_OK="no"
7126
5c085704 7127fi
f5818d2f 7128rm -f conftest.$ac_objext conftest.$ac_ext
5c085704 7129
f5818d2f 7130fi
daa2886c 7131echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
f5818d2f 7132echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
5c085704 7133
daa2886c 7134 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
f5818d2f
AJ
7135echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7136if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
5eee0bff
LU
7138else
7139 saved_libs=$LIBS
fbc15b17 7140 LIBS="$X_LIBS -lGL"
f5818d2f 7141 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7142#line $LINENO "configure"
5eee0bff
LU
7143#include "confdefs.h"
7144
daa2886c
AJ
7145#ifdef F77_DUMMY_MAIN
7146# ifdef __cplusplus
7147 extern "C"
7148# endif
7149 int F77_DUMMY_MAIN() { return 1; }
7150#endif
f5818d2f
AJ
7151int
7152main ()
7153{
5eee0bff 7154pthread_getspecific();
f5818d2f
AJ
7155 ;
7156 return 0;
7157}
7158_ACEOF
7159rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7161 (eval $ac_link) 2>&5
7162 ac_status=$?
daa2886c 7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7164 (exit $ac_status); } &&
7165 { ac_try='test -s conftest$ac_exeext'
daa2886c 7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
daa2886c 7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7170 (exit $ac_status); }; }; then
bedf40b5 7171 wine_cv_opengl_version_threadsafe="yes"
5eee0bff 7172else
f5818d2f
AJ
7173 echo "$as_me: failed program was:" >&5
7174cat conftest.$ac_ext >&5
7175wine_cv_opengl_version_threadsafe="no"
5eee0bff 7176fi
f5818d2f 7177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fbc15b17 7178 LIBS=$saved_libs
5eee0bff 7179
f5818d2f 7180fi
daa2886c 7181echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
f5818d2f 7182echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
5eee0bff 7183
f5818d2f 7184 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
fbc15b17 7185 then
daa2886c 7186 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
f5818d2f
AJ
7187echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7188if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
5ff00774 7190else
f5818d2f 7191 ac_check_lib_save_LIBS=$LIBS
376ec88e 7192LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
f5818d2f 7193cat >conftest.$ac_ext <<_ACEOF
daa2886c 7194#line $LINENO "configure"
5ff00774 7195#include "confdefs.h"
f5818d2f 7196
5ff00774 7197/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7198#ifdef __cplusplus
7199extern "C"
7200#endif
5ff00774 7201/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7202 builtin and then its argument prototype would still apply. */
7203char glXCreateContext ();
daa2886c
AJ
7204#ifdef F77_DUMMY_MAIN
7205# ifdef __cplusplus
7206 extern "C"
7207# endif
7208 int F77_DUMMY_MAIN() { return 1; }
7209#endif
f5818d2f
AJ
7210int
7211main ()
7212{
7213glXCreateContext ();
7214 ;
7215 return 0;
7216}
7217_ACEOF
7218rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7220 (eval $ac_link) 2>&5
7221 ac_status=$?
daa2886c 7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7223 (exit $ac_status); } &&
7224 { ac_try='test -s conftest$ac_exeext'
daa2886c 7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
daa2886c 7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7229 (exit $ac_status); }; }; then
7230 ac_cv_lib_GL_glXCreateContext=yes
7231else
7232 echo "$as_me: failed program was:" >&5
7233cat conftest.$ac_ext >&5
7234ac_cv_lib_GL_glXCreateContext=no
7235fi
7236rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7237LIBS=$ac_check_lib_save_LIBS
7238fi
daa2886c 7239echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
f5818d2f
AJ
7240echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7241if test $ac_cv_lib_GL_glXCreateContext = yes; then
bedf40b5 7242 X_PRE_LIBS="$X_PRE_LIBS -lGL"
5d68f79a 7243
f5818d2f 7244fi
fbc15b17 7245
daa2886c 7246
b508a1da 7247 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
bd8ede1b 7248 then
bd8ede1b 7249 OPENGLFILES='$(OPENGLFILES)'
f5818d2f 7250
daa2886c 7251cat >>confdefs.h <<\_ACEOF
6bb6d4c2 7252#define HAVE_OPENGL 1
daa2886c 7253_ACEOF
6bb6d4c2 7254
daa2886c
AJ
7255
7256 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
f5818d2f
AJ
7257echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7258if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
48c08164 7260else
f5818d2f 7261 ac_check_lib_save_LIBS=$LIBS
376ec88e 7262LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
f5818d2f 7263cat >conftest.$ac_ext <<_ACEOF
daa2886c 7264#line $LINENO "configure"
48c08164 7265#include "confdefs.h"
f5818d2f 7266
48c08164 7267/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7268#ifdef __cplusplus
7269extern "C"
7270#endif
48c08164 7271/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7272 builtin and then its argument prototype would still apply. */
7273char glXGetProcAddressARB ();
daa2886c
AJ
7274#ifdef F77_DUMMY_MAIN
7275# ifdef __cplusplus
7276 extern "C"
7277# endif
7278 int F77_DUMMY_MAIN() { return 1; }
7279#endif
f5818d2f
AJ
7280int
7281main ()
7282{
7283glXGetProcAddressARB ();
7284 ;
7285 return 0;
7286}
7287_ACEOF
7288rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7290 (eval $ac_link) 2>&5
7291 ac_status=$?
daa2886c 7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7293 (exit $ac_status); } &&
7294 { ac_try='test -s conftest$ac_exeext'
daa2886c 7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
daa2886c 7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7299 (exit $ac_status); }; }; then
7300 ac_cv_lib_GL_glXGetProcAddressARB=yes
7301else
7302 echo "$as_me: failed program was:" >&5
7303cat conftest.$ac_ext >&5
7304ac_cv_lib_GL_glXGetProcAddressARB=no
7305fi
7306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7307LIBS=$ac_check_lib_save_LIBS
7308fi
daa2886c 7309echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
f5818d2f
AJ
7310echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7311if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7312
daa2886c 7313cat >>confdefs.h <<\_ACEOF
bedf40b5 7314#define HAVE_GLX_GETPROCADDRESS 1
daa2886c 7315_ACEOF
48c08164 7316
5ff00774
LU
7317fi
7318
daa2886c 7319
b508a1da 7320 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
bedf40b5 7321 then
daa2886c 7322 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
f5818d2f
AJ
7323echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7324if test "${wine_cv_extension_prototypes+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
1434d875 7326else
f5818d2f 7327 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7328#line $LINENO "configure"
1434d875
LU
7329#include "confdefs.h"
7330#include <GL/gl.h>
6bb6d4c2
MM
7331 #ifdef HAVE_GL_GLEXT_H
7332 # include <GL/glext.h>
7333 #endif
f5818d2f 7334
daa2886c
AJ
7335#ifdef F77_DUMMY_MAIN
7336# ifdef __cplusplus
7337 extern "C"
7338# endif
7339 int F77_DUMMY_MAIN() { return 1; }
7340#endif
f5818d2f
AJ
7341int
7342main ()
7343{
7344PFNGLCOLORTABLEEXTPROC test_proc;
7345 ;
7346 return 0;
7347}
7348_ACEOF
7349rm -f conftest.$ac_objext
daa2886c 7350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
7351 (eval $ac_compile) 2>&5
7352 ac_status=$?
daa2886c 7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7354 (exit $ac_status); } &&
7355 { ac_try='test -s conftest.$ac_objext'
daa2886c 7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
daa2886c 7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7360 (exit $ac_status); }; }; then
fe210ef3 7361 wine_cv_extension_prototypes="yes"
1434d875 7362else
f5818d2f
AJ
7363 echo "$as_me: failed program was:" >&5
7364cat conftest.$ac_ext >&5
7365wine_cv_extension_prototypes="no"
7366
1434d875 7367fi
f5818d2f 7368rm -f conftest.$ac_objext conftest.$ac_ext
1434d875 7369
f5818d2f 7370fi
daa2886c 7371echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
f5818d2f 7372echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
b508a1da 7373 if test "$wine_cv_extension_prototypes" = "yes"
fe210ef3 7374 then
f5818d2f 7375
daa2886c 7376cat >>confdefs.h <<\_ACEOF
fe210ef3 7377#define HAVE_GLEXT_PROTOTYPES 1
daa2886c 7378_ACEOF
fe210ef3
LU
7379
7380 fi
bedf40b5 7381 fi
d6c0f9f7 7382
fbc15b17 7383 fi
daa2886c 7384 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
f5818d2f
AJ
7385echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7386if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
b63ab445 7388else
f5818d2f 7389 ac_check_lib_save_LIBS=$LIBS
b63ab445
MM
7390LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7391 $LIBS"
f5818d2f 7392cat >conftest.$ac_ext <<_ACEOF
daa2886c 7393#line $LINENO "configure"
b63ab445 7394#include "confdefs.h"
f5818d2f 7395
b63ab445 7396/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7397#ifdef __cplusplus
7398extern "C"
7399#endif
b63ab445 7400/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7401 builtin and then its argument prototype would still apply. */
7402char gluLookAt ();
daa2886c
AJ
7403#ifdef F77_DUMMY_MAIN
7404# ifdef __cplusplus
7405 extern "C"
7406# endif
7407 int F77_DUMMY_MAIN() { return 1; }
7408#endif
f5818d2f
AJ
7409int
7410main ()
7411{
7412gluLookAt ();
7413 ;
7414 return 0;
7415}
7416_ACEOF
7417rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7419 (eval $ac_link) 2>&5
7420 ac_status=$?
daa2886c 7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7422 (exit $ac_status); } &&
7423 { ac_try='test -s conftest$ac_exeext'
daa2886c 7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7425 (eval $ac_try) 2>&5
7426 ac_status=$?
daa2886c 7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7428 (exit $ac_status); }; }; then
7429 ac_cv_lib_GLU_gluLookAt=yes
7430else
7431 echo "$as_me: failed program was:" >&5
7432cat conftest.$ac_ext >&5
7433ac_cv_lib_GLU_gluLookAt=no
7434fi
7435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7436LIBS=$ac_check_lib_save_LIBS
7437fi
daa2886c 7438echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
f5818d2f
AJ
7439echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7440if test $ac_cv_lib_GLU_gluLookAt = yes; then
b63ab445
MM
7441 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7442 GLU32FILES='$(GLU32FILES)'
f5818d2f 7443
b63ab445
MM
7444fi
7445
fbc15b17
LU
7446 fi
7447 fi
24110288 7448 fi
1eb593cb
OK
7449
7450 CPPFLAGS="$ac_save_CPPFLAGS"
2941a212 7451 XFILES='$(XFILES)'
24110288 7452else
daa2886c
AJ
7453 XLIB=""
7454 X_CFLAGS=""
7455 X_LIBS=""
7456fi
7457
7458CURSESLIBS=""
7459if test "x$with_curses" != "xno"
7460then
7461
7462for ac_header in ncurses.h
7463do
7464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7465if eval "test \"\${$as_ac_Header+set}\" = set"; then
7466 echo "$as_me:$LINENO: checking for $ac_header" >&5
7467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7468if eval "test \"\${$as_ac_Header+set}\" = set"; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470fi
7471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7473else
7474 # Is the header compilable?
7475echo "$as_me:$LINENO: checking $ac_header usability" >&5
7476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7477cat >conftest.$ac_ext <<_ACEOF
7478#line $LINENO "configure"
7479#include "confdefs.h"
7480$ac_includes_default
7481#include <$ac_header>
7482_ACEOF
7483rm -f conftest.$ac_objext
7484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -s conftest.$ac_objext'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 ac_header_compiler=yes
7496else
7497 echo "$as_me: failed program was:" >&5
7498cat conftest.$ac_ext >&5
7499ac_header_compiler=no
24110288 7500fi
daa2886c
AJ
7501rm -f conftest.$ac_objext conftest.$ac_ext
7502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7503echo "${ECHO_T}$ac_header_compiler" >&6
24110288 7504
daa2886c
AJ
7505# Is the header present?
7506echo "$as_me:$LINENO: checking $ac_header presence" >&5
7507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7508cat >conftest.$ac_ext <<_ACEOF
7509#line $LINENO "configure"
a1d6d247 7510#include "confdefs.h"
f5818d2f
AJ
7511#include <$ac_header>
7512_ACEOF
daa2886c 7513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
7514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7515 ac_status=$?
7516 egrep -v '^ *\+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
daa2886c 7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7520 (exit $ac_status); } >/dev/null; then
7521 if test -s conftest.err; then
7522 ac_cpp_err=$ac_c_preproc_warn_flag
7523 else
7524 ac_cpp_err=
7525 fi
7526else
7527 ac_cpp_err=yes
7528fi
7529if test -z "$ac_cpp_err"; then
daa2886c 7530 ac_header_preproc=yes
f5818d2f
AJ
7531else
7532 echo "$as_me: failed program was:" >&5
a1d6d247 7533 cat conftest.$ac_ext >&5
daa2886c 7534 ac_header_preproc=no
a1d6d247 7535fi
f5818d2f 7536rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
7537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7538echo "${ECHO_T}$ac_header_preproc" >&6
7539
7540# So? What about this header?
7541case $ac_header_compiler:$ac_header_preproc in
7542 yes:no )
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7547 no:yes )
7548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7554esac
7555echo "$as_me:$LINENO: checking for $ac_header" >&5
7556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7557if eval "test \"\${$as_ac_Header+set}\" = set"; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560 eval "$as_ac_Header=$ac_header_preproc"
a1d6d247 7561fi
daa2886c 7562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 7563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
7564
7565fi
f5818d2f 7566if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7567 cat >>confdefs.h <<_ACEOF
f5818d2f 7568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
7569_ACEOF
7570 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
f5818d2f
AJ
7571echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7572if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
e884f9ca 7574else
f5818d2f 7575 ac_check_lib_save_LIBS=$LIBS
e884f9ca 7576LIBS="-lncurses $LIBS"
f5818d2f 7577cat >conftest.$ac_ext <<_ACEOF
daa2886c 7578#line $LINENO "configure"
e884f9ca 7579#include "confdefs.h"
f5818d2f 7580
e884f9ca 7581/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7582#ifdef __cplusplus
7583extern "C"
7584#endif
e884f9ca 7585/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7586 builtin and then its argument prototype would still apply. */
7587char waddch ();
daa2886c
AJ
7588#ifdef F77_DUMMY_MAIN
7589# ifdef __cplusplus
7590 extern "C"
7591# endif
7592 int F77_DUMMY_MAIN() { return 1; }
7593#endif
f5818d2f
AJ
7594int
7595main ()
7596{
7597waddch ();
7598 ;
7599 return 0;
7600}
7601_ACEOF
7602rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7604 (eval $ac_link) 2>&5
7605 ac_status=$?
daa2886c 7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7607 (exit $ac_status); } &&
7608 { ac_try='test -s conftest$ac_exeext'
daa2886c 7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
daa2886c 7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7613 (exit $ac_status); }; }; then
7614 ac_cv_lib_ncurses_waddch=yes
7615else
7616 echo "$as_me: failed program was:" >&5
7617cat conftest.$ac_ext >&5
7618ac_cv_lib_ncurses_waddch=no
7619fi
7620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7621LIBS=$ac_check_lib_save_LIBS
7622fi
daa2886c 7623echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
f5818d2f
AJ
7624echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7625if test $ac_cv_lib_ncurses_waddch = yes; then
7626
daa2886c 7627cat >>confdefs.h <<\_ACEOF
48957684 7628#define HAVE_LIBNCURSES 1
daa2886c 7629_ACEOF
e884f9ca 7630
48957684 7631 CURSESLIBS="-lncurses"
f544507b 7632else
f5818d2f
AJ
7633
7634for ac_header in curses.h
24110288 7635do
f5818d2f 7636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
7637if eval "test \"\${$as_ac_Header+set}\" = set"; then
7638 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
7639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7640if eval "test \"\${$as_ac_Header+set}\" = set"; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
7642fi
7643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 7645else
daa2886c
AJ
7646 # Is the header compilable?
7647echo "$as_me:$LINENO: checking $ac_header usability" >&5
7648echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7649cat >conftest.$ac_ext <<_ACEOF
7650#line $LINENO "configure"
7651#include "confdefs.h"
7652$ac_includes_default
7653#include <$ac_header>
7654_ACEOF
7655rm -f conftest.$ac_objext
7656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657 (eval $ac_compile) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -s conftest.$ac_objext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7667 ac_header_compiler=yes
7668else
7669 echo "$as_me: failed program was:" >&5
7670cat conftest.$ac_ext >&5
7671ac_header_compiler=no
7672fi
7673rm -f conftest.$ac_objext conftest.$ac_ext
7674echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7675echo "${ECHO_T}$ac_header_compiler" >&6
7676
7677# Is the header present?
7678echo "$as_me:$LINENO: checking $ac_header presence" >&5
7679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7680cat >conftest.$ac_ext <<_ACEOF
7681#line $LINENO "configure"
24110288 7682#include "confdefs.h"
f5818d2f
AJ
7683#include <$ac_header>
7684_ACEOF
daa2886c 7685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
7686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7687 ac_status=$?
7688 egrep -v '^ *\+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
daa2886c 7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7692 (exit $ac_status); } >/dev/null; then
7693 if test -s conftest.err; then
7694 ac_cpp_err=$ac_c_preproc_warn_flag
7695 else
7696 ac_cpp_err=
7697 fi
7698else
7699 ac_cpp_err=yes
7700fi
7701if test -z "$ac_cpp_err"; then
daa2886c 7702 ac_header_preproc=yes
f5818d2f
AJ
7703else
7704 echo "$as_me: failed program was:" >&5
24110288 7705 cat conftest.$ac_ext >&5
daa2886c 7706 ac_header_preproc=no
24110288 7707fi
f5818d2f 7708rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
7709echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7710echo "${ECHO_T}$ac_header_preproc" >&6
7711
7712# So? What about this header?
7713case $ac_header_compiler:$ac_header_preproc in
7714 yes:no )
7715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7719 no:yes )
7720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7726esac
7727echo "$as_me:$LINENO: checking for $ac_header" >&5
7728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7729if eval "test \"\${$as_ac_Header+set}\" = set"; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732 eval "$as_ac_Header=$ac_header_preproc"
24110288 7733fi
daa2886c 7734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 7735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
7736
7737fi
f5818d2f 7738if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7739 cat >>confdefs.h <<_ACEOF
f5818d2f 7740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
7741_ACEOF
7742 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
f5818d2f
AJ
7743echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7744if test "${ac_cv_lib_curses_waddch+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
e884f9ca 7746else
f5818d2f 7747 ac_check_lib_save_LIBS=$LIBS
e884f9ca 7748LIBS="-lcurses $LIBS"
f5818d2f 7749cat >conftest.$ac_ext <<_ACEOF
daa2886c 7750#line $LINENO "configure"
e884f9ca 7751#include "confdefs.h"
f5818d2f 7752
e884f9ca 7753/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7754#ifdef __cplusplus
7755extern "C"
7756#endif
e884f9ca 7757/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7758 builtin and then its argument prototype would still apply. */
7759char waddch ();
daa2886c
AJ
7760#ifdef F77_DUMMY_MAIN
7761# ifdef __cplusplus
7762 extern "C"
7763# endif
7764 int F77_DUMMY_MAIN() { return 1; }
7765#endif
f5818d2f
AJ
7766int
7767main ()
7768{
7769waddch ();
7770 ;
7771 return 0;
7772}
7773_ACEOF
7774rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7776 (eval $ac_link) 2>&5
7777 ac_status=$?
daa2886c 7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7779 (exit $ac_status); } &&
7780 { ac_try='test -s conftest$ac_exeext'
daa2886c 7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
daa2886c 7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7785 (exit $ac_status); }; }; then
7786 ac_cv_lib_curses_waddch=yes
7787else
7788 echo "$as_me: failed program was:" >&5
7789cat conftest.$ac_ext >&5
7790ac_cv_lib_curses_waddch=no
7791fi
7792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7793LIBS=$ac_check_lib_save_LIBS
7794fi
daa2886c 7795echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
f5818d2f
AJ
7796echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7797if test $ac_cv_lib_curses_waddch = yes; then
7798
daa2886c 7799cat >>confdefs.h <<\_ACEOF
48957684 7800#define HAVE_LIBCURSES 1
daa2886c 7801_ACEOF
e884f9ca 7802
48957684 7803 CURSESLIBS="-lcurses"
638f169b
AJ
7804fi
7805
638f169b 7806fi
daa2886c 7807
ed2f19a6 7808done
638f169b
AJ
7809
7810fi
48957684 7811
48957684 7812fi
daa2886c 7813
ed2f19a6 7814done
f544507b 7815
48957684
AJ
7816 saved_libs="$LIBS"
7817 LIBS="$CURSESLIBS $LIBS"
f5818d2f 7818
daa2886c 7819
f5818d2f 7820for ac_func in getbkgd resizeterm
ed2f19a6 7821do
f5818d2f 7822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 7823echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
7824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7825if eval "test \"\${$as_ac_var+set}\" = set"; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7829#line $LINENO "configure"
f544507b 7830#include "confdefs.h"
ed2f19a6 7831/* System header to define __stub macros and hopefully few prototypes,
f5818d2f 7832 which can conflict with char $ac_func (); below. */
ed2f19a6 7833#include <assert.h>
f544507b 7834/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7835#ifdef __cplusplus
7836extern "C"
7837#endif
f544507b 7838/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7839 builtin and then its argument prototype would still apply. */
7840char $ac_func ();
7841char (*f) ();
ed2f19a6 7842
daa2886c
AJ
7843#ifdef F77_DUMMY_MAIN
7844# ifdef __cplusplus
7845 extern "C"
7846# endif
7847 int F77_DUMMY_MAIN() { return 1; }
7848#endif
f5818d2f
AJ
7849int
7850main ()
7851{
ed2f19a6
AJ
7852/* The GNU C library defines this for functions which it implements
7853 to always fail with ENOSYS. Some functions are actually named
7854 something starting with __ and the normal name is an alias. */
7855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7856choke me
7857#else
f5818d2f 7858f = $ac_func;
ed2f19a6
AJ
7859#endif
7860
f5818d2f
AJ
7861 ;
7862 return 0;
7863}
7864_ACEOF
7865rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7867 (eval $ac_link) 2>&5
7868 ac_status=$?
daa2886c 7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7870 (exit $ac_status); } &&
7871 { ac_try='test -s conftest$ac_exeext'
daa2886c 7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7873 (eval $ac_try) 2>&5
7874 ac_status=$?
daa2886c 7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7876 (exit $ac_status); }; }; then
7877 eval "$as_ac_var=yes"
7878else
7879 echo "$as_me: failed program was:" >&5
7880cat conftest.$ac_ext >&5
7881eval "$as_ac_var=no"
7882fi
7883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7884fi
daa2886c 7885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
7886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7887if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 7888 cat >>confdefs.h <<_ACEOF
f5818d2f 7889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 7890_ACEOF
ed2f19a6 7891
e884f9ca 7892fi
ed2f19a6 7893done
e884f9ca 7894
48957684 7895 LIBS="$saved_libs"
e884f9ca
JP
7896fi
7897
daa2886c 7898
ab8b7dba 7899CUPSLIBS=""
3ee02bab 7900wine_cv_warn_cups_h=no
daa2886c 7901echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
f5818d2f
AJ
7902echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7903if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
ab8b7dba 7905else
f5818d2f 7906 ac_check_lib_save_LIBS=$LIBS
ab8b7dba 7907LIBS="-lcups $LIBS"
f5818d2f 7908cat >conftest.$ac_ext <<_ACEOF
daa2886c 7909#line $LINENO "configure"
ab8b7dba 7910#include "confdefs.h"
f5818d2f 7911
ab8b7dba 7912/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7913#ifdef __cplusplus
7914extern "C"
7915#endif
ab8b7dba 7916/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7917 builtin and then its argument prototype would still apply. */
7918char cupsGetPPD ();
daa2886c
AJ
7919#ifdef F77_DUMMY_MAIN
7920# ifdef __cplusplus
7921 extern "C"
7922# endif
7923 int F77_DUMMY_MAIN() { return 1; }
7924#endif
f5818d2f
AJ
7925int
7926main ()
7927{
7928cupsGetPPD ();
7929 ;
7930 return 0;
7931}
7932_ACEOF
7933rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7935 (eval $ac_link) 2>&5
7936 ac_status=$?
daa2886c 7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7938 (exit $ac_status); } &&
7939 { ac_try='test -s conftest$ac_exeext'
daa2886c 7940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7941 (eval $ac_try) 2>&5
7942 ac_status=$?
daa2886c 7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7944 (exit $ac_status); }; }; then
7945 ac_cv_lib_cups_cupsGetPPD=yes
7946else
7947 echo "$as_me: failed program was:" >&5
7948cat conftest.$ac_ext >&5
7949ac_cv_lib_cups_cupsGetPPD=no
7950fi
7951rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7952LIBS=$ac_check_lib_save_LIBS
7953fi
daa2886c 7954echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
f5818d2f
AJ
7955echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7956if test $ac_cv_lib_cups_cupsGetPPD = yes; then
daa2886c
AJ
7957 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7958 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
f5818d2f
AJ
7959echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7960if test "${ac_cv_header_cups_cups_h+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
7962fi
7963echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7964echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
f5818d2f 7965else
daa2886c
AJ
7966 # Is the header compilable?
7967echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7968echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7969cat >conftest.$ac_ext <<_ACEOF
7970#line $LINENO "configure"
7971#include "confdefs.h"
7972$ac_includes_default
7973#include <cups/cups.h>
7974_ACEOF
7975rm -f conftest.$ac_objext
7976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -s conftest.$ac_objext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_header_compiler=yes
7988else
7989 echo "$as_me: failed program was:" >&5
7990cat conftest.$ac_ext >&5
7991ac_header_compiler=no
7992fi
7993rm -f conftest.$ac_objext conftest.$ac_ext
7994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7995echo "${ECHO_T}$ac_header_compiler" >&6
7996
7997# Is the header present?
7998echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7999echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
8000cat >conftest.$ac_ext <<_ACEOF
8001#line $LINENO "configure"
f5818d2f
AJ
8002#include "confdefs.h"
8003#include <cups/cups.h>
8004_ACEOF
daa2886c 8005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007 ac_status=$?
8008 egrep -v '^ *\+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
daa2886c 8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 else
8016 ac_cpp_err=
8017 fi
ab8b7dba 8018else
f5818d2f 8019 ac_cpp_err=yes
ab8b7dba 8020fi
f5818d2f 8021if test -z "$ac_cpp_err"; then
daa2886c 8022 ac_header_preproc=yes
3ee02bab 8023else
f5818d2f 8024 echo "$as_me: failed program was:" >&5
3ee02bab 8025 cat conftest.$ac_ext >&5
daa2886c 8026 ac_header_preproc=no
3ee02bab 8027fi
f5818d2f 8028rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
8029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8030echo "${ECHO_T}$ac_header_preproc" >&6
8031
8032# So? What about this header?
8033case $ac_header_compiler:$ac_header_preproc in
8034 yes:no )
8035 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
8036echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8038echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8039 no:yes )
8040 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
8041echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
8043echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
8044 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8045echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8046esac
8047echo "$as_me:$LINENO: checking for cups/cups.h" >&5
8048echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
8049if test "${ac_cv_header_cups_cups_h+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 ac_cv_header_cups_cups_h=$ac_header_preproc
3ee02bab 8053fi
daa2886c 8054echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
f5818d2f 8055echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
daa2886c
AJ
8056
8057fi
f5818d2f
AJ
8058if test $ac_cv_header_cups_cups_h = yes; then
8059
daa2886c 8060cat >>confdefs.h <<\_ACEOF
ab8b7dba 8061#define HAVE_CUPS 1
daa2886c 8062_ACEOF
ab8b7dba 8063
3ee02bab
MM
8064 CUPSLIBS="-lcups"
8065else
f5818d2f 8066 wine_cv_warn_cups_h=yes
3ee02bab
MM
8067fi
8068
daa2886c
AJ
8069
8070
ab8b7dba
MM
8071fi
8072
daa2886c
AJ
8073
8074
6b0720f5
SQH
8075# Extract the first word of "sane-config", so it can be a program name with args.
8076set dummy sane-config; ac_word=$2
daa2886c 8077echo "$as_me:$LINENO: checking for $ac_word" >&5
6b0720f5
SQH
8078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8079if test "${ac_cv_prog_sane_devel+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081else
8082 if test -n "$sane_devel"; then
8083 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8084else
daa2886c
AJ
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_sane_devel="sane-config"
8093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096done
6b0720f5
SQH
8097done
8098
8099 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8100fi
8101fi
8102sane_devel=$ac_cv_prog_sane_devel
8103if test -n "$sane_devel"; then
daa2886c 8104 echo "$as_me:$LINENO: result: $sane_devel" >&5
6b0720f5
SQH
8105echo "${ECHO_T}$sane_devel" >&6
8106else
daa2886c 8107 echo "$as_me:$LINENO: result: no" >&5
6b0720f5
SQH
8108echo "${ECHO_T}no" >&6
8109fi
8110
8111if test "$sane_devel" = "no"
8112then
8113 SANELIBS=""
8114 SANEINCL=""
8115else
8116 SANELIBS="`$sane_devel --libs`"
8117 SANEINCL="`$sane_devel --cflags`"
8118 ac_save_CPPFLAGS="$CPPFLAGS"
8119 ac_save_LIBS="$LIBS"
8120 CPPFLAGS="$CPPFLAGS $SANEINCL"
8121 LIBS="$LIBS $SANELIBS"
daa2886c
AJ
8122 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8123 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
6b0720f5
SQH
8124echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8125if test "${ac_cv_header_sane_sane_h+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
8127fi
8128echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8129echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
6b0720f5 8130else
daa2886c
AJ
8131 # Is the header compilable?
8132echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8133echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8134cat >conftest.$ac_ext <<_ACEOF
8135#line $LINENO "configure"
8136#include "confdefs.h"
8137$ac_includes_default
8138#include <sane/sane.h>
8139_ACEOF
8140rm -f conftest.$ac_objext
8141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_header_compiler=yes
8153else
8154 echo "$as_me: failed program was:" >&5
8155cat conftest.$ac_ext >&5
8156ac_header_compiler=no
8157fi
8158rm -f conftest.$ac_objext conftest.$ac_ext
8159echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8160echo "${ECHO_T}$ac_header_compiler" >&6
8161
8162# Is the header present?
8163echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8164echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8165cat >conftest.$ac_ext <<_ACEOF
8166#line $LINENO "configure"
6b0720f5
SQH
8167#include "confdefs.h"
8168#include <sane/sane.h>
8169_ACEOF
daa2886c 8170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6b0720f5
SQH
8171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8172 ac_status=$?
8173 egrep -v '^ *\+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
daa2886c 8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5
SQH
8177 (exit $ac_status); } >/dev/null; then
8178 if test -s conftest.err; then
8179 ac_cpp_err=$ac_c_preproc_warn_flag
8180 else
8181 ac_cpp_err=
8182 fi
8183else
8184 ac_cpp_err=yes
8185fi
8186if test -z "$ac_cpp_err"; then
daa2886c 8187 ac_header_preproc=yes
6b0720f5
SQH
8188else
8189 echo "$as_me: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
daa2886c 8191 ac_header_preproc=no
6b0720f5
SQH
8192fi
8193rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
8194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195echo "${ECHO_T}$ac_header_preproc" >&6
8196
8197# So? What about this header?
8198case $ac_header_compiler:$ac_header_preproc in
8199 yes:no )
8200 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8201echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8203echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8204 no:yes )
8205 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8206echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8208echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8210echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8211esac
8212echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8213echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8214if test "${ac_cv_header_sane_sane_h+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216else
8217 ac_cv_header_sane_sane_h=$ac_header_preproc
6b0720f5 8218fi
daa2886c 8219echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
6b0720f5 8220echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
daa2886c
AJ
8221
8222fi
6b0720f5 8223if test $ac_cv_header_sane_sane_h = yes; then
daa2886c 8224 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
6b0720f5
SQH
8225echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8226if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 ac_check_lib_save_LIBS=$LIBS
8230LIBS="-lsane $LIBS"
8231cat >conftest.$ac_ext <<_ACEOF
daa2886c 8232#line $LINENO "configure"
6b0720f5
SQH
8233#include "confdefs.h"
8234
8235/* Override any gcc2 internal prototype to avoid an error. */
8236#ifdef __cplusplus
8237extern "C"
8238#endif
8239/* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8241char sane_open ();
daa2886c
AJ
8242#ifdef F77_DUMMY_MAIN
8243# ifdef __cplusplus
8244 extern "C"
8245# endif
8246 int F77_DUMMY_MAIN() { return 1; }
8247#endif
6b0720f5
SQH
8248int
8249main ()
8250{
8251sane_open ();
8252 ;
8253 return 0;
8254}
8255_ACEOF
8256rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 8257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6b0720f5
SQH
8258 (eval $ac_link) 2>&5
8259 ac_status=$?
daa2886c 8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5
SQH
8261 (exit $ac_status); } &&
8262 { ac_try='test -s conftest$ac_exeext'
daa2886c 8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6b0720f5
SQH
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
daa2886c 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5
SQH
8267 (exit $ac_status); }; }; then
8268 ac_cv_lib_sane_sane_open=yes
8269else
8270 echo "$as_me: failed program was:" >&5
8271cat conftest.$ac_ext >&5
8272ac_cv_lib_sane_sane_open=no
8273fi
8274rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8275LIBS=$ac_check_lib_save_LIBS
8276fi
daa2886c 8277echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
6b0720f5
SQH
8278echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8279if test $ac_cv_lib_sane_sane_open = yes; then
8280
daa2886c 8281cat >>confdefs.h <<\_ACEOF
6b0720f5 8282#define HAVE_SANE 1
daa2886c 8283_ACEOF
6b0720f5
SQH
8284
8285else
8286 SANELIBS=""
96328b37 8287 SANEINCL=""
6b0720f5
SQH
8288fi
8289
96328b37
AJ
8290else
8291 SANELIBS=""
8292 SANEINCL=""
6b0720f5
SQH
8293fi
8294
daa2886c 8295
6b0720f5
SQH
8296 LIBS="$ac_save_LIBS"
8297 CPPFLAGS="$ac_save_CPPFLAGS"
8298fi
8299
daa2886c
AJ
8300
8301
8302echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
f5818d2f
AJ
8303echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8304if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
563598d4 8306else
f5818d2f 8307 ac_check_lib_save_LIBS=$LIBS
8871a11b 8308LIBS="-lfreetype $X_LIBS $LIBS"
f5818d2f 8309cat >conftest.$ac_ext <<_ACEOF
daa2886c 8310#line $LINENO "configure"
563598d4 8311#include "confdefs.h"
f5818d2f 8312
563598d4 8313/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
8314#ifdef __cplusplus
8315extern "C"
8316#endif
563598d4 8317/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
8318 builtin and then its argument prototype would still apply. */
8319char FT_Init_FreeType ();
daa2886c
AJ
8320#ifdef F77_DUMMY_MAIN
8321# ifdef __cplusplus
8322 extern "C"
8323# endif
8324 int F77_DUMMY_MAIN() { return 1; }
8325#endif
f5818d2f
AJ
8326int
8327main ()
8328{
8329FT_Init_FreeType ();
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 8335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
8336 (eval $ac_link) 2>&5
8337 ac_status=$?
daa2886c 8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8339 (exit $ac_status); } &&
8340 { ac_try='test -s conftest$ac_exeext'
daa2886c 8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8342 (eval $ac_try) 2>&5
8343 ac_status=$?
daa2886c 8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8345 (exit $ac_status); }; }; then
8346 ac_cv_lib_freetype_FT_Init_FreeType=yes
8347else
8348 echo "$as_me: failed program was:" >&5
8349cat conftest.$ac_ext >&5
8350ac_cv_lib_freetype_FT_Init_FreeType=no
8351fi
8352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8353LIBS=$ac_check_lib_save_LIBS
8354fi
daa2886c 8355echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
f5818d2f
AJ
8356echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8357if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
563598d4
IP
8358 ft_lib=yes
8359else
f5818d2f 8360 ft_lib=no
563598d4
IP
8361fi
8362
8363if test "$ft_lib" = "no"
8364then
563598d4
IP
8365 FREETYPEINCL=""
8366 wine_cv_msg_freetype=no
8367else
8368 # Extract the first word of "freetype-config", so it can be a program name with args.
8369set dummy freetype-config; ac_word=$2
daa2886c 8370echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
8371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8372if test "${ac_cv_prog_ft_devel+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
563598d4
IP
8374else
8375 if test -n "$ft_devel"; then
8376 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8377else
daa2886c
AJ
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_ft_devel="freetype-config"
8386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 break 2
8388 fi
8389done
f5818d2f
AJ
8390done
8391
563598d4
IP
8392 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8393fi
8394fi
f5818d2f 8395ft_devel=$ac_cv_prog_ft_devel
563598d4 8396if test -n "$ft_devel"; then
daa2886c 8397 echo "$as_me:$LINENO: result: $ft_devel" >&5
f5818d2f 8398echo "${ECHO_T}$ft_devel" >&6
563598d4 8399else
daa2886c 8400 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 8401echo "${ECHO_T}no" >&6
563598d4
IP
8402fi
8403
d28955d8
MM
8404 if test "$ft_devel" = "no"
8405 then
8406 # Extract the first word of "freetype2-config", so it can be a program name with args.
8407set dummy freetype2-config; ac_word=$2
daa2886c 8408echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
8409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8410if test "${ac_cv_prog_ft_devel2+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
d28955d8
MM
8412else
8413 if test -n "$ft_devel2"; then
8414 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8415else
daa2886c
AJ
8416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417for as_dir in $PATH
8418do
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_prog_ft_devel2="freetype2-config"
8424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8426 fi
8427done
f5818d2f
AJ
8428done
8429
d28955d8
MM
8430 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8431fi
8432fi
f5818d2f 8433ft_devel2=$ac_cv_prog_ft_devel2
d28955d8 8434if test -n "$ft_devel2"; then
daa2886c 8435 echo "$as_me:$LINENO: result: $ft_devel2" >&5
f5818d2f 8436echo "${ECHO_T}$ft_devel2" >&6
d28955d8 8437else
daa2886c 8438 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 8439echo "${ECHO_T}no" >&6
d28955d8
MM
8440fi
8441
8442 if test "$ft_devel2" = "freetype2-config"
8443 then
8444 ft_devel=$ft_devel2
8445 fi
8446 fi
563598d4
IP
8447 if test "$ft_devel" = "no"
8448 then
563598d4
IP
8449 FREETYPEINCL=""
8450 wine_cv_msg_freetype=yes
8451 else
d28955d8 8452 FREETYPEINCL=`$ft_devel --cflags`
40432fef
IP
8453 ac_save_CPPFLAGS="$CPPFLAGS"
8454 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
f5818d2f 8455
daa2886c
AJ
8456
8457
8458
8459
8460
8461
8462
f5818d2f 8463for ac_header in freetype/freetype.h \
40432fef
IP
8464 freetype/ftglyph.h \
8465 freetype/tttables.h \
8466 freetype/ftnames.h \
8467 freetype/ftsnames.h \
814654ef 8468 freetype/ttnameid.h \
4e2024e8
HD
8469 freetype/ftoutln.h \
8470 freetype/internal/sfnt.h
40432fef 8471do
f5818d2f 8472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
8473if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
8475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8476if eval "test \"\${$as_ac_Header+set}\" = set"; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
8478fi
8479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 8481else
daa2886c
AJ
8482 # Is the header compilable?
8483echo "$as_me:$LINENO: checking $ac_header usability" >&5
8484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8485cat >conftest.$ac_ext <<_ACEOF
8486#line $LINENO "configure"
8487#include "confdefs.h"
8488$ac_includes_default
8489#include <$ac_header>
8490_ACEOF
8491rm -f conftest.$ac_objext
8492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -s conftest.$ac_objext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 ac_header_compiler=yes
8504else
8505 echo "$as_me: failed program was:" >&5
8506cat conftest.$ac_ext >&5
8507ac_header_compiler=no
8508fi
8509rm -f conftest.$ac_objext conftest.$ac_ext
8510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8511echo "${ECHO_T}$ac_header_compiler" >&6
8512
8513# Is the header present?
8514echo "$as_me:$LINENO: checking $ac_header presence" >&5
8515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8516cat >conftest.$ac_ext <<_ACEOF
8517#line $LINENO "configure"
40432fef 8518#include "confdefs.h"
f5818d2f
AJ
8519#include <$ac_header>
8520_ACEOF
daa2886c 8521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
8522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8523 ac_status=$?
8524 egrep -v '^ *\+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
daa2886c 8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8528 (exit $ac_status); } >/dev/null; then
8529 if test -s conftest.err; then
8530 ac_cpp_err=$ac_c_preproc_warn_flag
8531 else
8532 ac_cpp_err=
8533 fi
8534else
8535 ac_cpp_err=yes
8536fi
8537if test -z "$ac_cpp_err"; then
daa2886c 8538 ac_header_preproc=yes
f5818d2f
AJ
8539else
8540 echo "$as_me: failed program was:" >&5
40432fef 8541 cat conftest.$ac_ext >&5
daa2886c 8542 ac_header_preproc=no
40432fef 8543fi
f5818d2f 8544rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
8545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8546echo "${ECHO_T}$ac_header_preproc" >&6
8547
8548# So? What about this header?
8549case $ac_header_compiler:$ac_header_preproc in
8550 yes:no )
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8555 no:yes )
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8562esac
8563echo "$as_me:$LINENO: checking for $ac_header" >&5
8564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8565if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
8568 eval "$as_ac_Header=$ac_header_preproc"
40432fef 8569fi
daa2886c 8570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 8571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
8572
8573fi
f5818d2f 8574if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 8575 cat >>confdefs.h <<_ACEOF
f5818d2f 8576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 8577_ACEOF
f5818d2f 8578
40432fef 8579fi
daa2886c 8580
40432fef
IP
8581done
8582
f5818d2f 8583 cat >conftest.$ac_ext <<_ACEOF
daa2886c 8584#line $LINENO "configure"
18d7573c
AJ
8585#include "confdefs.h"
8586#include <ft2build.h>
8587 #include <freetype/fttrigon.h>
f5818d2f 8588_ACEOF
daa2886c 8589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
8590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8591 ac_status=$?
8592 egrep -v '^ *\+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
daa2886c 8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8596 (exit $ac_status); } >/dev/null; then
8597 if test -s conftest.err; then
8598 ac_cpp_err=$ac_c_preproc_warn_flag
8599 else
8600 ac_cpp_err=
8601 fi
8602else
8603 ac_cpp_err=yes
8604fi
8605if test -z "$ac_cpp_err"; then
8606
daa2886c 8607cat >>confdefs.h <<\_ACEOF
18d7573c 8608#define HAVE_FREETYPE_FTTRIGON_H 1
daa2886c 8609_ACEOF
18d7573c 8610
c1d38132 8611 wine_cv_fttrigon=yes
18d7573c 8612else
f5818d2f 8613 echo "$as_me: failed program was:" >&5
18d7573c 8614 cat conftest.$ac_ext >&5
c1d38132 8615 wine_cv_fttrigon=no
18d7573c 8616fi
f5818d2f 8617rm -f conftest.err conftest.$ac_ext
40432fef 8618 CPPFLAGS="$ac_save_CPPFLAGS"
c1d38132 8619 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9b1d3726 8620 then
f5818d2f 8621
daa2886c 8622cat >>confdefs.h <<\_ACEOF
9b1d3726 8623#define HAVE_FREETYPE 1
daa2886c 8624_ACEOF
9b1d3726
HD
8625
8626 wine_cv_msg_freetype=no
8627 else
9b1d3726
HD
8628 FREETYPEINCL=""
8629 wine_cv_msg_freetype=yes
8630 fi
563598d4
IP
8631 fi
8632fi
8633
daa2886c
AJ
8634
8635echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
f5818d2f
AJ
8636echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8637if test "${ac_cv_c_ppdev+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
6509fa93 8639else
f5818d2f 8640 cat >conftest.$ac_ext <<_ACEOF
daa2886c 8641#line $LINENO "configure"
6509fa93
UB
8642#include "confdefs.h"
8643#include <linux/ppdev.h>
daa2886c
AJ
8644#ifdef F77_DUMMY_MAIN
8645# ifdef __cplusplus
8646 extern "C"
8647# endif
8648 int F77_DUMMY_MAIN() { return 1; }
8649#endif
f5818d2f
AJ
8650int
8651main ()
8652{
6509fa93 8653ioctl (1,PPCLAIM,0)
f5818d2f
AJ
8654 ;
8655 return 0;
8656}
8657_ACEOF
8658rm -f conftest.$ac_objext
daa2886c 8659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
8660 (eval $ac_compile) 2>&5
8661 ac_status=$?
daa2886c 8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8663 (exit $ac_status); } &&
8664 { ac_try='test -s conftest.$ac_objext'
daa2886c 8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
daa2886c 8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8669 (exit $ac_status); }; }; then
6509fa93
UB
8670 ac_cv_c_ppdev="yes"
8671else
f5818d2f
AJ
8672 echo "$as_me: failed program was:" >&5
8673cat conftest.$ac_ext >&5
8674ac_cv_c_ppdev="no"
6509fa93 8675fi
f5818d2f 8676rm -f conftest.$ac_objext conftest.$ac_ext
6509fa93 8677
f5818d2f 8678fi
daa2886c 8679echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
f5818d2f 8680echo "${ECHO_T}$ac_cv_c_ppdev" >&6
6509fa93
UB
8681if test "$ac_cv_c_ppdev" = "yes"
8682then
f5818d2f 8683
daa2886c 8684cat >>confdefs.h <<\_ACEOF
6509fa93 8685#define HAVE_PPDEV 1
daa2886c 8686_ACEOF
6509fa93
UB
8687
8688fi
8689
daa2886c 8690echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
f5818d2f
AJ
8691echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8692if test "${ac_cv_c_ipx_gnu+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
94d99642 8694else
f5818d2f 8695 cat >conftest.$ac_ext <<_ACEOF
daa2886c 8696#line $LINENO "configure"
94d99642
PR
8697#include "confdefs.h"
8698#include <sys/socket.h>
8699 #include <netipx/ipx.h>
daa2886c
AJ
8700#ifdef F77_DUMMY_MAIN
8701# ifdef __cplusplus
8702 extern "C"
8703# endif
8704 int F77_DUMMY_MAIN() { return 1; }
8705#endif
f5818d2f
AJ
8706int
8707main ()
8708{
94d99642 8709((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
f5818d2f
AJ
8710 ;
8711 return 0;
8712}
8713_ACEOF
8714rm -f conftest.$ac_objext
daa2886c 8715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
8716 (eval $ac_compile) 2>&5
8717 ac_status=$?
daa2886c 8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8719 (exit $ac_status); } &&
8720 { ac_try='test -s conftest.$ac_objext'
daa2886c 8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
daa2886c 8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8725 (exit $ac_status); }; }; then
c23872d9 8726 ac_cv_c_ipx_gnu="yes"
94d99642 8727else
f5818d2f
AJ
8728 echo "$as_me: failed program was:" >&5
8729cat conftest.$ac_ext >&5
8730ac_cv_c_ipx_gnu="no"
94d99642 8731fi
f5818d2f 8732rm -f conftest.$ac_objext conftest.$ac_ext
94d99642 8733
f5818d2f 8734fi
daa2886c 8735echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
f5818d2f 8736echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
c23872d9
AH
8737if test "$ac_cv_c_ipx_gnu" = "yes"
8738then
f5818d2f 8739
daa2886c 8740cat >>confdefs.h <<\_ACEOF
c23872d9 8741#define HAVE_IPX_GNU 1
daa2886c 8742_ACEOF
c23872d9
AH
8743
8744fi
94d99642
PR
8745
8746if test "$ac_cv_c_ipx_gnu" = "no"
8747then
daa2886c 8748 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
f5818d2f
AJ
8749echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8750if test "${ac_cv_c_ipx_linux+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
94d99642 8752else
f5818d2f 8753 cat >conftest.$ac_ext <<_ACEOF
daa2886c 8754#line $LINENO "configure"
94d99642
PR
8755#include "confdefs.h"
8756#include <sys/socket.h>
8757 #include <asm/types.h>
8758 #include <linux/ipx.h>
daa2886c
AJ
8759#ifdef F77_DUMMY_MAIN
8760# ifdef __cplusplus
8761 extern "C"
8762# endif
8763 int F77_DUMMY_MAIN() { return 1; }
8764#endif
f5818d2f
AJ
8765int
8766main ()
8767{
94d99642 8768((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
f5818d2f
AJ
8769 ;
8770 return 0;
8771}
8772_ACEOF
8773rm -f conftest.$ac_objext
daa2886c 8774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
8775 (eval $ac_compile) 2>&5
8776 ac_status=$?
daa2886c 8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8778 (exit $ac_status); } &&
8779 { ac_try='test -s conftest.$ac_objext'
daa2886c 8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8781 (eval $ac_try) 2>&5
8782 ac_status=$?
daa2886c 8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8784 (exit $ac_status); }; }; then
c23872d9 8785 ac_cv_c_ipx_linux="yes"
94d99642 8786else
f5818d2f
AJ
8787 echo "$as_me: failed program was:" >&5
8788cat conftest.$ac_ext >&5
8789ac_cv_c_ipx_linux="no"
94d99642 8790fi
f5818d2f 8791rm -f conftest.$ac_objext conftest.$ac_ext
94d99642 8792
f5818d2f 8793fi
daa2886c 8794echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
f5818d2f 8795echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
c23872d9
AH
8796 if test "$ac_cv_c_ipx_linux" = "yes"
8797 then
f5818d2f 8798
daa2886c 8799cat >>confdefs.h <<\_ACEOF
c23872d9 8800#define HAVE_IPX_LINUX 1
daa2886c 8801_ACEOF
c23872d9
AH
8802
8803 fi
94d99642
PR
8804fi
8805
daa2886c
AJ
8806
8807
8808
8809for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8810do
8811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8812if eval "test \"\${$as_ac_Header+set}\" = set"; then
8813 echo "$as_me:$LINENO: checking for $ac_header" >&5
8814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8815if eval "test \"\${$as_ac_Header+set}\" = set"; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817fi
8818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8820else
8821 # Is the header compilable?
8822echo "$as_me:$LINENO: checking $ac_header usability" >&5
8823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8824cat >conftest.$ac_ext <<_ACEOF
8825#line $LINENO "configure"
8826#include "confdefs.h"
8827$ac_includes_default
8828#include <$ac_header>
8829_ACEOF
8830rm -f conftest.$ac_objext
8831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -s conftest.$ac_objext'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 ac_header_compiler=yes
8843else
8844 echo "$as_me: failed program was:" >&5
8845cat conftest.$ac_ext >&5
8846ac_header_compiler=no
8847fi
8848rm -f conftest.$ac_objext conftest.$ac_ext
8849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8850echo "${ECHO_T}$ac_header_compiler" >&6
8851
8852# Is the header present?
8853echo "$as_me:$LINENO: checking $ac_header presence" >&5
8854echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8855cat >conftest.$ac_ext <<_ACEOF
8856#line $LINENO "configure"
0623a6f3 8857#include "confdefs.h"
f5818d2f
AJ
8858#include <$ac_header>
8859_ACEOF
daa2886c 8860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
8861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8862 ac_status=$?
8863 egrep -v '^ *\+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
daa2886c 8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8867 (exit $ac_status); } >/dev/null; then
8868 if test -s conftest.err; then
8869 ac_cpp_err=$ac_c_preproc_warn_flag
8870 else
8871 ac_cpp_err=
8872 fi
8873else
8874 ac_cpp_err=yes
8875fi
8876if test -z "$ac_cpp_err"; then
daa2886c 8877 ac_header_preproc=yes
f5818d2f
AJ
8878else
8879 echo "$as_me: failed program was:" >&5
0623a6f3 8880 cat conftest.$ac_ext >&5
daa2886c 8881 ac_header_preproc=no
0623a6f3 8882fi
f5818d2f 8883rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
8884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8885echo "${ECHO_T}$ac_header_preproc" >&6
8886
8887# So? What about this header?
8888case $ac_header_compiler:$ac_header_preproc in
8889 yes:no )
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8894 no:yes )
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8901esac
8902echo "$as_me:$LINENO: checking for $ac_header" >&5
8903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8904if eval "test \"\${$as_ac_Header+set}\" = set"; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907 eval "$as_ac_Header=$ac_header_preproc"
0623a6f3 8908fi
daa2886c 8909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 8910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
8911
8912fi
f5818d2f 8913if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 8914 cat >>confdefs.h <<_ACEOF
f5818d2f 8915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 8916_ACEOF
ecc7669d 8917 break
c7c217b3 8918fi
daa2886c 8919
c7c217b3 8920done
0623a6f3 8921
daa2886c
AJ
8922
8923echo "$as_me:$LINENO: checking for Open Sound System" >&5
f5818d2f
AJ
8924echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8925if test "${ac_cv_c_opensoundsystem+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
a69b88b2 8927else
f5818d2f 8928 cat >conftest.$ac_ext <<_ACEOF
daa2886c 8929#line $LINENO "configure"
a69b88b2 8930#include "confdefs.h"
c7c217b3 8931
ecc7669d 8932 #if defined(HAVE_SYS_SOUNDCARD_H)
c7c217b3 8933 #include <sys/soundcard.h>
ecc7669d 8934 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
c7c217b3 8935 #include <machine/soundcard.h>
ecc7669d
TV
8936 #elif defined(HAVE_SOUNDCARD_H)
8937 #include <soundcard.h>
c7c217b3 8938 #endif
a69b88b2 8939
daa2886c
AJ
8940#ifdef F77_DUMMY_MAIN
8941# ifdef __cplusplus
8942 extern "C"
8943# endif
8944 int F77_DUMMY_MAIN() { return 1; }
8945#endif
f5818d2f
AJ
8946int
8947main ()
8948{
c7c217b3 8949
daa2886c 8950
a69b88b2
AJ
8951/* check for one of the Open Sound System specific SNDCTL_ defines */
8952#if !defined(SNDCTL_DSP_STEREO)
8953#error No open sound system
8954#endif
8955
f5818d2f
AJ
8956 ;
8957 return 0;
8958}
8959_ACEOF
8960rm -f conftest.$ac_objext
daa2886c 8961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
8962 (eval $ac_compile) 2>&5
8963 ac_status=$?
daa2886c 8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8965 (exit $ac_status); } &&
8966 { ac_try='test -s conftest.$ac_objext'
daa2886c 8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
daa2886c 8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8971 (exit $ac_status); }; }; then
c7c217b3 8972 ac_cv_c_opensoundsystem="yes"
a69b88b2 8973else
f5818d2f
AJ
8974 echo "$as_me: failed program was:" >&5
8975cat conftest.$ac_ext >&5
8976ac_cv_c_opensoundsystem="no"
a69b88b2 8977fi
f5818d2f 8978rm -f conftest.$ac_objext conftest.$ac_ext
a69b88b2 8979fi
daa2886c 8980echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
f5818d2f 8981echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
0623a6f3 8982
dadf78ff
AJ
8983if test "$ac_cv_c_opensoundsystem" = "yes"
8984then
f5818d2f 8985
daa2886c 8986cat >>confdefs.h <<\_ACEOF
dadf78ff 8987#define HAVE_OSS 1
daa2886c 8988_ACEOF
dadf78ff
AJ
8989
8990fi
8991
daa2886c 8992echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
f5818d2f
AJ
8993echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8994if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
338d3b2d 8996else
f5818d2f 8997 cat >conftest.$ac_ext <<_ACEOF
daa2886c 8998#line $LINENO "configure"
338d3b2d
EP
8999#include "confdefs.h"
9000
9001 #if defined(HAVE_SYS_SOUNDCARD_H)
9002 #include <sys/soundcard.h>
9003 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9004 #include <machine/soundcard.h>
9005 #elif defined(HAVE_SOUNDCARD_H)
9006 #include <soundcard.h>
9007 #endif
338d3b2d 9008
daa2886c
AJ
9009#ifdef F77_DUMMY_MAIN
9010# ifdef __cplusplus
9011 extern "C"
9012# endif
9013 int F77_DUMMY_MAIN() { return 1; }
9014#endif
f5818d2f
AJ
9015int
9016main ()
9017{
338d3b2d 9018
daa2886c 9019
338d3b2d
EP
9020/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9021#if !defined(SNDCTL_SEQ_SYNC)
9022#error No open sound system MIDI interface
9023#endif
9024
f5818d2f
AJ
9025 ;
9026 return 0;
9027}
9028_ACEOF
9029rm -f conftest.$ac_objext
daa2886c 9030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
9031 (eval $ac_compile) 2>&5
9032 ac_status=$?
daa2886c 9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9034 (exit $ac_status); } &&
9035 { ac_try='test -s conftest.$ac_objext'
daa2886c 9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
daa2886c 9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9040 (exit $ac_status); }; }; then
338d3b2d
EP
9041 ac_cv_c_opensoundsystem_midi="yes"
9042else
f5818d2f
AJ
9043 echo "$as_me: failed program was:" >&5
9044cat conftest.$ac_ext >&5
9045ac_cv_c_opensoundsystem_midi="no"
338d3b2d 9046fi
f5818d2f 9047rm -f conftest.$ac_objext conftest.$ac_ext
338d3b2d 9048fi
daa2886c 9049echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
f5818d2f 9050echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
338d3b2d
EP
9051
9052if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9053then
f5818d2f 9054
daa2886c 9055cat >>confdefs.h <<\_ACEOF
338d3b2d 9056#define HAVE_OSS_MIDI 1
daa2886c 9057_ACEOF
338d3b2d
EP
9058
9059fi
9060
9b0ba7ca
CM
9061# Extract the first word of "artsc-config", so it can be a program name with args.
9062set dummy artsc-config; ac_word=$2
daa2886c 9063echo "$as_me:$LINENO: checking for $ac_word" >&5
9b0ba7ca
CM
9064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9065if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067else
9068 case $ARTSCCONFIG in
9069 [\\/]* | ?:[\\/]*)
9070 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9071 ;;
9072 *)
daa2886c
AJ
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074for as_dir in $PATH
9075do
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9080 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9083 fi
9084done
9b0ba7ca
CM
9085done
9086
9087 ;;
9088esac
9089fi
9090ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9091
9092if test -n "$ARTSCCONFIG"; then
daa2886c 9093 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9b0ba7ca
CM
9094echo "${ECHO_T}$ARTSCCONFIG" >&6
9095else
daa2886c 9096 echo "$as_me:$LINENO: result: no" >&5
9b0ba7ca
CM
9097echo "${ECHO_T}no" >&6
9098fi
9099
daa2886c 9100echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9b0ba7ca
CM
9101echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9102if test "${ac_cv_c_artsserver+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104else
9105 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9106 then
9107 ac_cv_c_artsserver=no
9108 else
9109 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9110 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9111 ac_cv_c_artsserver=no
9112 save_CFLAGS="$CFLAGS"
9113 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9114 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9115#line $LINENO "configure"
9b0ba7ca
CM
9116#include "confdefs.h"
9117
9118 #include <artsc.h>
9119
daa2886c
AJ
9120#ifdef F77_DUMMY_MAIN
9121# ifdef __cplusplus
9122 extern "C"
9123# endif
9124 int F77_DUMMY_MAIN() { return 1; }
9125#endif
9b0ba7ca
CM
9126int
9127main ()
9128{
9129
9130 arts_stream_t stream;
9131
9132 ;
9133 return 0;
9134}
9135_ACEOF
9136rm -f conftest.$ac_objext
daa2886c 9137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9b0ba7ca
CM
9138 (eval $ac_compile) 2>&5
9139 ac_status=$?
daa2886c 9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9b0ba7ca
CM
9141 (exit $ac_status); } &&
9142 { ac_try='test -s conftest.$ac_objext'
daa2886c 9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9b0ba7ca
CM
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
daa2886c 9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9b0ba7ca
CM
9147 (exit $ac_status); }; }; then
9148
9149 ac_cv_c_artsserver=yes
9150
9151else
9152 echo "$as_me: failed program was:" >&5
9153cat conftest.$ac_ext >&5
9154fi
9155rm -f conftest.$ac_objext conftest.$ac_ext
9156 CFLAGS="$save_CFLAGS"
9157 fi
9158fi
daa2886c 9159echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9b0ba7ca
CM
9160echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9161
9162if test "$ac_cv_c_artsserver" = "yes"
9163then
9164 ARTSLIBS=$ARTSC_LIBS
9165
9166 ARTSINCL=$ARTSC_CFLAGS
9167
daa2886c
AJ
9168
9169
9170cat >>confdefs.h <<\_ACEOF
9b0ba7ca 9171#define HAVE_ARTS 1
daa2886c 9172_ACEOF
9b0ba7ca
CM
9173
9174fi
9175
daa2886c
AJ
9176
9177echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
f5818d2f
AJ
9178echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9179if test "${ac_cv_mmap64_works+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
0f6cfbc7
MM
9181else
9182 if test "$cross_compiling" = yes; then
9183 ac_cv_mmap64_works="no"
9184else
f5818d2f 9185 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9186#line $LINENO "configure"
0f6cfbc7
MM
9187#include "confdefs.h"
9188
9189 #define _FILE_OFFSET_BITS 64
9190 #include <stdio.h>
9191 #include <unistd.h>
9192 #include <fcntl.h>
9193 #include <sys/mman.h>
9194 #include <errno.h>
9195
9196 int main(int argc,char **argv) {
9197 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9198 if (fd == -1) exit(1);
9199
9200 unlink("conftest.map");
9201
9202 write(fd,"test",4);
9203
9204 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9205 (errno == EINVAL)
9206 ) {
9207 exit(1);
9208 }
9209 close(fd);
9210 fprintf(stderr,"success!\n");
9211 exit(0);
9212 }
9213
daa2886c 9214
f5818d2f
AJ
9215_ACEOF
9216rm -f conftest$ac_exeext
daa2886c 9217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
9218 (eval $ac_link) 2>&5
9219 ac_status=$?
daa2886c 9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
daa2886c 9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9226 (exit $ac_status); }; }; then
0f6cfbc7
MM
9227 ac_cv_mmap64_works="yes"
9228else
f5818d2f
AJ
9229 echo "$as_me: program exited with status $ac_status" >&5
9230echo "$as_me: failed program was:" >&5
9231cat conftest.$ac_ext >&5
daa2886c 9232( exit $ac_status )
f5818d2f 9233ac_cv_mmap64_works="no"
0f6cfbc7 9234fi
f5818d2f 9235rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
0f6cfbc7 9236fi
0f6cfbc7 9237fi
daa2886c 9238echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
f5818d2f 9239echo "${ECHO_T}$ac_cv_mmap64_works" >&6
0f6cfbc7
MM
9240
9241if test "$ac_cv_mmap64_works" = "yes"
9242then
f5818d2f 9243
daa2886c 9244cat >>confdefs.h <<\_ACEOF
0f6cfbc7 9245#define _FILE_OFFSET_BITS 64
daa2886c 9246_ACEOF
0f6cfbc7
MM
9247
9248fi
9249
daa2886c 9250
4f8c37b4
AJ
9251if test "x${GCC}" = "xyes"
9252then
9253 CFLAGS="$CFLAGS -Wall"
daa2886c 9254 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
f5818d2f
AJ
9255echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9256if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
4f8c37b4
AJ
9258else
9259 if test "$cross_compiling" = yes; then
9260 ac_cv_c_gcc_strength_bug="yes"
9261else
f5818d2f 9262 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9263#line $LINENO "configure"
4f8c37b4
AJ
9264#include "confdefs.h"
9265
5aee80f6 9266int L[4] = {0,1,2,3};
4f8c37b4 9267int main(void) {
d2e1c1a4 9268 static int Array[3];
4f8c37b4
AJ
9269 unsigned int B = 3;
9270 int i;
d2e1c1a4 9271 for(i=0; i<B; i++) Array[i] = i - 3;
5aee80f6
EP
9272 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9273 L[i] = 4;
f5818d2f 9274
5aee80f6 9275 exit( Array[1] != -2 || L[2] != 3);
4f8c37b4 9276}
f5818d2f
AJ
9277_ACEOF
9278rm -f conftest$ac_exeext
daa2886c 9279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
9280 (eval $ac_link) 2>&5
9281 ac_status=$?
daa2886c 9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
daa2886c 9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9288 (exit $ac_status); }; }; then
4f8c37b4
AJ
9289 ac_cv_c_gcc_strength_bug="no"
9290else
f5818d2f
AJ
9291 echo "$as_me: program exited with status $ac_status" >&5
9292echo "$as_me: failed program was:" >&5
9293cat conftest.$ac_ext >&5
daa2886c 9294( exit $ac_status )
f5818d2f 9295ac_cv_c_gcc_strength_bug="yes"
4f8c37b4 9296fi
f5818d2f 9297rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4f8c37b4 9298fi
4f8c37b4 9299fi
daa2886c 9300echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
f5818d2f 9301echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
4f8c37b4
AJ
9302 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9303 then
9304 CFLAGS="$CFLAGS -fno-strength-reduce"
9305 fi
f9b94cb9 9306
daa2886c 9307 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
f5818d2f
AJ
9308echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9309if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
f9b94cb9 9311else
67e8dc68
AJ
9312 ac_wine_try_cflags_saved=$CFLAGS
9313CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9314cat >conftest.$ac_ext <<_ACEOF
daa2886c 9315#line $LINENO "configure"
f9b94cb9
AJ
9316#include "confdefs.h"
9317
daa2886c
AJ
9318#ifdef F77_DUMMY_MAIN
9319# ifdef __cplusplus
9320 extern "C"
9321# endif
9322 int F77_DUMMY_MAIN() { return 1; }
9323#endif
f5818d2f
AJ
9324int
9325main ()
9326{
67e8dc68 9327
f5818d2f
AJ
9328 ;
9329 return 0;
9330}
9331_ACEOF
67e8dc68
AJ
9332rm -f conftest.$ac_objext conftest$ac_exeext
9333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334 (eval $ac_link) 2>&5
f5818d2f 9335 ac_status=$?
daa2886c 9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9337 (exit $ac_status); } &&
67e8dc68 9338 { ac_try='test -s conftest$ac_exeext'
daa2886c 9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
daa2886c 9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9343 (exit $ac_status); }; }; then
f9b94cb9
AJ
9344 ac_cv_c_gcc_stack_boundary="yes"
9345else
f5818d2f
AJ
9346 echo "$as_me: failed program was:" >&5
9347cat conftest.$ac_ext >&5
9348ac_cv_c_gcc_stack_boundary="no"
f9b94cb9 9349fi
67e8dc68
AJ
9350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9351CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 9352fi
daa2886c 9353echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
f5818d2f 9354echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
f9b94cb9
AJ
9355 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9356 then
9357 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9358 fi
4f8c37b4
AJ
9359fi
9360
daa2886c
AJ
9361
9362echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
f5818d2f
AJ
9363echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
9364if test "${ac_cv_c_type_in_def+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
c77cbbcd 9366else
67e8dc68 9367 ac_try_asm_link_saved_libs=$LIBS
c77cbbcd
DP
9368LIBS="conftest_asm.s $LIBS"
9369cat > conftest_asm.s <<EOF
9370 .globl _ac_test
9371 .def _ac_test; .scl 2; .type 32; .endef
9372_ac_test:
9373 .long 0
9374EOF
f5818d2f 9375cat >conftest.$ac_ext <<_ACEOF
daa2886c 9376#line $LINENO "configure"
c77cbbcd
DP
9377#include "confdefs.h"
9378
daa2886c
AJ
9379#ifdef F77_DUMMY_MAIN
9380# ifdef __cplusplus
9381 extern "C"
9382# endif
9383 int F77_DUMMY_MAIN() { return 1; }
9384#endif
f5818d2f
AJ
9385int
9386main ()
9387{
c77cbbcd 9388
f5818d2f
AJ
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 9394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
9395 (eval $ac_link) 2>&5
9396 ac_status=$?
daa2886c 9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9398 (exit $ac_status); } &&
9399 { ac_try='test -s conftest$ac_exeext'
daa2886c 9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
daa2886c 9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9404 (exit $ac_status); }; }; then
c77cbbcd
DP
9405 ac_cv_c_type_in_def="yes"
9406else
f5818d2f
AJ
9407 echo "$as_me: failed program was:" >&5
9408cat conftest.$ac_ext >&5
9409ac_cv_c_type_in_def="no"
c77cbbcd 9410fi
f5818d2f 9411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
67e8dc68
AJ
9412rm -f conftest_asm.s
9413LIBS=$ac_try_asm_link_saved_libs
c77cbbcd 9414fi
daa2886c 9415echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
f5818d2f 9416echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
c77cbbcd
DP
9417if test "$ac_cv_c_type_in_def" = "yes"
9418then
f5818d2f 9419
daa2886c 9420cat >>confdefs.h <<\_ACEOF
c77cbbcd 9421#define NEED_TYPE_IN_DEF 1
daa2886c 9422_ACEOF
c77cbbcd
DP
9423
9424fi
c77cbbcd 9425
daa2886c
AJ
9426
9427echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
f5818d2f
AJ
9428echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9429if test "${ac_cv_c_extern_prefix+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
8cc3a5e4 9431else
67e8dc68 9432 ac_try_asm_link_saved_libs=$LIBS
8cc3a5e4
AJ
9433LIBS="conftest_asm.s $LIBS"
9434cat > conftest_asm.s <<EOF
9435 .globl _ac_test
9436_ac_test:
9437 .long 0
9438EOF
f5818d2f 9439cat >conftest.$ac_ext <<_ACEOF
daa2886c 9440#line $LINENO "configure"
8cc3a5e4
AJ
9441#include "confdefs.h"
9442extern int ac_test;
daa2886c
AJ
9443#ifdef F77_DUMMY_MAIN
9444# ifdef __cplusplus
9445 extern "C"
9446# endif
9447 int F77_DUMMY_MAIN() { return 1; }
9448#endif
f5818d2f
AJ
9449int
9450main ()
9451{
8cc3a5e4 9452if (ac_test) return 1
f5818d2f
AJ
9453 ;
9454 return 0;
9455}
9456_ACEOF
fa3a5360
AJ
9457rm -f conftest.$ac_objext conftest$ac_exeext
9458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
9463 { ac_try='test -s conftest$ac_exeext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 ac_cv_c_extern_prefix="yes"
9470else
9471 echo "$as_me: failed program was:" >&5
9472cat conftest.$ac_ext >&5
9473ac_cv_c_extern_prefix="no"
9474fi
9475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
67e8dc68
AJ
9476rm -f conftest_asm.s
9477LIBS=$ac_try_asm_link_saved_libs
fa3a5360
AJ
9478fi
9479echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9480echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9481if test "$ac_cv_c_extern_prefix" = "yes"
9482then
9483
9484cat >>confdefs.h <<\_ACEOF
9485#define NEED_UNDERSCORE_PREFIX 1
9486_ACEOF
9487
9488fi
9489
9490
9491echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9492echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9493if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495else
67e8dc68 9496 ac_try_asm_link_saved_libs=$LIBS
fa3a5360 9497LIBS="conftest_asm.s $LIBS"
fa3a5360
AJ
9498cat > conftest_asm.s <<EOF
9499 .globl _ac_test@0
9500_ac_test@0:
fa3a5360
AJ
9501 .globl ac_test@0
9502ac_test@0:
9503EOF
fa3a5360
AJ
9504cat >conftest.$ac_ext <<_ACEOF
9505#line $LINENO "configure"
9506#include "confdefs.h"
9507extern void __attribute__((__stdcall__)) ac_test(void);
9508#ifdef F77_DUMMY_MAIN
9509# ifdef __cplusplus
9510 extern "C"
9511# endif
9512 int F77_DUMMY_MAIN() { return 1; }
9513#endif
9514int
9515main ()
9516{
67e8dc68 9517ac_test()
fa3a5360
AJ
9518 ;
9519 return 0;
9520}
9521_ACEOF
9522rm -f conftest.$ac_objext conftest$ac_exeext
9523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_c_stdcall_decoration="yes"
9535else
9536 echo "$as_me: failed program was:" >&5
9537cat conftest.$ac_ext >&5
9538ac_cv_c_stdcall_decoration="no"
9539fi
9540rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
67e8dc68
AJ
9541rm -f conftest_asm.s
9542LIBS=$ac_try_asm_link_saved_libs
fa3a5360
AJ
9543fi
9544echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9545echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9546if test "$ac_cv_c_stdcall_decoration" = "yes"
9547then
9548
9549cat >>confdefs.h <<\_ACEOF
9550#define NEED_STDCALL_DECORATION 1
9551_ACEOF
9552
9553fi
9554
9555
9556echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9557echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9558if test "${ac_cv_c_asm_string+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560else
67e8dc68 9561 ac_try_asm_link_saved_libs=$LIBS
fa3a5360
AJ
9562LIBS="conftest_asm.s $LIBS"
9563cat > conftest_asm.s <<EOF
9564 .string "test"
9565EOF
9566cat >conftest.$ac_ext <<_ACEOF
9567#line $LINENO "configure"
9568#include "confdefs.h"
9569
9570#ifdef F77_DUMMY_MAIN
9571# ifdef __cplusplus
9572 extern "C"
9573# endif
9574 int F77_DUMMY_MAIN() { return 1; }
9575#endif
9576int
9577main ()
9578{
9579
9580 ;
9581 return 0;
9582}
9583_ACEOF
9584rm -f conftest.$ac_objext conftest$ac_exeext
9585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9586 (eval $ac_link) 2>&5
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -s conftest$ac_exeext'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 (eval $ac_try) 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; }; then
9596 ac_cv_c_asm_string="yes"
9597else
9598 echo "$as_me: failed program was:" >&5
9599cat conftest.$ac_ext >&5
9600ac_cv_c_asm_string="no"
9601fi
9602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
67e8dc68
AJ
9603rm -f conftest_asm.s
9604LIBS=$ac_try_asm_link_saved_libs
fa3a5360
AJ
9605fi
9606echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9607echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9608if test "$ac_cv_c_asm_string" = "yes"
9609then
9610
9611cat >>confdefs.h <<\_ACEOF
9612#define HAVE_ASM_STRING 1
9613_ACEOF
9614
9615fi
9616
9617
9618LDSHARED=""
9619LDDLLFLAGS=""
9620DLLIBS=""
9621
fc01b729
AJ
9622case $host_os in
9623 cygwin*|mingw32*)
9624 if test -n "$ac_tool_prefix"; then
9625 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9626set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
fa3a5360
AJ
9627echo "$as_me:$LINENO: checking for $ac_word" >&5
9628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9629if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9631else
9632 if test -n "$DLLWRAP"; then
9633 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9634else
9635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc01b729 9642 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
fa3a5360
AJ
9643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 break 2
9645 fi
9646done
9647done
9648
fa3a5360
AJ
9649fi
9650fi
9651DLLWRAP=$ac_cv_prog_DLLWRAP
9652if test -n "$DLLWRAP"; then
9653 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9654echo "${ECHO_T}$DLLWRAP" >&6
9655else
9656 echo "$as_me:$LINENO: result: no" >&5
9657echo "${ECHO_T}no" >&6
9658fi
9659
fc01b729
AJ
9660fi
9661if test -z "$ac_cv_prog_DLLWRAP"; then
9662 ac_ct_DLLWRAP=$DLLWRAP
9663 # Extract the first word of "dllwrap", so it can be a program name with args.
9664set dummy dllwrap; ac_word=$2
9665echo "$as_me:$LINENO: checking for $ac_word" >&5
9666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9667if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9669else
9670 if test -n "$ac_ct_DLLWRAP"; then
9671 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9672else
9673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674for as_dir in $PATH
9675do
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9680 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9683 fi
9684done
9685done
9686
9687 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
9688fi
9689fi
9690ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
9691if test -n "$ac_ct_DLLWRAP"; then
9692 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
9693echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
9694else
9695 echo "$as_me:$LINENO: result: no" >&5
9696echo "${ECHO_T}no" >&6
9697fi
9698
9699 DLLWRAP=$ac_ct_DLLWRAP
9700else
9701 DLLWRAP="$ac_cv_prog_DLLWRAP"
9702fi
9703
9704 if test "$DLLWRAP" = "false"; then
fa3a5360 9705 LIBEXT="a"
fc01b729
AJ
9706 else
9707 LIBEXT="dll"
fa3a5360
AJ
9708 fi
9709 ;;
9710 *)
9711
9712for ac_header in dlfcn.h
9713do
9714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9715if eval "test \"\${$as_ac_Header+set}\" = set"; then
9716 echo "$as_me:$LINENO: checking for $ac_header" >&5
9717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9718if eval "test \"\${$as_ac_Header+set}\" = set"; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9720fi
9721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9723else
9724 # Is the header compilable?
9725echo "$as_me:$LINENO: checking $ac_header usability" >&5
9726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9727cat >conftest.$ac_ext <<_ACEOF
9728#line $LINENO "configure"
9729#include "confdefs.h"
9730$ac_includes_default
9731#include <$ac_header>
9732_ACEOF
9733rm -f conftest.$ac_objext
9734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9735 (eval $ac_compile) 2>&5
f5818d2f 9736 ac_status=$?
daa2886c 9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9738 (exit $ac_status); } &&
fa3a5360 9739 { ac_try='test -s conftest.$ac_objext'
daa2886c 9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
daa2886c 9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9744 (exit $ac_status); }; }; then
fa3a5360 9745 ac_header_compiler=yes
8cc3a5e4 9746else
f5818d2f
AJ
9747 echo "$as_me: failed program was:" >&5
9748cat conftest.$ac_ext >&5
fa3a5360 9749ac_header_compiler=no
8cc3a5e4 9750fi
fa3a5360
AJ
9751rm -f conftest.$ac_objext conftest.$ac_ext
9752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9753echo "${ECHO_T}$ac_header_compiler" >&6
f5818d2f 9754
fa3a5360
AJ
9755# Is the header present?
9756echo "$as_me:$LINENO: checking $ac_header presence" >&5
9757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9758cat >conftest.$ac_ext <<_ACEOF
9759#line $LINENO "configure"
9760#include "confdefs.h"
9761#include <$ac_header>
daa2886c 9762_ACEOF
fa3a5360
AJ
9763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9765 ac_status=$?
9766 egrep -v '^ *\+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } >/dev/null; then
9771 if test -s conftest.err; then
9772 ac_cpp_err=$ac_c_preproc_warn_flag
9773 else
9774 ac_cpp_err=
9775 fi
9776else
9777 ac_cpp_err=yes
9778fi
9779if test -z "$ac_cpp_err"; then
9780 ac_header_preproc=yes
9781else
9782 echo "$as_me: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 ac_header_preproc=no
9785fi
9786rm -f conftest.err conftest.$ac_ext
9787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9788echo "${ECHO_T}$ac_header_preproc" >&6
8cc3a5e4 9789
fa3a5360
AJ
9790# So? What about this header?
9791case $ac_header_compiler:$ac_header_preproc in
9792 yes:no )
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9797 no:yes )
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9801echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9804esac
9805echo "$as_me:$LINENO: checking for $ac_header" >&5
9806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9807if eval "test \"\${$as_ac_Header+set}\" = set"; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809else
9810 eval "$as_ac_Header=$ac_header_preproc"
8cc3a5e4 9811fi
fa3a5360
AJ
9812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8cc3a5e4 9814
fa3a5360
AJ
9815fi
9816if test `eval echo '${'$as_ac_Header'}'` = yes; then
9817 cat >>confdefs.h <<_ACEOF
9818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9819_ACEOF
daa2886c 9820
fa3a5360
AJ
9821for ac_func in dlopen
9822do
9823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9824echo "$as_me:$LINENO: checking for $ac_func" >&5
9825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9826if eval "test \"\${$as_ac_var+set}\" = set"; then
f5818d2f 9827 echo $ECHO_N "(cached) $ECHO_C" >&6
93a5b868 9828else
fa3a5360 9829 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9830#line $LINENO "configure"
93a5b868 9831#include "confdefs.h"
fa3a5360
AJ
9832/* System header to define __stub macros and hopefully few prototypes,
9833 which can conflict with char $ac_func (); below. */
9834#include <assert.h>
9835/* Override any gcc2 internal prototype to avoid an error. */
9836#ifdef __cplusplus
9837extern "C"
9838#endif
9839/* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9841char $ac_func ();
9842char (*f) ();
9843
daa2886c
AJ
9844#ifdef F77_DUMMY_MAIN
9845# ifdef __cplusplus
9846 extern "C"
9847# endif
9848 int F77_DUMMY_MAIN() { return 1; }
9849#endif
f5818d2f
AJ
9850int
9851main ()
9852{
fa3a5360
AJ
9853/* The GNU C library defines this for functions which it implements
9854 to always fail with ENOSYS. Some functions are actually named
9855 something starting with __ and the normal name is an alias. */
9856#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9857choke me
9858#else
9859f = $ac_func;
9860#endif
9861
f5818d2f
AJ
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 9867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
9868 (eval $ac_link) 2>&5
9869 ac_status=$?
daa2886c 9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9871 (exit $ac_status); } &&
9872 { ac_try='test -s conftest$ac_exeext'
daa2886c 9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9874 (eval $ac_try) 2>&5
9875 ac_status=$?
daa2886c 9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9877 (exit $ac_status); }; }; then
fa3a5360 9878 eval "$as_ac_var=yes"
93a5b868 9879else
f5818d2f
AJ
9880 echo "$as_me: failed program was:" >&5
9881cat conftest.$ac_ext >&5
fa3a5360 9882eval "$as_ac_var=no"
93a5b868 9883fi
f5818d2f 9884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
93a5b868 9885fi
fa3a5360
AJ
9886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9888if test `eval echo '${'$as_ac_var'}'` = yes; then
9889 cat >>confdefs.h <<_ACEOF
9890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 9891_ACEOF
93a5b868 9892
fa3a5360
AJ
9893else
9894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
f5818d2f 9897 echo $ECHO_N "(cached) $ECHO_C" >&6
0623a6f3 9898else
fa3a5360
AJ
9899 ac_check_lib_save_LIBS=$LIBS
9900LIBS="-ldl $LIBS"
f5818d2f 9901cat >conftest.$ac_ext <<_ACEOF
daa2886c 9902#line $LINENO "configure"
0623a6f3
AJ
9903#include "confdefs.h"
9904
fa3a5360
AJ
9905/* Override any gcc2 internal prototype to avoid an error. */
9906#ifdef __cplusplus
9907extern "C"
9908#endif
9909/* We use char because int might match the return type of a gcc2
9910 builtin and then its argument prototype would still apply. */
9911char dlopen ();
daa2886c
AJ
9912#ifdef F77_DUMMY_MAIN
9913# ifdef __cplusplus
9914 extern "C"
9915# endif
9916 int F77_DUMMY_MAIN() { return 1; }
9917#endif
f5818d2f
AJ
9918int
9919main ()
9920{
fa3a5360 9921dlopen ();
f5818d2f
AJ
9922 ;
9923 return 0;
9924}
9925_ACEOF
9926rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 9927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
9928 (eval $ac_link) 2>&5
9929 ac_status=$?
daa2886c 9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9931 (exit $ac_status); } &&
9932 { ac_try='test -s conftest$ac_exeext'
daa2886c 9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
daa2886c 9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9937 (exit $ac_status); }; }; then
fa3a5360 9938 ac_cv_lib_dl_dlopen=yes
0623a6f3 9939else
f5818d2f
AJ
9940 echo "$as_me: failed program was:" >&5
9941cat conftest.$ac_ext >&5
fa3a5360 9942ac_cv_lib_dl_dlopen=no
0623a6f3 9943fi
f5818d2f 9944rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fa3a5360 9945LIBS=$ac_check_lib_save_LIBS
0623a6f3 9946fi
fa3a5360
AJ
9947echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9948echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9949if test $ac_cv_lib_dl_dlopen = yes; then
f5818d2f 9950
daa2886c 9951cat >>confdefs.h <<\_ACEOF
fa3a5360 9952#define HAVE_DLOPEN 1
daa2886c 9953_ACEOF
0623a6f3 9954
fa3a5360
AJ
9955 DLLIBS="-ldl"
9956else
9957 LIBEXT="a"
0623a6f3
AJ
9958fi
9959
fa3a5360 9960fi
466ae143
AJ
9961done
9962
466ae143 9963else
fa3a5360 9964 LIBEXT="a"
466ae143
AJ
9965fi
9966
fa3a5360
AJ
9967done
9968
9969
9970 if test "$LIBEXT" = "so"
9971 then
466ae143 9972 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
f5818d2f
AJ
9973echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
9974if test "${ac_cv_c_dll_gnuelf+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
7e6ae4ba 9976else
67e8dc68
AJ
9977 ac_wine_try_cflags_saved=$CFLAGS
9978CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
9979cat >conftest.$ac_ext <<_ACEOF
daa2886c 9980#line $LINENO "configure"
7e6ae4ba
AJ
9981#include "confdefs.h"
9982
daa2886c
AJ
9983#ifdef F77_DUMMY_MAIN
9984# ifdef __cplusplus
9985 extern "C"
9986# endif
9987 int F77_DUMMY_MAIN() { return 1; }
9988#endif
f5818d2f
AJ
9989int
9990main ()
9991{
67e8dc68 9992
f5818d2f
AJ
9993 ;
9994 return 0;
9995}
9996_ACEOF
9997rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 9998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
9999 (eval $ac_link) 2>&5
10000 ac_status=$?
daa2886c 10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10002 (exit $ac_status); } &&
10003 { ac_try='test -s conftest$ac_exeext'
daa2886c 10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
daa2886c 10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10008 (exit $ac_status); }; }; then
37e5e7f4 10009 ac_cv_c_dll_gnuelf="yes"
7e6ae4ba 10010else
f5818d2f
AJ
10011 echo "$as_me: failed program was:" >&5
10012cat conftest.$ac_ext >&5
10013ac_cv_c_dll_gnuelf="no"
7e6ae4ba 10014fi
f5818d2f 10015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
67e8dc68 10016CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 10017fi
daa2886c 10018echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
f5818d2f 10019echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
466ae143
AJ
10020 if test "$ac_cv_c_dll_gnuelf" = "yes"
10021 then
10022 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10023 LDDLLFLAGS="-Wl,-Bsymbolic"
10024 else
10025 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
f5818d2f
AJ
10026echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10027if test "${ac_cv_c_dll_unixware+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
4b992b0f 10029else
67e8dc68
AJ
10030 ac_wine_try_cflags_saved=$CFLAGS
10031CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10032cat >conftest.$ac_ext <<_ACEOF
daa2886c 10033#line $LINENO "configure"
4b992b0f
TV
10034#include "confdefs.h"
10035
daa2886c
AJ
10036#ifdef F77_DUMMY_MAIN
10037# ifdef __cplusplus
10038 extern "C"
10039# endif
10040 int F77_DUMMY_MAIN() { return 1; }
10041#endif
f5818d2f
AJ
10042int
10043main ()
10044{
67e8dc68 10045
f5818d2f
AJ
10046 ;
10047 return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 10051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10052 (eval $ac_link) 2>&5
10053 ac_status=$?
daa2886c 10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10055 (exit $ac_status); } &&
10056 { ac_try='test -s conftest$ac_exeext'
daa2886c 10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
daa2886c 10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10061 (exit $ac_status); }; }; then
e977d6ca 10062 ac_cv_c_dll_unixware="yes"
4b992b0f 10063else
f5818d2f
AJ
10064 echo "$as_me: failed program was:" >&5
10065cat conftest.$ac_ext >&5
10066ac_cv_c_dll_unixware="no"
4b992b0f 10067fi
f5818d2f 10068rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
67e8dc68 10069CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 10070fi
daa2886c 10071echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
f5818d2f 10072echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
466ae143
AJ
10073 if test "$ac_cv_c_dll_unixware" = "yes"
10074 then
10075 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10076 LDDLLFLAGS="-Wl,-B,symbolic"
10077 fi
10078 fi
fa3a5360
AJ
10079 fi
10080 ;;
10081esac
7e6ae4ba 10082
d48ca948 10083if test "$LIBEXT" = "a"; then
daa2886c 10084 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
f5818d2f
AJ
10085It is currently not possible to build Wine without shared library
10086(.so) support to allow transparent switch between .so and .dll files.
10087If you are using Linux, you will need a newer binutils.
10088" >&5
10089echo "$as_me: error: could not find a way to build shared libraries.
10090It is currently not possible to build Wine without shared library
10091(.so) support to allow transparent switch between .so and .dll files.
10092If you are using Linux, you will need a newer binutils.
10093" >&2;}
10094 { (exit 1); exit 1; }; }
d48ca948
HT
10095fi
10096
0adad95d 10097DLLFLAGS=""
0adad95d 10098
318f4cef 10099if test "$LIBEXT" = "so"; then
318f4cef 10100 DLLFLAGS="-fPIC"
c1bfca04 10101 DLLEXT=".so"
d48ca948
HT
10102elif test "$LIBEXT" = "dll"; then
10103 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
c1bfca04 10104 DLLEXT=""
a9ee4a2e
PS
10105fi
10106
fc01b729
AJ
10107case $build_os in
10108 cygwin*|mingw32*)
10109 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" ;;
10110 *)
10111 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" ;;
10112esac
10113
daa2886c
AJ
10114
10115
10116
10117
10118
10119
10120
10121
10122
67e8dc68
AJ
10123if test "$LIBEXT" = "so"
10124then
10125 # Extract the first word of "ldd", so it can be a program name with args.
10126set dummy ldd; ac_word=$2
10127echo "$as_me:$LINENO: checking for $ac_word" >&5
10128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10129if test "${ac_cv_path_LDD+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131else
10132 case $LDD in
10133 [\\/]* | ?:[\\/]*)
10134 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10135 ;;
10136 *)
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138for as_dir in /sbin:/usr/sbin:$PATH
10139do
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10144 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 break 2
10147 fi
10148done
10149done
10150
10151 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10152 ;;
10153esac
10154fi
10155LDD=$ac_cv_path_LDD
10156
10157if test -n "$LDD"; then
10158 echo "$as_me:$LINENO: result: $LDD" >&5
10159echo "${ECHO_T}$LDD" >&6
10160else
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
10163fi
10164
daa2886c 10165
67e8dc68
AJ
10166echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10167echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10168if test "${ac_cv_lib_soname_X11+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171 ac_get_soname_save_LIBS=$LIBS
10172LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10174#line $LINENO "configure"
10175#include "confdefs.h"
fa3a5360 10176
67e8dc68
AJ
10177/* Override any gcc2 internal prototype to avoid an error. */
10178#ifdef __cplusplus
10179extern "C"
10180#endif
10181/* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */
10183char XCreateWindow ();
10184#ifdef F77_DUMMY_MAIN
10185# ifdef __cplusplus
10186 extern "C"
10187# endif
10188 int F77_DUMMY_MAIN() { return 1; }
10189#endif
10190int
10191main ()
10192{
10193XCreateWindow ();
10194 ;
10195 return 0;
10196}
10197_ACEOF
10198rm -f conftest.$ac_objext conftest$ac_exeext
10199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200 (eval $ac_link) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10211 if test "x$ac_cv_lib_soname_X11" = "x"
10212 then
10213 ac_cv_lib_soname_X11="libX11.so"
10214 fi
10215else
10216 echo "$as_me: failed program was:" >&5
10217cat conftest.$ac_ext >&5
10218ac_cv_lib_soname_X11="libX11.so"
10219fi
10220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10221 LIBS=$ac_get_soname_save_LIBS
10222fi
10223echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10224echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10225if test "x$ac_cv_lib_soname_X11" != xNONE
10226then
10227cat >>confdefs.h <<_ACEOF
10228#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10229_ACEOF
10230fi
0adad95d 10231
67e8dc68
AJ
10232echo "$as_me:$LINENO: checking for -lXext soname" >&5
10233echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10234if test "${ac_cv_lib_soname_Xext+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236else
10237 ac_get_soname_save_LIBS=$LIBS
10238LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10239 cat >conftest.$ac_ext <<_ACEOF
10240#line $LINENO "configure"
10241#include "confdefs.h"
10242
10243/* Override any gcc2 internal prototype to avoid an error. */
10244#ifdef __cplusplus
10245extern "C"
10246#endif
10247/* We use char because int might match the return type of a gcc2
10248 builtin and then its argument prototype would still apply. */
10249char XextCreateExtension ();
10250#ifdef F77_DUMMY_MAIN
10251# ifdef __cplusplus
10252 extern "C"
10253# endif
10254 int F77_DUMMY_MAIN() { return 1; }
10255#endif
10256int
10257main ()
10258{
10259XextCreateExtension ();
10260 ;
10261 return 0;
10262}
10263_ACEOF
10264rm -f conftest.$ac_objext conftest$ac_exeext
10265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266 (eval $ac_link) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -s conftest$ac_exeext'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10277 if test "x$ac_cv_lib_soname_Xext" = "x"
10278 then
10279 ac_cv_lib_soname_Xext="libXext.so"
10280 fi
10281else
10282 echo "$as_me: failed program was:" >&5
10283cat conftest.$ac_ext >&5
10284ac_cv_lib_soname_Xext="libXext.so"
10285fi
10286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_get_soname_save_LIBS
10288fi
10289echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10290echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10291if test "x$ac_cv_lib_soname_Xext" != xNONE
10292then
10293cat >>confdefs.h <<_ACEOF
10294#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10295_ACEOF
10296fi
10297
10298echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10299echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10300if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303 ac_get_soname_save_LIBS=$LIBS
10304LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10305 cat >conftest.$ac_ext <<_ACEOF
10306#line $LINENO "configure"
10307#include "confdefs.h"
10308
10309/* Override any gcc2 internal prototype to avoid an error. */
10310#ifdef __cplusplus
10311extern "C"
10312#endif
10313/* We use char because int might match the return type of a gcc2
10314 builtin and then its argument prototype would still apply. */
10315char XRenderQueryExtension ();
10316#ifdef F77_DUMMY_MAIN
10317# ifdef __cplusplus
10318 extern "C"
10319# endif
10320 int F77_DUMMY_MAIN() { return 1; }
10321#endif
10322int
10323main ()
10324{
10325XRenderQueryExtension ();
10326 ;
10327 return 0;
10328}
10329_ACEOF
10330rm -f conftest.$ac_objext conftest$ac_exeext
10331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332 (eval $ac_link) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10343 if test "x$ac_cv_lib_soname_Xrender" = "x"
10344 then
10345 ac_cv_lib_soname_Xrender="libXrender.so"
10346 fi
10347else
10348 echo "$as_me: failed program was:" >&5
10349cat conftest.$ac_ext >&5
10350ac_cv_lib_soname_Xrender="libXrender.so"
10351fi
10352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_get_soname_save_LIBS
10354fi
10355echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10356echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10357if test "x$ac_cv_lib_soname_Xrender" != xNONE
10358then
10359cat >>confdefs.h <<_ACEOF
10360#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10361_ACEOF
10362fi
10363
10364echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10365echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10366if test "${ac_cv_lib_soname_freetype+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368else
10369 ac_get_soname_save_LIBS=$LIBS
10370LIBS="-lfreetype $X_LIBS $LIBS"
10371 cat >conftest.$ac_ext <<_ACEOF
10372#line $LINENO "configure"
10373#include "confdefs.h"
10374
10375/* Override any gcc2 internal prototype to avoid an error. */
10376#ifdef __cplusplus
10377extern "C"
10378#endif
10379/* We use char because int might match the return type of a gcc2
10380 builtin and then its argument prototype would still apply. */
10381char FT_Init_FreeType ();
10382#ifdef F77_DUMMY_MAIN
10383# ifdef __cplusplus
10384 extern "C"
10385# endif
10386 int F77_DUMMY_MAIN() { return 1; }
10387#endif
10388int
10389main ()
10390{
10391FT_Init_FreeType ();
10392 ;
10393 return 0;
10394}
10395_ACEOF
10396rm -f conftest.$ac_objext conftest$ac_exeext
10397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398 (eval $ac_link) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try='test -s conftest$ac_exeext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10409 if test "x$ac_cv_lib_soname_freetype" = "x"
10410 then
10411 ac_cv_lib_soname_freetype="libfreetype.so"
10412 fi
10413else
10414 echo "$as_me: failed program was:" >&5
10415cat conftest.$ac_ext >&5
10416ac_cv_lib_soname_freetype="libfreetype.so"
10417fi
10418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_get_soname_save_LIBS
10420fi
10421echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10422echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10423if test "x$ac_cv_lib_soname_freetype" != xNONE
10424then
10425cat >>confdefs.h <<_ACEOF
10426#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10427_ACEOF
10428fi
10429fi
10430
10431
10432
10433wine_cv_libc_reentrant=no
10434echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
f5818d2f
AJ
10435echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10436if test "${wine_cv_libc_r___errno_location+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
d30dfd24
AJ
10438else
10439 if test "$cross_compiling" = yes; then
f5818d2f 10440 wine_cv_libc_r___errno_location=yes
d30dfd24 10441else
f5818d2f 10442 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10443#line $LINENO "configure"
d30dfd24
AJ
10444#include "confdefs.h"
10445int myerrno = 0;
10446char buf[256];
10447int *__errno_location(){return &myerrno;}
10448main(){connect(0,buf,255); exit(!myerrno);}
f5818d2f
AJ
10449_ACEOF
10450rm -f conftest$ac_exeext
daa2886c 10451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10452 (eval $ac_link) 2>&5
10453 ac_status=$?
daa2886c 10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
daa2886c 10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10460 (exit $ac_status); }; }; then
598412ed 10461 wine_cv_libc_r___errno_location=yes
d30dfd24 10462else
f5818d2f
AJ
10463 echo "$as_me: program exited with status $ac_status" >&5
10464echo "$as_me: failed program was:" >&5
10465cat conftest.$ac_ext >&5
daa2886c 10466( exit $ac_status )
f5818d2f 10467wine_cv_libc_r___errno_location=no
d30dfd24 10468fi
f5818d2f 10469rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d30dfd24 10470fi
715a55e7 10471fi
daa2886c 10472echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
f5818d2f 10473echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
67e8dc68
AJ
10474if test "$wine_cv_libc_r___errno_location" = "yes"; then
10475 wine_cv_libc_reentrant=__errno_location
10476else
10477 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
f5818d2f
AJ
10478echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10479if test "${wine_cv_libc_r___error+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
715a55e7
UW
10481else
10482 if test "$cross_compiling" = yes; then
f5818d2f 10483 wine_cv_libc_r___error=yes
c2606381 10484else
f5818d2f 10485 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10486#line $LINENO "configure"
c2606381
MM
10487#include "confdefs.h"
10488int myerrno = 0;
67e8dc68 10489char buf256;
c2606381
MM
10490int *__error(){return &myerrno;}
10491main(){connect(0,buf,255); exit(!myerrno);}
f5818d2f
AJ
10492_ACEOF
10493rm -f conftest$ac_exeext
daa2886c 10494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10495 (eval $ac_link) 2>&5
10496 ac_status=$?
daa2886c 10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10500 (eval $ac_try) 2>&5
10501 ac_status=$?
daa2886c 10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10503 (exit $ac_status); }; }; then
598412ed 10504 wine_cv_libc_r___error=yes
c2606381 10505else
f5818d2f
AJ
10506 echo "$as_me: program exited with status $ac_status" >&5
10507echo "$as_me: failed program was:" >&5
10508cat conftest.$ac_ext >&5
daa2886c 10509( exit $ac_status )
f5818d2f 10510wine_cv_libc_r___error=no
c2606381 10511fi
f5818d2f 10512rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c2606381 10513fi
d30dfd24 10514fi
daa2886c 10515echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
f5818d2f 10516echo "${ECHO_T}$wine_cv_libc_r___error" >&6
67e8dc68
AJ
10517if test "$wine_cv_libc_r___error" = "yes"; then
10518 wine_cv_libc_reentrant=__error
10519else
10520 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
f5818d2f
AJ
10521echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
10522if test "${wine_cv_libc_r____errno+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
715a55e7
UW
10524else
10525 if test "$cross_compiling" = yes; then
f5818d2f 10526 wine_cv_libc_r____errno=yes
715a55e7 10527else
f5818d2f 10528 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10529#line $LINENO "configure"
715a55e7
UW
10530#include "confdefs.h"
10531int myerrno = 0;
67e8dc68 10532char buf256;
715a55e7
UW
10533int *___errno(){return &myerrno;}
10534main(){connect(0,buf,255); exit(!myerrno);}
f5818d2f
AJ
10535_ACEOF
10536rm -f conftest$ac_exeext
daa2886c 10537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10538 (eval $ac_link) 2>&5
10539 ac_status=$?
daa2886c 10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
daa2886c 10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10546 (exit $ac_status); }; }; then
598412ed 10547 wine_cv_libc_r____errno=yes
715a55e7 10548else
f5818d2f
AJ
10549 echo "$as_me: program exited with status $ac_status" >&5
10550echo "$as_me: failed program was:" >&5
10551cat conftest.$ac_ext >&5
daa2886c 10552( exit $ac_status )
f5818d2f 10553wine_cv_libc_r____errno=no
715a55e7 10554fi
f5818d2f 10555rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
715a55e7 10556fi
715a55e7 10557fi
daa2886c 10558echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
f5818d2f 10559echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
67e8dc68
AJ
10560if test "$wine_cv_libc_r____errno" = "yes"; then
10561 wine_cv_libc_reentrant=___errno
10562else
10563 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
f5818d2f
AJ
10564echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10565if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
e977d6ca
RR
10567else
10568 if test "$cross_compiling" = yes; then
f5818d2f 10569 wine_cv_libc_r___thr_errno=yes
e977d6ca 10570else
f5818d2f 10571 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10572#line $LINENO "configure"
e977d6ca
RR
10573#include "confdefs.h"
10574int myerrno = 0;
67e8dc68 10575char buf256;
e977d6ca
RR
10576int *__thr_errno(){return &myerrno;}
10577main(){connect(0,buf,255); exit(!myerrno);}
f5818d2f
AJ
10578_ACEOF
10579rm -f conftest$ac_exeext
daa2886c 10580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10581 (eval $ac_link) 2>&5
10582 ac_status=$?
daa2886c 10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
daa2886c 10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10589 (exit $ac_status); }; }; then
598412ed 10590 wine_cv_libc_r___thr_errno=yes
e977d6ca 10591else
f5818d2f
AJ
10592 echo "$as_me: program exited with status $ac_status" >&5
10593echo "$as_me: failed program was:" >&5
10594cat conftest.$ac_ext >&5
daa2886c 10595( exit $ac_status )
f5818d2f 10596wine_cv_libc_r___thr_errno=no
e977d6ca 10597fi
f5818d2f 10598rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e977d6ca 10599fi
e977d6ca 10600fi
daa2886c 10601echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
f5818d2f 10602echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
67e8dc68
AJ
10603if test "$wine_cv_libc_r___thr_errno" = "yes"; then
10604 wine_cv_libc_reentrant=__thr_errno
10605else
10606 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
f5818d2f
AJ
10607echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
10608if test "${wine_cv_libc_r___errno+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
33dff344
BJY
10610else
10611 if test "$cross_compiling" = yes; then
f5818d2f 10612 wine_cv_libc_r___errno=yes
33dff344 10613else
f5818d2f 10614 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10615#line $LINENO "configure"
33dff344
BJY
10616#include "confdefs.h"
10617int myerrno = 0;
67e8dc68 10618char buf256;
33dff344
BJY
10619int *__errno(){return &myerrno;}
10620main(){connect(0,buf,255); exit(!myerrno);}
f5818d2f
AJ
10621_ACEOF
10622rm -f conftest$ac_exeext
daa2886c 10623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10624 (eval $ac_link) 2>&5
10625 ac_status=$?
daa2886c 10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
daa2886c 10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10632 (exit $ac_status); }; }; then
33dff344
BJY
10633 wine_cv_libc_r___errno=yes
10634else
f5818d2f
AJ
10635 echo "$as_me: program exited with status $ac_status" >&5
10636echo "$as_me: failed program was:" >&5
10637cat conftest.$ac_ext >&5
daa2886c 10638( exit $ac_status )
f5818d2f 10639wine_cv_libc_r___errno=no
33dff344 10640fi
f5818d2f 10641rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33dff344 10642fi
33dff344 10643fi
daa2886c 10644echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
f5818d2f 10645echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
67e8dc68
AJ
10646if test "$wine_cv_libc_r___errno" = "yes"; then
10647 wine_cv_libc_reentrant=__errno
10648fi
10649
10650
10651fi
10652
10653fi
10654
10655fi
10656
33dff344
BJY
10657fi
10658
daa2886c 10659
f5818d2f 10660if test "$wine_cv_libc_reentrant" != "no"
d30dfd24 10661then
f5818d2f 10662
daa2886c 10663cat >>confdefs.h <<_ACEOF
598412ed 10664#define ERRNO_LOCATION $wine_cv_libc_reentrant
daa2886c 10665_ACEOF
d30dfd24
AJ
10666
10667fi
10668
daa2886c 10669
867fb9d7 10670if test "$have_x" = "yes"
24110288 10671then
daa2886c 10672echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
f5818d2f
AJ
10673echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
10674if test "${wine_cv_x_reentrant+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
a11d7b1a 10676else
867fb9d7
AJ
10677 libX11_check=none
10678 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
10679 if test -r $dir/libX11.so; then
10680 libX11_check="-D $dir/libX11.so"
10681 break
10682 fi
10683 if test -r $dir/libX11.a; then
10684 libX11_check="$dir/libX11.a"
10685 break
10686 fi
10687 done
10688 if test "$libX11_check" != "none"; then
10689 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
10690 then
10691 wine_cv_x_reentrant=yes
10692 else
10693 wine_cv_x_reentrant=no
10694 fi
a11d7b1a 10695 else
867fb9d7 10696 wine_cv_x_reentrant=unknown
f5818d2f 10697 fi
a11d7b1a 10698fi
daa2886c 10699echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
f5818d2f 10700echo "${ECHO_T}$wine_cv_x_reentrant" >&6
a11d7b1a
AJ
10701fi
10702
daa2886c 10703
1bb94039
PS
10704# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10705# for constant arguments. Useless!
daa2886c 10706echo "$as_me:$LINENO: checking for working alloca.h" >&5
f5818d2f
AJ
10707echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10708if test "${ac_cv_working_alloca_h+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 10710else
f5818d2f 10711 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10712#line $LINENO "configure"
1bb94039
PS
10713#include "confdefs.h"
10714#include <alloca.h>
daa2886c
AJ
10715#ifdef F77_DUMMY_MAIN
10716# ifdef __cplusplus
10717 extern "C"
10718# endif
10719 int F77_DUMMY_MAIN() { return 1; }
10720#endif
f5818d2f
AJ
10721int
10722main ()
10723{
10724char *p = (char *) alloca (2 * sizeof (int));
10725 ;
10726 return 0;
10727}
10728_ACEOF
10729rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 10730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10731 (eval $ac_link) 2>&5
10732 ac_status=$?
daa2886c 10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10734 (exit $ac_status); } &&
10735 { ac_try='test -s conftest$ac_exeext'
daa2886c 10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
daa2886c 10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10740 (exit $ac_status); }; }; then
10741 ac_cv_working_alloca_h=yes
10742else
10743 echo "$as_me: failed program was:" >&5
10744cat conftest.$ac_ext >&5
10745ac_cv_working_alloca_h=no
10746fi
10747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10748fi
daa2886c 10749echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
f5818d2f
AJ
10750echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10751if test $ac_cv_working_alloca_h = yes; then
10752
daa2886c 10753cat >>confdefs.h <<\_ACEOF
1bb94039 10754#define HAVE_ALLOCA_H 1
daa2886c 10755_ACEOF
1bb94039
PS
10756
10757fi
10758
daa2886c 10759echo "$as_me:$LINENO: checking for alloca" >&5
f5818d2f
AJ
10760echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10761if test "${ac_cv_func_alloca_works+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 10763else
f5818d2f 10764 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10765#line $LINENO "configure"
1bb94039 10766#include "confdefs.h"
1bb94039
PS
10767#ifdef __GNUC__
10768# define alloca __builtin_alloca
10769#else
18ad24a7
EP
10770# ifdef _MSC_VER
10771# include <malloc.h>
10772# define alloca _alloca
1bb94039 10773# else
18ad24a7
EP
10774# if HAVE_ALLOCA_H
10775# include <alloca.h>
1bb94039 10776# else
18ad24a7
EP
10777# ifdef _AIX
10778 #pragma alloca
10779# else
10780# ifndef alloca /* predefined by HP cc +Olibcalls */
1bb94039 10781char *alloca ();
18ad24a7 10782# endif
1bb94039
PS
10783# endif
10784# endif
10785# endif
10786#endif
10787
daa2886c
AJ
10788#ifdef F77_DUMMY_MAIN
10789# ifdef __cplusplus
10790 extern "C"
10791# endif
10792 int F77_DUMMY_MAIN() { return 1; }
10793#endif
f5818d2f
AJ
10794int
10795main ()
10796{
10797char *p = (char *) alloca (1);
10798 ;
10799 return 0;
10800}
10801_ACEOF
10802rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 10803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10804 (eval $ac_link) 2>&5
10805 ac_status=$?
daa2886c 10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10807 (exit $ac_status); } &&
10808 { ac_try='test -s conftest$ac_exeext'
daa2886c 10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
daa2886c 10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10813 (exit $ac_status); }; }; then
1bb94039
PS
10814 ac_cv_func_alloca_works=yes
10815else
f5818d2f
AJ
10816 echo "$as_me: failed program was:" >&5
10817cat conftest.$ac_ext >&5
10818ac_cv_func_alloca_works=no
1bb94039 10819fi
f5818d2f 10820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1bb94039 10821fi
daa2886c 10822echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
f5818d2f 10823echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1bb94039 10824
1bb94039 10825if test $ac_cv_func_alloca_works = yes; then
f5818d2f 10826
daa2886c 10827cat >>confdefs.h <<\_ACEOF
1bb94039 10828#define HAVE_ALLOCA 1
daa2886c 10829_ACEOF
1bb94039 10830
f5818d2f 10831else
1bb94039 10832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
f5818d2f
AJ
10833# that cause trouble. Some versions do not even contain alloca or
10834# contain a buggy version. If you still want to use their alloca,
10835# use ar to extract alloca.o from them instead of compiling alloca.c.
10836
10837ALLOCA=alloca.$ac_objext
10838
daa2886c 10839cat >>confdefs.h <<\_ACEOF
1bb94039 10840#define C_ALLOCA 1
daa2886c
AJ
10841_ACEOF
10842
1bb94039 10843
daa2886c 10844echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
f5818d2f
AJ
10845echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10846if test "${ac_cv_os_cray+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 10848else
f5818d2f 10849 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10850#line $LINENO "configure"
1bb94039
PS
10851#include "confdefs.h"
10852#if defined(CRAY) && ! defined(CRAY2)
10853webecray
10854#else
10855wenotbecray
10856#endif
10857
f5818d2f 10858_ACEOF
1bb94039
PS
10859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10860 egrep "webecray" >/dev/null 2>&1; then
1bb94039
PS
10861 ac_cv_os_cray=yes
10862else
1bb94039
PS
10863 ac_cv_os_cray=no
10864fi
10865rm -f conftest*
10866
10867fi
daa2886c 10868echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
f5818d2f 10869echo "${ECHO_T}$ac_cv_os_cray" >&6
1bb94039 10870if test $ac_cv_os_cray = yes; then
f5818d2f
AJ
10871 for ac_func in _getb67 GETB67 getb67; do
10872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 10873echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
10874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10875if eval "test \"\${$as_ac_var+set}\" = set"; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10879#line $LINENO "configure"
1bb94039
PS
10880#include "confdefs.h"
10881/* System header to define __stub macros and hopefully few prototypes,
f5818d2f 10882 which can conflict with char $ac_func (); below. */
1bb94039
PS
10883#include <assert.h>
10884/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
10885#ifdef __cplusplus
10886extern "C"
10887#endif
1bb94039 10888/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
10889 builtin and then its argument prototype would still apply. */
10890char $ac_func ();
10891char (*f) ();
1bb94039 10892
daa2886c
AJ
10893#ifdef F77_DUMMY_MAIN
10894# ifdef __cplusplus
10895 extern "C"
10896# endif
10897 int F77_DUMMY_MAIN() { return 1; }
10898#endif
f5818d2f
AJ
10899int
10900main ()
10901{
1bb94039
PS
10902/* The GNU C library defines this for functions which it implements
10903 to always fail with ENOSYS. Some functions are actually named
10904 something starting with __ and the normal name is an alias. */
10905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10906choke me
10907#else
f5818d2f 10908f = $ac_func;
1bb94039
PS
10909#endif
10910
f5818d2f
AJ
10911 ;
10912 return 0;
10913}
10914_ACEOF
10915rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 10916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10917 (eval $ac_link) 2>&5
10918 ac_status=$?
daa2886c 10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10920 (exit $ac_status); } &&
10921 { ac_try='test -s conftest$ac_exeext'
daa2886c 10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
daa2886c 10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10926 (exit $ac_status); }; }; then
10927 eval "$as_ac_var=yes"
10928else
10929 echo "$as_me: failed program was:" >&5
10930cat conftest.$ac_ext >&5
10931eval "$as_ac_var=no"
10932fi
10933rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10934fi
daa2886c 10935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
10936echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10937if test `eval echo '${'$as_ac_var'}'` = yes; then
10938
daa2886c 10939cat >>confdefs.h <<_ACEOF
1bb94039 10940#define CRAY_STACKSEG_END $ac_func
daa2886c 10941_ACEOF
1bb94039 10942
f5818d2f 10943 break
1bb94039
PS
10944fi
10945
f5818d2f 10946 done
1bb94039
PS
10947fi
10948
daa2886c 10949echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
f5818d2f
AJ
10950echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10951if test "${ac_cv_c_stack_direction+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039
PS
10953else
10954 if test "$cross_compiling" = yes; then
10955 ac_cv_c_stack_direction=0
10956else
f5818d2f 10957 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10958#line $LINENO "configure"
1bb94039 10959#include "confdefs.h"
f5818d2f 10960int
1bb94039
PS
10961find_stack_direction ()
10962{
10963 static char *addr = 0;
10964 auto char dummy;
10965 if (addr == 0)
10966 {
10967 addr = &dummy;
10968 return find_stack_direction ();
10969 }
10970 else
10971 return (&dummy > addr) ? 1 : -1;
10972}
f5818d2f
AJ
10973
10974int
1bb94039
PS
10975main ()
10976{
f5818d2f 10977 exit (find_stack_direction () < 0);
1bb94039 10978}
f5818d2f
AJ
10979_ACEOF
10980rm -f conftest$ac_exeext
daa2886c 10981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10982 (eval $ac_link) 2>&5
10983 ac_status=$?
daa2886c 10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
daa2886c 10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10990 (exit $ac_status); }; }; then
1bb94039
PS
10991 ac_cv_c_stack_direction=1
10992else
f5818d2f
AJ
10993 echo "$as_me: program exited with status $ac_status" >&5
10994echo "$as_me: failed program was:" >&5
10995cat conftest.$ac_ext >&5
daa2886c 10996( exit $ac_status )
f5818d2f 10997ac_cv_c_stack_direction=-1
1bb94039 10998fi
f5818d2f 10999rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1bb94039 11000fi
1bb94039 11001fi
daa2886c 11002echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
f5818d2f 11003echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
1bb94039 11004
daa2886c 11005cat >>confdefs.h <<_ACEOF
1bb94039 11006#define STACK_DIRECTION $ac_cv_c_stack_direction
daa2886c
AJ
11007_ACEOF
11008
1bb94039
PS
11009
11010fi
11011
daa2886c
AJ
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
b9627c14
SE
11051
11052
0a8e15ab
SE
11053
11054
daa2886c 11055
daa2886c
AJ
11056
11057
2487ccea 11058for ac_func in \
f61d7e0a 11059 __libc_fork \
2487ccea 11060 _lwp_create \
81ecb52c
PS
11061 _pclose \
11062 _popen \
0a8e15ab 11063 _snprintf \
81ecb52c
PS
11064 _stricmp \
11065 _strnicmp \
b9627c14 11066 chsize \
2487ccea 11067 clone \
a7ca2ba7 11068 ecvt \
d6deb6db
JG
11069 finite \
11070 fpclass \
b9627c14 11071 ftruncate \
3f1ed52d 11072 ftruncate64 \
b9010214
PS
11073 getnetbyaddr \
11074 getnetbyname \
2487ccea 11075 getpagesize \
b9010214
PS
11076 getprotobyname \
11077 getprotobynumber \
11078 getservbyport \
11079 getsockopt \
11080 inet_network \
3f1ed52d 11081 lseek64 \
27bb311d 11082 lstat \
2487ccea 11083 memmove \
a85b0a6d 11084 mmap \
81ecb52c 11085 pclose \
81ecb52c 11086 popen \
b9627c14 11087 pread \
f1a0de99 11088 pwrite \
2487ccea 11089 rfork \
b9010214 11090 select \
2487ccea 11091 sendmsg \
b9010214 11092 settimeofday \
2487ccea 11093 sigaltstack \
0a8e15ab 11094 snprintf \
b9010214 11095 statfs \
3b96efc0 11096 strcasecmp \
2487ccea 11097 strerror \
3b96efc0 11098 strncasecmp \
2487ccea
AJ
11099 tcgetattr \
11100 timegm \
11101 usleep \
11102 vfscanf \
11103 wait4 \
11104 waitpid \
11105
e2991ea7 11106do
f5818d2f 11107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 11108echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
11109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11110if eval "test \"\${$as_ac_var+set}\" = set"; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112else
11113 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11114#line $LINENO "configure"
e2991ea7
AJ
11115#include "confdefs.h"
11116/* System header to define __stub macros and hopefully few prototypes,
f5818d2f 11117 which can conflict with char $ac_func (); below. */
e2991ea7
AJ
11118#include <assert.h>
11119/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
11120#ifdef __cplusplus
11121extern "C"
11122#endif
e2bfa4c7 11123/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
11124 builtin and then its argument prototype would still apply. */
11125char $ac_func ();
11126char (*f) ();
e2991ea7 11127
daa2886c
AJ
11128#ifdef F77_DUMMY_MAIN
11129# ifdef __cplusplus
11130 extern "C"
11131# endif
11132 int F77_DUMMY_MAIN() { return 1; }
11133#endif
f5818d2f
AJ
11134int
11135main ()
11136{
e2991ea7
AJ
11137/* The GNU C library defines this for functions which it implements
11138 to always fail with ENOSYS. Some functions are actually named
11139 something starting with __ and the normal name is an alias. */
11140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11141choke me
11142#else
f5818d2f 11143f = $ac_func;
e2991ea7
AJ
11144#endif
11145
f5818d2f
AJ
11146 ;
11147 return 0;
11148}
11149_ACEOF
11150rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 11151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
11152 (eval $ac_link) 2>&5
11153 ac_status=$?
daa2886c 11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11155 (exit $ac_status); } &&
11156 { ac_try='test -s conftest$ac_exeext'
daa2886c 11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11158 (eval $ac_try) 2>&5
11159 ac_status=$?
daa2886c 11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11161 (exit $ac_status); }; }; then
11162 eval "$as_ac_var=yes"
11163else
11164 echo "$as_me: failed program was:" >&5
11165cat conftest.$ac_ext >&5
11166eval "$as_ac_var=no"
11167fi
11168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11169fi
daa2886c 11170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
11171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11172if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 11173 cat >>confdefs.h <<_ACEOF
f5818d2f 11174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 11175_ACEOF
7e6ae4ba 11176
e2991ea7
AJ
11177fi
11178done
11179
daa2886c
AJ
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
e7c6d17b
RZ
11238
11239
11240
daa2886c 11241
0314a65a 11242
c3e06df9
AJ
11243
11244
127ec92b 11245
daa2886c
AJ
11246
11247
f5818d2f 11248for ac_header in \
96336324 11249 arpa/inet.h \
2487ccea 11250 arpa/nameser.h \
81ecb52c 11251 direct.h \
2487ccea
AJ
11252 elf.h \
11253 float.h \
2e8e2334 11254 ieeefp.h \
81ecb52c 11255 io.h \
2487ccea 11256 libio.h \
01f78aaa 11257 libutil.h \
96336324 11258 link.h \
2487ccea 11259 linux/cdrom.h \
e7c6d17b 11260 linux/hdreg.h \
c9b3b2e8 11261 linux/input.h \
028e9a17 11262 linux/joystick.h \
e7c6d17b 11263 linux/major.h \
0314a65a 11264 linux/param.h \
533e7eea 11265 linux/serial.h \
2487ccea 11266 linux/ucdrom.h \
2487ccea 11267 net/if.h \
5d1a6385 11268 netdb.h \
2487ccea 11269 netinet/in.h \
7a4e5997
PS
11270 netinet/in_systm.h \
11271 netinet/ip.h \
96336324 11272 netinet/tcp.h \
2d7be870 11273 pty.h \
2487ccea 11274 resolv.h \
96336324 11275 sched.h \
e7c6d17b 11276 scsi/sg.h \
96336324 11277 socket.h \
eda758eb 11278 stdint.h \
2487ccea
AJ
11279 strings.h \
11280 sys/cdio.h \
13277480 11281 sys/errno.h \
2487ccea
AJ
11282 sys/file.h \
11283 sys/filio.h \
6098399a 11284 sys/inttypes.h \
c3e06df9 11285 sys/ioctl.h \
96336324 11286 sys/ipc.h \
624cbd7c 11287 sys/link.h \
2487ccea 11288 sys/lwp.h \
13277480 11289 sys/mman.h \
2487ccea
AJ
11290 sys/modem.h \
11291 sys/mount.h \
96336324 11292 sys/msg.h \
2487ccea 11293 sys/param.h \
2af03e45 11294 sys/ptrace.h \
8a1bdb30 11295 sys/reg.h \
96336324 11296 sys/shm.h \
e7c6d17b 11297 sys/signal.h \
96336324 11298 sys/socket.h \
2487ccea
AJ
11299 sys/sockio.h \
11300 sys/statfs.h \
11301 sys/strtio.h \
11302 sys/syscall.h \
127ec92b 11303 sys/sysctl.h \
81ecb52c 11304 sys/time.h \
2af03e45 11305 sys/user.h \
96336324
PS
11306 sys/v86.h \
11307 sys/v86intr.h \
2487ccea 11308 sys/vfs.h \
96336324 11309 sys/vm86.h \
e7c6d17b 11310 sys/wait.h \
2487ccea 11311 syscall.h \
c3e06df9 11312 termios.h \
7a4e5997 11313 ucontext.h \
81ecb52c 11314 unistd.h \
2487ccea 11315
02e90087 11316do
f5818d2f 11317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
11318if eval "test \"\${$as_ac_Header+set}\" = set"; then
11319 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
11320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11321if eval "test \"\${$as_ac_Header+set}\" = set"; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
11323fi
11324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 11326else
daa2886c
AJ
11327 # Is the header compilable?
11328echo "$as_me:$LINENO: checking $ac_header usability" >&5
11329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11330cat >conftest.$ac_ext <<_ACEOF
11331#line $LINENO "configure"
11332#include "confdefs.h"
11333$ac_includes_default
11334#include <$ac_header>
11335_ACEOF
11336rm -f conftest.$ac_objext
11337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11338 (eval $ac_compile) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -s conftest.$ac_objext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 ac_header_compiler=yes
11349else
11350 echo "$as_me: failed program was:" >&5
11351cat conftest.$ac_ext >&5
11352ac_header_compiler=no
11353fi
11354rm -f conftest.$ac_objext conftest.$ac_ext
11355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11356echo "${ECHO_T}$ac_header_compiler" >&6
11357
11358# Is the header present?
11359echo "$as_me:$LINENO: checking $ac_header presence" >&5
11360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11361cat >conftest.$ac_ext <<_ACEOF
11362#line $LINENO "configure"
02e90087 11363#include "confdefs.h"
f5818d2f
AJ
11364#include <$ac_header>
11365_ACEOF
daa2886c 11366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
11367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11368 ac_status=$?
11369 egrep -v '^ *\+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
daa2886c 11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11373 (exit $ac_status); } >/dev/null; then
11374 if test -s conftest.err; then
11375 ac_cpp_err=$ac_c_preproc_warn_flag
11376 else
11377 ac_cpp_err=
11378 fi
11379else
11380 ac_cpp_err=yes
11381fi
11382if test -z "$ac_cpp_err"; then
daa2886c 11383 ac_header_preproc=yes
f5818d2f
AJ
11384else
11385 echo "$as_me: failed program was:" >&5
02e90087 11386 cat conftest.$ac_ext >&5
daa2886c 11387 ac_header_preproc=no
02e90087 11388fi
f5818d2f 11389rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
11390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391echo "${ECHO_T}$ac_header_preproc" >&6
11392
11393# So? What about this header?
11394case $ac_header_compiler:$ac_header_preproc in
11395 yes:no )
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11400 no:yes )
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11407esac
11408echo "$as_me:$LINENO: checking for $ac_header" >&5
11409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11410if eval "test \"\${$as_ac_Header+set}\" = set"; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412else
11413 eval "$as_ac_Header=$ac_header_preproc"
02e90087 11414fi
daa2886c 11415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 11416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
11417
11418fi
f5818d2f 11419if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 11420 cat >>confdefs.h <<_ACEOF
f5818d2f 11421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 11422_ACEOF
f5818d2f 11423
02e90087 11424fi
daa2886c 11425
02e90087
AJ
11426done
11427
daa2886c 11428echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
f5818d2f
AJ
11429echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11430if test "${ac_cv_header_stat_broken+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 11432else
f5818d2f 11433 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11434#line $LINENO "configure"
e2991ea7
AJ
11435#include "confdefs.h"
11436#include <sys/types.h>
11437#include <sys/stat.h>
11438
11439#if defined(S_ISBLK) && defined(S_IFDIR)
11440# if S_ISBLK (S_IFDIR)
11441You lose.
11442# endif
11443#endif
11444
11445#if defined(S_ISBLK) && defined(S_IFCHR)
11446# if S_ISBLK (S_IFCHR)
11447You lose.
11448# endif
11449#endif
11450
11451#if defined(S_ISLNK) && defined(S_IFREG)
11452# if S_ISLNK (S_IFREG)
11453You lose.
11454# endif
11455#endif
11456
11457#if defined(S_ISSOCK) && defined(S_IFREG)
11458# if S_ISSOCK (S_IFREG)
11459You lose.
11460# endif
11461#endif
11462
f5818d2f 11463_ACEOF
e2991ea7
AJ
11464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11465 egrep "You lose" >/dev/null 2>&1; then
e2991ea7
AJ
11466 ac_cv_header_stat_broken=yes
11467else
e2991ea7
AJ
11468 ac_cv_header_stat_broken=no
11469fi
11470rm -f conftest*
11471
11472fi
daa2886c 11473echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
f5818d2f 11474echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
e2991ea7 11475if test $ac_cv_header_stat_broken = yes; then
f5818d2f 11476
daa2886c 11477cat >>confdefs.h <<\_ACEOF
e2991ea7 11478#define STAT_MACROS_BROKEN 1
daa2886c 11479_ACEOF
e2991ea7
AJ
11480
11481fi
11482
daa2886c
AJ
11483
11484
11485echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
f5818d2f
AJ
11486echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11487if test "${ac_cv_prog_cc_stdc+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489else
11490 ac_cv_prog_cc_stdc=no
11491ac_save_CC=$CC
11492cat >conftest.$ac_ext <<_ACEOF
daa2886c 11493#line $LINENO "configure"
f5818d2f
AJ
11494#include "confdefs.h"
11495#include <stdarg.h>
11496#include <stdio.h>
11497#include <sys/types.h>
11498#include <sys/stat.h>
11499/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11500struct buf { int x; };
11501FILE * (*rcsopen) (struct buf *, struct stat *, int);
11502static char *e (p, i)
11503 char **p;
11504 int i;
11505{
11506 return p[i];
11507}
11508static char *f (char * (*g) (char **, int), char **p, ...)
11509{
11510 char *s;
11511 va_list v;
11512 va_start (v,p);
11513 s = g (p, va_arg (v,int));
11514 va_end (v);
11515 return s;
11516}
11517int test (int i, double x);
11518struct s1 {int (*f) (int a);};
11519struct s2 {int (*f) (double a);};
11520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11521int argc;
11522char **argv;
daa2886c
AJ
11523#ifdef F77_DUMMY_MAIN
11524# ifdef __cplusplus
11525 extern "C"
11526# endif
11527 int F77_DUMMY_MAIN() { return 1; }
11528#endif
f5818d2f
AJ
11529int
11530main ()
11531{
11532return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11533 ;
11534 return 0;
11535}
11536_ACEOF
11537# Don't try gcc -ansi; that turns off useful extensions and
11538# breaks some systems' header files.
11539# AIX -qlanglvl=ansi
11540# Ultrix and OSF/1 -std1
11541# HP-UX 10.20 and later -Ae
11542# HP-UX older versions -Aa -D_HPUX_SOURCE
11543# SVR4 -Xc -D__EXTENSIONS__
11544for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11545do
11546 CC="$ac_save_CC $ac_arg"
11547 rm -f conftest.$ac_objext
daa2886c 11548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
11549 (eval $ac_compile) 2>&5
11550 ac_status=$?
daa2886c 11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11552 (exit $ac_status); } &&
11553 { ac_try='test -s conftest.$ac_objext'
daa2886c 11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
daa2886c 11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11558 (exit $ac_status); }; }; then
11559 ac_cv_prog_cc_stdc=$ac_arg
11560break
11561else
11562 echo "$as_me: failed program was:" >&5
11563cat conftest.$ac_ext >&5
11564fi
11565rm -f conftest.$ac_objext
11566done
11567rm -f conftest.$ac_ext conftest.$ac_objext
11568CC=$ac_save_CC
11569
11570fi
2487ccea 11571
f5818d2f
AJ
11572case "x$ac_cv_prog_cc_stdc" in
11573 x|xno)
daa2886c 11574 echo "$as_me:$LINENO: result: none needed" >&5
f5818d2f
AJ
11575echo "${ECHO_T}none needed" >&6 ;;
11576 *)
daa2886c 11577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
f5818d2f
AJ
11578echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11579 CC="$CC $ac_cv_prog_cc_stdc" ;;
11580esac
2487ccea 11581
daa2886c 11582echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
f5818d2f
AJ
11583echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11584if test "${ac_cv_c_const+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 11586else
f5818d2f 11587 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11588#line $LINENO "configure"
e2991ea7
AJ
11589#include "confdefs.h"
11590
daa2886c
AJ
11591#ifdef F77_DUMMY_MAIN
11592# ifdef __cplusplus
11593 extern "C"
11594# endif
11595 int F77_DUMMY_MAIN() { return 1; }
11596#endif
f5818d2f
AJ
11597int
11598main ()
11599{
11600/* FIXME: Include the comments suggested by Paul. */
11601#ifndef __cplusplus
11602 /* Ultrix mips cc rejects this. */
11603 typedef int charset[2];
11604 const charset x;
11605 /* SunOS 4.1.1 cc rejects this. */
11606 char const *const *ccp;
11607 char **p;
11608 /* NEC SVR4.0.2 mips cc rejects this. */
11609 struct point {int x, y;};
11610 static struct point const zero = {0,0};
11611 /* AIX XL C 1.02.0.0 rejects this.
11612 It does not let you subtract one const X* pointer from another in
11613 an arm of an if-expression whose if-part is not a constant
11614 expression */
11615 const char *g = "string";
11616 ccp = &g + (g ? g-g : 0);
11617 /* HPUX 7.0 cc rejects these. */
11618 ++ccp;
11619 p = (char**) ccp;
11620 ccp = (char const *const *) p;
11621 { /* SCO 3.2v4 cc rejects this. */
11622 char *t;
11623 char const *s = 0 ? (char *) 0 : (char const *) 0;
11624
11625 *t++ = 0;
11626 }
11627 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11628 int x[] = {25, 17};
11629 const int *foo = &x[0];
11630 ++foo;
11631 }
11632 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11633 typedef const int *iptr;
11634 iptr p = 0;
11635 ++p;
11636 }
11637 { /* AIX XL C 1.02.0.0 rejects this saying
11638 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11639 struct s { int j; const int *ap[3]; };
11640 struct s *b; b->j = 5;
11641 }
11642 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11643 const int foo = 10;
11644 }
11645#endif
e2991ea7 11646
f5818d2f
AJ
11647 ;
11648 return 0;
e2991ea7 11649}
f5818d2f
AJ
11650_ACEOF
11651rm -f conftest.$ac_objext
daa2886c 11652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
11653 (eval $ac_compile) 2>&5
11654 ac_status=$?
daa2886c 11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11656 (exit $ac_status); } &&
11657 { ac_try='test -s conftest.$ac_objext'
daa2886c 11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
daa2886c 11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11662 (exit $ac_status); }; }; then
e2991ea7
AJ
11663 ac_cv_c_const=yes
11664else
f5818d2f
AJ
11665 echo "$as_me: failed program was:" >&5
11666cat conftest.$ac_ext >&5
11667ac_cv_c_const=no
e2991ea7 11668fi
f5818d2f 11669rm -f conftest.$ac_objext conftest.$ac_ext
e2991ea7 11670fi
daa2886c 11671echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
f5818d2f 11672echo "${ECHO_T}$ac_cv_c_const" >&6
e2991ea7 11673if test $ac_cv_c_const = no; then
f5818d2f 11674
daa2886c 11675cat >>confdefs.h <<\_ACEOF
f5818d2f 11676#define const
daa2886c 11677_ACEOF
e2991ea7
AJ
11678
11679fi
11680
daa2886c 11681echo "$as_me:$LINENO: checking for inline" >&5
f5818d2f
AJ
11682echo $ECHO_N "checking for inline... $ECHO_C" >&6
11683if test "${ac_cv_c_inline+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
1a8bbd7c
MM
11685else
11686 ac_cv_c_inline=no
11687for ac_kw in inline __inline__ __inline; do
f5818d2f 11688 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11689#line $LINENO "configure"
1a8bbd7c 11690#include "confdefs.h"
f5818d2f
AJ
11691#ifndef __cplusplus
11692static $ac_kw int static_foo () {return 0; }
11693$ac_kw int foo () {return 0; }
11694#endif
1a8bbd7c 11695
f5818d2f
AJ
11696_ACEOF
11697rm -f conftest.$ac_objext
daa2886c 11698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
11699 (eval $ac_compile) 2>&5
11700 ac_status=$?
daa2886c 11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11702 (exit $ac_status); } &&
11703 { ac_try='test -s conftest.$ac_objext'
daa2886c 11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
daa2886c 11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11708 (exit $ac_status); }; }; then
1a8bbd7c
MM
11709 ac_cv_c_inline=$ac_kw; break
11710else
f5818d2f
AJ
11711 echo "$as_me: failed program was:" >&5
11712cat conftest.$ac_ext >&5
1a8bbd7c 11713fi
f5818d2f 11714rm -f conftest.$ac_objext conftest.$ac_ext
1a8bbd7c
MM
11715done
11716
11717fi
daa2886c 11718echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
f5818d2f
AJ
11719echo "${ECHO_T}$ac_cv_c_inline" >&6
11720case $ac_cv_c_inline in
1a8bbd7c 11721 inline | yes) ;;
f5818d2f 11722 no)
daa2886c 11723cat >>confdefs.h <<\_ACEOF
f5818d2f 11724#define inline
daa2886c 11725_ACEOF
1a8bbd7c 11726 ;;
daa2886c 11727 *) cat >>confdefs.h <<_ACEOF
1a8bbd7c 11728#define inline $ac_cv_c_inline
daa2886c 11729_ACEOF
1a8bbd7c
MM
11730 ;;
11731esac
11732
daa2886c 11733echo "$as_me:$LINENO: checking for mode_t" >&5
f5818d2f
AJ
11734echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11735if test "${ac_cv_type_mode_t+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 11737else
f5818d2f 11738 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11739#line $LINENO "configure"
c7c217b3 11740#include "confdefs.h"
f5818d2f 11741$ac_includes_default
daa2886c
AJ
11742#ifdef F77_DUMMY_MAIN
11743# ifdef __cplusplus
11744 extern "C"
11745# endif
11746 int F77_DUMMY_MAIN() { return 1; }
11747#endif
f5818d2f
AJ
11748int
11749main ()
c7c217b3 11750{
f5818d2f
AJ
11751if ((mode_t *) 0)
11752 return 0;
11753if (sizeof (mode_t))
11754 return 0;
11755 ;
11756 return 0;
c7c217b3 11757}
f5818d2f
AJ
11758_ACEOF
11759rm -f conftest.$ac_objext
daa2886c 11760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
11761 (eval $ac_compile) 2>&5
11762 ac_status=$?
daa2886c 11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11764 (exit $ac_status); } &&
11765 { ac_try='test -s conftest.$ac_objext'
daa2886c 11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
daa2886c 11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11770 (exit $ac_status); }; }; then
11771 ac_cv_type_mode_t=yes
11772else
11773 echo "$as_me: failed program was:" >&5
11774cat conftest.$ac_ext >&5
11775ac_cv_type_mode_t=no
11776fi
11777rm -f conftest.$ac_objext conftest.$ac_ext
11778fi
daa2886c 11779echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
f5818d2f
AJ
11780echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11781if test $ac_cv_type_mode_t = yes; then
f5818d2f 11782
daa2886c 11783cat >>confdefs.h <<_ACEOF
5769d1de 11784#define HAVE_MODE_T 1
daa2886c 11785_ACEOF
f5818d2f 11786
f5818d2f 11787
5769d1de 11788fi
daa2886c 11789echo "$as_me:$LINENO: checking for off_t" >&5
f5818d2f
AJ
11790echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11791if test "${ac_cv_type_off_t+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 11793else
f5818d2f 11794 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11795#line $LINENO "configure"
f5818d2f
AJ
11796#include "confdefs.h"
11797$ac_includes_default
daa2886c
AJ
11798#ifdef F77_DUMMY_MAIN
11799# ifdef __cplusplus
11800 extern "C"
11801# endif
11802 int F77_DUMMY_MAIN() { return 1; }
11803#endif
f5818d2f
AJ
11804int
11805main ()
11806{
11807if ((off_t *) 0)
11808 return 0;
11809if (sizeof (off_t))
11810 return 0;
11811 ;
11812 return 0;
11813}
11814_ACEOF
11815rm -f conftest.$ac_objext
daa2886c 11816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
11817 (eval $ac_compile) 2>&5
11818 ac_status=$?
daa2886c 11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11820 (exit $ac_status); } &&
11821 { ac_try='test -s conftest.$ac_objext'
daa2886c 11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
daa2886c 11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11826 (exit $ac_status); }; }; then
11827 ac_cv_type_off_t=yes
11828else
11829 echo "$as_me: failed program was:" >&5
11830cat conftest.$ac_ext >&5
11831ac_cv_type_off_t=no
11832fi
11833rm -f conftest.$ac_objext conftest.$ac_ext
11834fi
daa2886c 11835echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
f5818d2f
AJ
11836echo "${ECHO_T}$ac_cv_type_off_t" >&6
11837if test $ac_cv_type_off_t = yes; then
f5818d2f 11838
daa2886c 11839cat >>confdefs.h <<_ACEOF
5769d1de 11840#define HAVE_OFF_T 1
daa2886c 11841_ACEOF
f5818d2f 11842
f5818d2f 11843
5769d1de 11844fi
daa2886c 11845echo "$as_me:$LINENO: checking for pid_t" >&5
f5818d2f
AJ
11846echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11847if test "${ac_cv_type_pid_t+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849else
11850 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11851#line $LINENO "configure"
f5818d2f
AJ
11852#include "confdefs.h"
11853$ac_includes_default
daa2886c
AJ
11854#ifdef F77_DUMMY_MAIN
11855# ifdef __cplusplus
11856 extern "C"
11857# endif
11858 int F77_DUMMY_MAIN() { return 1; }
11859#endif
f5818d2f
AJ
11860int
11861main ()
11862{
11863if ((pid_t *) 0)
11864 return 0;
11865if (sizeof (pid_t))
11866 return 0;
11867 ;
11868 return 0;
11869}
11870_ACEOF
11871rm -f conftest.$ac_objext
daa2886c 11872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
11873 (eval $ac_compile) 2>&5
11874 ac_status=$?
daa2886c 11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11876 (exit $ac_status); } &&
11877 { ac_try='test -s conftest.$ac_objext'
daa2886c 11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
daa2886c 11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11882 (exit $ac_status); }; }; then
11883 ac_cv_type_pid_t=yes
11884else
11885 echo "$as_me: failed program was:" >&5
11886cat conftest.$ac_ext >&5
11887ac_cv_type_pid_t=no
11888fi
11889rm -f conftest.$ac_objext conftest.$ac_ext
11890fi
daa2886c 11891echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
f5818d2f
AJ
11892echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11893if test $ac_cv_type_pid_t = yes; then
f5818d2f 11894
daa2886c 11895cat >>confdefs.h <<_ACEOF
5769d1de 11896#define HAVE_PID_T 1
daa2886c 11897_ACEOF
f5818d2f 11898
c7c217b3 11899
5769d1de 11900fi
daa2886c 11901echo "$as_me:$LINENO: checking for size_t" >&5
f5818d2f
AJ
11902echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11903if test "${ac_cv_type_size_t+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11907#line $LINENO "configure"
f5818d2f
AJ
11908#include "confdefs.h"
11909$ac_includes_default
daa2886c
AJ
11910#ifdef F77_DUMMY_MAIN
11911# ifdef __cplusplus
11912 extern "C"
11913# endif
11914 int F77_DUMMY_MAIN() { return 1; }
11915#endif
f5818d2f
AJ
11916int
11917main ()
11918{
11919if ((size_t *) 0)
11920 return 0;
11921if (sizeof (size_t))
11922 return 0;
11923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext
daa2886c 11928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
11929 (eval $ac_compile) 2>&5
11930 ac_status=$?
daa2886c 11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11932 (exit $ac_status); } &&
11933 { ac_try='test -s conftest.$ac_objext'
daa2886c 11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
daa2886c 11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11938 (exit $ac_status); }; }; then
11939 ac_cv_type_size_t=yes
11940else
11941 echo "$as_me: failed program was:" >&5
11942cat conftest.$ac_ext >&5
11943ac_cv_type_size_t=no
c7c217b3 11944fi
f5818d2f
AJ
11945rm -f conftest.$ac_objext conftest.$ac_ext
11946fi
daa2886c 11947echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
f5818d2f
AJ
11948echo "${ECHO_T}$ac_cv_type_size_t" >&6
11949if test $ac_cv_type_size_t = yes; then
5769d1de
AJ
11950
11951cat >>confdefs.h <<_ACEOF
11952#define HAVE_SIZE_T 1
11953_ACEOF
11954
11955
11956fi
11957echo "$as_me:$LINENO: checking for ssize_t" >&5
11958echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11959if test "${ac_cv_type_ssize_t+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 cat >conftest.$ac_ext <<_ACEOF
11963#line $LINENO "configure"
11964#include "confdefs.h"
11965$ac_includes_default
11966#ifdef F77_DUMMY_MAIN
11967# ifdef __cplusplus
11968 extern "C"
11969# endif
11970 int F77_DUMMY_MAIN() { return 1; }
11971#endif
11972int
11973main ()
11974{
11975if ((ssize_t *) 0)
11976 return 0;
11977if (sizeof (ssize_t))
11978 return 0;
11979 ;
11980 return 0;
11981}
11982_ACEOF
11983rm -f conftest.$ac_objext
11984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_type_ssize_t=yes
f5818d2f 11996else
5769d1de
AJ
11997 echo "$as_me: failed program was:" >&5
11998cat conftest.$ac_ext >&5
11999ac_cv_type_ssize_t=no
12000fi
12001rm -f conftest.$ac_objext conftest.$ac_ext
12002fi
12003echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12004echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12005if test $ac_cv_type_ssize_t = yes; then
f5818d2f 12006
daa2886c 12007cat >>confdefs.h <<_ACEOF
5769d1de 12008#define HAVE_SSIZE_T 1
daa2886c 12009_ACEOF
c7c217b3 12010
5769d1de 12011
f5818d2f 12012fi
c7c217b3 12013
daa2886c 12014echo "$as_me:$LINENO: checking for long long" >&5
f5818d2f
AJ
12015echo $ECHO_N "checking for long long... $ECHO_C" >&6
12016if test "${ac_cv_type_long_long+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018else
12019 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12020#line $LINENO "configure"
f5818d2f
AJ
12021#include "confdefs.h"
12022$ac_includes_default
daa2886c
AJ
12023#ifdef F77_DUMMY_MAIN
12024# ifdef __cplusplus
12025 extern "C"
12026# endif
12027 int F77_DUMMY_MAIN() { return 1; }
12028#endif
f5818d2f
AJ
12029int
12030main ()
12031{
12032if ((long long *) 0)
12033 return 0;
12034if (sizeof (long long))
12035 return 0;
12036 ;
12037 return 0;
12038}
12039_ACEOF
12040rm -f conftest.$ac_objext
daa2886c 12041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12042 (eval $ac_compile) 2>&5
12043 ac_status=$?
daa2886c 12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12045 (exit $ac_status); } &&
12046 { ac_try='test -s conftest.$ac_objext'
daa2886c 12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
daa2886c 12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12051 (exit $ac_status); }; }; then
12052 ac_cv_type_long_long=yes
12053else
12054 echo "$as_me: failed program was:" >&5
12055cat conftest.$ac_ext >&5
12056ac_cv_type_long_long=no
12057fi
12058rm -f conftest.$ac_objext conftest.$ac_ext
12059fi
daa2886c 12060echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
f5818d2f
AJ
12061echo "${ECHO_T}$ac_cv_type_long_long" >&6
12062
daa2886c 12063echo "$as_me:$LINENO: checking size of long long" >&5
f5818d2f
AJ
12064echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12065if test "${ac_cv_sizeof_long_long+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067else
12068 if test "$ac_cv_type_long_long" = yes; then
daa2886c
AJ
12069 # The cast to unsigned long works around a bug in the HP C Compiler
12070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12072 # This bug is HP SR number 8606223364.
f5818d2f
AJ
12073 if test "$cross_compiling" = yes; then
12074 # Depending upon the size, compute the lo and hi bounds.
12075cat >conftest.$ac_ext <<_ACEOF
daa2886c 12076#line $LINENO "configure"
f5818d2f
AJ
12077#include "confdefs.h"
12078$ac_includes_default
daa2886c
AJ
12079#ifdef F77_DUMMY_MAIN
12080# ifdef __cplusplus
12081 extern "C"
12082# endif
12083 int F77_DUMMY_MAIN() { return 1; }
12084#endif
f5818d2f
AJ
12085int
12086main ()
12087{
daa2886c
AJ
12088static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12089test_array [0] = 0
12090
f5818d2f
AJ
12091 ;
12092 return 0;
12093}
12094_ACEOF
12095rm -f conftest.$ac_objext
daa2886c 12096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12097 (eval $ac_compile) 2>&5
12098 ac_status=$?
daa2886c 12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12100 (exit $ac_status); } &&
12101 { ac_try='test -s conftest.$ac_objext'
daa2886c 12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12103 (eval $ac_try) 2>&5
12104 ac_status=$?
daa2886c 12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12106 (exit $ac_status); }; }; then
12107 ac_lo=0 ac_mid=0
12108 while :; do
12109 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12110#line $LINENO "configure"
f5818d2f
AJ
12111#include "confdefs.h"
12112$ac_includes_default
daa2886c
AJ
12113#ifdef F77_DUMMY_MAIN
12114# ifdef __cplusplus
12115 extern "C"
12116# endif
12117 int F77_DUMMY_MAIN() { return 1; }
12118#endif
f5818d2f
AJ
12119int
12120main ()
12121{
daa2886c
AJ
12122static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12123test_array [0] = 0
12124
f5818d2f
AJ
12125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext
daa2886c 12130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12131 (eval $ac_compile) 2>&5
12132 ac_status=$?
daa2886c 12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12134 (exit $ac_status); } &&
12135 { ac_try='test -s conftest.$ac_objext'
daa2886c 12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
daa2886c 12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12140 (exit $ac_status); }; }; then
12141 ac_hi=$ac_mid; break
12142else
12143 echo "$as_me: failed program was:" >&5
12144cat conftest.$ac_ext >&5
daa2886c
AJ
12145ac_lo=`expr $ac_mid + 1`
12146 if test $ac_lo -le $ac_mid; then
12147 ac_lo= ac_hi=
12148 break
12149 fi
12150 ac_mid=`expr 2 '*' $ac_mid + 1`
f5818d2f
AJ
12151fi
12152rm -f conftest.$ac_objext conftest.$ac_ext
12153 done
12154else
12155 echo "$as_me: failed program was:" >&5
12156cat conftest.$ac_ext >&5
daa2886c
AJ
12157cat >conftest.$ac_ext <<_ACEOF
12158#line $LINENO "configure"
12159#include "confdefs.h"
12160$ac_includes_default
12161#ifdef F77_DUMMY_MAIN
12162# ifdef __cplusplus
12163 extern "C"
12164# endif
12165 int F77_DUMMY_MAIN() { return 1; }
12166#endif
12167int
12168main ()
12169{
12170static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12171test_array [0] = 0
12172
12173 ;
12174 return 0;
12175}
12176_ACEOF
12177rm -f conftest.$ac_objext
12178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12179 (eval $ac_compile) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -s conftest.$ac_objext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 ac_hi=-1 ac_mid=-1
f5818d2f
AJ
12190 while :; do
12191 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12192#line $LINENO "configure"
f5818d2f
AJ
12193#include "confdefs.h"
12194$ac_includes_default
daa2886c
AJ
12195#ifdef F77_DUMMY_MAIN
12196# ifdef __cplusplus
12197 extern "C"
12198# endif
12199 int F77_DUMMY_MAIN() { return 1; }
12200#endif
f5818d2f
AJ
12201int
12202main ()
12203{
daa2886c
AJ
12204static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12205test_array [0] = 0
12206
f5818d2f
AJ
12207 ;
12208 return 0;
12209}
12210_ACEOF
12211rm -f conftest.$ac_objext
daa2886c 12212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12213 (eval $ac_compile) 2>&5
12214 ac_status=$?
daa2886c 12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12216 (exit $ac_status); } &&
12217 { ac_try='test -s conftest.$ac_objext'
daa2886c 12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
daa2886c 12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12222 (exit $ac_status); }; }; then
12223 ac_lo=$ac_mid; break
12224else
12225 echo "$as_me: failed program was:" >&5
12226cat conftest.$ac_ext >&5
daa2886c
AJ
12227ac_hi=`expr '(' $ac_mid ')' - 1`
12228 if test $ac_mid -le $ac_hi; then
12229 ac_lo= ac_hi=
12230 break
12231 fi
12232 ac_mid=`expr 2 '*' $ac_mid`
f5818d2f
AJ
12233fi
12234rm -f conftest.$ac_objext conftest.$ac_ext
12235 done
daa2886c
AJ
12236else
12237 echo "$as_me: failed program was:" >&5
12238cat conftest.$ac_ext >&5
12239ac_lo= ac_hi=
12240fi
12241rm -f conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
12242fi
12243rm -f conftest.$ac_objext conftest.$ac_ext
12244# Binary search between lo and hi bounds.
12245while test "x$ac_lo" != "x$ac_hi"; do
12246 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12247 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12248#line $LINENO "configure"
f5818d2f
AJ
12249#include "confdefs.h"
12250$ac_includes_default
daa2886c
AJ
12251#ifdef F77_DUMMY_MAIN
12252# ifdef __cplusplus
12253 extern "C"
12254# endif
12255 int F77_DUMMY_MAIN() { return 1; }
12256#endif
f5818d2f
AJ
12257int
12258main ()
12259{
daa2886c
AJ
12260static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12261test_array [0] = 0
12262
f5818d2f
AJ
12263 ;
12264 return 0;
12265}
12266_ACEOF
12267rm -f conftest.$ac_objext
daa2886c 12268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12269 (eval $ac_compile) 2>&5
12270 ac_status=$?
daa2886c 12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12272 (exit $ac_status); } &&
12273 { ac_try='test -s conftest.$ac_objext'
daa2886c 12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
daa2886c 12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12278 (exit $ac_status); }; }; then
12279 ac_hi=$ac_mid
12280else
12281 echo "$as_me: failed program was:" >&5
12282cat conftest.$ac_ext >&5
daa2886c 12283ac_lo=`expr '(' $ac_mid ')' + 1`
f5818d2f
AJ
12284fi
12285rm -f conftest.$ac_objext conftest.$ac_ext
12286done
daa2886c
AJ
12287case $ac_lo in
12288?*) ac_cv_sizeof_long_long=$ac_lo;;
12289'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12290echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12291 { (exit 1); exit 1; }; } ;;
12292esac
f5818d2f
AJ
12293else
12294 if test "$cross_compiling" = yes; then
daa2886c 12295 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
f5818d2f
AJ
12296echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12297 { (exit 1); exit 1; }; }
12298else
12299 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12300#line $LINENO "configure"
f5818d2f
AJ
12301#include "confdefs.h"
12302$ac_includes_default
daa2886c
AJ
12303long longval () { return (long) (sizeof (long long)); }
12304unsigned long ulongval () { return (long) (sizeof (long long)); }
12305#include <stdio.h>
12306#include <stdlib.h>
12307#ifdef F77_DUMMY_MAIN
12308# ifdef __cplusplus
12309 extern "C"
12310# endif
12311 int F77_DUMMY_MAIN() { return 1; }
12312#endif
f5818d2f
AJ
12313int
12314main ()
12315{
daa2886c
AJ
12316
12317 FILE *f = fopen ("conftest.val", "w");
12318 if (! f)
12319 exit (1);
12320 if (((long) (sizeof (long long))) < 0)
12321 {
12322 long i = longval ();
12323 if (i != ((long) (sizeof (long long))))
12324 exit (1);
12325 fprintf (f, "%ld\n", i);
12326 }
12327 else
12328 {
12329 unsigned long i = ulongval ();
12330 if (i != ((long) (sizeof (long long))))
12331 exit (1);
12332 fprintf (f, "%lu\n", i);
12333 }
12334 exit (ferror (f) || fclose (f) != 0);
12335
f5818d2f
AJ
12336 ;
12337 return 0;
12338}
12339_ACEOF
12340rm -f conftest$ac_exeext
daa2886c 12341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12342 (eval $ac_link) 2>&5
12343 ac_status=$?
daa2886c 12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
daa2886c 12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12350 (exit $ac_status); }; }; then
12351 ac_cv_sizeof_long_long=`cat conftest.val`
12352else
12353 echo "$as_me: program exited with status $ac_status" >&5
12354echo "$as_me: failed program was:" >&5
12355cat conftest.$ac_ext >&5
daa2886c
AJ
12356( exit $ac_status )
12357{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12358echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12359 { (exit 1); exit 1; }; }
f5818d2f
AJ
12360fi
12361rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12362fi
12363fi
12364rm -f conftest.val
12365else
12366 ac_cv_sizeof_long_long=0
12367fi
12368fi
daa2886c 12369echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
f5818d2f 12370echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
daa2886c 12371cat >>confdefs.h <<_ACEOF
f5818d2f 12372#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
daa2886c
AJ
12373_ACEOF
12374
12375
c7c217b3 12376
daa2886c 12377echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
f5818d2f
AJ
12378echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12379if test "${wine_cv_linux_input_h+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
74f2b4b2 12381else
f5818d2f 12382 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12383#line $LINENO "configure"
74f2b4b2
MM
12384#include "confdefs.h"
12385
12386 #include <linux/input.h>
f5818d2f 12387
daa2886c
AJ
12388#ifdef F77_DUMMY_MAIN
12389# ifdef __cplusplus
12390 extern "C"
12391# endif
12392 int F77_DUMMY_MAIN() { return 1; }
12393#endif
f5818d2f
AJ
12394int
12395main ()
12396{
74f2b4b2
MM
12397
12398 int foo = EVIOCGBIT(EV_ABS,42);
12399 int bar = BTN_PINKIE;
12400 int fortytwo = 42;
f5818d2f
AJ
12401
12402 ;
12403 return 0;
12404}
12405_ACEOF
12406rm -f conftest.$ac_objext
daa2886c 12407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12408 (eval $ac_compile) 2>&5
12409 ac_status=$?
daa2886c 12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12411 (exit $ac_status); } &&
12412 { ac_try='test -s conftest.$ac_objext'
daa2886c 12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
daa2886c 12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12417 (exit $ac_status); }; }; then
74f2b4b2
MM
12418 wine_cv_linux_input_h=yes
12419else
f5818d2f
AJ
12420 echo "$as_me: failed program was:" >&5
12421cat conftest.$ac_ext >&5
12422wine_cv_linux_input_h=no
74f2b4b2 12423fi
f5818d2f 12424rm -f conftest.$ac_objext conftest.$ac_ext
74f2b4b2 12425
f5818d2f 12426fi
daa2886c 12427echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
f5818d2f 12428echo "${ECHO_T}$wine_cv_linux_input_h" >&6
74f2b4b2
MM
12429 if test "$wine_cv_linux_input_h" = "yes"
12430 then
f5818d2f 12431
daa2886c 12432cat >>confdefs.h <<\_ACEOF
74f2b4b2 12433#define HAVE_CORRECT_LINUXINPUT_H 1
daa2886c 12434_ACEOF
74f2b4b2
MM
12435
12436 fi
12437
daa2886c
AJ
12438
12439echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
f5818d2f
AJ
12440echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
12441if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
ff7a61f8 12443else
f5818d2f 12444 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12445#line $LINENO "configure"
ff7a61f8
RK
12446#include "confdefs.h"
12447
12448#include <netdb.h>
f5818d2f 12449
daa2886c
AJ
12450#ifdef F77_DUMMY_MAIN
12451# ifdef __cplusplus
12452 extern "C"
12453# endif
12454 int F77_DUMMY_MAIN() { return 1; }
12455#endif
f5818d2f
AJ
12456int
12457main ()
12458{
ff7a61f8
RK
12459
12460 char *name=NULL;
12461 struct hostent he;
12462 struct hostent *result;
12463 char *buf=NULL;
12464 int bufsize=0;
12465 int res,errnr;
12466 char *addr=NULL;
12467 int addrlen=0;
12468 int addrtype=0;
12469 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
12470 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
f5818d2f
AJ
12471
12472 ;
12473 return 0;
12474}
12475_ACEOF
12476rm -f conftest.$ac_objext
daa2886c 12477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12478 (eval $ac_compile) 2>&5
12479 ac_status=$?
daa2886c 12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12481 (exit $ac_status); } &&
12482 { ac_try='test -s conftest.$ac_objext'
daa2886c 12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
daa2886c 12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12487 (exit $ac_status); }; }; then
ff7a61f8
RK
12488 wine_cv_linux_gethostbyname_r_6=yes
12489else
f5818d2f
AJ
12490 echo "$as_me: failed program was:" >&5
12491cat conftest.$ac_ext >&5
12492wine_cv_linux_gethostbyname_r_6=no
12493
ff7a61f8 12494fi
f5818d2f 12495rm -f conftest.$ac_objext conftest.$ac_ext
ff7a61f8 12496
f5818d2f 12497fi
daa2886c 12498echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
f5818d2f 12499echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
ff7a61f8
RK
12500 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
12501 then
f5818d2f 12502
daa2886c 12503cat >>confdefs.h <<\_ACEOF
ff7a61f8 12504#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
daa2886c 12505_ACEOF
ff7a61f8
RK
12506
12507 fi
12508
028e9a17
MM
12509if test "$ac_cv_header_linux_joystick_h" = "yes"
12510then
daa2886c 12511 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
f5818d2f
AJ
12512echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
12513if test "${wine_cv_linux_joystick_22_api+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
028e9a17 12515else
f5818d2f 12516 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12517#line $LINENO "configure"
028e9a17
MM
12518#include "confdefs.h"
12519
12520 #include <sys/ioctl.h>
12521 #include <linux/joystick.h>
12522
12523 struct js_event blub;
605a9c39
MM
12524 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
12525 #error "no 2.2 header"
12526 #endif
f5818d2f 12527
daa2886c
AJ
12528#ifdef F77_DUMMY_MAIN
12529# ifdef __cplusplus
12530 extern "C"
12531# endif
12532 int F77_DUMMY_MAIN() { return 1; }
12533#endif
f5818d2f
AJ
12534int
12535main ()
12536{
028e9a17 12537/*empty*/
f5818d2f
AJ
12538 ;
12539 return 0;
12540}
12541_ACEOF
12542rm -f conftest.$ac_objext
daa2886c 12543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12544 (eval $ac_compile) 2>&5
12545 ac_status=$?
daa2886c 12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12547 (exit $ac_status); } &&
12548 { ac_try='test -s conftest.$ac_objext'
daa2886c 12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
daa2886c 12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12553 (exit $ac_status); }; }; then
028e9a17
MM
12554 wine_cv_linux_joystick_22_api=yes
12555else
f5818d2f
AJ
12556 echo "$as_me: failed program was:" >&5
12557cat conftest.$ac_ext >&5
12558wine_cv_linux_joystick_22_api=no
028e9a17 12559fi
f5818d2f 12560rm -f conftest.$ac_objext conftest.$ac_ext
028e9a17 12561
f5818d2f 12562fi
daa2886c 12563echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
f5818d2f 12564echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
87d224ac 12565 if test "$wine_cv_linux_joystick_22_api" = "yes"
028e9a17 12566 then
f5818d2f 12567
daa2886c 12568cat >>confdefs.h <<\_ACEOF
028e9a17 12569#define HAVE_LINUX_22_JOYSTICK_API 1
daa2886c 12570_ACEOF
028e9a17
MM
12571
12572 fi
12573fi
12574
daa2886c 12575
dadf78ff
AJ
12576if test "$ac_cv_header_sys_vfs_h" = "yes"
12577then
daa2886c 12578 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
f5818d2f
AJ
12579echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
12580if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 12582else
f5818d2f 12583 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12584#line $LINENO "configure"
c7c217b3
AJ
12585#include "confdefs.h"
12586
46ea8b3f 12587 #include <sys/types.h>
c7c217b3
AJ
12588 #ifdef HAVE_SYS_PARAM_H
12589 # include <sys/param.h>
12590 #endif
dadf78ff 12591 #include <sys/vfs.h>
f5818d2f 12592
daa2886c
AJ
12593#ifdef F77_DUMMY_MAIN
12594# ifdef __cplusplus
12595 extern "C"
12596# endif
12597 int F77_DUMMY_MAIN() { return 1; }
12598#endif
f5818d2f
AJ
12599int
12600main ()
12601{
c7c217b3
AJ
12602
12603 struct statfs stfs;
12604
dadf78ff 12605 memset(&stfs,0,sizeof(stfs));
f5818d2f
AJ
12606
12607 ;
12608 return 0;
12609}
12610_ACEOF
12611rm -f conftest.$ac_objext
daa2886c 12612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12613 (eval $ac_compile) 2>&5
12614 ac_status=$?
daa2886c 12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12616 (exit $ac_status); } &&
12617 { ac_try='test -s conftest.$ac_objext'
daa2886c 12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
daa2886c 12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12622 (exit $ac_status); }; }; then
dadf78ff 12623 wine_cv_sys_vfs_has_statfs=yes
c7c217b3 12624else
f5818d2f
AJ
12625 echo "$as_me: failed program was:" >&5
12626cat conftest.$ac_ext >&5
12627wine_cv_sys_vfs_has_statfs=no
12628
c7c217b3 12629fi
f5818d2f 12630rm -f conftest.$ac_objext conftest.$ac_ext
c7c217b3 12631
f5818d2f 12632fi
daa2886c 12633echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
f5818d2f 12634echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
dadf78ff
AJ
12635 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
12636 then
f5818d2f 12637
daa2886c 12638cat >>confdefs.h <<\_ACEOF
dadf78ff 12639#define STATFS_DEFINED_BY_SYS_VFS 1
daa2886c 12640_ACEOF
dadf78ff
AJ
12641
12642 fi
12643fi
12644
12645if test "$ac_cv_header_sys_statfs_h" = "yes"
c7c217b3 12646then
daa2886c 12647 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
f5818d2f
AJ
12648echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
12649if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 12651else
f5818d2f 12652 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12653#line $LINENO "configure"
dadf78ff
AJ
12654#include "confdefs.h"
12655
12656 #include <sys/types.h>
12657 #ifdef HAVE_SYS_PARAM_H
12658 # include <sys/param.h>
12659 #endif
12660 #include <sys/statfs.h>
f5818d2f 12661
daa2886c
AJ
12662#ifdef F77_DUMMY_MAIN
12663# ifdef __cplusplus
12664 extern "C"
12665# endif
12666 int F77_DUMMY_MAIN() { return 1; }
12667#endif
f5818d2f
AJ
12668int
12669main ()
12670{
dadf78ff
AJ
12671
12672 struct statfs stfs;
f5818d2f
AJ
12673
12674 ;
12675 return 0;
12676}
12677_ACEOF
12678rm -f conftest.$ac_objext
daa2886c 12679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12680 (eval $ac_compile) 2>&5
12681 ac_status=$?
daa2886c 12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12683 (exit $ac_status); } &&
12684 { ac_try='test -s conftest.$ac_objext'
daa2886c 12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
daa2886c 12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12689 (exit $ac_status); }; }; then
dadf78ff
AJ
12690 wine_cv_sys_statfs_has_statfs=yes
12691else
f5818d2f
AJ
12692 echo "$as_me: failed program was:" >&5
12693cat conftest.$ac_ext >&5
12694wine_cv_sys_statfs_has_statfs=no
12695
dadf78ff 12696fi
f5818d2f 12697rm -f conftest.$ac_objext conftest.$ac_ext
dadf78ff 12698
f5818d2f 12699fi
daa2886c 12700echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
f5818d2f 12701echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
dadf78ff
AJ
12702 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
12703 then
f5818d2f 12704
daa2886c 12705cat >>confdefs.h <<\_ACEOF
dadf78ff 12706#define STATFS_DEFINED_BY_SYS_STATFS 1
daa2886c 12707_ACEOF
dadf78ff
AJ
12708
12709 fi
12710fi
12711
12712if test "$ac_cv_header_sys_mount_h" = "yes"
12713then
daa2886c 12714 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
f5818d2f
AJ
12715echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
12716if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 12718else
f5818d2f 12719 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12720#line $LINENO "configure"
dadf78ff
AJ
12721#include "confdefs.h"
12722
12723 #include <sys/types.h>
12724 #ifdef HAVE_SYS_PARAM_H
12725 # include <sys/param.h>
12726 #endif
12727 #include <sys/mount.h>
f5818d2f 12728
daa2886c
AJ
12729#ifdef F77_DUMMY_MAIN
12730# ifdef __cplusplus
12731 extern "C"
12732# endif
12733 int F77_DUMMY_MAIN() { return 1; }
12734#endif
f5818d2f
AJ
12735int
12736main ()
12737{
dadf78ff
AJ
12738
12739 struct statfs stfs;
f5818d2f
AJ
12740
12741 ;
12742 return 0;
12743}
12744_ACEOF
12745rm -f conftest.$ac_objext
daa2886c 12746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12747 (eval $ac_compile) 2>&5
12748 ac_status=$?
daa2886c 12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12750 (exit $ac_status); } &&
12751 { ac_try='test -s conftest.$ac_objext'
daa2886c 12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
daa2886c 12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12756 (exit $ac_status); }; }; then
dadf78ff
AJ
12757 wine_cv_sys_mount_has_statfs=yes
12758else
f5818d2f
AJ
12759 echo "$as_me: failed program was:" >&5
12760cat conftest.$ac_ext >&5
12761wine_cv_sys_mount_has_statfs=no
12762
dadf78ff 12763fi
f5818d2f 12764rm -f conftest.$ac_objext conftest.$ac_ext
dadf78ff 12765
f5818d2f 12766fi
daa2886c 12767echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
f5818d2f 12768echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
dadf78ff
AJ
12769 if test "$wine_cv_sys_mount_has_statfs" = "yes"
12770 then
f5818d2f 12771
daa2886c 12772cat >>confdefs.h <<\_ACEOF
dadf78ff 12773#define STATFS_DEFINED_BY_SYS_MOUNT 1
daa2886c 12774_ACEOF
c7c217b3 12775
dadf78ff 12776 fi
c7c217b3
AJ
12777fi
12778
daa2886c 12779
daa2886c 12780echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
f5818d2f
AJ
12781echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
12782if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 12784else
f5818d2f 12785 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12786#line $LINENO "configure"
c7c217b3 12787#include "confdefs.h"
f5818d2f
AJ
12788#include <sys/types.h>
12789#ifdef HAVE_SYS_PARAM_H
12790# include <sys/param.h>
12791#endif
12792#ifdef STATFS_DEFINED_BY_SYS_MOUNT
12793# include <sys/mount.h>
12794#else
12795# ifdef STATFS_DEFINED_BY_SYS_VFS
12796# include <sys/vfs.h>
12797# else
12798# ifdef STATFS_DEFINED_BY_SYS_STATFS
12799# include <sys/statfs.h>
12800# endif
12801# endif
12802#endif
daa2886c
AJ
12803#ifdef F77_DUMMY_MAIN
12804# ifdef __cplusplus
12805 extern "C"
12806# endif
12807 int F77_DUMMY_MAIN() { return 1; }
12808#endif
f5818d2f
AJ
12809int
12810main ()
12811{
12812struct statfs s; s.f_bfree = 0
12813 ;
12814 return 0;
12815}
12816_ACEOF
12817rm -f conftest.$ac_objext
daa2886c 12818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12819 (eval $ac_compile) 2>&5
12820 ac_status=$?
daa2886c 12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12822 (exit $ac_status); } &&
12823 { ac_try='test -s conftest.$ac_objext'
daa2886c 12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
daa2886c 12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12828 (exit $ac_status); }; }; then
12829 ac_cv_c_statfs_f_bfree="yes"
12830else
12831 echo "$as_me: failed program was:" >&5
12832cat conftest.$ac_ext >&5
12833ac_cv_c_statfs_f_bfree="no"
12834fi
12835rm -f conftest.$ac_objext conftest.$ac_ext
12836fi
daa2886c 12837echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
f5818d2f
AJ
12838echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
12839if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
12840
daa2886c 12841cat >>confdefs.h <<\_ACEOF
c7c217b3 12842#define STATFS_HAS_BFREE 1
daa2886c 12843_ACEOF
c7c217b3
AJ
12844
12845fi
12846
daa2886c
AJ
12847
12848
12849echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
f5818d2f
AJ
12850echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
12851if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 12853else
f5818d2f 12854 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12855#line $LINENO "configure"
dadf78ff 12856#include "confdefs.h"
f5818d2f
AJ
12857#include <sys/types.h>
12858#ifdef HAVE_SYS_PARAM_H
12859# include <sys/param.h>
12860#endif
12861#ifdef STATFS_DEFINED_BY_SYS_MOUNT
12862# include <sys/mount.h>
12863#else
12864# ifdef STATFS_DEFINED_BY_SYS_VFS
12865# include <sys/vfs.h>
12866# else
12867# ifdef STATFS_DEFINED_BY_SYS_STATFS
12868# include <sys/statfs.h>
12869# endif
12870# endif
12871#endif
daa2886c
AJ
12872#ifdef F77_DUMMY_MAIN
12873# ifdef __cplusplus
12874 extern "C"
12875# endif
12876 int F77_DUMMY_MAIN() { return 1; }
12877#endif
f5818d2f
AJ
12878int
12879main ()
12880{
12881struct statfs s; s.f_bavail = 0
12882 ;
12883 return 0;
12884}
12885_ACEOF
12886rm -f conftest.$ac_objext
daa2886c 12887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12888 (eval $ac_compile) 2>&5
12889 ac_status=$?
daa2886c 12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12891 (exit $ac_status); } &&
12892 { ac_try='test -s conftest.$ac_objext'
daa2886c 12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
daa2886c 12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12897 (exit $ac_status); }; }; then
12898 ac_cv_c_statfs_f_bavail="yes"
12899else
12900 echo "$as_me: failed program was:" >&5
12901cat conftest.$ac_ext >&5
12902ac_cv_c_statfs_f_bavail="no"
12903fi
12904rm -f conftest.$ac_objext conftest.$ac_ext
12905fi
daa2886c 12906echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
f5818d2f
AJ
12907echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
12908if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
12909
daa2886c 12910cat >>confdefs.h <<\_ACEOF
dadf78ff 12911#define STATFS_HAS_BAVAIL 1
daa2886c 12912_ACEOF
dadf78ff
AJ
12913
12914fi
12915
daa2886c
AJ
12916
12917
12918echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
f5818d2f
AJ
12919echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
12920if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
829fe323 12922else
f5818d2f 12923 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12924#line $LINENO "configure"
829fe323
AJ
12925#include "confdefs.h"
12926#include <sys/types.h>
12927#include <sys/socket.h>
daa2886c
AJ
12928#ifdef F77_DUMMY_MAIN
12929# ifdef __cplusplus
12930 extern "C"
12931# endif
12932 int F77_DUMMY_MAIN() { return 1; }
12933#endif
f5818d2f
AJ
12934int
12935main ()
12936{
12937struct msghdr s; s.msg_accrights = 0
12938 ;
12939 return 0;
12940}
12941_ACEOF
12942rm -f conftest.$ac_objext
daa2886c 12943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
12944 (eval $ac_compile) 2>&5
12945 ac_status=$?
daa2886c 12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12947 (exit $ac_status); } &&
12948 { ac_try='test -s conftest.$ac_objext'
daa2886c 12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12950 (eval $ac_try) 2>&5
12951 ac_status=$?
daa2886c 12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12953 (exit $ac_status); }; }; then
12954 ac_cv_c_msghdr_msg_accrights="yes"
12955else
12956 echo "$as_me: failed program was:" >&5
12957cat conftest.$ac_ext >&5
12958ac_cv_c_msghdr_msg_accrights="no"
12959fi
12960rm -f conftest.$ac_objext conftest.$ac_ext
12961fi
daa2886c 12962echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
f5818d2f
AJ
12963echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
12964if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
12965
daa2886c 12966cat >>confdefs.h <<\_ACEOF
829fe323 12967#define HAVE_MSGHDR_ACCRIGHTS 1
daa2886c 12968_ACEOF
829fe323
AJ
12969
12970fi
12971
daa2886c
AJ
12972
12973
12974echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
f5818d2f
AJ
12975echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
12976if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
2d33ab91 12978else
f5818d2f 12979 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12980#line $LINENO "configure"
2d33ab91
JL
12981#include "confdefs.h"
12982#include <sys/types.h>
12983#include <sys/socket.h>
daa2886c
AJ
12984#ifdef F77_DUMMY_MAIN
12985# ifdef __cplusplus
12986 extern "C"
12987# endif
12988 int F77_DUMMY_MAIN() { return 1; }
12989#endif
f5818d2f
AJ
12990int
12991main ()
12992{
12993struct sockaddr s; s.sa_len = 0
12994 ;
12995 return 0;
12996}
12997_ACEOF
12998rm -f conftest.$ac_objext
daa2886c 12999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
13000 (eval $ac_compile) 2>&5
13001 ac_status=$?
daa2886c 13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13003 (exit $ac_status); } &&
13004 { ac_try='test -s conftest.$ac_objext'
daa2886c 13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
daa2886c 13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 13009 (exit $ac_status); }; }; then
09da966c
PS
13010 ac_cv_c_sockaddr_sa_len="yes"
13011else
f5818d2f
AJ
13012 echo "$as_me: failed program was:" >&5
13013cat conftest.$ac_ext >&5
13014ac_cv_c_sockaddr_sa_len="no"
09da966c 13015fi
f5818d2f 13016rm -f conftest.$ac_objext conftest.$ac_ext
09da966c 13017fi
daa2886c 13018echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
f5818d2f
AJ
13019echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13020if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
09da966c 13021
daa2886c 13022cat >>confdefs.h <<\_ACEOF
09da966c 13023#define HAVE_SOCKADDR_SA_LEN 1
daa2886c 13024_ACEOF
09da966c
PS
13025
13026fi
13027
daa2886c
AJ
13028
13029
13030echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
f5818d2f
AJ
13031echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13032if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
09da966c 13034else
f5818d2f 13035 cat >conftest.$ac_ext <<_ACEOF
daa2886c 13036#line $LINENO "configure"
09da966c
PS
13037#include "confdefs.h"
13038#include <sys/types.h>
13039#include <sys/socket.h>
2d33ab91 13040#include <sys/un.h>
daa2886c
AJ
13041#ifdef F77_DUMMY_MAIN
13042# ifdef __cplusplus
13043 extern "C"
13044# endif
13045 int F77_DUMMY_MAIN() { return 1; }
13046#endif
f5818d2f
AJ
13047int
13048main ()
13049{
13050struct sockaddr_un s; s.sun_len = 0
13051 ;
13052 return 0;
13053}
13054_ACEOF
13055rm -f conftest.$ac_objext
daa2886c 13056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
13057 (eval $ac_compile) 2>&5
13058 ac_status=$?
daa2886c 13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13060 (exit $ac_status); } &&
13061 { ac_try='test -s conftest.$ac_objext'
daa2886c 13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
daa2886c 13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13066 (exit $ac_status); }; }; then
13067 ac_cv_c_sockaddr_un_sun_len="yes"
13068else
13069 echo "$as_me: failed program was:" >&5
13070cat conftest.$ac_ext >&5
13071ac_cv_c_sockaddr_un_sun_len="no"
13072fi
13073rm -f conftest.$ac_objext conftest.$ac_ext
13074fi
daa2886c 13075echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
f5818d2f
AJ
13076echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13077if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13078
daa2886c 13079cat >>confdefs.h <<\_ACEOF
2d33ab91 13080#define HAVE_SOCKADDR_SUN_LEN 1
daa2886c 13081_ACEOF
2d33ab91
JL
13082
13083fi
13084
daa2886c
AJ
13085
13086
13087
fc01b729 13088case $host_cpu in
f5818d2f 13089 *i345678986* )
daa2886c 13090 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
f5818d2f
AJ
13091echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13092if test "${ac_cv_cpp_def_i386+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
51d46ba9 13094else
f5818d2f 13095 cat >conftest.$ac_ext <<_ACEOF
daa2886c 13096#line $LINENO "configure"
51d46ba9 13097#include "confdefs.h"
f5818d2f 13098#ifndef __i386__
51d46ba9
AJ
13099yes
13100#endif
f5818d2f 13101_ACEOF
51d46ba9
AJ
13102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13103 egrep "yes" >/dev/null 2>&1; then
51d46ba9
AJ
13104 ac_cv_cpp_def_i386="yes"
13105else
51d46ba9
AJ
13106 ac_cv_cpp_def_i386="no"
13107fi
13108rm -f conftest*
13109
13110fi
daa2886c 13111echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
f5818d2f
AJ
13112echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13113 ;;
13114esac
51d46ba9
AJ
13115if test "$ac_cv_cpp_def_i386" = "yes"
13116then
13117 CFLAGS="$CFLAGS -D__i386__"
a9be64e2 13118 LINTFLAGS="$LINTFLAGS -D__i386__"
51d46ba9
AJ
13119fi
13120
daa2886c
AJ
13121
13122
13123
13124
9bb05fc4
AJ
13125ac_config_commands="$ac_config_commands controls"
13126
f5818d2f 13127ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
a7f5cb5b 13128
f5818d2f 13129ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
a7f5cb5b 13130
f5818d2f 13131ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
829fe323 13132
f5818d2f 13133ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
1425941e 13134
f5818d2f 13135ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
1425941e 13136
f5818d2f 13137ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
87a2f8df 13138
f5818d2f 13139ac_config_commands="$ac_config_commands dlls/dinput/joystick"
87a2f8df 13140
f5818d2f 13141ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
e2991ea7 13142
f5818d2f 13143ac_config_commands="$ac_config_commands dlls/dinput/mouse"
e2991ea7 13144
89118568
AJ
13145ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13146
13147ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13148
13149ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13150
f5818d2f
AJ
13151ac_config_commands="$ac_config_commands dlls/kernel/messages"
13152
c72f0b21
AJ
13153ac_config_commands="$ac_config_commands dlls/kernel/tests"
13154
e8d97701
MM
13155ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
13156
c74a791a
JS
13157ac_config_commands="$ac_config_commands dlls/shlwapi/tests"
13158
f5818d2f 13159ac_config_commands="$ac_config_commands dlls/user/dde"
d0edc5fe 13160
f5818d2f
AJ
13161ac_config_commands="$ac_config_commands dlls/user/resources"
13162
c72f0b21
AJ
13163ac_config_commands="$ac_config_commands dlls/user/tests"
13164
f5818d2f
AJ
13165ac_config_commands="$ac_config_commands dlls/wineps/data"
13166
9a68b7be
AJ
13167ac_config_commands="$ac_config_commands dlls/winsock/tests"
13168
9bb05fc4
AJ
13169ac_config_commands="$ac_config_commands files"
13170
13171ac_config_commands="$ac_config_commands graphics"
13172
13173ac_config_commands="$ac_config_commands graphics/x11drv"
13174
13175ac_config_commands="$ac_config_commands if1632"
13176
f5818d2f
AJ
13177ac_config_commands="$ac_config_commands include/wine"
13178
9bb05fc4
AJ
13179ac_config_commands="$ac_config_commands loader"
13180
13181ac_config_commands="$ac_config_commands loader/ne"
13182
13183ac_config_commands="$ac_config_commands memory"
13184
13185ac_config_commands="$ac_config_commands misc"
13186
13187ac_config_commands="$ac_config_commands msdos"
13188
13189ac_config_commands="$ac_config_commands objects"
13190
c72f0b21
AJ
13191ac_config_commands="$ac_config_commands programs/regapi/tests"
13192
13193ac_config_commands="$ac_config_commands programs/winetest/tests"
13194
9bb05fc4
AJ
13195ac_config_commands="$ac_config_commands relay32"
13196
13197ac_config_commands="$ac_config_commands scheduler"
13198
13199ac_config_commands="$ac_config_commands win32"
13200
13201ac_config_commands="$ac_config_commands windows"
13202
f5818d2f
AJ
13203
13204MAKE_RULES=Make.rules
13205
daa2886c 13206
f5818d2f 13207MAKE_DLL_RULES=dlls/Makedll.rules
d0edc5fe 13208
daa2886c 13209
626f425b
AJ
13210MAKE_PROG_RULES=programs/Makeprog.rules
13211
daa2886c 13212
bed67fc9 13213ac_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/msadp32/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 miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/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"
daa2886c 13214
626f425b 13215
f5818d2f 13216cat >confcache <<\_ACEOF
e2991ea7
AJ
13217# This file is a shell script that caches the results of configure
13218# tests run on this system so they can be shared between configure
f5818d2f
AJ
13219# scripts and configure runs, see configure's option --config-cache.
13220# It is not useful on other systems. If it contains results you don't
13221# want to keep, you may remove or edit it.
e2991ea7 13222#
f5818d2f
AJ
13223# config.status only pays attention to the cache file if you give it
13224# the --recheck option to rerun configure.
e2991ea7 13225#
f5818d2f
AJ
13226# `ac_cv_env_foo' variables (set or unset) will be overriden when
13227# loading this file, other *unset* `ac_cv_foo' will be assigned the
13228# following values.
13229
13230_ACEOF
13231
7e6ae4ba
AJ
13232# The following way of writing the cache mishandles newlines in values,
13233# but we know of no workaround that is simple, portable, and efficient.
13234# So, don't put newlines in cache variables' values.
e2991ea7
AJ
13235# Ultrix sh set writes to stderr and can't be redirected directly,
13236# and sets the high bit in the cache file unless we assign to the vars.
f5818d2f
AJ
13237{
13238 (set) 2>&1 |
13239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13240 *ac_space=\ *)
13241 # `set' does not quote correctly, so add quotes (double-quote
13242 # substitution turns \\\\ into \\, and sed turns \\ into \).
13243 sed -n \
13244 "s/'/'\\\\''/g;
13245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13246 ;;
13247 *)
13248 # `set' quotes correctly as required by POSIX, so do not add quotes.
13249 sed -n \
13250 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13251 ;;
13252 esac;
13253} |
13254 sed '
13255 t clear
13256 : clear
13257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13258 t end
13259 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13260 : end' >>confcache
13261if cmp -s $cache_file confcache; then :; else
e2991ea7 13262 if test -w $cache_file; then
f5818d2f
AJ
13263 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13264 cat confcache >$cache_file
e2991ea7
AJ
13265 else
13266 echo "not updating unwritable cache $cache_file"
13267 fi
13268fi
13269rm -f confcache
13270
e2991ea7
AJ
13271test "x$prefix" = xNONE && prefix=$ac_default_prefix
13272# Let make expand exec_prefix.
13273test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13274
f5818d2f
AJ
13275# VPATH may cause trouble with some makes, so we remove $(srcdir),
13276# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13277# trailing colons and then remove the whole line if VPATH becomes empty
13278# (actually we leave an empty line to preserve line numbers).
e2991ea7 13279if test "x$srcdir" = x.; then
f5818d2f
AJ
13280 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13281s/:*\$(srcdir):*/:/;
13282s/:*\${srcdir}:*/:/;
13283s/:*@srcdir@:*/:/;
13284s/^\([^=]*=[ ]*\):*/\1/;
13285s/:*$//;
13286s/^[^=]*=[ ]*$//;
13287}'
e2991ea7
AJ
13288fi
13289
18f92e76 13290DEFS=-DHAVE_CONFIG_H
e2991ea7 13291
daa2886c 13292
e2991ea7 13293: ${CONFIG_STATUS=./config.status}
f5818d2f
AJ
13294ac_clean_files_save=$ac_clean_files
13295ac_clean_files="$ac_clean_files $CONFIG_STATUS"
daa2886c 13296{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
f5818d2f
AJ
13297echo "$as_me: creating $CONFIG_STATUS" >&6;}
13298cat >$CONFIG_STATUS <<_ACEOF
13299#! $SHELL
daa2886c 13300# Generated by $as_me.
e2991ea7 13301# Run this file to recreate the current configuration.
e2991ea7 13302# Compiler output produced by configure, useful for debugging
f5818d2f 13303# configure, is in config.log if it exists.
e2991ea7 13304
f5818d2f
AJ
13305debug=false
13306SHELL=\${CONFIG_SHELL-$SHELL}
f5818d2f
AJ
13307_ACEOF
13308
13309cat >>$CONFIG_STATUS <<\_ACEOF
daa2886c
AJ
13310
13311## --------------------- ##
13312## M4sh Initialization. ##
13313## --------------------- ##
13314
f5818d2f
AJ
13315# Be Bourne compatible
13316if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13317 emulate sh
13318 NULLCMD=:
13319elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13320 set -o posix
13321fi
13322
daa2886c
AJ
13323# NLS nuisances.
13324# Support unset when possible.
13325if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13326 as_unset=unset
13327else
13328 as_unset=false
13329fi
13330
13331(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
13332 { $as_unset LANG || test "${LANG+set}" != set; } ||
13333 { LANG=C; export LANG; }
13334(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
13335 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
13336 { LC_ALL=C; export LC_ALL; }
13337(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
13338 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
13339 { LC_TIME=C; export LC_TIME; }
13340(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
13341 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
13342 { LC_CTYPE=C; export LC_CTYPE; }
13343(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
13344 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
13345 { LANGUAGE=C; export LANGUAGE; }
13346(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
13347 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
13348 { LC_COLLATE=C; export LC_COLLATE; }
13349(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
13350 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
13351 { LC_NUMERIC=C; export LC_NUMERIC; }
13352(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
13353 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
13354 { LC_MESSAGES=C; export LC_MESSAGES; }
13355
13356
f5818d2f 13357# Name of the executable.
daa2886c
AJ
13358as_me=`(basename "$0") 2>/dev/null ||
13359$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13360 X"$0" : 'X\(//\)$' \| \
13361 X"$0" : 'X\(/\)$' \| \
13362 . : '\(.\)' 2>/dev/null ||
13363echo X/"$0" |
13364 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13365 /^X\/\(\/\/\)$/{ s//\1/; q; }
13366 /^X\/\(\/\).*/{ s//\1/; q; }
13367 s/.*/./; q'`
13368
13369# PATH needs CR, and LINENO needs CR and PATH.
13370# Avoid depending upon Character Ranges.
13371as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13372as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13373as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13374as_cr_digits='0123456789'
13375as_cr_alnum=$as_cr_Letters$as_cr_digits
13376
13377# The user is always right.
13378if test "${PATH_SEPARATOR+set}" != set; then
13379 echo "#! /bin/sh" >conftest.sh
13380 echo "exit 0" >>conftest.sh
13381 chmod +x conftest.sh
13382 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
13383 PATH_SEPARATOR=';'
13384 else
13385 PATH_SEPARATOR=:
13386 fi
13387 rm -f conftest.sh
13388fi
13389
13390
13391 as_lineno_1=$LINENO
13392 as_lineno_2=$LINENO
13393 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13394 test "x$as_lineno_1" != "x$as_lineno_2" &&
13395 test "x$as_lineno_3" = "x$as_lineno_2" || {
13396 # Find who we are. Look in the path if we contain no path at all
13397 # relative or not.
13398 case $0 in
13399 *[\\/]* ) as_myself=$0 ;;
13400 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401for as_dir in $PATH
13402do
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
13405 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13406done
13407
13408 ;;
13409 esac
13410 # We did not find ourselves, most probably we were run as `sh COMMAND'
13411 # in which case we are not to be found in the path.
13412 if test "x$as_myself" = x; then
13413 as_myself=$0
13414 fi
13415 if test ! -f "$as_myself"; then
13416 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13417echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13418 { (exit 1); exit 1; }; }
13419 fi
13420 case $CONFIG_SHELL in
13421 '')
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13424do
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for as_base in sh bash ksh sh5; do
13428 case $as_dir in
13429 /*)
13430 if ("$as_dir/$as_base" -c '
13431 as_lineno_1=$LINENO
13432 as_lineno_2=$LINENO
13433 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13434 test "x$as_lineno_1" != "x$as_lineno_2" &&
13435 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13436 CONFIG_SHELL=$as_dir/$as_base
13437 export CONFIG_SHELL
13438 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13439 fi;;
13440 esac
13441 done
13442done
13443;;
13444 esac
13445
13446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13447 # uniformly replaced by the line number. The first 'sed' inserts a
13448 # line-number line before each line; the second 'sed' does the real
13449 # work. The second script uses 'N' to pair each line-number line
13450 # with the numbered line, and appends trailing '-' during
13451 # substitution so that $LINENO is not a special case at line end.
13452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13453 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13454 sed '=' <$as_myself |
13455 sed '
13456 N
13457 s,$,-,
13458 : loop
13459 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13460 t loop
13461 s,-$,,
13462 s,^['$as_cr_digits']*\n,,
13463 ' >$as_me.lineno &&
13464 chmod +x $as_me.lineno ||
13465 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13466echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13467 { (exit 1); exit 1; }; }
13468
13469 # Don't try to exec as it changes $[0], causing all sort of problems
13470 # (the dirname of $[0] is not the place where we might find the
13471 # original and so on. Autoconf is especially sensible to this).
13472 . ./$as_me.lineno
13473 # Exit status is that of the last command.
13474 exit
13475}
13476
13477
13478case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13479 *c*,-n*) ECHO_N= ECHO_C='
13480' ECHO_T=' ' ;;
13481 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13482 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13483esac
f5818d2f
AJ
13484
13485if expr a : '\(a\)' >/dev/null 2>&1; then
13486 as_expr=expr
13487else
13488 as_expr=false
13489fi
13490
13491rm -f conf$$ conf$$.exe conf$$.file
13492echo >conf$$.file
13493if ln -s conf$$.file conf$$ 2>/dev/null; then
13494 # We could just check for DJGPP; but this test a) works b) is more generic
13495 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13496 if test -f conf$$.exe; then
13497 # Don't use ln at all; we don't have any links
13498 as_ln_s='cp -p'
13499 else
13500 as_ln_s='ln -s'
13501 fi
13502elif ln conf$$.file conf$$ 2>/dev/null; then
13503 as_ln_s=ln
13504else
13505 as_ln_s='cp -p'
13506fi
13507rm -f conf$$ conf$$.exe conf$$.file
13508
13509as_executable_p="test -f"
13510
daa2886c
AJ
13511# Sed expression to map a string onto a valid CPP name.
13512as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13513
13514# Sed expression to map a string onto a valid variable name.
13515as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
f5818d2f 13516
f5818d2f
AJ
13517
13518# IFS
13519# We need space, tab and new line, in precisely that order.
13520as_nl='
13521'
13522IFS=" $as_nl"
13523
13524# CDPATH.
daa2886c 13525$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
f5818d2f
AJ
13526
13527exec 6>&1
13528
daa2886c
AJ
13529# Open the log real soon, to keep \$[0] and so on meaningful, and to
13530# report actual input values of CONFIG_FILES etc. instead of their
13531# values after options handling. Logging --version etc. is OK.
13532exec 5>>config.log
13533{
13534 echo
13535 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13536## Running $as_me. ##
13537_ASBOX
13538} >&5
13539cat >&5 <<_CSEOF
13540
f85d8da4 13541This file was extended by Wine $as_me 20020509, which was
daa2886c
AJ
13542generated by GNU Autoconf 2.53. Invocation command line was
13543
13544 CONFIG_FILES = $CONFIG_FILES
13545 CONFIG_HEADERS = $CONFIG_HEADERS
13546 CONFIG_LINKS = $CONFIG_LINKS
13547 CONFIG_COMMANDS = $CONFIG_COMMANDS
13548 $ $0 $@
13549
13550_CSEOF
13551echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13552echo >&5
f5818d2f
AJ
13553_ACEOF
13554
13555# Files that config.status was made for.
13556if test -n "$ac_config_files"; then
13557 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13558fi
13559
13560if test -n "$ac_config_headers"; then
13561 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13562fi
13563
13564if test -n "$ac_config_links"; then
13565 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13566fi
13567
13568if test -n "$ac_config_commands"; then
13569 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13570fi
13571
daa2886c 13572cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
13573
13574ac_cs_usage="\
13575\`$as_me' instantiates files from templates according to the
13576current configuration.
13577
13578Usage: $0 [OPTIONS] [FILE]...
13579
13580 -h, --help print this help, then exit
13581 -V, --version print version number, then exit
13582 -d, --debug don't remove temporary files
13583 --recheck update $as_me by reconfiguring in the same conditions
13584 --file=FILE[:TEMPLATE]
13585 instantiate the configuration file FILE
13586 --header=FILE[:TEMPLATE]
13587 instantiate the configuration header FILE
13588
13589Configuration files:
13590$config_files
13591
13592Configuration headers:
13593$config_headers
13594
13595Configuration commands:
13596$config_commands
13597
13598Report bugs to <bug-autoconf@gnu.org>."
daa2886c 13599_ACEOF
f5818d2f 13600
daa2886c 13601cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f 13602ac_cs_version="\\
f85d8da4 13603Wine config.status 20020509
daa2886c 13604configured by $0, generated by GNU Autoconf 2.53,
f5818d2f
AJ
13605 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13606
13607Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13608Free Software Foundation, Inc.
13609This config.status script is free software; the Free Software Foundation
13610gives unlimited permission to copy, distribute and modify it."
13611srcdir=$srcdir
13612INSTALL="$INSTALL"
daa2886c 13613_ACEOF
f5818d2f 13614
daa2886c 13615cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
13616# If no file are specified by the user, then we need to provide default
13617# value. By we need to know if files were specified by the user.
13618ac_need_defaults=:
13619while test $# != 0
e2991ea7 13620do
f5818d2f
AJ
13621 case $1 in
13622 --*=*)
13623 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13624 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13625 shift
13626 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13627 shift
13628 ;;
13629 -*);;
13630 *) # This is not an option, so the user has probably given explicit
13631 # arguments.
13632 ac_need_defaults=false;;
13633 esac
13634
13635 case $1 in
13636 # Handling of the options.
daa2886c
AJ
13637_ACEOF
13638cat >>$CONFIG_STATUS <<_ACEOF
e2991ea7 13639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
f5818d2f
AJ
13640 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13641 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
daa2886c
AJ
13642_ACEOF
13643cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
13644 --version | --vers* | -V )
13645 echo "$ac_cs_version"; exit 0 ;;
13646 --he | --h)
13647 # Conflict between --help and --header
daa2886c 13648 { { echo "$as_me:$LINENO: error: ambiguous option: $1
f5818d2f
AJ
13649Try \`$0 --help' for more information." >&5
13650echo "$as_me: error: ambiguous option: $1
13651Try \`$0 --help' for more information." >&2;}
13652 { (exit 1); exit 1; }; };;
13653 --help | --hel | -h )
13654 echo "$ac_cs_usage"; exit 0 ;;
13655 --debug | --d* | -d )
13656 debug=: ;;
13657 --file | --fil | --fi | --f )
13658 shift
13659 CONFIG_FILES="$CONFIG_FILES $1"
13660 ac_need_defaults=false;;
13661 --header | --heade | --head | --hea )
13662 shift
13663 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13664 ac_need_defaults=false;;
13665
13666 # This is an error.
daa2886c 13667 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
f5818d2f
AJ
13668Try \`$0 --help' for more information." >&5
13669echo "$as_me: error: unrecognized option: $1
13670Try \`$0 --help' for more information." >&2;}
13671 { (exit 1); exit 1; }; } ;;
13672
13673 *) ac_config_targets="$ac_config_targets $1" ;;
13674
e2991ea7 13675 esac
f5818d2f 13676 shift
e2991ea7
AJ
13677done
13678
f5818d2f 13679_ACEOF
e2991ea7 13680
f5818d2f 13681
f5818d2f 13682
f5818d2f 13683
daa2886c
AJ
13684
13685cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
13686for ac_config_target in $ac_config_targets
13687do
13688 case "$ac_config_target" in
13689 # Handling of arguments.
13690 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
13691 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
13692 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
13693 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
f5818d2f
AJ
13694 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
13695 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
13696 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
13697 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
13698 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
34909c20 13699 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
f5818d2f
AJ
13700 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
13701 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
13702 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
13703 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
13704 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
13705 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
13706 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
13707 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
13708 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
13709 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
13710 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
13711 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
13712 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
13713 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
13714 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
13715 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
13716 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
13717 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
13718 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
13719 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
13720 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
0307f6dc 13721 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
bed67fc9 13722 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
bcb9c46c 13723 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
f5818d2f
AJ
13724 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
13725 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
f6be044d 13726 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
f5818d2f
AJ
13727 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
13728 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
13729 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
13730 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
13731 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
13732 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
13733 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
13734 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
13735 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
13736 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
13737 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
13738 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
13739 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
13740 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
13741 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
13742 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
13743 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
13744 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
13745 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
13746 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
13747 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
13748 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
13749 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
13750 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
13751 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
13752 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
13753 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
4c692b9b 13754 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
f5818d2f
AJ
13755 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
13756 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
13757 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
6b0720f5 13758 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
f5818d2f
AJ
13759 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
13760 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
13761 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
13762 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
13763 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
13764 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
13765 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
13766 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
13767 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
13768 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
13769 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
13770 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
13771 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
13772 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
13773 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
13774 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
13775 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
13776 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
9b0ba7ca 13777 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
f5818d2f
AJ
13778 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
13779 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
13780 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
13781 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
13782 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
13783 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
13784 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
13785 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
13786 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
f5818d2f
AJ
13787 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13788 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
f5818d2f 13789 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
f5818d2f
AJ
13790 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
13791 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
13792 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
13793 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
13794 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
13795 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
acfda14a 13796 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
f5818d2f
AJ
13797 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
13798 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
13799 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
13800 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
4e2e176c 13801 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
2f0d85c2 13802 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
f5818d2f
AJ
13803 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
13804 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
13805 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
13806 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
13807 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
13808 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
0d8a9fac 13809 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
f5818d2f
AJ
13810 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
13811 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
13812 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
f5818d2f
AJ
13813 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13814 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13815 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
13816 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
13817 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
13818 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
13819 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
13820 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
13821 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
9bb05fc4 13822 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
f5818d2f
AJ
13823 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
13824 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
13825 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
13826 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
13827 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
13828 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
13829 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
13830 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
13831 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
89118568
AJ
13832 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
13833 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
13834 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
f5818d2f 13835 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
c72f0b21 13836 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
e8d97701 13837 "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
c74a791a 13838 "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;;
f5818d2f
AJ
13839 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
13840 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
c72f0b21 13841 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
f5818d2f 13842 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
9a68b7be 13843 "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;;
9bb05fc4
AJ
13844 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
13845 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
13846 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
13847 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
f5818d2f 13848 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
9bb05fc4
AJ
13849 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
13850 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
13851 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
13852 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
13853 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
13854 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
c72f0b21
AJ
13855 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
13856 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
9bb05fc4
AJ
13857 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
13858 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
13859 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
13860 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
f5818d2f 13861 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
daa2886c 13862 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
f5818d2f
AJ
13863echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13864 { (exit 1); exit 1; }; };;
13865 esac
13866done
13867
13868# If the user did not use the arguments to specify the items to instantiate,
13869# then the envvar interface is used. Set only those that are not.
13870# We use the long form for the default assignment because of an extremely
13871# bizarre bug on SunOS 4.1.3.
13872if $ac_need_defaults; then
13873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13876fi
13877
13878# Create a temporary directory, and hook for its removal unless debugging.
13879$debug ||
13880{
13881 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13882 trap '{ (exit 1); exit 1; }' 1 2 13 15
13883}
13884
13885# Create a (secure) tmp directory for tmp files.
13886: ${TMPDIR=/tmp}
13887{
13888 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13889 test -n "$tmp" && test -d "$tmp"
13890} ||
13891{
13892 tmp=$TMPDIR/cs$$-$RANDOM
13893 (umask 077 && mkdir $tmp)
13894} ||
13895{
13896 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13897 { (exit 1); exit 1; }
13898}
13899
daa2886c 13900_ACEOF
f5818d2f 13901
daa2886c 13902cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f
AJ
13903
13904#
13905# CONFIG_FILES section.
13906#
13907
13908# No need to generate the scripts if there are no CONFIG_FILES.
13909# This happens for instance when ./config.status config.h
13910if test -n "\$CONFIG_FILES"; then
13911 # Protect against being on the right side of a sed subst in config.status.
13912 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13913 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13914s,@SHELL@,$SHELL,;t t
daa2886c
AJ
13915s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13916s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13917s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13918s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13919s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13920s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
f5818d2f
AJ
13921s,@exec_prefix@,$exec_prefix,;t t
13922s,@prefix@,$prefix,;t t
13923s,@program_transform_name@,$program_transform_name,;t t
13924s,@bindir@,$bindir,;t t
13925s,@sbindir@,$sbindir,;t t
13926s,@libexecdir@,$libexecdir,;t t
13927s,@datadir@,$datadir,;t t
13928s,@sysconfdir@,$sysconfdir,;t t
13929s,@sharedstatedir@,$sharedstatedir,;t t
13930s,@localstatedir@,$localstatedir,;t t
13931s,@libdir@,$libdir,;t t
13932s,@includedir@,$includedir,;t t
13933s,@oldincludedir@,$oldincludedir,;t t
13934s,@infodir@,$infodir,;t t
13935s,@mandir@,$mandir,;t t
f5818d2f
AJ
13936s,@build_alias@,$build_alias,;t t
13937s,@host_alias@,$host_alias,;t t
13938s,@target_alias@,$target_alias,;t t
daa2886c 13939s,@DEFS@,$DEFS,;t t
f5818d2f
AJ
13940s,@ECHO_C@,$ECHO_C,;t t
13941s,@ECHO_N@,$ECHO_N,;t t
13942s,@ECHO_T@,$ECHO_T,;t t
f5818d2f
AJ
13943s,@LIBS@,$LIBS,;t t
13944s,@OPTIONS@,$OPTIONS,;t t
13945s,@build@,$build,;t t
13946s,@build_cpu@,$build_cpu,;t t
13947s,@build_vendor@,$build_vendor,;t t
13948s,@build_os@,$build_os,;t t
13949s,@host@,$host,;t t
13950s,@host_cpu@,$host_cpu,;t t
13951s,@host_vendor@,$host_vendor,;t t
13952s,@host_os@,$host_os,;t t
f5818d2f
AJ
13953s,@SET_MAKE@,$SET_MAKE,;t t
13954s,@CC@,$CC,;t t
13955s,@CFLAGS@,$CFLAGS,;t t
13956s,@LDFLAGS@,$LDFLAGS,;t t
13957s,@CPPFLAGS@,$CPPFLAGS,;t t
13958s,@ac_ct_CC@,$ac_ct_CC,;t t
13959s,@EXEEXT@,$EXEEXT,;t t
13960s,@OBJEXT@,$OBJEXT,;t t
13961s,@CPP@,$CPP,;t t
fc01b729 13962s,@TOOLSDIR@,$TOOLSDIR,;t t
f5818d2f
AJ
13963s,@X_CFLAGS@,$X_CFLAGS,;t t
13964s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13965s,@X_LIBS@,$X_LIBS,;t t
13966s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13967s,@YACC@,$YACC,;t t
13968s,@LEX@,$LEX,;t t
13969s,@LEXLIB@,$LEXLIB,;t t
13970s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13971s,@XYACC@,$XYACC,;t t
13972s,@XLEX@,$XLEX,;t t
fc01b729
AJ
13973s,@AR@,$AR,;t t
13974s,@ac_ct_AR@,$ac_ct_AR,;t t
f5818d2f
AJ
13975s,@RANLIB@,$RANLIB,;t t
13976s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
fc01b729
AJ
13977s,@STRIP@,$STRIP,;t t
13978s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13979s,@WINDRES@,$WINDRES,;t t
13980s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
f5818d2f
AJ
13981s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13982s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13983s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13984s,@LN_S@,$LN_S,;t t
df234a9f 13985s,@LN@,$LN,;t t
f5818d2f
AJ
13986s,@C2MAN@,$C2MAN,;t t
13987s,@LDCONFIG@,$LDCONFIG,;t t
fc01b729
AJ
13988s,@LDCOMBINE@,$LDCOMBINE,;t t
13989s,@ac_ct_LDCOMBINE@,$ac_ct_LDCOMBINE,;t t
f5818d2f
AJ
13990s,@LINT@,$LINT,;t t
13991s,@LINTFLAGS@,$LINTFLAGS,;t t
f5818d2f
AJ
13992s,@JPEGLIB@,$JPEGLIB,;t t
13993s,@XLIB@,$XLIB,;t t
13994s,@XFILES@,$XFILES,;t t
13995s,@OPENGLFILES@,$OPENGLFILES,;t t
13996s,@GLU32FILES@,$GLU32FILES,;t t
13997s,@CURSESLIBS@,$CURSESLIBS,;t t
13998s,@CUPSLIBS@,$CUPSLIBS,;t t
6b0720f5
SQH
13999s,@sane_devel@,$sane_devel,;t t
14000s,@SANELIBS@,$SANELIBS,;t t
14001s,@SANEINCL@,$SANEINCL,;t t
f5818d2f
AJ
14002s,@ft_devel@,$ft_devel,;t t
14003s,@ft_devel2@,$ft_devel2,;t t
f5818d2f 14004s,@FREETYPEINCL@,$FREETYPEINCL,;t t
9b0ba7ca
CM
14005s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14006s,@ARTSLIBS@,$ARTSLIBS,;t t
14007s,@ARTSINCL@,$ARTSINCL,;t t
f5818d2f 14008s,@DLLWRAP@,$DLLWRAP,;t t
fc01b729 14009s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
fa3a5360 14010s,@DLLIBS@,$DLLIBS,;t t
f5818d2f 14011s,@DLLFLAGS@,$DLLFLAGS,;t t
c1bfca04 14012s,@DLLEXT@,$DLLEXT,;t t
f5818d2f
AJ
14013s,@LDSHARED@,$LDSHARED,;t t
14014s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14015s,@LIBEXT@,$LIBEXT,;t t
14016s,@LDPATH@,$LDPATH,;t t
67e8dc68 14017s,@LDD@,$LDD,;t t
f5818d2f 14018s,@ALLOCA@,$ALLOCA,;t t
ff8331ea 14019/@MAKE_RULES@/r $MAKE_RULES
f5818d2f 14020s,@MAKE_RULES@,,;t t
d0edc5fe 14021/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
f5818d2f 14022s,@MAKE_DLL_RULES@,,;t t
626f425b 14023/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
f5818d2f 14024s,@MAKE_PROG_RULES@,,;t t
e2991ea7 14025CEOF
f5818d2f 14026
daa2886c 14027_ACEOF
da0cfb36 14028
daa2886c 14029 cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
14030 # Split the substitutions into bite-sized pieces for seds with
14031 # small command number limits, like on Digital OSF/1 and HP-UX.
14032 ac_max_sed_lines=48
14033 ac_sed_frag=1 # Number of current file.
14034 ac_beg=1 # First line for current file.
14035 ac_end=$ac_max_sed_lines # Line after last line for current file.
14036 ac_more_lines=:
14037 ac_sed_cmds=
14038 while $ac_more_lines; do
14039 if test $ac_beg -gt 1; then
14040 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14041 else
14042 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14043 fi
14044 if test ! -s $tmp/subs.frag; then
14045 ac_more_lines=false
da0cfb36 14046 else
f5818d2f
AJ
14047 # The purpose of the label and of the branching condition is to
14048 # speed up the sed processing (if there are no `@' at all, there
14049 # is no need to browse any of the substitutions).
14050 # These are the two extra sed commands mentioned above.
14051 (echo ':t
14052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14053 if test -z "$ac_sed_cmds"; then
14054 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14055 else
14056 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14057 fi
14058 ac_sed_frag=`expr $ac_sed_frag + 1`
14059 ac_beg=$ac_end
14060 ac_end=`expr $ac_end + $ac_max_sed_lines`
da0cfb36 14061 fi
f5818d2f
AJ
14062 done
14063 if test -z "$ac_sed_cmds"; then
14064 ac_sed_cmds=cat
da0cfb36 14065 fi
f5818d2f 14066fi # test -n "$CONFIG_FILES"
da0cfb36 14067
daa2886c
AJ
14068_ACEOF
14069cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f 14070for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7e6ae4ba 14071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f5818d2f
AJ
14072 case $ac_file in
14073 - | *:- | *:-:* ) # input from stdin
14074 cat >$tmp/stdin
14075 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14077 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14078 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14079 * ) ac_file_in=$ac_file.in ;;
e2991ea7
AJ
14080 esac
14081
f5818d2f 14082 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
daa2886c
AJ
14083 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f5818d2f
AJ
14085 X"$ac_file" : 'X\(//\)[^/]' \| \
14086 X"$ac_file" : 'X\(//\)$' \| \
14087 X"$ac_file" : 'X\(/\)' \| \
14088 . : '\(.\)' 2>/dev/null ||
14089echo X"$ac_file" |
14090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14092 /^X\(\/\/\)$/{ s//\1/; q; }
14093 /^X\(\/\).*/{ s//\1/; q; }
14094 s/.*/./; q'`
daa2886c 14095 { case "$ac_dir" in
f5818d2f
AJ
14096 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14097 *) as_incr_dir=.;;
14098esac
14099as_dummy="$ac_dir"
14100for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14101 case $as_mkdir_dir in
14102 # Skip DOS drivespec
14103 ?:) as_incr_dir=$as_mkdir_dir ;;
14104 *)
14105 as_incr_dir=$as_incr_dir/$as_mkdir_dir
daa2886c
AJ
14106 test -d "$as_incr_dir" ||
14107 mkdir "$as_incr_dir" ||
14108 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14109echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14110 { (exit 1); exit 1; }; }
f5818d2f
AJ
14111 ;;
14112 esac
14113done; }
14114
daa2886c 14115 ac_builddir=.
e2991ea7 14116
daa2886c
AJ
14117if test "$ac_dir" != .; then
14118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14119 # A "../" for each directory in $ac_dir_suffix.
14120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14121else
14122 ac_dir_suffix= ac_top_builddir=
14123fi
14124
14125case $srcdir in
14126 .) # No --srcdir option. We are building in place.
14127 ac_srcdir=.
14128 if test -z "$ac_top_builddir"; then
14129 ac_top_srcdir=.
14130 else
14131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14132 fi ;;
14133 [\\/]* | ?:[\\/]* ) # Absolute path.
14134 ac_srcdir=$srcdir$ac_dir_suffix;
14135 ac_top_srcdir=$srcdir ;;
e2991ea7 14136 *) # Relative path.
daa2886c
AJ
14137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14139esac
14140# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14141# absolute.
14142ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14143ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14144ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14145ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14146
e2991ea7 14147
f5818d2f
AJ
14148 case $INSTALL in
14149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
daa2886c 14150 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d7d4fdf8 14151 esac
da0cfb36 14152
f5818d2f 14153 if test x"$ac_file" != x-; then
daa2886c 14154 { echo "$as_me:$LINENO: creating $ac_file" >&5
f5818d2f
AJ
14155echo "$as_me: creating $ac_file" >&6;}
14156 rm -f "$ac_file"
14157 fi
14158 # Let's still pretend it is `configure' which instantiates (i.e., don't
14159 # use $as_me), people would be surprised to read:
daa2886c
AJ
14160 # /* config.h. Generated by config.status. */
14161 if test x"$ac_file" = x-; then
14162 configure_input=
14163 else
14164 configure_input="$ac_file. "
14165 fi
14166 configure_input=$configure_input"Generated from `echo $ac_file_in |
14167 sed 's,.*/,,'` by configure."
f5818d2f
AJ
14168
14169 # First look for the input files in the build tree, otherwise in the
14170 # src tree.
14171 ac_file_inputs=`IFS=:
14172 for f in $ac_file_in; do
14173 case $f in
14174 -) echo $tmp/stdin ;;
14175 [\\/$]*)
14176 # Absolute (can't be DOS-style, as IFS=:)
daa2886c 14177 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
14178echo "$as_me: error: cannot find input file: $f" >&2;}
14179 { (exit 1); exit 1; }; }
14180 echo $f;;
14181 *) # Relative
14182 if test -f "$f"; then
14183 # Build tree
14184 echo $f
14185 elif test -f "$srcdir/$f"; then
14186 # Source tree
14187 echo $srcdir/$f
14188 else
14189 # /dev/null tree
daa2886c 14190 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
14191echo "$as_me: error: cannot find input file: $f" >&2;}
14192 { (exit 1); exit 1; }; }
14193 fi;;
14194 esac
14195 done` || { (exit 1); exit 1; }
daa2886c
AJ
14196_ACEOF
14197cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f
AJ
14198 sed "$ac_vpsub
14199$extrasub
daa2886c
AJ
14200_ACEOF
14201cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
14202:t
14203/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14204s,@configure_input@,$configure_input,;t t
14205s,@srcdir@,$ac_srcdir,;t t
daa2886c 14206s,@abs_srcdir@,$ac_abs_srcdir,;t t
f5818d2f 14207s,@top_srcdir@,$ac_top_srcdir,;t t
daa2886c
AJ
14208s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14209s,@builddir@,$ac_builddir,;t t
14210s,@abs_builddir@,$ac_abs_builddir,;t t
14211s,@top_builddir@,$ac_top_builddir,;t t
14212s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
f5818d2f
AJ
14213s,@INSTALL@,$ac_INSTALL,;t t
14214" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14215 rm -f $tmp/stdin
14216 if test x"$ac_file" != x-; then
14217 mv $tmp/out $ac_file
14218 else
14219 cat $tmp/out
14220 rm -f $tmp/out
14221 fi
7e6ae4ba 14222
f5818d2f 14223done
daa2886c
AJ
14224_ACEOF
14225cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
14226
14227#
14228# CONFIG_HEADER section.
14229#
e2991ea7 14230
18f92e76
AJ
14231# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14232# NAME is the cpp macro being defined and VALUE is the value it is being given.
14233#
14234# ac_d sets the value in "#define NAME VALUE" lines.
f5818d2f
AJ
14235ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14236ac_dB='[ ].*$,\1#\2'
14237ac_dC=' '
14238ac_dD=',;t'
14239# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14240ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14241ac_uB='$,\1#\2define\3'
18f92e76 14242ac_uC=' '
f5818d2f
AJ
14243ac_uD=',;t'
14244
14245for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7e6ae4ba 14246 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f5818d2f
AJ
14247 case $ac_file in
14248 - | *:- | *:-:* ) # input from stdin
14249 cat >$tmp/stdin
14250 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14251 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14252 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14254 * ) ac_file_in=$ac_file.in ;;
18f92e76
AJ
14255 esac
14256
daa2886c 14257 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
f5818d2f
AJ
14258echo "$as_me: creating $ac_file" >&6;}
14259
14260 # First look for the input files in the build tree, otherwise in the
14261 # src tree.
14262 ac_file_inputs=`IFS=:
14263 for f in $ac_file_in; do
14264 case $f in
14265 -) echo $tmp/stdin ;;
14266 [\\/$]*)
14267 # Absolute (can't be DOS-style, as IFS=:)
daa2886c 14268 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
14269echo "$as_me: error: cannot find input file: $f" >&2;}
14270 { (exit 1); exit 1; }; }
14271 echo $f;;
14272 *) # Relative
14273 if test -f "$f"; then
14274 # Build tree
14275 echo $f
14276 elif test -f "$srcdir/$f"; then
14277 # Source tree
14278 echo $srcdir/$f
14279 else
14280 # /dev/null tree
daa2886c 14281 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
14282echo "$as_me: error: cannot find input file: $f" >&2;}
14283 { (exit 1); exit 1; }; }
14284 fi;;
14285 esac
14286 done` || { (exit 1); exit 1; }
14287 # Remove the trailing spaces.
14288 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14289
daa2886c 14290_ACEOF
f5818d2f
AJ
14291
14292# Transform confdefs.h into two sed scripts, `conftest.defines' and
14293# `conftest.undefs', that substitutes the proper values into
14294# config.h.in to produce config.h. The first handles `#define'
14295# templates, and the second `#undef' templates.
14296# And first: Protect against being on the right side of a sed subst in
14297# config.status. Protect against being in an unquoted here document
14298# in config.status.
14299rm -f conftest.defines conftest.undefs
14300# Using a here document instead of a string reduces the quoting nightmare.
14301# Putting comments in sed scripts is not portable.
14302#
14303# `end' is used to avoid that the second main sed command (meant for
14304# 0-ary CPP macros) applies to n-ary macro definitions.
14305# See the Autoconf documentation for `clear'.
daa2886c 14306cat >confdef2sed.sed <<\_ACEOF
f5818d2f
AJ
14307s/[\\&,]/\\&/g
14308s,[\\$`],\\&,g
14309t clear
14310: clear
daa2886c 14311s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
f5818d2f
AJ
14312t end
14313s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14314: end
daa2886c 14315_ACEOF
f5818d2f
AJ
14316# If some macros were called several times there might be several times
14317# the same #defines, which is useless. Nevertheless, we may not want to
14318# sort them, since we want the *last* AC-DEFINE to be honored.
14319uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14320sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14321rm -f confdef2sed.sed
18f92e76
AJ
14322
14323# This sed command replaces #undef with comments. This is necessary, for
14324# example, in the case of _POSIX_SOURCE, which is predefined and required
14325# on some systems where configure will not decide to define it.
daa2886c 14326cat >>conftest.undefs <<\_ACEOF
f5818d2f 14327s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
daa2886c 14328_ACEOF
18f92e76 14329
f5818d2f
AJ
14330# Break up conftest.defines because some shells have a limit on the size
14331# of here documents, and old seds have small limits too (100 cmds).
14332echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14333echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14334echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14335echo ' :' >>$CONFIG_STATUS
14336rm -f conftest.tail
14337while grep . conftest.defines >/dev/null
14338do
14339 # Write a limited-size here document to $tmp/defines.sed.
14340 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14341 # Speed up: don't consider the non `#define' lines.
14342 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14343 # Work around the forget-to-reset-the-flag bug.
14344 echo 't clr' >>$CONFIG_STATUS
14345 echo ': clr' >>$CONFIG_STATUS
14346 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14347 echo 'CEOF
14348 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14349 rm -f $tmp/in
14350 mv $tmp/out $tmp/in
14351' >>$CONFIG_STATUS
14352 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14353 rm -f conftest.defines
14354 mv conftest.tail conftest.defines
14355done
14356rm -f conftest.defines
14357echo ' fi # egrep' >>$CONFIG_STATUS
14358echo >>$CONFIG_STATUS
18f92e76 14359
f5818d2f
AJ
14360# Break up conftest.undefs because some shells have a limit on the size
14361# of here documents, and old seds have small limits too (100 cmds).
14362echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18f92e76 14363rm -f conftest.tail
f5818d2f 14364while grep . conftest.undefs >/dev/null
18f92e76 14365do
f5818d2f
AJ
14366 # Write a limited-size here document to $tmp/undefs.sed.
14367 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14368 # Speed up: don't consider the non `#undef'
14369 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14370 # Work around the forget-to-reset-the-flag bug.
14371 echo 't clr' >>$CONFIG_STATUS
14372 echo ': clr' >>$CONFIG_STATUS
14373 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18f92e76 14374 echo 'CEOF
f5818d2f
AJ
14375 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14376 rm -f $tmp/in
14377 mv $tmp/out $tmp/in
14378' >>$CONFIG_STATUS
14379 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14380 rm -f conftest.undefs
14381 mv conftest.tail conftest.undefs
18f92e76 14382done
f5818d2f
AJ
14383rm -f conftest.undefs
14384
daa2886c 14385cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
14386 # Let's still pretend it is `configure' which instantiates (i.e., don't
14387 # use $as_me), people would be surprised to read:
daa2886c 14388 # /* config.h. Generated by config.status. */
f5818d2f 14389 if test x"$ac_file" = x-; then
daa2886c 14390 echo "/* Generated by configure. */" >$tmp/config.h
18f92e76 14391 else
daa2886c 14392 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
f5818d2f
AJ
14393 fi
14394 cat $tmp/in >>$tmp/config.h
14395 rm -f $tmp/in
14396 if test x"$ac_file" != x-; then
14397 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
daa2886c 14398 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
f5818d2f
AJ
14399echo "$as_me: $ac_file is unchanged" >&6;}
14400 else
daa2886c
AJ
14401 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f5818d2f
AJ
14403 X"$ac_file" : 'X\(//\)[^/]' \| \
14404 X"$ac_file" : 'X\(//\)$' \| \
14405 X"$ac_file" : 'X\(/\)' \| \
14406 . : '\(.\)' 2>/dev/null ||
14407echo X"$ac_file" |
14408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14410 /^X\(\/\/\)$/{ s//\1/; q; }
14411 /^X\(\/\).*/{ s//\1/; q; }
14412 s/.*/./; q'`
daa2886c 14413 { case "$ac_dir" in
f5818d2f
AJ
14414 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14415 *) as_incr_dir=.;;
14416esac
14417as_dummy="$ac_dir"
14418for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14419 case $as_mkdir_dir in
14420 # Skip DOS drivespec
14421 ?:) as_incr_dir=$as_mkdir_dir ;;
14422 *)
14423 as_incr_dir=$as_incr_dir/$as_mkdir_dir
daa2886c
AJ
14424 test -d "$as_incr_dir" ||
14425 mkdir "$as_incr_dir" ||
14426 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14427echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14428 { (exit 1); exit 1; }; }
f5818d2f
AJ
14429 ;;
14430 esac
14431done; }
14432
f5818d2f
AJ
14433 rm -f $ac_file
14434 mv $tmp/config.h $ac_file
18f92e76 14435 fi
f5818d2f
AJ
14436 else
14437 cat $tmp/config.h
14438 rm -f $tmp/config.h
18f92e76 14439 fi
f5818d2f 14440done
daa2886c
AJ
14441_ACEOF
14442cat >>$CONFIG_STATUS <<\_ACEOF
18f92e76 14443
f5818d2f
AJ
14444#
14445# CONFIG_COMMANDS section.
14446#
14447for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14448 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14449 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
daa2886c
AJ
14450 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14451$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14452 X"$ac_dest" : 'X\(//\)[^/]' \| \
14453 X"$ac_dest" : 'X\(//\)$' \| \
14454 X"$ac_dest" : 'X\(/\)' \| \
14455 . : '\(.\)' 2>/dev/null ||
14456echo X"$ac_dest" |
14457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14459 /^X\(\/\/\)$/{ s//\1/; q; }
14460 /^X\(\/\).*/{ s//\1/; q; }
14461 s/.*/./; q'`
14462 ac_builddir=.
f5818d2f 14463
daa2886c
AJ
14464if test "$ac_dir" != .; then
14465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14466 # A "../" for each directory in $ac_dir_suffix.
14467 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14468else
14469 ac_dir_suffix= ac_top_builddir=
14470fi
14471
14472case $srcdir in
14473 .) # No --srcdir option. We are building in place.
14474 ac_srcdir=.
14475 if test -z "$ac_top_builddir"; then
14476 ac_top_srcdir=.
14477 else
14478 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14479 fi ;;
14480 [\\/]* | ?:[\\/]* ) # Absolute path.
14481 ac_srcdir=$srcdir$ac_dir_suffix;
14482 ac_top_srcdir=$srcdir ;;
14483 *) # Relative path.
14484 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14485 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14486esac
14487# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14488# absolute.
14489ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14490ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14491ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14492ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14493
14494
14495 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14496echo "$as_me: executing $ac_dest commands" >&6;}
f5818d2f 14497 case $ac_dest in
9bb05fc4
AJ
14498 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
14499echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
daa2886c 14500 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
f5818d2f 14501echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
daa2886c 14502 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
f5818d2f 14503echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
daa2886c 14504 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
f5818d2f 14505echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
daa2886c 14506 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
f5818d2f 14507echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
daa2886c 14508 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
f5818d2f 14509echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
daa2886c 14510 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
f5818d2f 14511echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
daa2886c 14512 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
f5818d2f 14513echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
daa2886c 14514 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
f5818d2f 14515echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
daa2886c 14516 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
f5818d2f 14517echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
daa2886c 14518 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
89118568 14519echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
daa2886c 14520 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
89118568 14521echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
daa2886c 14522 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
89118568 14523echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
daa2886c 14524 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
f5818d2f 14525echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
daa2886c 14526 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
c72f0b21 14527echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
daa2886c 14528 dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
e8d97701 14529echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
c74a791a
JS
14530 dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5
14531echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;;
daa2886c 14532 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
f5818d2f 14533echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
daa2886c 14534 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
f5818d2f 14535echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
daa2886c 14536 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
c72f0b21 14537echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
daa2886c 14538 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
f5818d2f 14539echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
9a68b7be
AJ
14540 dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5
14541echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;;
9bb05fc4
AJ
14542 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
14543echo "$as_me: creating files" >&6;} && mkdir "files") ;;
14544 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
14545echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
14546 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
14547echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
14548 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
14549echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
daa2886c 14550 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
f5818d2f 14551echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
9bb05fc4
AJ
14552 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
14553echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
14554 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
14555echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
14556 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
14557echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
14558 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
14559echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
14560 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
14561echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
14562 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
14563echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
daa2886c 14564 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
c72f0b21 14565echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
daa2886c 14566 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
c72f0b21 14567echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
9bb05fc4
AJ
14568 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
14569echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
14570 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
14571echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
14572 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
14573echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
14574 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
14575echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
f5818d2f
AJ
14576 esac
14577done
daa2886c 14578_ACEOF
e2991ea7 14579
daa2886c 14580cat >>$CONFIG_STATUS <<\_ACEOF
87a2f8df 14581
f5818d2f 14582{ (exit 0); exit 0; }
daa2886c 14583_ACEOF
e2991ea7 14584chmod +x $CONFIG_STATUS
f5818d2f
AJ
14585ac_clean_files=$ac_clean_files_save
14586
daa2886c 14587
f5818d2f
AJ
14588# configure is writing to config.log, and then calls config.status.
14589# config.status does its own redirection, appending to config.log.
14590# Unfortunately, on DOS this fails, as config.log is still kept open
14591# by configure, so config.status won't be able to write to it; its
14592# output is simply discarded. So we exec the FD to /dev/null,
14593# effectively closing config.log, so it can be properly (re)opened and
14594# appended to by config.status. When coming back to configure, we
14595# need to make the FD available again.
14596if test "$no_create" != yes; then
14597 ac_cs_success=:
14598 exec 5>/dev/null
14599 $SHELL $CONFIG_STATUS || ac_cs_success=false
14600 exec 5>>config.log
14601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14602 # would make configure fail if this is the last instruction.
14603 $ac_cs_success || { (exit 1); exit 1; }
14604fi
e2991ea7 14605
daa2886c 14606
8b4431f1
OK
14607if test "$have_x" = "no"
14608then
14609 echo
14610 echo "*** Warning: X development files not found. Wine will be built without"
14611 echo "*** X support, which currently does not work, and would probably not be"
14612 echo "*** what you want anyway. You will need to install devel packages of"
18e4b5e2 14613 echo "*** Xlib/Xfree86 at the very least."
8b4431f1
OK
14614fi
14615
638f169b
AJ
14616if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
14617then
14618 echo
14619 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
14620 echo "*** terminal resize support. Consider upgrading ncurses."
638f169b
AJ
14621fi
14622
f5818d2f 14623if test "$wine_cv_libc_reentrant" = "no"
d30dfd24
AJ
14624then
14625 echo
f5818d2f
AJ
14626 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
14627 echo "*** threading support. Consider upgrading libc to a more recent"
d30dfd24 14628 echo "*** reentrant version of libc."
d30dfd24
AJ
14629fi
14630
867fb9d7
AJ
14631if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
14632then
14633 echo
14634 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
14635 echo "*** applications won't work properly. You should upgrade your X11 library."
14636fi
14637
bedf40b5 14638if test "$wine_cv_opengl_version_OK" = "no"
5c085704
LU
14639then
14640 echo
14641 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5eee0bff
LU
14642 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
14643fi
14644
f5818d2f 14645if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
5eee0bff
LU
14646then
14647 echo
14648 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
fbc15b17 14649 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
18a9d741 14650 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
fbc15b17
LU
14651 echo "*** start configure with '--enable-opengl' to force OpenGL support."
14652fi
14653
f5818d2f 14654if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
fbc15b17
LU
14655then
14656 echo
d6c0f9f7 14657 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
fbc15b17
LU
14658 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
14659 echo "*** support before reporting bugs."
5c085704
LU
14660fi
14661
3ee02bab
MM
14662if test "$wine_cv_warn_cups_h" = "yes"
14663then
14664 echo
14665 echo "*** Note: You have cups runtime libraries, but no development"
14666 echo "*** libraries. Install the cups-devel package or whichever package"
f5818d2f 14667 echo "*** contains cups.h to enable CUPS support in Wine."
3ee02bab 14668fi
fbc15b17 14669
563598d4
IP
14670if test "$wine_cv_msg_freetype" = "yes"
14671then
14672 echo
14673 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
f5818d2f
AJ
14674 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
14675 echo "*** freetype-devel package (or its equivalent on your distribution) to"
14676 echo "*** enable Wine to use TrueType fonts."
563598d4
IP
14677fi
14678
e2991ea7 14679echo
1511bae7 14680echo "Configure finished. Do 'make depend && make' to compile Wine."
e2991ea7
AJ
14681echo
14682