Added preliminary support for cross-compiling tests using mingw on
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20020904.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
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
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
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
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
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
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
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
147 done
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
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
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.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${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
254 # Identity of this package.
255 PACKAGE_NAME='Wine'
256 PACKAGE_TARNAME='wine'
257 PACKAGE_VERSION='20020904'
258 PACKAGE_STRING='Wine 20020904'
259 PACKAGE_BUGREPORT=''
260
261 ac_unique_file="server/atom.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
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.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
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
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
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=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
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 ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
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=*)
449     libexecdir=$ac_optarg ;;
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=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
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 \
470   | --no-cr | --no-c | -n)
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
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
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=*)
496     program_prefix=$ac_optarg ;;
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=*)
503     program_suffix=$ac_optarg ;;
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=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
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=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
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=*)
602     x_includes=$ac_optarg ;;
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=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
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
626   *)
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}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760   # Omit some internal or obsolete options to make the list less imposing.
761   # This message is too long to be a string in the A/UX 3.1 sh.
762   cat <<_ACEOF
763 \`configure' configures Wine 20020904 to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773   -h, --help              display this help and exit
774       --help=short        display options specific to this package
775       --help=recursive    display the short help of all the included packages
776   -V, --version           display version information and exit
777   -q, --quiet, --silent   do not print \`checking...' messages
778       --cache-file=FILE   cache test results in FILE [disabled]
779   -C, --config-cache      alias for \`--cache-file=config.cache'
780   -n, --no-create         do not create output files
781       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785   cat <<_ACEOF
786 Installation directories:
787   --prefix=PREFIX         install architecture-independent files in PREFIX
788                           [$ac_default_prefix]
789   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                           [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800   --bindir=DIR           user executables [EPREFIX/bin]
801   --sbindir=DIR          system admin executables [EPREFIX/sbin]
802   --libexecdir=DIR       program executables [EPREFIX/libexec]
803   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807   --libdir=DIR           object code libraries [EPREFIX/lib]
808   --includedir=DIR       C header files [PREFIX/include]
809   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810   --infodir=DIR          info documentation [PREFIX/info]
811   --mandir=DIR           man documentation [PREFIX/man]
812 _ACEOF
813
814   cat <<\_ACEOF
815
816 X features:
817   --x-includes=DIR    X include files are in DIR
818   --x-libraries=DIR   X library files are in DIR
819
820 System types:
821   --build=BUILD     configure for building on BUILD [guessed]
822   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
823 _ACEOF
824 fi
825
826 if test -n "$ac_init_help"; then
827   case $ac_init_help in
828      short | recursive ) echo "Configuration of Wine 20020904:";;
829    esac
830   cat <<\_ACEOF
831
832 Optional Features:
833   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
834   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
835   --disable-debug         compile out all debugging messages
836   --disable-trace         compile out TRACE messages
837   --enable-opengl         force usage of OpenGL even if the latter is
838                           thread-safe via pthread
839
840 Optional Packages:
841   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
842   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
843   --without-curses        do not use curses
844   --with-wine-tools=<dir> use Wine tools from directory <dir>
845   --with-x                use the X Window System
846
847 Some influential environment variables:
848   CC          C compiler command
849   CFLAGS      C compiler flags
850   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
851               nonstandard directory <lib dir>
852   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
853               headers in a nonstandard directory <include dir>
854   CPP         C preprocessor
855
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
858
859 _ACEOF
860 fi
861
862 if test "$ac_init_help" = "recursive"; then
863   # If there are subdirs, report their specific --help.
864   ac_popdir=`pwd`
865   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866     test -d $ac_dir || continue
867     ac_builddir=.
868
869 if test "$ac_dir" != .; then
870   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871   # A "../" for each directory in $ac_dir_suffix.
872   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873 else
874   ac_dir_suffix= ac_top_builddir=
875 fi
876
877 case $srcdir in
878   .)  # No --srcdir option.  We are building in place.
879     ac_srcdir=.
880     if test -z "$ac_top_builddir"; then
881        ac_top_srcdir=.
882     else
883        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884     fi ;;
885   [\\/]* | ?:[\\/]* )  # Absolute path.
886     ac_srcdir=$srcdir$ac_dir_suffix;
887     ac_top_srcdir=$srcdir ;;
888   *) # Relative path.
889     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890     ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 esac
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893 # absolute.
894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
898
899     cd $ac_dir
900     # Check for guested configure; otherwise get Cygnus style configure.
901     if test -f $ac_srcdir/configure.gnu; then
902       echo
903       $SHELL $ac_srcdir/configure.gnu  --help=recursive
904     elif test -f $ac_srcdir/configure; then
905       echo
906       $SHELL $ac_srcdir/configure  --help=recursive
907     elif test -f $ac_srcdir/configure.ac ||
908            test -f $ac_srcdir/configure.in; then
909       echo
910       $ac_configure --help
911     else
912       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
913     fi
914     cd $ac_popdir
915   done
916 fi
917
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
920   cat <<\_ACEOF
921 Wine configure 20020904
922 generated by GNU Autoconf 2.53
923
924 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
925 Free Software Foundation, Inc.
926 This configure script is free software; the Free Software Foundation
927 gives unlimited permission to copy, distribute and modify it.
928 _ACEOF
929   exit 0
930 fi
931 exec 5>config.log
932 cat >&5 <<_ACEOF
933 This file contains any messages produced by compilers while
934 running configure, to aid debugging if configure makes a mistake.
935
936 It was created by Wine $as_me 20020904, which was
937 generated by GNU Autoconf 2.53.  Invocation command line was
938
939   $ $0 $@
940
941 _ACEOF
942 {
943 cat <<_ASUNAME
944 ## --------- ##
945 ## Platform. ##
946 ## --------- ##
947
948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
960 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
961 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
962 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
963 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
964
965 _ASUNAME
966
967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968 for as_dir in $PATH
969 do
970   IFS=$as_save_IFS
971   test -z "$as_dir" && as_dir=.
972   echo "PATH: $as_dir"
973 done
974
975 } >&5
976
977 cat >&5 <<_ACEOF
978
979
980 ## ----------- ##
981 ## Core tests. ##
982 ## ----------- ##
983
984 _ACEOF
985
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.
990 ac_configure_args=
991 ac_sep=
992 for ac_arg
993 do
994   case $ac_arg in
995   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996   | --no-cr | --no-c | -n ) continue ;;
997   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999     continue ;;
1000   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002   esac
1003   case " $ac_configure_args " in
1004     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1005     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006        ac_sep=" " ;;
1007   esac
1008   # Get rid of the leading space.
1009 done
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.
1014 # WARNING: Be sure not to use single quotes in there, as some shells,
1015 # such as our DU 5.0 friend, will then `close' the trap.
1016 trap 'exit_status=$?
1017   # Save into config.log some information that might help in debugging.
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,
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;
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 &&
1058     exit $exit_status
1059      ' 0
1060 for ac_signal in 1 2 13 15; do
1061   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1062 done
1063 ac_signal=0
1064
1065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1066 rm -rf conftest* confdefs.h
1067 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1068 echo >confdefs.h
1069
1070 # Predefined preprocessor variables.
1071
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_NAME "$PACKAGE_NAME"
1074 _ACEOF
1075
1076
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1079 _ACEOF
1080
1081
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1084 _ACEOF
1085
1086
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_STRING "$PACKAGE_STRING"
1089 _ACEOF
1090
1091
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1094 _ACEOF
1095
1096
1097 # Let the site file select an alternate cache file if it wants to.
1098 # Prefer explicitly selected file to automatically selected ones.
1099 if test -z "$CONFIG_SITE"; then
1100   if test "x$prefix" != xNONE; then
1101     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1102   else
1103     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1104   fi
1105 fi
1106 for ac_site_file in $CONFIG_SITE; do
1107   if test -r "$ac_site_file"; then
1108     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1109 echo "$as_me: loading site script $ac_site_file" >&6;}
1110     sed 's/^/| /' "$ac_site_file" >&5
1111     . "$ac_site_file"
1112   fi
1113 done
1114
1115 if test -r "$cache_file"; then
1116   # Some versions of bash will fail to source /dev/null (special
1117   # files actually), so we avoid doing that.
1118   if test -f "$cache_file"; then
1119     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1120 echo "$as_me: loading cache $cache_file" >&6;}
1121     case $cache_file in
1122       [\\/]* | ?:[\\/]* ) . $cache_file;;
1123       *)                      . ./$cache_file;;
1124     esac
1125   fi
1126 else
1127   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1128 echo "$as_me: creating cache $cache_file" >&6;}
1129   >$cache_file
1130 fi
1131
1132 # Check that the precious variables saved in the cache have kept the same
1133 # value.
1134 ac_cache_corrupted=false
1135 for ac_var in `(set) 2>&1 |
1136                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1137   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1138   eval ac_new_set=\$ac_env_${ac_var}_set
1139   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1140   eval ac_new_val="\$ac_env_${ac_var}_value"
1141   case $ac_old_set,$ac_new_set in
1142     set,)
1143       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1144 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1145       ac_cache_corrupted=: ;;
1146     ,set)
1147       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1148 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1149       ac_cache_corrupted=: ;;
1150     ,);;
1151     *)
1152       if test "x$ac_old_val" != "x$ac_new_val"; then
1153         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1154 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1155         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1156 echo "$as_me:   former value:  $ac_old_val" >&2;}
1157         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1158 echo "$as_me:   current value: $ac_new_val" >&2;}
1159         ac_cache_corrupted=:
1160       fi;;
1161   esac
1162   # Pass precious variables to config.status.
1163   if test "$ac_new_set" = set; then
1164     case $ac_new_val in
1165     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1167     *) ac_arg=$ac_var=$ac_new_val ;;
1168     esac
1169     case " $ac_configure_args " in
1170       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1171       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1172     esac
1173   fi
1174 done
1175 if $ac_cache_corrupted; then
1176   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1177 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1178   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1179 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1180    { (exit 1); exit 1; }; }
1181 fi
1182
1183 ac_ext=c
1184 ac_cpp='$CPP $CPPFLAGS'
1185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1188
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
1214
1215 ac_config_headers="$ac_config_headers include/config.h"
1216
1217 ac_aux_dir=
1218 for ac_dir in tools $srcdir/tools; do
1219   if test -f $ac_dir/install-sh; then
1220     ac_aux_dir=$ac_dir
1221     ac_install_sh="$ac_aux_dir/install-sh -c"
1222     break
1223   elif test -f $ac_dir/install.sh; then
1224     ac_aux_dir=$ac_dir
1225     ac_install_sh="$ac_aux_dir/install.sh -c"
1226     break
1227   elif test -f $ac_dir/shtool; then
1228     ac_aux_dir=$ac_dir
1229     ac_install_sh="$ac_aux_dir/shtool install -c"
1230     break
1231   fi
1232 done
1233 if test -z "$ac_aux_dir"; then
1234   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1235 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1236    { (exit 1); exit 1; }; }
1237 fi
1238 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1241
1242
1243
1244 LIBEXT="so"
1245
1246
1247 # Check whether --enable-debug or --disable-debug was given.
1248 if test "${enable_debug+set}" = set; then
1249   enableval="$enable_debug"
1250
1251 fi;
1252 # Check whether --enable-trace or --disable-trace was given.
1253 if test "${enable_trace+set}" = set; then
1254   enableval="$enable_trace"
1255
1256 fi;
1257 # Check whether --enable-opengl or --disable-opengl was given.
1258 if test "${enable_opengl+set}" = set; then
1259   enableval="$enable_opengl"
1260
1261 fi;
1262
1263 # Check whether --with-curses or --without-curses was given.
1264 if test "${with_curses+set}" = set; then
1265   withval="$with_curses"
1266
1267 fi;
1268
1269 # Check whether --with-wine-tools or --without-wine-tools was given.
1270 if test "${with_wine_tools+set}" = set; then
1271   withval="$with_wine_tools"
1272
1273 fi;
1274
1275
1276 if test "x$enable_debug" = "xno"
1277 then
1278
1279 cat >>confdefs.h <<\_ACEOF
1280 #define NO_DEBUG_MSGS 1
1281 _ACEOF
1282
1283 fi
1284 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1285 then
1286
1287 cat >>confdefs.h <<\_ACEOF
1288 #define NO_TRACE_MSGS 1
1289 _ACEOF
1290
1291 fi
1292
1293
1294 # Make sure we can run config.sub.
1295 $ac_config_sub sun4 >/dev/null 2>&1 ||
1296   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1297 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1298    { (exit 1); exit 1; }; }
1299
1300 echo "$as_me:$LINENO: checking build system type" >&5
1301 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1302 if test "${ac_cv_build+set}" = set; then
1303   echo $ECHO_N "(cached) $ECHO_C" >&6
1304 else
1305   ac_cv_build_alias=$build_alias
1306 test -z "$ac_cv_build_alias" &&
1307   ac_cv_build_alias=`$ac_config_guess`
1308 test -z "$ac_cv_build_alias" &&
1309   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1310 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1311    { (exit 1); exit 1; }; }
1312 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1313   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1314 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1315    { (exit 1); exit 1; }; }
1316
1317 fi
1318 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1319 echo "${ECHO_T}$ac_cv_build" >&6
1320 build=$ac_cv_build
1321 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1322 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1323 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1324
1325
1326 echo "$as_me:$LINENO: checking host system type" >&5
1327 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1328 if test "${ac_cv_host+set}" = set; then
1329   echo $ECHO_N "(cached) $ECHO_C" >&6
1330 else
1331   ac_cv_host_alias=$host_alias
1332 test -z "$ac_cv_host_alias" &&
1333   ac_cv_host_alias=$ac_cv_build_alias
1334 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1335   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1336 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1337    { (exit 1); exit 1; }; }
1338
1339 fi
1340 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1341 echo "${ECHO_T}$ac_cv_host" >&6
1342 host=$ac_cv_host
1343 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346
1347
1348 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1349 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1350 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1351 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1352   echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354   cat >conftest.make <<\_ACEOF
1355 all:
1356         @echo 'ac_maketemp="${MAKE}"'
1357 _ACEOF
1358 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1359 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1360 if test -n "$ac_maketemp"; then
1361   eval ac_cv_prog_make_${ac_make}_set=yes
1362 else
1363   eval ac_cv_prog_make_${ac_make}_set=no
1364 fi
1365 rm -f conftest.make
1366 fi
1367 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1368   echo "$as_me:$LINENO: result: yes" >&5
1369 echo "${ECHO_T}yes" >&6
1370   SET_MAKE=
1371 else
1372   echo "$as_me:$LINENO: result: no" >&5
1373 echo "${ECHO_T}no" >&6
1374   SET_MAKE="MAKE=${MAKE-make}"
1375 fi
1376
1377 ac_ext=c
1378 ac_cpp='$CPP $CPPFLAGS'
1379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1382 if test -n "$ac_tool_prefix"; then
1383   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1384 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1385 echo "$as_me:$LINENO: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_CC+set}" = set; then
1388   echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390   if test -n "$CC"; then
1391   ac_cv_prog_CC="$CC" # Let the user override the test.
1392 else
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1394 for as_dir in $PATH
1395 do
1396   IFS=$as_save_IFS
1397   test -z "$as_dir" && as_dir=.
1398   for ac_exec_ext in '' $ac_executable_extensions; do
1399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1400     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1402     break 2
1403   fi
1404 done
1405 done
1406
1407 fi
1408 fi
1409 CC=$ac_cv_prog_CC
1410 if test -n "$CC"; then
1411   echo "$as_me:$LINENO: result: $CC" >&5
1412 echo "${ECHO_T}$CC" >&6
1413 else
1414   echo "$as_me:$LINENO: result: no" >&5
1415 echo "${ECHO_T}no" >&6
1416 fi
1417
1418 fi
1419 if test -z "$ac_cv_prog_CC"; then
1420   ac_ct_CC=$CC
1421   # Extract the first word of "gcc", so it can be a program name with args.
1422 set dummy gcc; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1426   echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428   if test -n "$ac_ct_CC"; then
1429   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1430 else
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   for ac_exec_ext in '' $ac_executable_extensions; do
1437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438     ac_cv_prog_ac_ct_CC="gcc"
1439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440     break 2
1441   fi
1442 done
1443 done
1444
1445 fi
1446 fi
1447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1448 if test -n "$ac_ct_CC"; then
1449   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1450 echo "${ECHO_T}$ac_ct_CC" >&6
1451 else
1452   echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1454 fi
1455
1456   CC=$ac_ct_CC
1457 else
1458   CC="$ac_cv_prog_CC"
1459 fi
1460
1461 if test -z "$CC"; then
1462   if test -n "$ac_tool_prefix"; then
1463   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1464 set dummy ${ac_tool_prefix}cc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   if test -n "$CC"; then
1471   ac_cv_prog_CC="$CC" # Let the user override the test.
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1475 do
1476   IFS=$as_save_IFS
1477   test -z "$as_dir" && as_dir=.
1478   for ac_exec_ext in '' $ac_executable_extensions; do
1479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480     ac_cv_prog_CC="${ac_tool_prefix}cc"
1481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482     break 2
1483   fi
1484 done
1485 done
1486
1487 fi
1488 fi
1489 CC=$ac_cv_prog_CC
1490 if test -n "$CC"; then
1491   echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1493 else
1494   echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1496 fi
1497
1498 fi
1499 if test -z "$ac_cv_prog_CC"; then
1500   ac_ct_CC=$CC
1501   # Extract the first word of "cc", so it can be a program name with args.
1502 set dummy cc; ac_word=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   if test -n "$ac_ct_CC"; then
1509   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1510 else
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1513 do
1514   IFS=$as_save_IFS
1515   test -z "$as_dir" && as_dir=.
1516   for ac_exec_ext in '' $ac_executable_extensions; do
1517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518     ac_cv_prog_ac_ct_CC="cc"
1519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520     break 2
1521   fi
1522 done
1523 done
1524
1525 fi
1526 fi
1527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1531 else
1532   echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1534 fi
1535
1536   CC=$ac_ct_CC
1537 else
1538   CC="$ac_cv_prog_CC"
1539 fi
1540
1541 fi
1542 if test -z "$CC"; then
1543   # Extract the first word of "cc", so it can be a program name with args.
1544 set dummy cc; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548   echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550   if test -n "$CC"; then
1551   ac_cv_prog_CC="$CC" # Let the user override the test.
1552 else
1553   ac_prog_rejected=no
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557   IFS=$as_save_IFS
1558   test -z "$as_dir" && as_dir=.
1559   for ac_exec_ext in '' $ac_executable_extensions; do
1560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1562        ac_prog_rejected=yes
1563        continue
1564      fi
1565     ac_cv_prog_CC="cc"
1566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567     break 2
1568   fi
1569 done
1570 done
1571
1572 if test $ac_prog_rejected = yes; then
1573   # We found a bogon in the path, so make sure we never use it.
1574   set dummy $ac_cv_prog_CC
1575   shift
1576   if test $# != 0; then
1577     # We chose a different compiler from the bogus one.
1578     # However, it has the same basename, so the bogon will be chosen
1579     # first if we set CC to just the basename; use the full file name.
1580     shift
1581     set dummy "$as_dir/$ac_word" ${1+"$@"}
1582     shift
1583     ac_cv_prog_CC="$@"
1584   fi
1585 fi
1586 fi
1587 fi
1588 CC=$ac_cv_prog_CC
1589 if test -n "$CC"; then
1590   echo "$as_me:$LINENO: result: $CC" >&5
1591 echo "${ECHO_T}$CC" >&6
1592 else
1593   echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597 fi
1598 if test -z "$CC"; then
1599   if test -n "$ac_tool_prefix"; then
1600   for ac_prog in cl
1601   do
1602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_CC+set}" = set; then
1607   echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609   if test -n "$CC"; then
1610   ac_cv_prog_CC="$CC" # Let the user override the test.
1611 else
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615   IFS=$as_save_IFS
1616   test -z "$as_dir" && as_dir=.
1617   for ac_exec_ext in '' $ac_executable_extensions; do
1618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621     break 2
1622   fi
1623 done
1624 done
1625
1626 fi
1627 fi
1628 CC=$ac_cv_prog_CC
1629 if test -n "$CC"; then
1630   echo "$as_me:$LINENO: result: $CC" >&5
1631 echo "${ECHO_T}$CC" >&6
1632 else
1633   echo "$as_me:$LINENO: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1635 fi
1636
1637     test -n "$CC" && break
1638   done
1639 fi
1640 if test -z "$CC"; then
1641   ac_ct_CC=$CC
1642   for ac_prog in cl
1643 do
1644   # Extract the first word of "$ac_prog", so it can be a program name with args.
1645 set dummy $ac_prog; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649   echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651   if test -n "$ac_ct_CC"; then
1652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657   IFS=$as_save_IFS
1658   test -z "$as_dir" && as_dir=.
1659   for ac_exec_ext in '' $ac_executable_extensions; do
1660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661     ac_cv_prog_ac_ct_CC="$ac_prog"
1662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663     break 2
1664   fi
1665 done
1666 done
1667
1668 fi
1669 fi
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1674 else
1675   echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1677 fi
1678
1679   test -n "$ac_ct_CC" && break
1680 done
1681
1682   CC=$ac_ct_CC
1683 fi
1684
1685 fi
1686
1687
1688 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1689 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1690    { (exit 1); exit 1; }; }
1691
1692 # Provide some information about the compiler.
1693 echo "$as_me:$LINENO:" \
1694      "checking for C compiler version" >&5
1695 ac_compiler=`set X $ac_compile; echo $2`
1696 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1697   (eval $ac_compiler --version </dev/null >&5) 2>&5
1698   ac_status=$?
1699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700   (exit $ac_status); }
1701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1702   (eval $ac_compiler -v </dev/null >&5) 2>&5
1703   ac_status=$?
1704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705   (exit $ac_status); }
1706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1707   (eval $ac_compiler -V </dev/null >&5) 2>&5
1708   ac_status=$?
1709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710   (exit $ac_status); }
1711
1712 cat >conftest.$ac_ext <<_ACEOF
1713 #line $LINENO "configure"
1714 #include "confdefs.h"
1715
1716 #ifdef F77_DUMMY_MAIN
1717 #  ifdef __cplusplus
1718      extern "C"
1719 #  endif
1720    int F77_DUMMY_MAIN() { return 1; }
1721 #endif
1722 int
1723 main ()
1724 {
1725
1726   ;
1727   return 0;
1728 }
1729 _ACEOF
1730 ac_clean_files_save=$ac_clean_files
1731 ac_clean_files="$ac_clean_files a.out a.exe"
1732 # Try to create an executable without -o first, disregard a.out.
1733 # It will help us diagnose broken compilers, and finding out an intuition
1734 # of exeext.
1735 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1736 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1737 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1738 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1739   (eval $ac_link_default) 2>&5
1740   ac_status=$?
1741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742   (exit $ac_status); }; then
1743   # Find the output, starting from the most likely.  This scheme is
1744 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1745 # resort.
1746
1747 # Be careful to initialize this variable, since it used to be cached.
1748 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1749 ac_cv_exeext=
1750 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1751                 ls a.out conftest 2>/dev/null;
1752                 ls a.* conftest.* 2>/dev/null`; do
1753   case $ac_file in
1754     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1755     a.out ) # We found the default executable, but exeext='' is most
1756             # certainly right.
1757             break;;
1758     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1759           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1760           export ac_cv_exeext
1761           break;;
1762     * ) break;;
1763   esac
1764 done
1765 else
1766   echo "$as_me: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1769 echo "$as_me: error: C compiler cannot create executables" >&2;}
1770    { (exit 77); exit 77; }; }
1771 fi
1772
1773 ac_exeext=$ac_cv_exeext
1774 echo "$as_me:$LINENO: result: $ac_file" >&5
1775 echo "${ECHO_T}$ac_file" >&6
1776
1777 # Check the compiler produces executables we can run.  If not, either
1778 # the compiler is broken, or we cross compile.
1779 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1780 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1781 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1782 # If not cross compiling, check that we can run a simple program.
1783 if test "$cross_compiling" != yes; then
1784   if { ac_try='./$ac_file'
1785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1786   (eval $ac_try) 2>&5
1787   ac_status=$?
1788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789   (exit $ac_status); }; }; then
1790     cross_compiling=no
1791   else
1792     if test "$cross_compiling" = maybe; then
1793         cross_compiling=yes
1794     else
1795         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&2;}
1799    { (exit 1); exit 1; }; }
1800     fi
1801   fi
1802 fi
1803 echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1805
1806 rm -f a.out a.exe conftest$ac_cv_exeext
1807 ac_clean_files=$ac_clean_files_save
1808 # Check the compiler produces executables we can run.  If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1811 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1812 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1813 echo "${ECHO_T}$cross_compiling" >&6
1814
1815 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1816 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1818   (eval $ac_link) 2>&5
1819   ac_status=$?
1820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821   (exit $ac_status); }; then
1822   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1823 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1824 # work properly (i.e., refer to `conftest.exe'), while it won't with
1825 # `rm'.
1826 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1827   case $ac_file in
1828     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1829     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1830           export ac_cv_exeext
1831           break;;
1832     * ) break;;
1833   esac
1834 done
1835 else
1836   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1838    { (exit 1); exit 1; }; }
1839 fi
1840
1841 rm -f conftest$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1843 echo "${ECHO_T}$ac_cv_exeext" >&6
1844
1845 rm -f conftest.$ac_ext
1846 EXEEXT=$ac_cv_exeext
1847 ac_exeext=$EXEEXT
1848 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1849 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1850 if test "${ac_cv_objext+set}" = set; then
1851   echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853   cat >conftest.$ac_ext <<_ACEOF
1854 #line $LINENO "configure"
1855 #include "confdefs.h"
1856
1857 #ifdef F77_DUMMY_MAIN
1858 #  ifdef __cplusplus
1859      extern "C"
1860 #  endif
1861    int F77_DUMMY_MAIN() { return 1; }
1862 #endif
1863 int
1864 main ()
1865 {
1866
1867   ;
1868   return 0;
1869 }
1870 _ACEOF
1871 rm -f conftest.o conftest.obj
1872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1873   (eval $ac_compile) 2>&5
1874   ac_status=$?
1875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876   (exit $ac_status); }; then
1877   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1878   case $ac_file in
1879     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1880     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1881        break;;
1882   esac
1883 done
1884 else
1885   echo "$as_me: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1887 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1888 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1889    { (exit 1); exit 1; }; }
1890 fi
1891
1892 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1893 fi
1894 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1895 echo "${ECHO_T}$ac_cv_objext" >&6
1896 OBJEXT=$ac_cv_objext
1897 ac_objext=$OBJEXT
1898 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   cat >conftest.$ac_ext <<_ACEOF
1904 #line $LINENO "configure"
1905 #include "confdefs.h"
1906
1907 #ifdef F77_DUMMY_MAIN
1908 #  ifdef __cplusplus
1909      extern "C"
1910 #  endif
1911    int F77_DUMMY_MAIN() { return 1; }
1912 #endif
1913 int
1914 main ()
1915 {
1916 #ifndef __GNUC__
1917        choke me
1918 #endif
1919
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 rm -f conftest.$ac_objext
1925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926   (eval $ac_compile) 2>&5
1927   ac_status=$?
1928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929   (exit $ac_status); } &&
1930          { ac_try='test -s conftest.$ac_objext'
1931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932   (eval $ac_try) 2>&5
1933   ac_status=$?
1934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935   (exit $ac_status); }; }; then
1936   ac_compiler_gnu=yes
1937 else
1938   echo "$as_me: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1940 ac_compiler_gnu=no
1941 fi
1942 rm -f conftest.$ac_objext conftest.$ac_ext
1943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1944
1945 fi
1946 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1947 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1948 GCC=`test $ac_compiler_gnu = yes && echo yes`
1949 ac_test_CFLAGS=${CFLAGS+set}
1950 ac_save_CFLAGS=$CFLAGS
1951 CFLAGS="-g"
1952 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1953 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1954 if test "${ac_cv_prog_cc_g+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 #include "confdefs.h"
1960
1961 #ifdef F77_DUMMY_MAIN
1962 #  ifdef __cplusplus
1963      extern "C"
1964 #  endif
1965    int F77_DUMMY_MAIN() { return 1; }
1966 #endif
1967 int
1968 main ()
1969 {
1970
1971   ;
1972   return 0;
1973 }
1974 _ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977   (eval $ac_compile) 2>&5
1978   ac_status=$?
1979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980   (exit $ac_status); } &&
1981          { ac_try='test -s conftest.$ac_objext'
1982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983   (eval $ac_try) 2>&5
1984   ac_status=$?
1985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986   (exit $ac_status); }; }; then
1987   ac_cv_prog_cc_g=yes
1988 else
1989   echo "$as_me: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1991 ac_cv_prog_cc_g=no
1992 fi
1993 rm -f conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1996 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1997 if test "$ac_test_CFLAGS" = set; then
1998   CFLAGS=$ac_save_CFLAGS
1999 elif test $ac_cv_prog_cc_g = yes; then
2000   if test "$GCC" = yes; then
2001     CFLAGS="-g -O2"
2002   else
2003     CFLAGS="-g"
2004   fi
2005 else
2006   if test "$GCC" = yes; then
2007     CFLAGS="-O2"
2008   else
2009     CFLAGS=
2010   fi
2011 fi
2012 # Some people use a C++ compiler to compile C.  Since we use `exit',
2013 # in C++ we need to declare it.  In case someone uses the same compiler
2014 # for both compiling C and C++ we need to have the C++ compiler decide
2015 # the declaration of exit, since it's the most demanding environment.
2016 cat >conftest.$ac_ext <<_ACEOF
2017 #ifndef __cplusplus
2018   choke me
2019 #endif
2020 _ACEOF
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023   (eval $ac_compile) 2>&5
2024   ac_status=$?
2025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026   (exit $ac_status); } &&
2027          { ac_try='test -s conftest.$ac_objext'
2028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029   (eval $ac_try) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); }; }; then
2033   for ac_declaration in \
2034    ''\
2035    '#include <stdlib.h>' \
2036    'extern "C" void std::exit (int) throw (); using std::exit;' \
2037    'extern "C" void std::exit (int); using std::exit;' \
2038    'extern "C" void exit (int) throw ();' \
2039    'extern "C" void exit (int);' \
2040    'void exit (int);'
2041 do
2042   cat >conftest.$ac_ext <<_ACEOF
2043 #line $LINENO "configure"
2044 #include "confdefs.h"
2045 #include <stdlib.h>
2046 $ac_declaration
2047 #ifdef F77_DUMMY_MAIN
2048 #  ifdef __cplusplus
2049      extern "C"
2050 #  endif
2051    int F77_DUMMY_MAIN() { return 1; }
2052 #endif
2053 int
2054 main ()
2055 {
2056 exit (42);
2057   ;
2058   return 0;
2059 }
2060 _ACEOF
2061 rm -f conftest.$ac_objext
2062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2063   (eval $ac_compile) 2>&5
2064   ac_status=$?
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); } &&
2067          { ac_try='test -s conftest.$ac_objext'
2068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069   (eval $ac_try) 2>&5
2070   ac_status=$?
2071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072   (exit $ac_status); }; }; then
2073   :
2074 else
2075   echo "$as_me: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2077 continue
2078 fi
2079 rm -f conftest.$ac_objext conftest.$ac_ext
2080   cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2082 #include "confdefs.h"
2083 $ac_declaration
2084 #ifdef F77_DUMMY_MAIN
2085 #  ifdef __cplusplus
2086      extern "C"
2087 #  endif
2088    int F77_DUMMY_MAIN() { return 1; }
2089 #endif
2090 int
2091 main ()
2092 {
2093 exit (42);
2094   ;
2095   return 0;
2096 }
2097 _ACEOF
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100   (eval $ac_compile) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); } &&
2104          { ac_try='test -s conftest.$ac_objext'
2105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106   (eval $ac_try) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }; }; then
2110   break
2111 else
2112   echo "$as_me: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2114 fi
2115 rm -f conftest.$ac_objext conftest.$ac_ext
2116 done
2117 rm -f conftest*
2118 if test -n "$ac_declaration"; then
2119   echo '#ifdef __cplusplus' >>confdefs.h
2120   echo $ac_declaration      >>confdefs.h
2121   echo '#endif'             >>confdefs.h
2122 fi
2123
2124 else
2125   echo "$as_me: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2127 fi
2128 rm -f conftest.$ac_objext conftest.$ac_ext
2129 ac_ext=c
2130 ac_cpp='$CPP $CPPFLAGS'
2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134
2135 ac_ext=c
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2141 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2142 # On Suns, sometimes $CPP names a directory.
2143 if test -n "$CPP" && test -d "$CPP"; then
2144   CPP=
2145 fi
2146 if test -z "$CPP"; then
2147   if test "${ac_cv_prog_CPP+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150       # Double quotes because CPP needs to be expanded
2151     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2152     do
2153       ac_preproc_ok=false
2154 for ac_c_preproc_warn_flag in '' yes
2155 do
2156   # Use a header file that comes with gcc, so configuring glibc
2157   # with a fresh cross-compiler works.
2158   # On the NeXT, cc -E runs the code through the compiler's parser,
2159   # not just through cpp. "Syntax error" is here to catch this case.
2160   cat >conftest.$ac_ext <<_ACEOF
2161 #line $LINENO "configure"
2162 #include "confdefs.h"
2163 #include <assert.h>
2164                      Syntax error
2165 _ACEOF
2166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2168   ac_status=$?
2169   egrep -v '^ *\+' conftest.er1 >conftest.err
2170   rm -f conftest.er1
2171   cat conftest.err >&5
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); } >/dev/null; then
2174   if test -s conftest.err; then
2175     ac_cpp_err=$ac_c_preproc_warn_flag
2176   else
2177     ac_cpp_err=
2178   fi
2179 else
2180   ac_cpp_err=yes
2181 fi
2182 if test -z "$ac_cpp_err"; then
2183   :
2184 else
2185   echo "$as_me: failed program was:" >&5
2186   cat conftest.$ac_ext >&5
2187   # Broken: fails on valid input.
2188 continue
2189 fi
2190 rm -f conftest.err conftest.$ac_ext
2191
2192   # OK, works on sane cases.  Now check whether non-existent headers
2193   # can be detected and how.
2194   cat >conftest.$ac_ext <<_ACEOF
2195 #line $LINENO "configure"
2196 #include "confdefs.h"
2197 #include <ac_nonexistent.h>
2198 _ACEOF
2199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2201   ac_status=$?
2202   egrep -v '^ *\+' conftest.er1 >conftest.err
2203   rm -f conftest.er1
2204   cat conftest.err >&5
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); } >/dev/null; then
2207   if test -s conftest.err; then
2208     ac_cpp_err=$ac_c_preproc_warn_flag
2209   else
2210     ac_cpp_err=
2211   fi
2212 else
2213   ac_cpp_err=yes
2214 fi
2215 if test -z "$ac_cpp_err"; then
2216   # Broken: success on invalid input.
2217 continue
2218 else
2219   echo "$as_me: failed program was:" >&5
2220   cat conftest.$ac_ext >&5
2221   # Passes both tests.
2222 ac_preproc_ok=:
2223 break
2224 fi
2225 rm -f conftest.err conftest.$ac_ext
2226
2227 done
2228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2229 rm -f conftest.err conftest.$ac_ext
2230 if $ac_preproc_ok; then
2231   break
2232 fi
2233
2234     done
2235     ac_cv_prog_CPP=$CPP
2236
2237 fi
2238   CPP=$ac_cv_prog_CPP
2239 else
2240   ac_cv_prog_CPP=$CPP
2241 fi
2242 echo "$as_me:$LINENO: result: $CPP" >&5
2243 echo "${ECHO_T}$CPP" >&6
2244 ac_preproc_ok=false
2245 for ac_c_preproc_warn_flag in '' yes
2246 do
2247   # Use a header file that comes with gcc, so configuring glibc
2248   # with a fresh cross-compiler works.
2249   # On the NeXT, cc -E runs the code through the compiler's parser,
2250   # not just through cpp. "Syntax error" is here to catch this case.
2251   cat >conftest.$ac_ext <<_ACEOF
2252 #line $LINENO "configure"
2253 #include "confdefs.h"
2254 #include <assert.h>
2255                      Syntax error
2256 _ACEOF
2257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2259   ac_status=$?
2260   egrep -v '^ *\+' conftest.er1 >conftest.err
2261   rm -f conftest.er1
2262   cat conftest.err >&5
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); } >/dev/null; then
2265   if test -s conftest.err; then
2266     ac_cpp_err=$ac_c_preproc_warn_flag
2267   else
2268     ac_cpp_err=
2269   fi
2270 else
2271   ac_cpp_err=yes
2272 fi
2273 if test -z "$ac_cpp_err"; then
2274   :
2275 else
2276   echo "$as_me: failed program was:" >&5
2277   cat conftest.$ac_ext >&5
2278   # Broken: fails on valid input.
2279 continue
2280 fi
2281 rm -f conftest.err conftest.$ac_ext
2282
2283   # OK, works on sane cases.  Now check whether non-existent headers
2284   # can be detected and how.
2285   cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 #include "confdefs.h"
2288 #include <ac_nonexistent.h>
2289 _ACEOF
2290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2291   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2292   ac_status=$?
2293   egrep -v '^ *\+' conftest.er1 >conftest.err
2294   rm -f conftest.er1
2295   cat conftest.err >&5
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); } >/dev/null; then
2298   if test -s conftest.err; then
2299     ac_cpp_err=$ac_c_preproc_warn_flag
2300   else
2301     ac_cpp_err=
2302   fi
2303 else
2304   ac_cpp_err=yes
2305 fi
2306 if test -z "$ac_cpp_err"; then
2307   # Broken: success on invalid input.
2308 continue
2309 else
2310   echo "$as_me: failed program was:" >&5
2311   cat conftest.$ac_ext >&5
2312   # Passes both tests.
2313 ac_preproc_ok=:
2314 break
2315 fi
2316 rm -f conftest.err conftest.$ac_ext
2317
2318 done
2319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2320 rm -f conftest.err conftest.$ac_ext
2321 if $ac_preproc_ok; then
2322   :
2323 else
2324   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2325 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2326    { (exit 1); exit 1; }; }
2327 fi
2328
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2337 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2338 if test "${wine_cv_toolsdir+set}" = set; then
2339   echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341   if test -z "$with_wine_tools"; then
2342      if test "$cross_compiling" = "yes"; then
2343        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2344 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2345    { (exit 1); exit 1; }; }
2346      else
2347        wine_cv_toolsdir="\$(TOPOBJDIR)"
2348      fi
2349    elif test -d "$with_wine_tools/tools/winebuild"; then
2350      case $with_wine_tools in
2351        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2352        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2353      esac
2354    else
2355      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2356 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2357    { (exit 1); exit 1; }; }
2358    fi
2359 fi
2360 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2361 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2362 TOOLSDIR=$wine_cv_toolsdir
2363
2364
2365
2366
2367 echo "$as_me:$LINENO: checking for X" >&5
2368 echo $ECHO_N "checking for X... $ECHO_C" >&6
2369
2370
2371 # Check whether --with-x or --without-x was given.
2372 if test "${with_x+set}" = set; then
2373   withval="$with_x"
2374
2375 fi;
2376 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2377 if test "x$with_x" = xno; then
2378   # The user explicitly disabled X.
2379   have_x=disabled
2380 else
2381   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2382     # Both variables are already set.
2383     have_x=yes
2384   else
2385     if test "${ac_cv_have_x+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   # One or both of the vars are not set, and there is no cached value.
2389 ac_x_includes=no ac_x_libraries=no
2390 rm -fr conftest.dir
2391 if mkdir conftest.dir; then
2392   cd conftest.dir
2393   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2394   cat >Imakefile <<'_ACEOF'
2395 acfindx:
2396         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2397 _ACEOF
2398   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2399     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2400     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2401     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2402     for ac_extension in a so sl; do
2403       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2404          test -f $ac_im_libdir/libX11.$ac_extension; then
2405         ac_im_usrlibdir=$ac_im_libdir; break
2406       fi
2407     done
2408     # Screen out bogus values from the imake configuration.  They are
2409     # bogus both because they are the default anyway, and because
2410     # using them would break gcc on systems where it needs fixed includes.
2411     case $ac_im_incroot in
2412         /usr/include) ;;
2413         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2414     esac
2415     case $ac_im_usrlibdir in
2416         /usr/lib | /lib) ;;
2417         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2418     esac
2419   fi
2420   cd ..
2421   rm -fr conftest.dir
2422 fi
2423
2424 # Standard set of common directories for X headers.
2425 # Check X11 before X11Rn because it is often a symlink to the current release.
2426 ac_x_header_dirs='
2427 /usr/X11/include
2428 /usr/X11R6/include
2429 /usr/X11R5/include
2430 /usr/X11R4/include
2431
2432 /usr/include/X11
2433 /usr/include/X11R6
2434 /usr/include/X11R5
2435 /usr/include/X11R4
2436
2437 /usr/local/X11/include
2438 /usr/local/X11R6/include
2439 /usr/local/X11R5/include
2440 /usr/local/X11R4/include
2441
2442 /usr/local/include/X11
2443 /usr/local/include/X11R6
2444 /usr/local/include/X11R5
2445 /usr/local/include/X11R4
2446
2447 /usr/X386/include
2448 /usr/x386/include
2449 /usr/XFree86/include/X11
2450
2451 /usr/include
2452 /usr/local/include
2453 /usr/unsupported/include
2454 /usr/athena/include
2455 /usr/local/x11r5/include
2456 /usr/lpp/Xamples/include
2457
2458 /usr/openwin/include
2459 /usr/openwin/share/include'
2460
2461 if test "$ac_x_includes" = no; then
2462   # Guess where to find include files, by looking for Intrinsic.h.
2463   # First, try using that file with no special directory specified.
2464   cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 #include "confdefs.h"
2467 #include <X11/Intrinsic.h>
2468 _ACEOF
2469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2470   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2471   ac_status=$?
2472   egrep -v '^ *\+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } >/dev/null; then
2477   if test -s conftest.err; then
2478     ac_cpp_err=$ac_c_preproc_warn_flag
2479   else
2480     ac_cpp_err=
2481   fi
2482 else
2483   ac_cpp_err=yes
2484 fi
2485 if test -z "$ac_cpp_err"; then
2486   # We can compile using X headers with no special include directory.
2487 ac_x_includes=
2488 else
2489   echo "$as_me: failed program was:" >&5
2490   cat conftest.$ac_ext >&5
2491   for ac_dir in $ac_x_header_dirs; do
2492   if test -r "$ac_dir/X11/Intrinsic.h"; then
2493     ac_x_includes=$ac_dir
2494     break
2495   fi
2496 done
2497 fi
2498 rm -f conftest.err conftest.$ac_ext
2499 fi # $ac_x_includes = no
2500
2501 if test "$ac_x_libraries" = no; then
2502   # Check for the libraries.
2503   # See if we find them without any special options.
2504   # Don't add to $LIBS permanently.
2505   ac_save_LIBS=$LIBS
2506   LIBS="-lXt $LIBS"
2507   cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 #include "confdefs.h"
2510 #include <X11/Intrinsic.h>
2511 #ifdef F77_DUMMY_MAIN
2512 #  ifdef __cplusplus
2513      extern "C"
2514 #  endif
2515    int F77_DUMMY_MAIN() { return 1; }
2516 #endif
2517 int
2518 main ()
2519 {
2520 XtMalloc (0)
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext conftest$ac_exeext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2527   (eval $ac_link) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); } &&
2531          { ac_try='test -s conftest$ac_exeext'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   LIBS=$ac_save_LIBS
2538 # We can link X programs with no special library path.
2539 ac_x_libraries=
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543 LIBS=$ac_save_LIBS
2544 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2545 do
2546   # Don't even attempt the hair of trying to link an X program!
2547   for ac_extension in a so sl; do
2548     if test -r $ac_dir/libXt.$ac_extension; then
2549       ac_x_libraries=$ac_dir
2550       break 2
2551     fi
2552   done
2553 done
2554 fi
2555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2556 fi # $ac_x_libraries = no
2557
2558 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2559   # Didn't find X anywhere.  Cache the known absence of X.
2560   ac_cv_have_x="have_x=no"
2561 else
2562   # Record where we found X for the cache.
2563   ac_cv_have_x="have_x=yes \
2564                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2565 fi
2566 fi
2567
2568   fi
2569   eval "$ac_cv_have_x"
2570 fi # $with_x != no
2571
2572 if test "$have_x" != yes; then
2573   echo "$as_me:$LINENO: result: $have_x" >&5
2574 echo "${ECHO_T}$have_x" >&6
2575   no_x=yes
2576 else
2577   # If each of the values was on the command line, it overrides each guess.
2578   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2579   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2580   # Update the cache value to reflect the command line values.
2581   ac_cv_have_x="have_x=yes \
2582                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2583   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2584 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2585 fi
2586
2587 if test "$no_x" = yes; then
2588   # Not all programs may use this symbol, but it does not hurt to define it.
2589
2590 cat >>confdefs.h <<\_ACEOF
2591 #define X_DISPLAY_MISSING 1
2592 _ACEOF
2593
2594   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2595 else
2596   if test -n "$x_includes"; then
2597     X_CFLAGS="$X_CFLAGS -I$x_includes"
2598   fi
2599
2600   # It would also be nice to do this for all -L options, not just this one.
2601   if test -n "$x_libraries"; then
2602     X_LIBS="$X_LIBS -L$x_libraries"
2603     # For Solaris; some versions of Sun CC require a space after -R and
2604     # others require no space.  Words are not sufficient . . . .
2605     case `(uname -sr) 2>/dev/null` in
2606     "SunOS 5"*)
2607       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2608 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2609       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2610       cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 #include "confdefs.h"
2613
2614 #ifdef F77_DUMMY_MAIN
2615 #  ifdef __cplusplus
2616      extern "C"
2617 #  endif
2618    int F77_DUMMY_MAIN() { return 1; }
2619 #endif
2620 int
2621 main ()
2622 {
2623
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 rm -f conftest.$ac_objext conftest$ac_exeext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2630   (eval $ac_link) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); } &&
2634          { ac_try='test -s conftest$ac_exeext'
2635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636   (eval $ac_try) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; }; then
2640   ac_R_nospace=yes
2641 else
2642   echo "$as_me: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2644 ac_R_nospace=no
2645 fi
2646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2647       if test $ac_R_nospace = yes; then
2648         echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6
2650         X_LIBS="$X_LIBS -R$x_libraries"
2651       else
2652         LIBS="$ac_xsave_LIBS -R $x_libraries"
2653         cat >conftest.$ac_ext <<_ACEOF
2654 #line $LINENO "configure"
2655 #include "confdefs.h"
2656
2657 #ifdef F77_DUMMY_MAIN
2658 #  ifdef __cplusplus
2659      extern "C"
2660 #  endif
2661    int F77_DUMMY_MAIN() { return 1; }
2662 #endif
2663 int
2664 main ()
2665 {
2666
2667   ;
2668   return 0;
2669 }
2670 _ACEOF
2671 rm -f conftest.$ac_objext conftest$ac_exeext
2672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2673   (eval $ac_link) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); } &&
2677          { ac_try='test -s conftest$ac_exeext'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; }; then
2683   ac_R_space=yes
2684 else
2685   echo "$as_me: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2687 ac_R_space=no
2688 fi
2689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2690         if test $ac_R_space = yes; then
2691           echo "$as_me:$LINENO: result: yes" >&5
2692 echo "${ECHO_T}yes" >&6
2693           X_LIBS="$X_LIBS -R $x_libraries"
2694         else
2695           echo "$as_me:$LINENO: result: neither works" >&5
2696 echo "${ECHO_T}neither works" >&6
2697         fi
2698       fi
2699       LIBS=$ac_xsave_LIBS
2700     esac
2701   fi
2702
2703   # Check for system-dependent libraries X programs must link with.
2704   # Do this before checking for the system-independent R6 libraries
2705   # (-lICE), since we may need -lsocket or whatever for X linking.
2706
2707   if test "$ISC" = yes; then
2708     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2709   else
2710     # Martyn Johnson says this is needed for Ultrix, if the X
2711     # libraries were built with DECnet support.  And Karl Berry says
2712     # the Alpha needs dnet_stub (dnet does not exist).
2713     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2714     cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 #include "confdefs.h"
2717
2718 /* Override any gcc2 internal prototype to avoid an error.  */
2719 #ifdef __cplusplus
2720 extern "C"
2721 #endif
2722 /* We use char because int might match the return type of a gcc2
2723    builtin and then its argument prototype would still apply.  */
2724 char XOpenDisplay ();
2725 #ifdef F77_DUMMY_MAIN
2726 #  ifdef __cplusplus
2727      extern "C"
2728 #  endif
2729    int F77_DUMMY_MAIN() { return 1; }
2730 #endif
2731 int
2732 main ()
2733 {
2734 XOpenDisplay ();
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 rm -f conftest.$ac_objext conftest$ac_exeext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2741   (eval $ac_link) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745          { ac_try='test -s conftest$ac_exeext'
2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   :
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2756 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2757 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2758   echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760   ac_check_lib_save_LIBS=$LIBS
2761 LIBS="-ldnet  $LIBS"
2762 cat >conftest.$ac_ext <<_ACEOF
2763 #line $LINENO "configure"
2764 #include "confdefs.h"
2765
2766 /* Override any gcc2 internal prototype to avoid an error.  */
2767 #ifdef __cplusplus
2768 extern "C"
2769 #endif
2770 /* We use char because int might match the return type of a gcc2
2771    builtin and then its argument prototype would still apply.  */
2772 char dnet_ntoa ();
2773 #ifdef F77_DUMMY_MAIN
2774 #  ifdef __cplusplus
2775      extern "C"
2776 #  endif
2777    int F77_DUMMY_MAIN() { return 1; }
2778 #endif
2779 int
2780 main ()
2781 {
2782 dnet_ntoa ();
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext conftest$ac_exeext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2789   (eval $ac_link) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -s conftest$ac_exeext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   ac_cv_lib_dnet_dnet_ntoa=yes
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2803 ac_cv_lib_dnet_dnet_ntoa=no
2804 fi
2805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2806 LIBS=$ac_check_lib_save_LIBS
2807 fi
2808 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2809 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2810 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2811   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2812 fi
2813
2814     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2815       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2816 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2817 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   ac_check_lib_save_LIBS=$LIBS
2821 LIBS="-ldnet_stub  $LIBS"
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #line $LINENO "configure"
2824 #include "confdefs.h"
2825
2826 /* Override any gcc2 internal prototype to avoid an error.  */
2827 #ifdef __cplusplus
2828 extern "C"
2829 #endif
2830 /* We use char because int might match the return type of a gcc2
2831    builtin and then its argument prototype would still apply.  */
2832 char dnet_ntoa ();
2833 #ifdef F77_DUMMY_MAIN
2834 #  ifdef __cplusplus
2835      extern "C"
2836 #  endif
2837    int F77_DUMMY_MAIN() { return 1; }
2838 #endif
2839 int
2840 main ()
2841 {
2842 dnet_ntoa ();
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext conftest$ac_exeext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2849   (eval $ac_link) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); } &&
2853          { ac_try='test -s conftest$ac_exeext'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859   ac_cv_lib_dnet_stub_dnet_ntoa=yes
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2863 ac_cv_lib_dnet_stub_dnet_ntoa=no
2864 fi
2865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2866 LIBS=$ac_check_lib_save_LIBS
2867 fi
2868 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2869 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2870 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2871   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2872 fi
2873
2874     fi
2875 fi
2876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2877     LIBS="$ac_xsave_LIBS"
2878
2879     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2880     # to get the SysV transport functions.
2881     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2882     # needs -lnsl.
2883     # The nsl library prevents programs from opening the X display
2884     # on Irix 5.2, according to T.E. Dickey.
2885     # The functions gethostbyname, getservbyname, and inet_addr are
2886     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2887     echo "$as_me:$LINENO: checking for gethostbyname" >&5
2888 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2889 if test "${ac_cv_func_gethostbyname+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892   cat >conftest.$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 #include "confdefs.h"
2895 /* System header to define __stub macros and hopefully few prototypes,
2896     which can conflict with char gethostbyname (); below.  */
2897 #include <assert.h>
2898 /* Override any gcc2 internal prototype to avoid an error.  */
2899 #ifdef __cplusplus
2900 extern "C"
2901 #endif
2902 /* We use char because int might match the return type of a gcc2
2903    builtin and then its argument prototype would still apply.  */
2904 char gethostbyname ();
2905 char (*f) ();
2906
2907 #ifdef F77_DUMMY_MAIN
2908 #  ifdef __cplusplus
2909      extern "C"
2910 #  endif
2911    int F77_DUMMY_MAIN() { return 1; }
2912 #endif
2913 int
2914 main ()
2915 {
2916 /* The GNU C library defines this for functions which it implements
2917     to always fail with ENOSYS.  Some functions are actually named
2918     something starting with __ and the normal name is an alias.  */
2919 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2920 choke me
2921 #else
2922 f = gethostbyname;
2923 #endif
2924
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext conftest$ac_exeext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931   (eval $ac_link) 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } &&
2935          { ac_try='test -s conftest$ac_exeext'
2936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937   (eval $ac_try) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }; }; then
2941   ac_cv_func_gethostbyname=yes
2942 else
2943   echo "$as_me: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2945 ac_cv_func_gethostbyname=no
2946 fi
2947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2948 fi
2949 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2950 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2951
2952     if test $ac_cv_func_gethostbyname = no; then
2953       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2954 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2955 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958   ac_check_lib_save_LIBS=$LIBS
2959 LIBS="-lnsl  $LIBS"
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2962 #include "confdefs.h"
2963
2964 /* Override any gcc2 internal prototype to avoid an error.  */
2965 #ifdef __cplusplus
2966 extern "C"
2967 #endif
2968 /* We use char because int might match the return type of a gcc2
2969    builtin and then its argument prototype would still apply.  */
2970 char gethostbyname ();
2971 #ifdef F77_DUMMY_MAIN
2972 #  ifdef __cplusplus
2973      extern "C"
2974 #  endif
2975    int F77_DUMMY_MAIN() { return 1; }
2976 #endif
2977 int
2978 main ()
2979 {
2980 gethostbyname ();
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.$ac_objext conftest$ac_exeext
2986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2987   (eval $ac_link) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); } &&
2991          { ac_try='test -s conftest$ac_exeext'
2992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993   (eval $ac_try) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; }; then
2997   ac_cv_lib_nsl_gethostbyname=yes
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3001 ac_cv_lib_nsl_gethostbyname=no
3002 fi
3003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3004 LIBS=$ac_check_lib_save_LIBS
3005 fi
3006 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3007 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3008 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3009   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3010 fi
3011
3012       if test $ac_cv_lib_nsl_gethostbyname = no; then
3013         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3014 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3015 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   ac_check_lib_save_LIBS=$LIBS
3019 LIBS="-lbsd  $LIBS"
3020 cat >conftest.$ac_ext <<_ACEOF
3021 #line $LINENO "configure"
3022 #include "confdefs.h"
3023
3024 /* Override any gcc2 internal prototype to avoid an error.  */
3025 #ifdef __cplusplus
3026 extern "C"
3027 #endif
3028 /* We use char because int might match the return type of a gcc2
3029    builtin and then its argument prototype would still apply.  */
3030 char gethostbyname ();
3031 #ifdef F77_DUMMY_MAIN
3032 #  ifdef __cplusplus
3033      extern "C"
3034 #  endif
3035    int F77_DUMMY_MAIN() { return 1; }
3036 #endif
3037 int
3038 main ()
3039 {
3040 gethostbyname ();
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext conftest$ac_exeext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3047   (eval $ac_link) 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -s conftest$ac_exeext'
3052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053   (eval $ac_try) 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; }; then
3057   ac_cv_lib_bsd_gethostbyname=yes
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 ac_cv_lib_bsd_gethostbyname=no
3062 fi
3063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3064 LIBS=$ac_check_lib_save_LIBS
3065 fi
3066 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3067 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3068 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3069   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3070 fi
3071
3072       fi
3073     fi
3074
3075     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3076     # socket/setsockopt and other routines are undefined under SCO ODT
3077     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3078     # on later versions), says Simon Leinen: it contains gethostby*
3079     # variants that don't use the nameserver (or something).  -lsocket
3080     # must be given before -lnsl if both are needed.  We assume that
3081     # if connect needs -lnsl, so does gethostbyname.
3082     echo "$as_me:$LINENO: checking for connect" >&5
3083 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3084 if test "${ac_cv_func_connect+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   cat >conftest.$ac_ext <<_ACEOF
3088 #line $LINENO "configure"
3089 #include "confdefs.h"
3090 /* System header to define __stub macros and hopefully few prototypes,
3091     which can conflict with char connect (); below.  */
3092 #include <assert.h>
3093 /* Override any gcc2 internal prototype to avoid an error.  */
3094 #ifdef __cplusplus
3095 extern "C"
3096 #endif
3097 /* We use char because int might match the return type of a gcc2
3098    builtin and then its argument prototype would still apply.  */
3099 char connect ();
3100 char (*f) ();
3101
3102 #ifdef F77_DUMMY_MAIN
3103 #  ifdef __cplusplus
3104      extern "C"
3105 #  endif
3106    int F77_DUMMY_MAIN() { return 1; }
3107 #endif
3108 int
3109 main ()
3110 {
3111 /* The GNU C library defines this for functions which it implements
3112     to always fail with ENOSYS.  Some functions are actually named
3113     something starting with __ and the normal name is an alias.  */
3114 #if defined (__stub_connect) || defined (__stub___connect)
3115 choke me
3116 #else
3117 f = connect;
3118 #endif
3119
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 rm -f conftest.$ac_objext conftest$ac_exeext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3126   (eval $ac_link) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } &&
3130          { ac_try='test -s conftest$ac_exeext'
3131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132   (eval $ac_try) 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }; }; then
3136   ac_cv_func_connect=yes
3137 else
3138   echo "$as_me: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3140 ac_cv_func_connect=no
3141 fi
3142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3143 fi
3144 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3145 echo "${ECHO_T}$ac_cv_func_connect" >&6
3146
3147     if test $ac_cv_func_connect = no; then
3148       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3149 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3150 if test "${ac_cv_lib_socket_connect+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   ac_check_lib_save_LIBS=$LIBS
3154 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3155 cat >conftest.$ac_ext <<_ACEOF
3156 #line $LINENO "configure"
3157 #include "confdefs.h"
3158
3159 /* Override any gcc2 internal prototype to avoid an error.  */
3160 #ifdef __cplusplus
3161 extern "C"
3162 #endif
3163 /* We use char because int might match the return type of a gcc2
3164    builtin and then its argument prototype would still apply.  */
3165 char connect ();
3166 #ifdef F77_DUMMY_MAIN
3167 #  ifdef __cplusplus
3168      extern "C"
3169 #  endif
3170    int F77_DUMMY_MAIN() { return 1; }
3171 #endif
3172 int
3173 main ()
3174 {
3175 connect ();
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext conftest$ac_exeext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3182   (eval $ac_link) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -s conftest$ac_exeext'
3187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188   (eval $ac_try) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; }; then
3192   ac_cv_lib_socket_connect=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3196 ac_cv_lib_socket_connect=no
3197 fi
3198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3199 LIBS=$ac_check_lib_save_LIBS
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3202 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3203 if test $ac_cv_lib_socket_connect = yes; then
3204   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3205 fi
3206
3207     fi
3208
3209     # Guillermo Gomez says -lposix is necessary on A/UX.
3210     echo "$as_me:$LINENO: checking for remove" >&5
3211 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3212 if test "${ac_cv_func_remove+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   cat >conftest.$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3217 #include "confdefs.h"
3218 /* System header to define __stub macros and hopefully few prototypes,
3219     which can conflict with char remove (); below.  */
3220 #include <assert.h>
3221 /* Override any gcc2 internal prototype to avoid an error.  */
3222 #ifdef __cplusplus
3223 extern "C"
3224 #endif
3225 /* We use char because int might match the return type of a gcc2
3226    builtin and then its argument prototype would still apply.  */
3227 char remove ();
3228 char (*f) ();
3229
3230 #ifdef F77_DUMMY_MAIN
3231 #  ifdef __cplusplus
3232      extern "C"
3233 #  endif
3234    int F77_DUMMY_MAIN() { return 1; }
3235 #endif
3236 int
3237 main ()
3238 {
3239 /* The GNU C library defines this for functions which it implements
3240     to always fail with ENOSYS.  Some functions are actually named
3241     something starting with __ and the normal name is an alias.  */
3242 #if defined (__stub_remove) || defined (__stub___remove)
3243 choke me
3244 #else
3245 f = remove;
3246 #endif
3247
3248   ;
3249   return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext conftest$ac_exeext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3254   (eval $ac_link) 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); } &&
3258          { ac_try='test -s conftest$ac_exeext'
3259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260   (eval $ac_try) 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }; }; then
3264   ac_cv_func_remove=yes
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3268 ac_cv_func_remove=no
3269 fi
3270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3271 fi
3272 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3273 echo "${ECHO_T}$ac_cv_func_remove" >&6
3274
3275     if test $ac_cv_func_remove = no; then
3276       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3277 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3278 if test "${ac_cv_lib_posix_remove+set}" = set; then
3279   echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281   ac_check_lib_save_LIBS=$LIBS
3282 LIBS="-lposix  $LIBS"
3283 cat >conftest.$ac_ext <<_ACEOF
3284 #line $LINENO "configure"
3285 #include "confdefs.h"
3286
3287 /* Override any gcc2 internal prototype to avoid an error.  */
3288 #ifdef __cplusplus
3289 extern "C"
3290 #endif
3291 /* We use char because int might match the return type of a gcc2
3292    builtin and then its argument prototype would still apply.  */
3293 char remove ();
3294 #ifdef F77_DUMMY_MAIN
3295 #  ifdef __cplusplus
3296      extern "C"
3297 #  endif
3298    int F77_DUMMY_MAIN() { return 1; }
3299 #endif
3300 int
3301 main ()
3302 {
3303 remove ();
3304   ;
3305   return 0;
3306 }
3307 _ACEOF
3308 rm -f conftest.$ac_objext conftest$ac_exeext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3310   (eval $ac_link) 2>&5
3311   ac_status=$?
3312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); } &&
3314          { ac_try='test -s conftest$ac_exeext'
3315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316   (eval $ac_try) 2>&5
3317   ac_status=$?
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); }; }; then
3320   ac_cv_lib_posix_remove=yes
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 ac_cv_lib_posix_remove=no
3325 fi
3326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3327 LIBS=$ac_check_lib_save_LIBS
3328 fi
3329 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3330 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3331 if test $ac_cv_lib_posix_remove = yes; then
3332   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3333 fi
3334
3335     fi
3336
3337     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3338     echo "$as_me:$LINENO: checking for shmat" >&5
3339 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3340 if test "${ac_cv_func_shmat+set}" = set; then
3341   echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343   cat >conftest.$ac_ext <<_ACEOF
3344 #line $LINENO "configure"
3345 #include "confdefs.h"
3346 /* System header to define __stub macros and hopefully few prototypes,
3347     which can conflict with char shmat (); below.  */
3348 #include <assert.h>
3349 /* Override any gcc2 internal prototype to avoid an error.  */
3350 #ifdef __cplusplus
3351 extern "C"
3352 #endif
3353 /* We use char because int might match the return type of a gcc2
3354    builtin and then its argument prototype would still apply.  */
3355 char shmat ();
3356 char (*f) ();
3357
3358 #ifdef F77_DUMMY_MAIN
3359 #  ifdef __cplusplus
3360      extern "C"
3361 #  endif
3362    int F77_DUMMY_MAIN() { return 1; }
3363 #endif
3364 int
3365 main ()
3366 {
3367 /* The GNU C library defines this for functions which it implements
3368     to always fail with ENOSYS.  Some functions are actually named
3369     something starting with __ and the normal name is an alias.  */
3370 #if defined (__stub_shmat) || defined (__stub___shmat)
3371 choke me
3372 #else
3373 f = shmat;
3374 #endif
3375
3376   ;
3377   return 0;
3378 }
3379 _ACEOF
3380 rm -f conftest.$ac_objext conftest$ac_exeext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382   (eval $ac_link) 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); } &&
3386          { ac_try='test -s conftest$ac_exeext'
3387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388   (eval $ac_try) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; }; then
3392   ac_cv_func_shmat=yes
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 ac_cv_func_shmat=no
3397 fi
3398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3399 fi
3400 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3401 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3402
3403     if test $ac_cv_func_shmat = no; then
3404       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3405 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3406 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3407   echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409   ac_check_lib_save_LIBS=$LIBS
3410 LIBS="-lipc  $LIBS"
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 #include "confdefs.h"
3414
3415 /* Override any gcc2 internal prototype to avoid an error.  */
3416 #ifdef __cplusplus
3417 extern "C"
3418 #endif
3419 /* We use char because int might match the return type of a gcc2
3420    builtin and then its argument prototype would still apply.  */
3421 char shmat ();
3422 #ifdef F77_DUMMY_MAIN
3423 #  ifdef __cplusplus
3424      extern "C"
3425 #  endif
3426    int F77_DUMMY_MAIN() { return 1; }
3427 #endif
3428 int
3429 main ()
3430 {
3431 shmat ();
3432   ;
3433   return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.$ac_objext conftest$ac_exeext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438   (eval $ac_link) 2>&5
3439   ac_status=$?
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } &&
3442          { ac_try='test -s conftest$ac_exeext'
3443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444   (eval $ac_try) 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); }; }; then
3448   ac_cv_lib_ipc_shmat=yes
3449 else
3450   echo "$as_me: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3452 ac_cv_lib_ipc_shmat=no
3453 fi
3454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3455 LIBS=$ac_check_lib_save_LIBS
3456 fi
3457 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3458 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3459 if test $ac_cv_lib_ipc_shmat = yes; then
3460   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3461 fi
3462
3463     fi
3464   fi
3465
3466   # Check for libraries that X11R6 Xt/Xaw programs need.
3467   ac_save_LDFLAGS=$LDFLAGS
3468   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3469   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3470   # check for ICE first), but we must link in the order -lSM -lICE or
3471   # we get undefined symbols.  So assume we have SM if we have ICE.
3472   # These have to be linked with before -lX11, unlike the other
3473   # libraries we check for below, so use a different variable.
3474   # John Interrante, Karl Berry
3475   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3476 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3477 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   ac_check_lib_save_LIBS=$LIBS
3481 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3484 #include "confdefs.h"
3485
3486 /* Override any gcc2 internal prototype to avoid an error.  */
3487 #ifdef __cplusplus
3488 extern "C"
3489 #endif
3490 /* We use char because int might match the return type of a gcc2
3491    builtin and then its argument prototype would still apply.  */
3492 char IceConnectionNumber ();
3493 #ifdef F77_DUMMY_MAIN
3494 #  ifdef __cplusplus
3495      extern "C"
3496 #  endif
3497    int F77_DUMMY_MAIN() { return 1; }
3498 #endif
3499 int
3500 main ()
3501 {
3502 IceConnectionNumber ();
3503   ;
3504   return 0;
3505 }
3506 _ACEOF
3507 rm -f conftest.$ac_objext conftest$ac_exeext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509   (eval $ac_link) 2>&5
3510   ac_status=$?
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } &&
3513          { ac_try='test -s conftest$ac_exeext'
3514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515   (eval $ac_try) 2>&5
3516   ac_status=$?
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); }; }; then
3519   ac_cv_lib_ICE_IceConnectionNumber=yes
3520 else
3521   echo "$as_me: failed program was:" >&5
3522 cat conftest.$ac_ext >&5
3523 ac_cv_lib_ICE_IceConnectionNumber=no
3524 fi
3525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3526 LIBS=$ac_check_lib_save_LIBS
3527 fi
3528 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3529 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3530 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3531   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3532 fi
3533
3534   LDFLAGS=$ac_save_LDFLAGS
3535
3536 fi
3537
3538 for ac_prog in 'bison -y' byacc
3539 do
3540   # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_YACC+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   if test -n "$YACC"; then
3548   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_prog_YACC="$ac_prog"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564 fi
3565 fi
3566 YACC=$ac_cv_prog_YACC
3567 if test -n "$YACC"; then
3568   echo "$as_me:$LINENO: result: $YACC" >&5
3569 echo "${ECHO_T}$YACC" >&6
3570 else
3571   echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3573 fi
3574
3575   test -n "$YACC" && break
3576 done
3577 test -n "$YACC" || YACC="yacc"
3578
3579 for ac_prog in flex lex
3580 do
3581   # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_LEX+set}" = set; then
3586   echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588   if test -n "$LEX"; then
3589   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594   IFS=$as_save_IFS
3595   test -z "$as_dir" && as_dir=.
3596   for ac_exec_ext in '' $ac_executable_extensions; do
3597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598     ac_cv_prog_LEX="$ac_prog"
3599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600     break 2
3601   fi
3602 done
3603 done
3604
3605 fi
3606 fi
3607 LEX=$ac_cv_prog_LEX
3608 if test -n "$LEX"; then
3609   echo "$as_me:$LINENO: result: $LEX" >&5
3610 echo "${ECHO_T}$LEX" >&6
3611 else
3612   echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3614 fi
3615
3616   test -n "$LEX" && break
3617 done
3618 test -n "$LEX" || LEX=":"
3619
3620 if test -z "$LEXLIB"
3621 then
3622   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3623 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3624 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   ac_check_lib_save_LIBS=$LIBS
3628 LIBS="-lfl  $LIBS"
3629 cat >conftest.$ac_ext <<_ACEOF
3630 #line $LINENO "configure"
3631 #include "confdefs.h"
3632
3633 /* Override any gcc2 internal prototype to avoid an error.  */
3634 #ifdef __cplusplus
3635 extern "C"
3636 #endif
3637 /* We use char because int might match the return type of a gcc2
3638    builtin and then its argument prototype would still apply.  */
3639 char yywrap ();
3640 #ifdef F77_DUMMY_MAIN
3641 #  ifdef __cplusplus
3642      extern "C"
3643 #  endif
3644    int F77_DUMMY_MAIN() { return 1; }
3645 #endif
3646 int
3647 main ()
3648 {
3649 yywrap ();
3650   ;
3651   return 0;
3652 }
3653 _ACEOF
3654 rm -f conftest.$ac_objext conftest$ac_exeext
3655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656   (eval $ac_link) 2>&5
3657   ac_status=$?
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } &&
3660          { ac_try='test -s conftest$ac_exeext'
3661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662   (eval $ac_try) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }; }; then
3666   ac_cv_lib_fl_yywrap=yes
3667 else
3668   echo "$as_me: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3670 ac_cv_lib_fl_yywrap=no
3671 fi
3672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3673 LIBS=$ac_check_lib_save_LIBS
3674 fi
3675 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3676 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3677 if test $ac_cv_lib_fl_yywrap = yes; then
3678   LEXLIB="-lfl"
3679 else
3680   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3681 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3682 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   ac_check_lib_save_LIBS=$LIBS
3686 LIBS="-ll  $LIBS"
3687 cat >conftest.$ac_ext <<_ACEOF
3688 #line $LINENO "configure"
3689 #include "confdefs.h"
3690
3691 /* Override any gcc2 internal prototype to avoid an error.  */
3692 #ifdef __cplusplus
3693 extern "C"
3694 #endif
3695 /* We use char because int might match the return type of a gcc2
3696    builtin and then its argument prototype would still apply.  */
3697 char yywrap ();
3698 #ifdef F77_DUMMY_MAIN
3699 #  ifdef __cplusplus
3700      extern "C"
3701 #  endif
3702    int F77_DUMMY_MAIN() { return 1; }
3703 #endif
3704 int
3705 main ()
3706 {
3707 yywrap ();
3708   ;
3709   return 0;
3710 }
3711 _ACEOF
3712 rm -f conftest.$ac_objext conftest$ac_exeext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714   (eval $ac_link) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } &&
3718          { ac_try='test -s conftest$ac_exeext'
3719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720   (eval $ac_try) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; }; then
3724   ac_cv_lib_l_yywrap=yes
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 ac_cv_lib_l_yywrap=no
3729 fi
3730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3731 LIBS=$ac_check_lib_save_LIBS
3732 fi
3733 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3734 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3735 if test $ac_cv_lib_l_yywrap = yes; then
3736   LEXLIB="-ll"
3737 fi
3738
3739 fi
3740
3741 fi
3742
3743 if test "x$LEX" != "x:"; then
3744   echo "$as_me:$LINENO: checking lex output file root" >&5
3745 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3746 if test "${ac_cv_prog_lex_root+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   # The minimal lex program is just a single line: %%.  But some broken lexes
3750 # (Solaris, I think it was) want two %% lines, so accommodate them.
3751 cat >conftest.l <<_ACEOF
3752 %%
3753 %%
3754 _ACEOF
3755 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3756   (eval $LEX conftest.l) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); }
3760 if test -f lex.yy.c; then
3761   ac_cv_prog_lex_root=lex.yy
3762 elif test -f lexyy.c; then
3763   ac_cv_prog_lex_root=lexyy
3764 else
3765   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3766 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3767    { (exit 1); exit 1; }; }
3768 fi
3769 fi
3770 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3771 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3772 rm -f conftest.l
3773 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3774
3775 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3776 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3777 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   # POSIX says lex can declare yytext either as a pointer or an array; the
3781 # default is implementation-dependent. Figure out which it is, since
3782 # not all implementations provide the %pointer and %array declarations.
3783 ac_cv_prog_lex_yytext_pointer=no
3784 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3785 ac_save_LIBS=$LIBS
3786 LIBS="$LIBS $LEXLIB"
3787 cat >conftest.$ac_ext <<_ACEOF
3788 `cat $LEX_OUTPUT_ROOT.c`
3789 _ACEOF
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792   (eval $ac_link) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); } &&
3796          { ac_try='test -s conftest$ac_exeext'
3797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798   (eval $ac_try) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; }; then
3802   ac_cv_prog_lex_yytext_pointer=yes
3803 else
3804   echo "$as_me: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3806 fi
3807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3808 LIBS=$ac_save_LIBS
3809 rm -f "${LEX_OUTPUT_ROOT}.c"
3810
3811 fi
3812 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3813 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3814 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3815
3816 cat >>confdefs.h <<\_ACEOF
3817 #define YYTEXT_POINTER 1
3818 _ACEOF
3819
3820 fi
3821
3822 fi
3823
3824 for ac_prog in $YACC bison yacc
3825 do
3826   # Extract the first word of "$ac_prog", so it can be a program name with args.
3827 set dummy $ac_prog; ac_word=$2
3828 echo "$as_me:$LINENO: checking for $ac_word" >&5
3829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830 if test "${ac_cv_prog_XYACC+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   if test -n "$XYACC"; then
3834   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839   IFS=$as_save_IFS
3840   test -z "$as_dir" && as_dir=.
3841   for ac_exec_ext in '' $ac_executable_extensions; do
3842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843     ac_cv_prog_XYACC="$ac_prog"
3844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845     break 2
3846   fi
3847 done
3848 done
3849
3850 fi
3851 fi
3852 XYACC=$ac_cv_prog_XYACC
3853 if test -n "$XYACC"; then
3854   echo "$as_me:$LINENO: result: $XYACC" >&5
3855 echo "${ECHO_T}$XYACC" >&6
3856 else
3857   echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3859 fi
3860
3861   test -n "$XYACC" && break
3862 done
3863 test -n "$XYACC" || XYACC="none"
3864
3865 if test "$XYACC" = "none"
3866 then
3867   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3868 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3869    { (exit 1); exit 1; }; }
3870 fi
3871 for ac_prog in $LEX flex lex
3872 do
3873   # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 echo "$as_me:$LINENO: checking for $ac_word" >&5
3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877 if test "${ac_cv_prog_XLEX+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   if test -n "$XLEX"; then
3881   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886   IFS=$as_save_IFS
3887   test -z "$as_dir" && as_dir=.
3888   for ac_exec_ext in '' $ac_executable_extensions; do
3889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890     ac_cv_prog_XLEX="$ac_prog"
3891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892     break 2
3893   fi
3894 done
3895 done
3896
3897 fi
3898 fi
3899 XLEX=$ac_cv_prog_XLEX
3900 if test -n "$XLEX"; then
3901   echo "$as_me:$LINENO: result: $XLEX" >&5
3902 echo "${ECHO_T}$XLEX" >&6
3903 else
3904   echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6
3906 fi
3907
3908   test -n "$XLEX" && break
3909 done
3910 test -n "$XLEX" || XLEX="none"
3911
3912 if test "$XLEX" = "none"
3913 then
3914   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3915 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3916    { (exit 1); exit 1; }; }
3917 fi
3918
3919 if test -n "$ac_tool_prefix"; then
3920   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}ld; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_LD+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   if test -n "$LD"; then
3928   ac_cv_prog_LD="$LD" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935   for ac_exec_ext in '' $ac_executable_extensions; do
3936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937     ac_cv_prog_LD="${ac_tool_prefix}ld"
3938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942 done
3943
3944 fi
3945 fi
3946 LD=$ac_cv_prog_LD
3947 if test -n "$LD"; then
3948   echo "$as_me:$LINENO: result: $LD" >&5
3949 echo "${ECHO_T}$LD" >&6
3950 else
3951   echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3953 fi
3954
3955 fi
3956 if test -z "$ac_cv_prog_LD"; then
3957   ac_ct_LD=$LD
3958   # Extract the first word of "ld", so it can be a program name with args.
3959 set dummy ld; ac_word=$2
3960 echo "$as_me:$LINENO: checking for $ac_word" >&5
3961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   if test -n "$ac_ct_LD"; then
3966   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971   IFS=$as_save_IFS
3972   test -z "$as_dir" && as_dir=.
3973   for ac_exec_ext in '' $ac_executable_extensions; do
3974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975     ac_cv_prog_ac_ct_LD="ld"
3976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3977     break 2
3978   fi
3979 done
3980 done
3981
3982   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3983 fi
3984 fi
3985 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3986 if test -n "$ac_ct_LD"; then
3987   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3988 echo "${ECHO_T}$ac_ct_LD" >&6
3989 else
3990   echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3992 fi
3993
3994   LD=$ac_ct_LD
3995 else
3996   LD="$ac_cv_prog_LD"
3997 fi
3998
3999 if test -n "$ac_tool_prefix"; then
4000   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4001 set dummy ${ac_tool_prefix}ar; ac_word=$2
4002 echo "$as_me:$LINENO: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004 if test "${ac_cv_prog_AR+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   if test -n "$AR"; then
4008   ac_cv_prog_AR="$AR" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4012 do
4013   IFS=$as_save_IFS
4014   test -z "$as_dir" && as_dir=.
4015   for ac_exec_ext in '' $ac_executable_extensions; do
4016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017     ac_cv_prog_AR="${ac_tool_prefix}ar"
4018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019     break 2
4020   fi
4021 done
4022 done
4023
4024 fi
4025 fi
4026 AR=$ac_cv_prog_AR
4027 if test -n "$AR"; then
4028   echo "$as_me:$LINENO: result: $AR" >&5
4029 echo "${ECHO_T}$AR" >&6
4030 else
4031   echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4033 fi
4034
4035 fi
4036 if test -z "$ac_cv_prog_AR"; then
4037   ac_ct_AR=$AR
4038   # Extract the first word of "ar", so it can be a program name with args.
4039 set dummy ar; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if test -n "$ac_ct_AR"; then
4046   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051   IFS=$as_save_IFS
4052   test -z "$as_dir" && as_dir=.
4053   for ac_exec_ext in '' $ac_executable_extensions; do
4054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055     ac_cv_prog_ac_ct_AR="ar"
4056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057     break 2
4058   fi
4059 done
4060 done
4061
4062   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4063 fi
4064 fi
4065 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4066 if test -n "$ac_ct_AR"; then
4067   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4068 echo "${ECHO_T}$ac_ct_AR" >&6
4069 else
4070   echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4072 fi
4073
4074   AR=$ac_ct_AR
4075 else
4076   AR="$ac_cv_prog_AR"
4077 fi
4078
4079 if test -n "$ac_tool_prefix"; then
4080   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4082 echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_RANLIB+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   if test -n "$RANLIB"; then
4088   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095   for ac_exec_ext in '' $ac_executable_extensions; do
4096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099     break 2
4100   fi
4101 done
4102 done
4103
4104 fi
4105 fi
4106 RANLIB=$ac_cv_prog_RANLIB
4107 if test -n "$RANLIB"; then
4108   echo "$as_me:$LINENO: result: $RANLIB" >&5
4109 echo "${ECHO_T}$RANLIB" >&6
4110 else
4111   echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4113 fi
4114
4115 fi
4116 if test -z "$ac_cv_prog_RANLIB"; then
4117   ac_ct_RANLIB=$RANLIB
4118   # Extract the first word of "ranlib", so it can be a program name with args.
4119 set dummy ranlib; ac_word=$2
4120 echo "$as_me:$LINENO: checking for $ac_word" >&5
4121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125   if test -n "$ac_ct_RANLIB"; then
4126   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131   IFS=$as_save_IFS
4132   test -z "$as_dir" && as_dir=.
4133   for ac_exec_ext in '' $ac_executable_extensions; do
4134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135     ac_cv_prog_ac_ct_RANLIB="ranlib"
4136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137     break 2
4138   fi
4139 done
4140 done
4141
4142   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4143 fi
4144 fi
4145 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4146 if test -n "$ac_ct_RANLIB"; then
4147   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4148 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4149 else
4150   echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4152 fi
4153
4154   RANLIB=$ac_ct_RANLIB
4155 else
4156   RANLIB="$ac_cv_prog_RANLIB"
4157 fi
4158
4159 if test -n "$ac_tool_prefix"; then
4160   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}strip; ac_word=$2
4162 echo "$as_me:$LINENO: checking for $ac_word" >&5
4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164 if test "${ac_cv_prog_STRIP+set}" = set; then
4165   echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167   if test -n "$STRIP"; then
4168   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175   for ac_exec_ext in '' $ac_executable_extensions; do
4176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182 done
4183
4184 fi
4185 fi
4186 STRIP=$ac_cv_prog_STRIP
4187 if test -n "$STRIP"; then
4188   echo "$as_me:$LINENO: result: $STRIP" >&5
4189 echo "${ECHO_T}$STRIP" >&6
4190 else
4191   echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4193 fi
4194
4195 fi
4196 if test -z "$ac_cv_prog_STRIP"; then
4197   ac_ct_STRIP=$STRIP
4198   # Extract the first word of "strip", so it can be a program name with args.
4199 set dummy strip; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   if test -n "$ac_ct_STRIP"; then
4206   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213   for ac_exec_ext in '' $ac_executable_extensions; do
4214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215     ac_cv_prog_ac_ct_STRIP="strip"
4216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217     break 2
4218   fi
4219 done
4220 done
4221
4222   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4223 fi
4224 fi
4225 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4226 if test -n "$ac_ct_STRIP"; then
4227   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4228 echo "${ECHO_T}$ac_ct_STRIP" >&6
4229 else
4230   echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4232 fi
4233
4234   STRIP=$ac_ct_STRIP
4235 else
4236   STRIP="$ac_cv_prog_STRIP"
4237 fi
4238
4239 if test -n "$ac_tool_prefix"; then
4240   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4241 set dummy ${ac_tool_prefix}windres; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_prog_WINDRES+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   if test -n "$WINDRES"; then
4248   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263
4264 fi
4265 fi
4266 WINDRES=$ac_cv_prog_WINDRES
4267 if test -n "$WINDRES"; then
4268   echo "$as_me:$LINENO: result: $WINDRES" >&5
4269 echo "${ECHO_T}$WINDRES" >&6
4270 else
4271   echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4273 fi
4274
4275 fi
4276 if test -z "$ac_cv_prog_WINDRES"; then
4277   ac_ct_WINDRES=$WINDRES
4278   # Extract the first word of "windres", so it can be a program name with args.
4279 set dummy windres; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   if test -n "$ac_ct_WINDRES"; then
4286   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293   for ac_exec_ext in '' $ac_executable_extensions; do
4294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295     ac_cv_prog_ac_ct_WINDRES="windres"
4296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300 done
4301
4302   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4303 fi
4304 fi
4305 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4306 if test -n "$ac_ct_WINDRES"; then
4307   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4308 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4309 else
4310   echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4312 fi
4313
4314   WINDRES=$ac_ct_WINDRES
4315 else
4316   WINDRES="$ac_cv_prog_WINDRES"
4317 fi
4318
4319 # Find a good install program.  We prefer a C program (faster),
4320 # so one script is as good as another.  But avoid the broken or
4321 # incompatible versions:
4322 # SysV /etc/install, /usr/sbin/install
4323 # SunOS /usr/etc/install
4324 # IRIX /sbin/install
4325 # AIX /bin/install
4326 # AmigaOS /C/install, which installs bootblocks on floppy discs
4327 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4328 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4329 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4330 # ./install, which can be erroneously created by make from ./install.sh.
4331 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4332 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4333 if test -z "$INSTALL"; then
4334 if test "${ac_cv_path_install+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342   # Account for people who put trailing slashes in PATH elements.
4343 case $as_dir/ in
4344   ./ | .// | /cC/* | \
4345   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4346   /usr/ucb/* ) ;;
4347   *)
4348     # OSF1 and SCO ODT 3.0 have their own names for install.
4349     # Don't use installbsd from OSF since it installs stuff as root
4350     # by default.
4351     for ac_prog in ginstall scoinst install; do
4352       for ac_exec_ext in '' $ac_executable_extensions; do
4353         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4354           if test $ac_prog = install &&
4355             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4356             # AIX install.  It has an incompatible calling convention.
4357             :
4358           elif test $ac_prog = install &&
4359             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4360             # program-specific install script used by HP pwplus--don't use.
4361             :
4362           else
4363             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4364             break 3
4365           fi
4366         fi
4367       done
4368     done
4369     ;;
4370 esac
4371 done
4372
4373
4374 fi
4375   if test "${ac_cv_path_install+set}" = set; then
4376     INSTALL=$ac_cv_path_install
4377   else
4378     # As a last resort, use the slow shell script.  We don't cache a
4379     # path for INSTALL within a source directory, because that will
4380     # break other packages using the cache if that directory is
4381     # removed, or if the path is relative.
4382     INSTALL=$ac_install_sh
4383   fi
4384 fi
4385 echo "$as_me:$LINENO: result: $INSTALL" >&5
4386 echo "${ECHO_T}$INSTALL" >&6
4387
4388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4389 # It thinks the first close brace ends the variable substitution.
4390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4391
4392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4393
4394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4395
4396 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4397 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4398 LN_S=$as_ln_s
4399 if test "$LN_S" = "ln -s"; then
4400   echo "$as_me:$LINENO: result: yes" >&5
4401 echo "${ECHO_T}yes" >&6
4402 else
4403   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4404 echo "${ECHO_T}no, using $LN_S" >&6
4405 fi
4406
4407 echo "$as_me:$LINENO: checking whether ln works" >&5
4408 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4409 rm -f conf$$ conf$$.file
4410 echo >conf$$.file
4411 if ln conf$$.file conf$$ 2>/dev/null; then
4412   LN=ln
4413
4414   echo "$as_me:$LINENO: result: yes" >&5
4415 echo "${ECHO_T}yes" >&6
4416 else
4417   LN="cp -p"
4418
4419   echo "$as_me:$LINENO: result: no, using $LN" >&5
4420 echo "${ECHO_T}no, using $LN" >&6
4421 fi
4422 rm -f conf$$ conf$$.file
4423 # Extract the first word of "c2man", so it can be a program name with args.
4424 set dummy c2man; ac_word=$2
4425 echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427 if test "${ac_cv_prog_C2MAN+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   if test -n "$C2MAN"; then
4431   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438   for ac_exec_ext in '' $ac_executable_extensions; do
4439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440     ac_cv_prog_C2MAN="c2man"
4441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445 done
4446
4447   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4448 fi
4449 fi
4450 C2MAN=$ac_cv_prog_C2MAN
4451 if test -n "$C2MAN"; then
4452   echo "$as_me:$LINENO: result: $C2MAN" >&5
4453 echo "${ECHO_T}$C2MAN" >&6
4454 else
4455   echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4457 fi
4458
4459 # Extract the first word of "ldconfig", so it can be a program name with args.
4460 set dummy ldconfig; ac_word=$2
4461 echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   case $LDCONFIG in
4467   [\\/]* | ?:[\\/]*)
4468   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4469   ;;
4470   *)
4471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in /sbin /usr/sbin $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476   for ac_exec_ext in '' $ac_executable_extensions; do
4477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480     break 2
4481   fi
4482 done
4483 done
4484
4485   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4486   ;;
4487 esac
4488 fi
4489 LDCONFIG=$ac_cv_path_LDCONFIG
4490
4491 if test -n "$LDCONFIG"; then
4492   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4493 echo "${ECHO_T}$LDCONFIG" >&6
4494 else
4495   echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6
4497 fi
4498
4499
4500 for ac_prog in lclint lint
4501 do
4502   # Extract the first word of "$ac_prog", so it can be a program name with args.
4503 set dummy $ac_prog; ac_word=$2
4504 echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506 if test "${ac_cv_prog_LINT+set}" = set; then
4507   echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509   if test -n "$LINT"; then
4510   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515   IFS=$as_save_IFS
4516   test -z "$as_dir" && as_dir=.
4517   for ac_exec_ext in '' $ac_executable_extensions; do
4518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519     ac_cv_prog_LINT="$ac_prog"
4520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521     break 2
4522   fi
4523 done
4524 done
4525
4526 fi
4527 fi
4528 LINT=$ac_cv_prog_LINT
4529 if test -n "$LINT"; then
4530   echo "$as_me:$LINENO: result: $LINT" >&5
4531 echo "${ECHO_T}$LINT" >&6
4532 else
4533   echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4535 fi
4536
4537   test -n "$LINT" && break
4538 done
4539
4540 if test "$LINT" = "lint"
4541 then
4542   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4543   fi
4544
4545
4546
4547
4548
4549 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4550 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4551 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   ac_check_lib_save_LIBS=$LIBS
4555 LIBS="-lm  $LIBS"
4556 cat >conftest.$ac_ext <<_ACEOF
4557 #line $LINENO "configure"
4558 #include "confdefs.h"
4559
4560 /* Override any gcc2 internal prototype to avoid an error.  */
4561 #ifdef __cplusplus
4562 extern "C"
4563 #endif
4564 /* We use char because int might match the return type of a gcc2
4565    builtin and then its argument prototype would still apply.  */
4566 char sqrt ();
4567 #ifdef F77_DUMMY_MAIN
4568 #  ifdef __cplusplus
4569      extern "C"
4570 #  endif
4571    int F77_DUMMY_MAIN() { return 1; }
4572 #endif
4573 int
4574 main ()
4575 {
4576 sqrt ();
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext conftest$ac_exeext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583   (eval $ac_link) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } &&
4587          { ac_try='test -s conftest$ac_exeext'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593   ac_cv_lib_m_sqrt=yes
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597 ac_cv_lib_m_sqrt=no
4598 fi
4599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4600 LIBS=$ac_check_lib_save_LIBS
4601 fi
4602 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4603 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4604 if test $ac_cv_lib_m_sqrt = yes; then
4605   cat >>confdefs.h <<_ACEOF
4606 #define HAVE_LIBM 1
4607 _ACEOF
4608
4609   LIBS="-lm $LIBS"
4610
4611 fi
4612
4613
4614 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4615 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4616 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   ac_check_lib_save_LIBS=$LIBS
4620 LIBS="-li386  $LIBS"
4621 cat >conftest.$ac_ext <<_ACEOF
4622 #line $LINENO "configure"
4623 #include "confdefs.h"
4624
4625 /* Override any gcc2 internal prototype to avoid an error.  */
4626 #ifdef __cplusplus
4627 extern "C"
4628 #endif
4629 /* We use char because int might match the return type of a gcc2
4630    builtin and then its argument prototype would still apply.  */
4631 char i386_set_ldt ();
4632 #ifdef F77_DUMMY_MAIN
4633 #  ifdef __cplusplus
4634      extern "C"
4635 #  endif
4636    int F77_DUMMY_MAIN() { return 1; }
4637 #endif
4638 int
4639 main ()
4640 {
4641 i386_set_ldt ();
4642   ;
4643   return 0;
4644 }
4645 _ACEOF
4646 rm -f conftest.$ac_objext conftest$ac_exeext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648   (eval $ac_link) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } &&
4652          { ac_try='test -s conftest$ac_exeext'
4653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654   (eval $ac_try) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; }; then
4658   ac_cv_lib_i386_i386_set_ldt=yes
4659 else
4660   echo "$as_me: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4662 ac_cv_lib_i386_i386_set_ldt=no
4663 fi
4664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4665 LIBS=$ac_check_lib_save_LIBS
4666 fi
4667 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4668 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4669 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4670   cat >>confdefs.h <<_ACEOF
4671 #define HAVE_LIBI386 1
4672 _ACEOF
4673
4674   LIBS="-li386 $LIBS"
4675
4676 fi
4677
4678
4679 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4680 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4681 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4682   echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684   ac_check_lib_save_LIBS=$LIBS
4685 LIBS="-lossaudio  $LIBS"
4686 cat >conftest.$ac_ext <<_ACEOF
4687 #line $LINENO "configure"
4688 #include "confdefs.h"
4689
4690 /* Override any gcc2 internal prototype to avoid an error.  */
4691 #ifdef __cplusplus
4692 extern "C"
4693 #endif
4694 /* We use char because int might match the return type of a gcc2
4695    builtin and then its argument prototype would still apply.  */
4696 char _oss_ioctl ();
4697 #ifdef F77_DUMMY_MAIN
4698 #  ifdef __cplusplus
4699      extern "C"
4700 #  endif
4701    int F77_DUMMY_MAIN() { return 1; }
4702 #endif
4703 int
4704 main ()
4705 {
4706 _oss_ioctl ();
4707   ;
4708   return 0;
4709 }
4710 _ACEOF
4711 rm -f conftest.$ac_objext conftest$ac_exeext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713   (eval $ac_link) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); } &&
4717          { ac_try='test -s conftest$ac_exeext'
4718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719   (eval $ac_try) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); }; }; then
4723   ac_cv_lib_ossaudio__oss_ioctl=yes
4724 else
4725   echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 ac_cv_lib_ossaudio__oss_ioctl=no
4728 fi
4729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4730 LIBS=$ac_check_lib_save_LIBS
4731 fi
4732 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4733 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4734 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4735   cat >>confdefs.h <<_ACEOF
4736 #define HAVE_LIBOSSAUDIO 1
4737 _ACEOF
4738
4739   LIBS="-lossaudio $LIBS"
4740
4741 fi
4742
4743
4744 for ac_func in iswalnum
4745 do
4746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4747 echo "$as_me:$LINENO: checking for $ac_func" >&5
4748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4749 if eval "test \"\${$as_ac_var+set}\" = set"; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752   cat >conftest.$ac_ext <<_ACEOF
4753 #line $LINENO "configure"
4754 #include "confdefs.h"
4755 /* System header to define __stub macros and hopefully few prototypes,
4756     which can conflict with char $ac_func (); below.  */
4757 #include <assert.h>
4758 /* Override any gcc2 internal prototype to avoid an error.  */
4759 #ifdef __cplusplus
4760 extern "C"
4761 #endif
4762 /* We use char because int might match the return type of a gcc2
4763    builtin and then its argument prototype would still apply.  */
4764 char $ac_func ();
4765 char (*f) ();
4766
4767 #ifdef F77_DUMMY_MAIN
4768 #  ifdef __cplusplus
4769      extern "C"
4770 #  endif
4771    int F77_DUMMY_MAIN() { return 1; }
4772 #endif
4773 int
4774 main ()
4775 {
4776 /* The GNU C library defines this for functions which it implements
4777     to always fail with ENOSYS.  Some functions are actually named
4778     something starting with __ and the normal name is an alias.  */
4779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4780 choke me
4781 #else
4782 f = $ac_func;
4783 #endif
4784
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext conftest$ac_exeext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4791   (eval $ac_link) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } &&
4795          { ac_try='test -s conftest$ac_exeext'
4796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797   (eval $ac_try) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); }; }; then
4801   eval "$as_ac_var=yes"
4802 else
4803   echo "$as_me: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4805 eval "$as_ac_var=no"
4806 fi
4807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4808 fi
4809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4811 if test `eval echo '${'$as_ac_var'}'` = yes; then
4812   cat >>confdefs.h <<_ACEOF
4813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4814 _ACEOF
4815
4816 else
4817
4818 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4819 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4820 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   ac_check_lib_save_LIBS=$LIBS
4824 LIBS="-lw  $LIBS"
4825 cat >conftest.$ac_ext <<_ACEOF
4826 #line $LINENO "configure"
4827 #include "confdefs.h"
4828
4829 /* Override any gcc2 internal prototype to avoid an error.  */
4830 #ifdef __cplusplus
4831 extern "C"
4832 #endif
4833 /* We use char because int might match the return type of a gcc2
4834    builtin and then its argument prototype would still apply.  */
4835 char iswalnum ();
4836 #ifdef F77_DUMMY_MAIN
4837 #  ifdef __cplusplus
4838      extern "C"
4839 #  endif
4840    int F77_DUMMY_MAIN() { return 1; }
4841 #endif
4842 int
4843 main ()
4844 {
4845 iswalnum ();
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850 rm -f conftest.$ac_objext conftest$ac_exeext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4852   (eval $ac_link) 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); } &&
4856          { ac_try='test -s conftest$ac_exeext'
4857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858   (eval $ac_try) 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); }; }; then
4862   ac_cv_lib_w_iswalnum=yes
4863 else
4864   echo "$as_me: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4866 ac_cv_lib_w_iswalnum=no
4867 fi
4868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4869 LIBS=$ac_check_lib_save_LIBS
4870 fi
4871 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4872 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4873 if test $ac_cv_lib_w_iswalnum = yes; then
4874   cat >>confdefs.h <<_ACEOF
4875 #define HAVE_LIBW 1
4876 _ACEOF
4877
4878   LIBS="-lw $LIBS"
4879
4880 fi
4881
4882 fi
4883 done
4884
4885
4886 for ac_func in gethostbyname
4887 do
4888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4889 echo "$as_me:$LINENO: checking for $ac_func" >&5
4890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4891 if eval "test \"\${$as_ac_var+set}\" = set"; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   cat >conftest.$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 #include "confdefs.h"
4897 /* System header to define __stub macros and hopefully few prototypes,
4898     which can conflict with char $ac_func (); below.  */
4899 #include <assert.h>
4900 /* Override any gcc2 internal prototype to avoid an error.  */
4901 #ifdef __cplusplus
4902 extern "C"
4903 #endif
4904 /* We use char because int might match the return type of a gcc2
4905    builtin and then its argument prototype would still apply.  */
4906 char $ac_func ();
4907 char (*f) ();
4908
4909 #ifdef F77_DUMMY_MAIN
4910 #  ifdef __cplusplus
4911      extern "C"
4912 #  endif
4913    int F77_DUMMY_MAIN() { return 1; }
4914 #endif
4915 int
4916 main ()
4917 {
4918 /* The GNU C library defines this for functions which it implements
4919     to always fail with ENOSYS.  Some functions are actually named
4920     something starting with __ and the normal name is an alias.  */
4921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4922 choke me
4923 #else
4924 f = $ac_func;
4925 #endif
4926
4927   ;
4928   return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext conftest$ac_exeext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933   (eval $ac_link) 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); } &&
4937          { ac_try='test -s conftest$ac_exeext'
4938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939   (eval $ac_try) 2>&5
4940   ac_status=$?
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); }; }; then
4943   eval "$as_ac_var=yes"
4944 else
4945   echo "$as_me: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4947 eval "$as_ac_var=no"
4948 fi
4949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4950 fi
4951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4953 if test `eval echo '${'$as_ac_var'}'` = yes; then
4954   cat >>confdefs.h <<_ACEOF
4955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4956 _ACEOF
4957
4958 else
4959
4960 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4961 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4962 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4963   echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965   ac_check_lib_save_LIBS=$LIBS
4966 LIBS="-lnsl  $LIBS"
4967 cat >conftest.$ac_ext <<_ACEOF
4968 #line $LINENO "configure"
4969 #include "confdefs.h"
4970
4971 /* Override any gcc2 internal prototype to avoid an error.  */
4972 #ifdef __cplusplus
4973 extern "C"
4974 #endif
4975 /* We use char because int might match the return type of a gcc2
4976    builtin and then its argument prototype would still apply.  */
4977 char gethostbyname ();
4978 #ifdef F77_DUMMY_MAIN
4979 #  ifdef __cplusplus
4980      extern "C"
4981 #  endif
4982    int F77_DUMMY_MAIN() { return 1; }
4983 #endif
4984 int
4985 main ()
4986 {
4987 gethostbyname ();
4988   ;
4989   return 0;
4990 }
4991 _ACEOF
4992 rm -f conftest.$ac_objext conftest$ac_exeext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4994   (eval $ac_link) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); } &&
4998          { ac_try='test -s conftest$ac_exeext'
4999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000   (eval $ac_try) 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); }; }; then
5004   ac_cv_lib_nsl_gethostbyname=yes
5005 else
5006   echo "$as_me: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5008 ac_cv_lib_nsl_gethostbyname=no
5009 fi
5010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5011 LIBS=$ac_check_lib_save_LIBS
5012 fi
5013 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5014 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5015 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5016   cat >>confdefs.h <<_ACEOF
5017 #define HAVE_LIBNSL 1
5018 _ACEOF
5019
5020   LIBS="-lnsl $LIBS"
5021
5022 fi
5023
5024 fi
5025 done
5026
5027
5028 for ac_func in connect
5029 do
5030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5031 echo "$as_me:$LINENO: checking for $ac_func" >&5
5032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5033 if eval "test \"\${$as_ac_var+set}\" = set"; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   cat >conftest.$ac_ext <<_ACEOF
5037 #line $LINENO "configure"
5038 #include "confdefs.h"
5039 /* System header to define __stub macros and hopefully few prototypes,
5040     which can conflict with char $ac_func (); below.  */
5041 #include <assert.h>
5042 /* Override any gcc2 internal prototype to avoid an error.  */
5043 #ifdef __cplusplus
5044 extern "C"
5045 #endif
5046 /* We use char because int might match the return type of a gcc2
5047    builtin and then its argument prototype would still apply.  */
5048 char $ac_func ();
5049 char (*f) ();
5050
5051 #ifdef F77_DUMMY_MAIN
5052 #  ifdef __cplusplus
5053      extern "C"
5054 #  endif
5055    int F77_DUMMY_MAIN() { return 1; }
5056 #endif
5057 int
5058 main ()
5059 {
5060 /* The GNU C library defines this for functions which it implements
5061     to always fail with ENOSYS.  Some functions are actually named
5062     something starting with __ and the normal name is an alias.  */
5063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5064 choke me
5065 #else
5066 f = $ac_func;
5067 #endif
5068
5069   ;
5070   return 0;
5071 }
5072 _ACEOF
5073 rm -f conftest.$ac_objext conftest$ac_exeext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075   (eval $ac_link) 2>&5
5076   ac_status=$?
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); } &&
5079          { ac_try='test -s conftest$ac_exeext'
5080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081   (eval $ac_try) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); }; }; then
5085   eval "$as_ac_var=yes"
5086 else
5087   echo "$as_me: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5089 eval "$as_ac_var=no"
5090 fi
5091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5092 fi
5093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5095 if test `eval echo '${'$as_ac_var'}'` = yes; then
5096   cat >>confdefs.h <<_ACEOF
5097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5098 _ACEOF
5099
5100 else
5101
5102 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5103 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5104 if test "${ac_cv_lib_socket_connect+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   ac_check_lib_save_LIBS=$LIBS
5108 LIBS="-lsocket  $LIBS"
5109 cat >conftest.$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5111 #include "confdefs.h"
5112
5113 /* Override any gcc2 internal prototype to avoid an error.  */
5114 #ifdef __cplusplus
5115 extern "C"
5116 #endif
5117 /* We use char because int might match the return type of a gcc2
5118    builtin and then its argument prototype would still apply.  */
5119 char connect ();
5120 #ifdef F77_DUMMY_MAIN
5121 #  ifdef __cplusplus
5122      extern "C"
5123 #  endif
5124    int F77_DUMMY_MAIN() { return 1; }
5125 #endif
5126 int
5127 main ()
5128 {
5129 connect ();
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136   (eval $ac_link) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } &&
5140          { ac_try='test -s conftest$ac_exeext'
5141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142   (eval $ac_try) 2>&5
5143   ac_status=$?
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); }; }; then
5146   ac_cv_lib_socket_connect=yes
5147 else
5148   echo "$as_me: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5150 ac_cv_lib_socket_connect=no
5151 fi
5152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5153 LIBS=$ac_check_lib_save_LIBS
5154 fi
5155 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5156 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5157 if test $ac_cv_lib_socket_connect = yes; then
5158   cat >>confdefs.h <<_ACEOF
5159 #define HAVE_LIBSOCKET 1
5160 _ACEOF
5161
5162   LIBS="-lsocket $LIBS"
5163
5164 fi
5165
5166 fi
5167 done
5168
5169
5170 for ac_func in inet_aton
5171 do
5172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5173 echo "$as_me:$LINENO: checking for $ac_func" >&5
5174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5175 if eval "test \"\${$as_ac_var+set}\" = set"; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5181 /* System header to define __stub macros and hopefully few prototypes,
5182     which can conflict with char $ac_func (); below.  */
5183 #include <assert.h>
5184 /* Override any gcc2 internal prototype to avoid an error.  */
5185 #ifdef __cplusplus
5186 extern "C"
5187 #endif
5188 /* We use char because int might match the return type of a gcc2
5189    builtin and then its argument prototype would still apply.  */
5190 char $ac_func ();
5191 char (*f) ();
5192
5193 #ifdef F77_DUMMY_MAIN
5194 #  ifdef __cplusplus
5195      extern "C"
5196 #  endif
5197    int F77_DUMMY_MAIN() { return 1; }
5198 #endif
5199 int
5200 main ()
5201 {
5202 /* The GNU C library defines this for functions which it implements
5203     to always fail with ENOSYS.  Some functions are actually named
5204     something starting with __ and the normal name is an alias.  */
5205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5206 choke me
5207 #else
5208 f = $ac_func;
5209 #endif
5210
5211   ;
5212   return 0;
5213 }
5214 _ACEOF
5215 rm -f conftest.$ac_objext conftest$ac_exeext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217   (eval $ac_link) 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); } &&
5221          { ac_try='test -s conftest$ac_exeext'
5222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223   (eval $ac_try) 2>&5
5224   ac_status=$?
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); }; }; then
5227   eval "$as_ac_var=yes"
5228 else
5229   echo "$as_me: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5231 eval "$as_ac_var=no"
5232 fi
5233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5234 fi
5235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5237 if test `eval echo '${'$as_ac_var'}'` = yes; then
5238   cat >>confdefs.h <<_ACEOF
5239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5240 _ACEOF
5241
5242 else
5243
5244 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5245 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5246 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   ac_check_lib_save_LIBS=$LIBS
5250 LIBS="-lresolv  $LIBS"
5251 cat >conftest.$ac_ext <<_ACEOF
5252 #line $LINENO "configure"
5253 #include "confdefs.h"
5254
5255 /* Override any gcc2 internal prototype to avoid an error.  */
5256 #ifdef __cplusplus
5257 extern "C"
5258 #endif
5259 /* We use char because int might match the return type of a gcc2
5260    builtin and then its argument prototype would still apply.  */
5261 char inet_aton ();
5262 #ifdef F77_DUMMY_MAIN
5263 #  ifdef __cplusplus
5264      extern "C"
5265 #  endif
5266    int F77_DUMMY_MAIN() { return 1; }
5267 #endif
5268 int
5269 main ()
5270 {
5271 inet_aton ();
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 rm -f conftest.$ac_objext conftest$ac_exeext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5278   (eval $ac_link) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } &&
5282          { ac_try='test -s conftest$ac_exeext'
5283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284   (eval $ac_try) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }; }; then
5288   ac_cv_lib_resolv_inet_aton=yes
5289 else
5290   echo "$as_me: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 ac_cv_lib_resolv_inet_aton=no
5293 fi
5294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5295 LIBS=$ac_check_lib_save_LIBS
5296 fi
5297 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5298 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5299 if test $ac_cv_lib_resolv_inet_aton = yes; then
5300   cat >>confdefs.h <<_ACEOF
5301 #define HAVE_LIBRESOLV 1
5302 _ACEOF
5303
5304   LIBS="-lresolv $LIBS"
5305
5306 fi
5307
5308 fi
5309 done
5310
5311
5312 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5313 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5314 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5315   echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317   ac_check_lib_save_LIBS=$LIBS
5318 LIBS="-lxpg4  $LIBS"
5319 cat >conftest.$ac_ext <<_ACEOF
5320 #line $LINENO "configure"
5321 #include "confdefs.h"
5322
5323 /* Override any gcc2 internal prototype to avoid an error.  */
5324 #ifdef __cplusplus
5325 extern "C"
5326 #endif
5327 /* We use char because int might match the return type of a gcc2
5328    builtin and then its argument prototype would still apply.  */
5329 char _xpg4_setrunelocale ();
5330 #ifdef F77_DUMMY_MAIN
5331 #  ifdef __cplusplus
5332      extern "C"
5333 #  endif
5334    int F77_DUMMY_MAIN() { return 1; }
5335 #endif
5336 int
5337 main ()
5338 {
5339 _xpg4_setrunelocale ();
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346   (eval $ac_link) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } &&
5350          { ac_try='test -s conftest$ac_exeext'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; }; then
5356   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5361 fi
5362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363 LIBS=$ac_check_lib_save_LIBS
5364 fi
5365 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5366 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5367 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5368   cat >>confdefs.h <<_ACEOF
5369 #define HAVE_LIBXPG4 1
5370 _ACEOF
5371
5372   LIBS="-lxpg4 $LIBS"
5373
5374 fi
5375
5376
5377 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5378 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5379 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382   ac_check_lib_save_LIBS=$LIBS
5383 LIBS="-lmmap  $LIBS"
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 #include "confdefs.h"
5387
5388 /* Override any gcc2 internal prototype to avoid an error.  */
5389 #ifdef __cplusplus
5390 extern "C"
5391 #endif
5392 /* We use char because int might match the return type of a gcc2
5393    builtin and then its argument prototype would still apply.  */
5394 char mmap ();
5395 #ifdef F77_DUMMY_MAIN
5396 #  ifdef __cplusplus
5397      extern "C"
5398 #  endif
5399    int F77_DUMMY_MAIN() { return 1; }
5400 #endif
5401 int
5402 main ()
5403 {
5404 mmap ();
5405   ;
5406   return 0;
5407 }
5408 _ACEOF
5409 rm -f conftest.$ac_objext conftest$ac_exeext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5411   (eval $ac_link) 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); } &&
5415          { ac_try='test -s conftest$ac_exeext'
5416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417   (eval $ac_try) 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }; }; then
5421   ac_cv_lib_mmap_mmap=yes
5422 else
5423   echo "$as_me: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5425 ac_cv_lib_mmap_mmap=no
5426 fi
5427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5428 LIBS=$ac_check_lib_save_LIBS
5429 fi
5430 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5431 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5432 if test $ac_cv_lib_mmap_mmap = yes; then
5433   cat >>confdefs.h <<_ACEOF
5434 #define HAVE_LIBMMAP 1
5435 _ACEOF
5436
5437   LIBS="-lmmap $LIBS"
5438
5439 fi
5440
5441
5442 JPEGLIB=""
5443
5444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5446 if test "${ac_cv_header_stdc+set}" = set; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 #include "confdefs.h"
5452 #include <stdlib.h>
5453 #include <stdarg.h>
5454 #include <string.h>
5455 #include <float.h>
5456
5457 _ACEOF
5458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5460   ac_status=$?
5461   egrep -v '^ *\+' conftest.er1 >conftest.err
5462   rm -f conftest.er1
5463   cat conftest.err >&5
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); } >/dev/null; then
5466   if test -s conftest.err; then
5467     ac_cpp_err=$ac_c_preproc_warn_flag
5468   else
5469     ac_cpp_err=
5470   fi
5471 else
5472   ac_cpp_err=yes
5473 fi
5474 if test -z "$ac_cpp_err"; then
5475   ac_cv_header_stdc=yes
5476 else
5477   echo "$as_me: failed program was:" >&5
5478   cat conftest.$ac_ext >&5
5479   ac_cv_header_stdc=no
5480 fi
5481 rm -f conftest.err conftest.$ac_ext
5482
5483 if test $ac_cv_header_stdc = yes; then
5484   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5485   cat >conftest.$ac_ext <<_ACEOF
5486 #line $LINENO "configure"
5487 #include "confdefs.h"
5488 #include <string.h>
5489
5490 _ACEOF
5491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5492   egrep "memchr" >/dev/null 2>&1; then
5493   :
5494 else
5495   ac_cv_header_stdc=no
5496 fi
5497 rm -f conftest*
5498
5499 fi
5500
5501 if test $ac_cv_header_stdc = yes; then
5502   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5503   cat >conftest.$ac_ext <<_ACEOF
5504 #line $LINENO "configure"
5505 #include "confdefs.h"
5506 #include <stdlib.h>
5507
5508 _ACEOF
5509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5510   egrep "free" >/dev/null 2>&1; then
5511   :
5512 else
5513   ac_cv_header_stdc=no
5514 fi
5515 rm -f conftest*
5516
5517 fi
5518
5519 if test $ac_cv_header_stdc = yes; then
5520   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5521   if test "$cross_compiling" = yes; then
5522   :
5523 else
5524   cat >conftest.$ac_ext <<_ACEOF
5525 #line $LINENO "configure"
5526 #include "confdefs.h"
5527 #include <ctype.h>
5528 #if ((' ' & 0x0FF) == 0x020)
5529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5531 #else
5532 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5533                      || ('j' <= (c) && (c) <= 'r') \
5534                      || ('s' <= (c) && (c) <= 'z'))
5535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5536 #endif
5537
5538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5539 int
5540 main ()
5541 {
5542   int i;
5543   for (i = 0; i < 256; i++)
5544     if (XOR (islower (i), ISLOWER (i))
5545         || toupper (i) != TOUPPER (i))
5546       exit(2);
5547   exit (0);
5548 }
5549 _ACEOF
5550 rm -f conftest$ac_exeext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552   (eval $ac_link) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557   (eval $ac_try) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; }; then
5561   :
5562 else
5563   echo "$as_me: program exited with status $ac_status" >&5
5564 echo "$as_me: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5566 ( exit $ac_status )
5567 ac_cv_header_stdc=no
5568 fi
5569 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5570 fi
5571 fi
5572 fi
5573 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5574 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5575 if test $ac_cv_header_stdc = yes; then
5576
5577 cat >>confdefs.h <<\_ACEOF
5578 #define STDC_HEADERS 1
5579 _ACEOF
5580
5581 fi
5582
5583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5594                   inttypes.h stdint.h unistd.h
5595 do
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 echo "$as_me:$LINENO: checking for $ac_header" >&5
5598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5604 #include "confdefs.h"
5605 $ac_includes_default
5606
5607 #include <$ac_header>
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611   (eval $ac_compile) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } &&
5615          { ac_try='test -s conftest.$ac_objext'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; }; then
5621   eval "$as_ac_Header=yes"
5622 else
5623   echo "$as_me: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5625 eval "$as_ac_Header=no"
5626 fi
5627 rm -f conftest.$ac_objext conftest.$ac_ext
5628 fi
5629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5632   cat >>confdefs.h <<_ACEOF
5633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5634 _ACEOF
5635
5636 fi
5637
5638 done
5639
5640
5641
5642 for ac_header in jpeglib.h
5643 do
5644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5646   echo "$as_me:$LINENO: checking for $ac_header" >&5
5647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5649   echo $ECHO_N "(cached) $ECHO_C" >&6
5650 fi
5651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5653 else
5654   # Is the header compilable?
5655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5659 #include "confdefs.h"
5660 $ac_includes_default
5661 #include <$ac_header>
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665   (eval $ac_compile) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } &&
5669          { ac_try='test -s conftest.$ac_objext'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; }; then
5675   ac_header_compiler=yes
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5679 ac_header_compiler=no
5680 fi
5681 rm -f conftest.$ac_objext conftest.$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5683 echo "${ECHO_T}$ac_header_compiler" >&6
5684
5685 # Is the header present?
5686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5688 cat >conftest.$ac_ext <<_ACEOF
5689 #line $LINENO "configure"
5690 #include "confdefs.h"
5691 #include <$ac_header>
5692 _ACEOF
5693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5695   ac_status=$?
5696   egrep -v '^ *\+' conftest.er1 >conftest.err
5697   rm -f conftest.er1
5698   cat conftest.err >&5
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } >/dev/null; then
5701   if test -s conftest.err; then
5702     ac_cpp_err=$ac_c_preproc_warn_flag
5703   else
5704     ac_cpp_err=
5705   fi
5706 else
5707   ac_cpp_err=yes
5708 fi
5709 if test -z "$ac_cpp_err"; then
5710   ac_header_preproc=yes
5711 else
5712   echo "$as_me: failed program was:" >&5
5713   cat conftest.$ac_ext >&5
5714   ac_header_preproc=no
5715 fi
5716 rm -f conftest.err conftest.$ac_ext
5717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5718 echo "${ECHO_T}$ac_header_preproc" >&6
5719
5720 # So?  What about this header?
5721 case $ac_header_compiler:$ac_header_preproc in
5722   yes:no )
5723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5727   no:yes )
5728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5730     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5734 esac
5735 echo "$as_me:$LINENO: checking for $ac_header" >&5
5736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   eval "$as_ac_Header=$ac_header_preproc"
5741 fi
5742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5744
5745 fi
5746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5747   cat >>confdefs.h <<_ACEOF
5748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5749 _ACEOF
5750  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5751 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5752 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   ac_check_lib_save_LIBS=$LIBS
5756 LIBS="-ljpeg  $LIBS"
5757 cat >conftest.$ac_ext <<_ACEOF
5758 #line $LINENO "configure"
5759 #include "confdefs.h"
5760
5761 /* Override any gcc2 internal prototype to avoid an error.  */
5762 #ifdef __cplusplus
5763 extern "C"
5764 #endif
5765 /* We use char because int might match the return type of a gcc2
5766    builtin and then its argument prototype would still apply.  */
5767 char jpeg_start_decompress ();
5768 #ifdef F77_DUMMY_MAIN
5769 #  ifdef __cplusplus
5770      extern "C"
5771 #  endif
5772    int F77_DUMMY_MAIN() { return 1; }
5773 #endif
5774 int
5775 main ()
5776 {
5777 jpeg_start_decompress ();
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784   (eval $ac_link) 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); } &&
5788          { ac_try='test -s conftest$ac_exeext'
5789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790   (eval $ac_try) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }; }; then
5794   ac_cv_lib_jpeg_jpeg_start_decompress=yes
5795 else
5796   echo "$as_me: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 ac_cv_lib_jpeg_jpeg_start_decompress=no
5799 fi
5800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5801 LIBS=$ac_check_lib_save_LIBS
5802 fi
5803 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5804 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5805 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5806
5807 cat >>confdefs.h <<\_ACEOF
5808 #define HAVE_LIBJPEG 1
5809 _ACEOF
5810
5811         JPEGLIB="-ljpeg"
5812
5813 fi
5814
5815
5816 fi
5817
5818 done
5819
5820
5821
5822
5823
5824 XFILES=""
5825
5826 OPENGLFILES=""
5827
5828 GLU32FILES=""
5829 if test "$have_x" = "yes"
5830 then
5831     XLIB="-lXext -lX11"
5832     ac_save_CPPFLAGS="$CPPFLAGS"
5833     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5834
5835
5836 for ac_header in X11/Xlib.h
5837 do
5838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5840   echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 fi
5845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5847 else
5848   # Is the header compilable?
5849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5851 cat >conftest.$ac_ext <<_ACEOF
5852 #line $LINENO "configure"
5853 #include "confdefs.h"
5854 $ac_includes_default
5855 #include <$ac_header>
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859   (eval $ac_compile) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); } &&
5863          { ac_try='test -s conftest.$ac_objext'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; }; then
5869   ac_header_compiler=yes
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5873 ac_header_compiler=no
5874 fi
5875 rm -f conftest.$ac_objext conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5877 echo "${ECHO_T}$ac_header_compiler" >&6
5878
5879 # Is the header present?
5880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5882 cat >conftest.$ac_ext <<_ACEOF
5883 #line $LINENO "configure"
5884 #include "confdefs.h"
5885 #include <$ac_header>
5886 _ACEOF
5887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5889   ac_status=$?
5890   egrep -v '^ *\+' conftest.er1 >conftest.err
5891   rm -f conftest.er1
5892   cat conftest.err >&5
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); } >/dev/null; then
5895   if test -s conftest.err; then
5896     ac_cpp_err=$ac_c_preproc_warn_flag
5897   else
5898     ac_cpp_err=
5899   fi
5900 else
5901   ac_cpp_err=yes
5902 fi
5903 if test -z "$ac_cpp_err"; then
5904   ac_header_preproc=yes
5905 else
5906   echo "$as_me: failed program was:" >&5
5907   cat conftest.$ac_ext >&5
5908   ac_header_preproc=no
5909 fi
5910 rm -f conftest.err conftest.$ac_ext
5911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5912 echo "${ECHO_T}$ac_header_preproc" >&6
5913
5914 # So?  What about this header?
5915 case $ac_header_compiler:$ac_header_preproc in
5916   yes:no )
5917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5921   no:yes )
5922     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5924     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5928 esac
5929 echo "$as_me:$LINENO: checking for $ac_header" >&5
5930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   eval "$as_ac_Header=$ac_header_preproc"
5935 fi
5936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5938
5939 fi
5940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5941   cat >>confdefs.h <<_ACEOF
5942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5943 _ACEOF
5944
5945
5946 for ac_header in X11/XKBlib.h
5947 do
5948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5949 echo "$as_me:$LINENO: checking for $ac_header" >&5
5950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   cat >conftest.$ac_ext <<_ACEOF
5955 #line $LINENO "configure"
5956 #include "confdefs.h"
5957 #include <X11/Xlib.h>
5958
5959 #include <$ac_header>
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963   (eval $ac_compile) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); } &&
5967          { ac_try='test -s conftest.$ac_objext'
5968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969   (eval $ac_try) 2>&5
5970   ac_status=$?
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); }; }; then
5973   eval "$as_ac_Header=yes"
5974 else
5975   echo "$as_me: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5977 eval "$as_ac_Header=no"
5978 fi
5979 rm -f conftest.$ac_objext conftest.$ac_ext
5980 fi
5981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5984   cat >>confdefs.h <<_ACEOF
5985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5986 _ACEOF
5987                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
5988 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5989 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   ac_check_lib_save_LIBS=$LIBS
5993 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5994 cat >conftest.$ac_ext <<_ACEOF
5995 #line $LINENO "configure"
5996 #include "confdefs.h"
5997
5998 /* Override any gcc2 internal prototype to avoid an error.  */
5999 #ifdef __cplusplus
6000 extern "C"
6001 #endif
6002 /* We use char because int might match the return type of a gcc2
6003    builtin and then its argument prototype would still apply.  */
6004 char XkbQueryExtension ();
6005 #ifdef F77_DUMMY_MAIN
6006 #  ifdef __cplusplus
6007      extern "C"
6008 #  endif
6009    int F77_DUMMY_MAIN() { return 1; }
6010 #endif
6011 int
6012 main ()
6013 {
6014 XkbQueryExtension ();
6015   ;
6016   return 0;
6017 }
6018 _ACEOF
6019 rm -f conftest.$ac_objext conftest$ac_exeext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6021   (eval $ac_link) 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); } &&
6025          { ac_try='test -s conftest$ac_exeext'
6026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027   (eval $ac_try) 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); }; }; then
6031   ac_cv_lib_X11_XkbQueryExtension=yes
6032 else
6033   echo "$as_me: failed program was:" >&5
6034 cat conftest.$ac_ext >&5
6035 ac_cv_lib_X11_XkbQueryExtension=no
6036 fi
6037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6038 LIBS=$ac_check_lib_save_LIBS
6039 fi
6040 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6041 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6042 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6043
6044 cat >>confdefs.h <<\_ACEOF
6045 #define HAVE_XKB 1
6046 _ACEOF
6047
6048 fi
6049
6050
6051 else
6052   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6053 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6054 fi
6055
6056 done
6057
6058
6059
6060 for ac_header in X11/extensions/XShm.h
6061 do
6062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6063 echo "$as_me:$LINENO: checking for $ac_header" >&5
6064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6066   echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068   cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 #include "confdefs.h"
6071 #include <X11/Xlib.h>
6072
6073 #include <$ac_header>
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077   (eval $ac_compile) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } &&
6081          { ac_try='test -s conftest.$ac_objext'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   eval "$as_ac_Header=yes"
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 eval "$as_ac_Header=no"
6092 fi
6093 rm -f conftest.$ac_objext conftest.$ac_ext
6094 fi
6095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6098   cat >>confdefs.h <<_ACEOF
6099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100 _ACEOF
6101                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6102 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6103 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   ac_check_lib_save_LIBS=$LIBS
6107 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6108 cat >conftest.$ac_ext <<_ACEOF
6109 #line $LINENO "configure"
6110 #include "confdefs.h"
6111
6112 /* Override any gcc2 internal prototype to avoid an error.  */
6113 #ifdef __cplusplus
6114 extern "C"
6115 #endif
6116 /* We use char because int might match the return type of a gcc2
6117    builtin and then its argument prototype would still apply.  */
6118 char XShmQueryExtension ();
6119 #ifdef F77_DUMMY_MAIN
6120 #  ifdef __cplusplus
6121      extern "C"
6122 #  endif
6123    int F77_DUMMY_MAIN() { return 1; }
6124 #endif
6125 int
6126 main ()
6127 {
6128 XShmQueryExtension ();
6129   ;
6130   return 0;
6131 }
6132 _ACEOF
6133 rm -f conftest.$ac_objext conftest$ac_exeext
6134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6135   (eval $ac_link) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); } &&
6139          { ac_try='test -s conftest$ac_exeext'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; }; then
6145   ac_cv_lib_Xext_XShmQueryExtension=yes
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6149 ac_cv_lib_Xext_XShmQueryExtension=no
6150 fi
6151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6152 LIBS=$ac_check_lib_save_LIBS
6153 fi
6154 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6155 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6156 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6157
6158 cat >>confdefs.h <<\_ACEOF
6159 #define HAVE_LIBXXSHM 1
6160 _ACEOF
6161
6162 fi
6163
6164
6165 else
6166   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6167 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6168 fi
6169
6170 done
6171
6172
6173
6174 for ac_header in X11/Xutil.h
6175 do
6176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6177 echo "$as_me:$LINENO: checking for $ac_header" >&5
6178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   cat >conftest.$ac_ext <<_ACEOF
6183 #line $LINENO "configure"
6184 #include "confdefs.h"
6185 #include <X11/Xlib.h>
6186
6187 #include <$ac_header>
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191   (eval $ac_compile) 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); } &&
6195          { ac_try='test -s conftest.$ac_objext'
6196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197   (eval $ac_try) 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); }; }; then
6201   eval "$as_ac_Header=yes"
6202 else
6203   echo "$as_me: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6205 eval "$as_ac_Header=no"
6206 fi
6207 rm -f conftest.$ac_objext conftest.$ac_ext
6208 fi
6209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6212   cat >>confdefs.h <<_ACEOF
6213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6214 _ACEOF
6215
6216 fi
6217
6218 done
6219
6220
6221
6222 for ac_header in X11/extensions/shape.h
6223 do
6224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6225 echo "$as_me:$LINENO: checking for $ac_header" >&5
6226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   cat >conftest.$ac_ext <<_ACEOF
6231 #line $LINENO "configure"
6232 #include "confdefs.h"
6233 #include <X11/Xlib.h>
6234              #ifdef HAVE_X11_XUTIL_H
6235              # include <X11/Xutil.h>
6236              #endif
6237
6238 #include <$ac_header>
6239 _ACEOF
6240 rm -f conftest.$ac_objext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6242   (eval $ac_compile) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); } &&
6246          { ac_try='test -s conftest.$ac_objext'
6247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248   (eval $ac_try) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   eval "$as_ac_Header=yes"
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 cat conftest.$ac_ext >&5
6256 eval "$as_ac_Header=no"
6257 fi
6258 rm -f conftest.$ac_objext conftest.$ac_ext
6259 fi
6260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263   cat >>confdefs.h <<_ACEOF
6264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265 _ACEOF
6266                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6267 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6268 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271   ac_check_lib_save_LIBS=$LIBS
6272 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6273 cat >conftest.$ac_ext <<_ACEOF
6274 #line $LINENO "configure"
6275 #include "confdefs.h"
6276
6277 /* Override any gcc2 internal prototype to avoid an error.  */
6278 #ifdef __cplusplus
6279 extern "C"
6280 #endif
6281 /* We use char because int might match the return type of a gcc2
6282    builtin and then its argument prototype would still apply.  */
6283 char XShapeQueryExtension ();
6284 #ifdef F77_DUMMY_MAIN
6285 #  ifdef __cplusplus
6286      extern "C"
6287 #  endif
6288    int F77_DUMMY_MAIN() { return 1; }
6289 #endif
6290 int
6291 main ()
6292 {
6293 XShapeQueryExtension ();
6294   ;
6295   return 0;
6296 }
6297 _ACEOF
6298 rm -f conftest.$ac_objext conftest$ac_exeext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6300   (eval $ac_link) 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); } &&
6304          { ac_try='test -s conftest$ac_exeext'
6305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306   (eval $ac_try) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); }; }; then
6310   ac_cv_lib_Xext_XShapeQueryExtension=yes
6311 else
6312   echo "$as_me: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6314 ac_cv_lib_Xext_XShapeQueryExtension=no
6315 fi
6316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6317 LIBS=$ac_check_lib_save_LIBS
6318 fi
6319 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6320 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6321 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6322
6323 cat >>confdefs.h <<\_ACEOF
6324 #define HAVE_LIBXSHAPE 1
6325 _ACEOF
6326
6327 fi
6328
6329
6330 else
6331   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6332 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6333 fi
6334
6335 done
6336
6337
6338
6339 for ac_header in X11/extensions/xf86dga.h
6340 do
6341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6342 echo "$as_me:$LINENO: checking for $ac_header" >&5
6343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   cat >conftest.$ac_ext <<_ACEOF
6348 #line $LINENO "configure"
6349 #include "confdefs.h"
6350 #include <X11/Xlib.h>
6351
6352 #include <$ac_header>
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356   (eval $ac_compile) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); } &&
6360          { ac_try='test -s conftest.$ac_objext'
6361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362   (eval $ac_try) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; }; then
6366   eval "$as_ac_Header=yes"
6367 else
6368   echo "$as_me: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6370 eval "$as_ac_Header=no"
6371 fi
6372 rm -f conftest.$ac_objext conftest.$ac_ext
6373 fi
6374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6377   cat >>confdefs.h <<_ACEOF
6378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6379 _ACEOF
6380                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6381 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6382 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6383   echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385   ac_check_lib_save_LIBS=$LIBS
6386 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6387                $LIBS"
6388 cat >conftest.$ac_ext <<_ACEOF
6389 #line $LINENO "configure"
6390 #include "confdefs.h"
6391
6392 /* Override any gcc2 internal prototype to avoid an error.  */
6393 #ifdef __cplusplus
6394 extern "C"
6395 #endif
6396 /* We use char because int might match the return type of a gcc2
6397    builtin and then its argument prototype would still apply.  */
6398 char XDGAQueryExtension ();
6399 #ifdef F77_DUMMY_MAIN
6400 #  ifdef __cplusplus
6401      extern "C"
6402 #  endif
6403    int F77_DUMMY_MAIN() { return 1; }
6404 #endif
6405 int
6406 main ()
6407 {
6408 XDGAQueryExtension ();
6409   ;
6410   return 0;
6411 }
6412 _ACEOF
6413 rm -f conftest.$ac_objext conftest$ac_exeext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415   (eval $ac_link) 2>&5
6416   ac_status=$?
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } &&
6419          { ac_try='test -s conftest$ac_exeext'
6420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421   (eval $ac_try) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); }; }; then
6425   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6426 else
6427   echo "$as_me: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6429 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6430 fi
6431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6432 LIBS=$ac_check_lib_save_LIBS
6433 fi
6434 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6435 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6436 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6437
6438 cat >>confdefs.h <<\_ACEOF
6439 #define HAVE_LIBXXF86DGA2 1
6440 _ACEOF
6441
6442                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6443
6444 else
6445                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6446 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6447 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   ac_check_lib_save_LIBS=$LIBS
6451 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6452                    $LIBS"
6453 cat >conftest.$ac_ext <<_ACEOF
6454 #line $LINENO "configure"
6455 #include "confdefs.h"
6456
6457 /* Override any gcc2 internal prototype to avoid an error.  */
6458 #ifdef __cplusplus
6459 extern "C"
6460 #endif
6461 /* We use char because int might match the return type of a gcc2
6462    builtin and then its argument prototype would still apply.  */
6463 char XF86DGAQueryExtension ();
6464 #ifdef F77_DUMMY_MAIN
6465 #  ifdef __cplusplus
6466      extern "C"
6467 #  endif
6468    int F77_DUMMY_MAIN() { return 1; }
6469 #endif
6470 int
6471 main ()
6472 {
6473 XF86DGAQueryExtension ();
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480   (eval $ac_link) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); } &&
6484          { ac_try='test -s conftest$ac_exeext'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; }; then
6490   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 cat conftest.$ac_ext >&5
6494 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6495 fi
6496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6497 LIBS=$ac_check_lib_save_LIBS
6498 fi
6499 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6500 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6501 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6502
6503 cat >>confdefs.h <<\_ACEOF
6504 #define HAVE_LIBXXF86DGA 1
6505 _ACEOF
6506
6507                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6508
6509 fi
6510
6511
6512 fi
6513
6514
6515 else
6516   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6517 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6518 fi
6519
6520 done
6521
6522
6523
6524 for ac_header in X11/extensions/xf86vmode.h
6525 do
6526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   cat >conftest.$ac_ext <<_ACEOF
6533 #line $LINENO "configure"
6534 #include "confdefs.h"
6535 #include <X11/Xlib.h>
6536
6537 #include <$ac_header>
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541   (eval $ac_compile) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); } &&
6545          { ac_try='test -s conftest.$ac_objext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   eval "$as_ac_Header=yes"
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 eval "$as_ac_Header=no"
6556 fi
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6562   cat >>confdefs.h <<_ACEOF
6563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6564 _ACEOF
6565                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6566 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6567 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   ac_check_lib_save_LIBS=$LIBS
6571 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6572                  $LIBS"
6573 cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6576
6577 /* Override any gcc2 internal prototype to avoid an error.  */
6578 #ifdef __cplusplus
6579 extern "C"
6580 #endif
6581 /* We use char because int might match the return type of a gcc2
6582    builtin and then its argument prototype would still apply.  */
6583 char XF86VidModeQueryExtension ();
6584 #ifdef F77_DUMMY_MAIN
6585 #  ifdef __cplusplus
6586      extern "C"
6587 #  endif
6588    int F77_DUMMY_MAIN() { return 1; }
6589 #endif
6590 int
6591 main ()
6592 {
6593 XF86VidModeQueryExtension ();
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600   (eval $ac_link) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -s conftest$ac_exeext'
6605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; }; then
6610   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6611 else
6612   echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6615 fi
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6618 fi
6619 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6620 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6621 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6622
6623 cat >>confdefs.h <<\_ACEOF
6624 #define HAVE_LIBXXF86VM 1
6625 _ACEOF
6626
6627                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6628
6629 fi
6630
6631
6632 else
6633   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6634 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6635 fi
6636
6637 done
6638
6639
6640
6641 for ac_header in X11/extensions/Xvlib.h
6642 do
6643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644 echo "$as_me:$LINENO: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647   echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649   cat >conftest.$ac_ext <<_ACEOF
6650 #line $LINENO "configure"
6651 #include "confdefs.h"
6652 #include <X11/Xlib.h>
6653
6654 #include <$ac_header>
6655 _ACEOF
6656 rm -f conftest.$ac_objext
6657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6658   (eval $ac_compile) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); } &&
6662          { ac_try='test -s conftest.$ac_objext'
6663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664   (eval $ac_try) 2>&5
6665   ac_status=$?
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); }; }; then
6668   eval "$as_ac_Header=yes"
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6672 eval "$as_ac_Header=no"
6673 fi
6674 rm -f conftest.$ac_objext conftest.$ac_ext
6675 fi
6676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6679   cat >>confdefs.h <<_ACEOF
6680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6681 _ACEOF
6682                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6683 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6684 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   ac_check_lib_save_LIBS=$LIBS
6688 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6689                  $LIBS"
6690 cat >conftest.$ac_ext <<_ACEOF
6691 #line $LINENO "configure"
6692 #include "confdefs.h"
6693
6694 /* Override any gcc2 internal prototype to avoid an error.  */
6695 #ifdef __cplusplus
6696 extern "C"
6697 #endif
6698 /* We use char because int might match the return type of a gcc2
6699    builtin and then its argument prototype would still apply.  */
6700 char XvShmCreateImage ();
6701 #ifdef F77_DUMMY_MAIN
6702 #  ifdef __cplusplus
6703      extern "C"
6704 #  endif
6705    int F77_DUMMY_MAIN() { return 1; }
6706 #endif
6707 int
6708 main ()
6709 {
6710 XvShmCreateImage ();
6711   ;
6712   return 0;
6713 }
6714 _ACEOF
6715 rm -f conftest.$ac_objext conftest$ac_exeext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6717   (eval $ac_link) 2>&5
6718   ac_status=$?
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); } &&
6721          { ac_try='test -s conftest$ac_exeext'
6722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723   (eval $ac_try) 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); }; }; then
6727   ac_cv_lib_Xv_XvShmCreateImage=yes
6728 else
6729   echo "$as_me: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6731 ac_cv_lib_Xv_XvShmCreateImage=no
6732 fi
6733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6734 LIBS=$ac_check_lib_save_LIBS
6735 fi
6736 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6737 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6738 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6739
6740 cat >>confdefs.h <<\_ACEOF
6741 #define HAVE_XVIDEO 1
6742 _ACEOF
6743
6744                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
6745
6746 fi
6747
6748
6749 else
6750   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6751 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6752 fi
6753
6754 done
6755
6756
6757
6758 for ac_header in X11/extensions/Xrender.h
6759 do
6760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6761 echo "$as_me:$LINENO: checking for $ac_header" >&5
6762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   cat >conftest.$ac_ext <<_ACEOF
6767 #line $LINENO "configure"
6768 #include "confdefs.h"
6769 #include <X11/Xlib.h>
6770
6771 #include <$ac_header>
6772 _ACEOF
6773 rm -f conftest.$ac_objext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775   (eval $ac_compile) 2>&5
6776   ac_status=$?
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); } &&
6779          { ac_try='test -s conftest.$ac_objext'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; }; then
6785   eval "$as_ac_Header=yes"
6786 else
6787   echo "$as_me: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 eval "$as_ac_Header=no"
6790 fi
6791 rm -f conftest.$ac_objext conftest.$ac_ext
6792 fi
6793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6796   cat >>confdefs.h <<_ACEOF
6797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6798 _ACEOF
6799
6800 fi
6801
6802 done
6803
6804
6805
6806 fi
6807
6808 done
6809
6810         if test "x$enable_opengl" != "xno"
6811     then
6812         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6813         then
6814             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6815 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6816 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6817 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6818    { (exit 1); exit 1; }; }
6819         fi
6820
6821
6822
6823 for ac_header in GL/gl.h GL/glx.h
6824 do
6825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6827   echo "$as_me:$LINENO: checking for $ac_header" >&5
6828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 fi
6832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6834 else
6835   # Is the header compilable?
6836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6838 cat >conftest.$ac_ext <<_ACEOF
6839 #line $LINENO "configure"
6840 #include "confdefs.h"
6841 $ac_includes_default
6842 #include <$ac_header>
6843 _ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6846   (eval $ac_compile) 2>&5
6847   ac_status=$?
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); } &&
6850          { ac_try='test -s conftest.$ac_objext'
6851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852   (eval $ac_try) 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); }; }; then
6856   ac_header_compiler=yes
6857 else
6858   echo "$as_me: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6860 ac_header_compiler=no
6861 fi
6862 rm -f conftest.$ac_objext conftest.$ac_ext
6863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6864 echo "${ECHO_T}$ac_header_compiler" >&6
6865
6866 # Is the header present?
6867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6869 cat >conftest.$ac_ext <<_ACEOF
6870 #line $LINENO "configure"
6871 #include "confdefs.h"
6872 #include <$ac_header>
6873 _ACEOF
6874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6876   ac_status=$?
6877   egrep -v '^ *\+' conftest.er1 >conftest.err
6878   rm -f conftest.er1
6879   cat conftest.err >&5
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); } >/dev/null; then
6882   if test -s conftest.err; then
6883     ac_cpp_err=$ac_c_preproc_warn_flag
6884   else
6885     ac_cpp_err=
6886   fi
6887 else
6888   ac_cpp_err=yes
6889 fi
6890 if test -z "$ac_cpp_err"; then
6891   ac_header_preproc=yes
6892 else
6893   echo "$as_me: failed program was:" >&5
6894   cat conftest.$ac_ext >&5
6895   ac_header_preproc=no
6896 fi
6897 rm -f conftest.err conftest.$ac_ext
6898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6899 echo "${ECHO_T}$ac_header_preproc" >&6
6900
6901 # So?  What about this header?
6902 case $ac_header_compiler:$ac_header_preproc in
6903   yes:no )
6904     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6908   no:yes )
6909     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6911     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6915 esac
6916 echo "$as_me:$LINENO: checking for $ac_header" >&5
6917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921   eval "$as_ac_Header=$ac_header_preproc"
6922 fi
6923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6925
6926 fi
6927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6928   cat >>confdefs.h <<_ACEOF
6929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6930 _ACEOF
6931
6932 fi
6933
6934 done
6935
6936         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6937         then
6938
6939 for ac_header in GL/glext.h
6940 do
6941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6942 echo "$as_me:$LINENO: checking for $ac_header" >&5
6943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   cat >conftest.$ac_ext <<_ACEOF
6948 #line $LINENO "configure"
6949 #include "confdefs.h"
6950 #include <GL/glx.h>
6951
6952 #include <$ac_header>
6953 _ACEOF
6954 rm -f conftest.$ac_objext
6955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6956   (eval $ac_compile) 2>&5
6957   ac_status=$?
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); } &&
6960          { ac_try='test -s conftest.$ac_objext'
6961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962   (eval $ac_try) 2>&5
6963   ac_status=$?
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); }; }; then
6966   eval "$as_ac_Header=yes"
6967 else
6968   echo "$as_me: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6970 eval "$as_ac_Header=no"
6971 fi
6972 rm -f conftest.$ac_objext conftest.$ac_ext
6973 fi
6974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6977   cat >>confdefs.h <<_ACEOF
6978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6979 _ACEOF
6980
6981 fi
6982
6983 done
6984
6985                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
6986 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
6987 if test "${wine_cv_opengl_version_OK+set}" = set; then
6988   echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990   cat >conftest.$ac_ext <<_ACEOF
6991 #line $LINENO "configure"
6992 #include "confdefs.h"
6993 #include <GL/gl.h>
6994 #ifdef F77_DUMMY_MAIN
6995 #  ifdef __cplusplus
6996      extern "C"
6997 #  endif
6998    int F77_DUMMY_MAIN() { return 1; }
6999 #endif
7000 int
7001 main ()
7002 {
7003 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7004   ;
7005   return 0;
7006 }
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010   (eval $ac_compile) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } &&
7014          { ac_try='test -s conftest.$ac_objext'
7015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016   (eval $ac_try) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; }; then
7020   wine_cv_opengl_version_OK="yes"
7021 else
7022   echo "$as_me: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 wine_cv_opengl_version_OK="no"
7025
7026 fi
7027 rm -f conftest.$ac_objext conftest.$ac_ext
7028
7029 fi
7030 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7031 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7032
7033                     echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
7034 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7035 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   saved_libs=$LIBS
7039                LIBS="$X_LIBS -lGL"
7040                cat >conftest.$ac_ext <<_ACEOF
7041 #line $LINENO "configure"
7042 #include "confdefs.h"
7043
7044 #ifdef F77_DUMMY_MAIN
7045 #  ifdef __cplusplus
7046      extern "C"
7047 #  endif
7048    int F77_DUMMY_MAIN() { return 1; }
7049 #endif
7050 int
7051 main ()
7052 {
7053 pthread_getspecific();
7054   ;
7055   return 0;
7056 }
7057 _ACEOF
7058 rm -f conftest.$ac_objext conftest$ac_exeext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7060   (eval $ac_link) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); } &&
7064          { ac_try='test -s conftest$ac_exeext'
7065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066   (eval $ac_try) 2>&5
7067   ac_status=$?
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); }; }; then
7070   wine_cv_opengl_version_threadsafe="yes"
7071 else
7072   echo "$as_me: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7074 wine_cv_opengl_version_threadsafe="no"
7075 fi
7076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7077                LIBS=$saved_libs
7078
7079 fi
7080 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
7081 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
7082
7083             if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
7084             then
7085                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7086 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7087 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   ac_check_lib_save_LIBS=$LIBS
7091 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7092 cat >conftest.$ac_ext <<_ACEOF
7093 #line $LINENO "configure"
7094 #include "confdefs.h"
7095
7096 /* Override any gcc2 internal prototype to avoid an error.  */
7097 #ifdef __cplusplus
7098 extern "C"
7099 #endif
7100 /* We use char because int might match the return type of a gcc2
7101    builtin and then its argument prototype would still apply.  */
7102 char glXCreateContext ();
7103 #ifdef F77_DUMMY_MAIN
7104 #  ifdef __cplusplus
7105      extern "C"
7106 #  endif
7107    int F77_DUMMY_MAIN() { return 1; }
7108 #endif
7109 int
7110 main ()
7111 {
7112 glXCreateContext ();
7113   ;
7114   return 0;
7115 }
7116 _ACEOF
7117 rm -f conftest.$ac_objext conftest$ac_exeext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119   (eval $ac_link) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); } &&
7123          { ac_try='test -s conftest$ac_exeext'
7124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125   (eval $ac_try) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); }; }; then
7129   ac_cv_lib_GL_glXCreateContext=yes
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7133 ac_cv_lib_GL_glXCreateContext=no
7134 fi
7135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7136 LIBS=$ac_check_lib_save_LIBS
7137 fi
7138 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7139 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7140 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7141   X_PRE_LIBS="$X_PRE_LIBS -lGL"
7142
7143 fi
7144
7145
7146                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7147                 then
7148                         OPENGLFILES='$(OPENGLFILES)'
7149
7150 cat >>confdefs.h <<\_ACEOF
7151 #define HAVE_OPENGL 1
7152 _ACEOF
7153
7154
7155                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7156 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7157 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7158   echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160   ac_check_lib_save_LIBS=$LIBS
7161 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7162 cat >conftest.$ac_ext <<_ACEOF
7163 #line $LINENO "configure"
7164 #include "confdefs.h"
7165
7166 /* Override any gcc2 internal prototype to avoid an error.  */
7167 #ifdef __cplusplus
7168 extern "C"
7169 #endif
7170 /* We use char because int might match the return type of a gcc2
7171    builtin and then its argument prototype would still apply.  */
7172 char glXGetProcAddressARB ();
7173 #ifdef F77_DUMMY_MAIN
7174 #  ifdef __cplusplus
7175      extern "C"
7176 #  endif
7177    int F77_DUMMY_MAIN() { return 1; }
7178 #endif
7179 int
7180 main ()
7181 {
7182 glXGetProcAddressARB ();
7183   ;
7184   return 0;
7185 }
7186 _ACEOF
7187 rm -f conftest.$ac_objext conftest$ac_exeext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189   (eval $ac_link) 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); } &&
7193          { ac_try='test -s conftest$ac_exeext'
7194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195   (eval $ac_try) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); }; }; then
7199   ac_cv_lib_GL_glXGetProcAddressARB=yes
7200 else
7201   echo "$as_me: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7203 ac_cv_lib_GL_glXGetProcAddressARB=no
7204 fi
7205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7206 LIBS=$ac_check_lib_save_LIBS
7207 fi
7208 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7209 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7210 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7211
7212 cat >>confdefs.h <<\_ACEOF
7213 #define HAVE_GLX_GETPROCADDRESS 1
7214 _ACEOF
7215
7216 fi
7217
7218
7219                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7220                         then
7221                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7222 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7223 if test "${wine_cv_extension_prototypes+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   cat >conftest.$ac_ext <<_ACEOF
7227 #line $LINENO "configure"
7228 #include "confdefs.h"
7229 #include <GL/gl.h>
7230                                                   #ifdef HAVE_GL_GLEXT_H
7231                                                   # include <GL/glext.h>
7232                                                   #endif
7233
7234 #ifdef F77_DUMMY_MAIN
7235 #  ifdef __cplusplus
7236      extern "C"
7237 #  endif
7238    int F77_DUMMY_MAIN() { return 1; }
7239 #endif
7240 int
7241 main ()
7242 {
7243 PFNGLCOLORTABLEEXTPROC test_proc;
7244   ;
7245   return 0;
7246 }
7247 _ACEOF
7248 rm -f conftest.$ac_objext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250   (eval $ac_compile) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); } &&
7254          { ac_try='test -s conftest.$ac_objext'
7255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256   (eval $ac_try) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); }; }; then
7260   wine_cv_extension_prototypes="yes"
7261 else
7262   echo "$as_me: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7264 wine_cv_extension_prototypes="no"
7265
7266 fi
7267 rm -f conftest.$ac_objext conftest.$ac_ext
7268
7269 fi
7270 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7271 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7272                                 if test "$wine_cv_extension_prototypes" = "yes"
7273                                 then
7274
7275 cat >>confdefs.h <<\_ACEOF
7276 #define HAVE_GLEXT_PROTOTYPES 1
7277 _ACEOF
7278
7279                                 fi
7280                         fi
7281
7282                 fi
7283                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7284 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7285 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7286   echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288   ac_check_lib_save_LIBS=$LIBS
7289 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7290                  $LIBS"
7291 cat >conftest.$ac_ext <<_ACEOF
7292 #line $LINENO "configure"
7293 #include "confdefs.h"
7294
7295 /* Override any gcc2 internal prototype to avoid an error.  */
7296 #ifdef __cplusplus
7297 extern "C"
7298 #endif
7299 /* We use char because int might match the return type of a gcc2
7300    builtin and then its argument prototype would still apply.  */
7301 char gluLookAt ();
7302 #ifdef F77_DUMMY_MAIN
7303 #  ifdef __cplusplus
7304      extern "C"
7305 #  endif
7306    int F77_DUMMY_MAIN() { return 1; }
7307 #endif
7308 int
7309 main ()
7310 {
7311 gluLookAt ();
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7318   (eval $ac_link) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); } &&
7322          { ac_try='test -s conftest$ac_exeext'
7323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324   (eval $ac_try) 2>&5
7325   ac_status=$?
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); }; }; then
7328   ac_cv_lib_GLU_gluLookAt=yes
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7332 ac_cv_lib_GLU_gluLookAt=no
7333 fi
7334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7335 LIBS=$ac_check_lib_save_LIBS
7336 fi
7337 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7338 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7339 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7340   X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7341                              GLU32FILES='$(GLU32FILES)'
7342
7343 fi
7344
7345              fi
7346          fi
7347     fi
7348
7349     CPPFLAGS="$ac_save_CPPFLAGS"
7350     XFILES='$(XFILES)'
7351 else
7352     XLIB=""
7353     X_CFLAGS=""
7354     X_LIBS=""
7355 fi
7356
7357 CURSESLIBS=""
7358 if test "x$with_curses" != "xno"
7359 then
7360
7361 for ac_header in ncurses.h
7362 do
7363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7365   echo "$as_me:$LINENO: checking for $ac_header" >&5
7366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 fi
7370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7372 else
7373   # Is the header compilable?
7374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7376 cat >conftest.$ac_ext <<_ACEOF
7377 #line $LINENO "configure"
7378 #include "confdefs.h"
7379 $ac_includes_default
7380 #include <$ac_header>
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7384   (eval $ac_compile) 2>&5
7385   ac_status=$?
7386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387   (exit $ac_status); } &&
7388          { ac_try='test -s conftest.$ac_objext'
7389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390   (eval $ac_try) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }; }; then
7394   ac_header_compiler=yes
7395 else
7396   echo "$as_me: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7398 ac_header_compiler=no
7399 fi
7400 rm -f conftest.$ac_objext conftest.$ac_ext
7401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7402 echo "${ECHO_T}$ac_header_compiler" >&6
7403
7404 # Is the header present?
7405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7407 cat >conftest.$ac_ext <<_ACEOF
7408 #line $LINENO "configure"
7409 #include "confdefs.h"
7410 #include <$ac_header>
7411 _ACEOF
7412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7414   ac_status=$?
7415   egrep -v '^ *\+' conftest.er1 >conftest.err
7416   rm -f conftest.er1
7417   cat conftest.err >&5
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } >/dev/null; then
7420   if test -s conftest.err; then
7421     ac_cpp_err=$ac_c_preproc_warn_flag
7422   else
7423     ac_cpp_err=
7424   fi
7425 else
7426   ac_cpp_err=yes
7427 fi
7428 if test -z "$ac_cpp_err"; then
7429   ac_header_preproc=yes
7430 else
7431   echo "$as_me: failed program was:" >&5
7432   cat conftest.$ac_ext >&5
7433   ac_header_preproc=no
7434 fi
7435 rm -f conftest.err conftest.$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7437 echo "${ECHO_T}$ac_header_preproc" >&6
7438
7439 # So?  What about this header?
7440 case $ac_header_compiler:$ac_header_preproc in
7441   yes:no )
7442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7446   no:yes )
7447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7449     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7453 esac
7454 echo "$as_me:$LINENO: checking for $ac_header" >&5
7455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   eval "$as_ac_Header=$ac_header_preproc"
7460 fi
7461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7463
7464 fi
7465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466   cat >>confdefs.h <<_ACEOF
7467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468 _ACEOF
7469  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7470 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7471 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7472   echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474   ac_check_lib_save_LIBS=$LIBS
7475 LIBS="-lncurses  $LIBS"
7476 cat >conftest.$ac_ext <<_ACEOF
7477 #line $LINENO "configure"
7478 #include "confdefs.h"
7479
7480 /* Override any gcc2 internal prototype to avoid an error.  */
7481 #ifdef __cplusplus
7482 extern "C"
7483 #endif
7484 /* We use char because int might match the return type of a gcc2
7485    builtin and then its argument prototype would still apply.  */
7486 char waddch ();
7487 #ifdef F77_DUMMY_MAIN
7488 #  ifdef __cplusplus
7489      extern "C"
7490 #  endif
7491    int F77_DUMMY_MAIN() { return 1; }
7492 #endif
7493 int
7494 main ()
7495 {
7496 waddch ();
7497   ;
7498   return 0;
7499 }
7500 _ACEOF
7501 rm -f conftest.$ac_objext conftest$ac_exeext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503   (eval $ac_link) 2>&5
7504   ac_status=$?
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); } &&
7507          { ac_try='test -s conftest$ac_exeext'
7508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509   (eval $ac_try) 2>&5
7510   ac_status=$?
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); }; }; then
7513   ac_cv_lib_ncurses_waddch=yes
7514 else
7515   echo "$as_me: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7517 ac_cv_lib_ncurses_waddch=no
7518 fi
7519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7520 LIBS=$ac_check_lib_save_LIBS
7521 fi
7522 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7523 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7524 if test $ac_cv_lib_ncurses_waddch = yes; then
7525
7526 cat >>confdefs.h <<\_ACEOF
7527 #define HAVE_LIBNCURSES 1
7528 _ACEOF
7529
7530              CURSESLIBS="-lncurses"
7531 else
7532
7533 for ac_header in curses.h
7534 do
7535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7537   echo "$as_me:$LINENO: checking for $ac_header" >&5
7538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 fi
7542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7544 else
7545   # Is the header compilable?
7546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7548 cat >conftest.$ac_ext <<_ACEOF
7549 #line $LINENO "configure"
7550 #include "confdefs.h"
7551 $ac_includes_default
7552 #include <$ac_header>
7553 _ACEOF
7554 rm -f conftest.$ac_objext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556   (eval $ac_compile) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); } &&
7560          { ac_try='test -s conftest.$ac_objext'
7561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562   (eval $ac_try) 2>&5
7563   ac_status=$?
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); }; }; then
7566   ac_header_compiler=yes
7567 else
7568   echo "$as_me: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7570 ac_header_compiler=no
7571 fi
7572 rm -f conftest.$ac_objext conftest.$ac_ext
7573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7574 echo "${ECHO_T}$ac_header_compiler" >&6
7575
7576 # Is the header present?
7577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7581 #include "confdefs.h"
7582 #include <$ac_header>
7583 _ACEOF
7584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7586   ac_status=$?
7587   egrep -v '^ *\+' conftest.er1 >conftest.err
7588   rm -f conftest.er1
7589   cat conftest.err >&5
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); } >/dev/null; then
7592   if test -s conftest.err; then
7593     ac_cpp_err=$ac_c_preproc_warn_flag
7594   else
7595     ac_cpp_err=
7596   fi
7597 else
7598   ac_cpp_err=yes
7599 fi
7600 if test -z "$ac_cpp_err"; then
7601   ac_header_preproc=yes
7602 else
7603   echo "$as_me: failed program was:" >&5
7604   cat conftest.$ac_ext >&5
7605   ac_header_preproc=no
7606 fi
7607 rm -f conftest.err conftest.$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7609 echo "${ECHO_T}$ac_header_preproc" >&6
7610
7611 # So?  What about this header?
7612 case $ac_header_compiler:$ac_header_preproc in
7613   yes:no )
7614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7618   no:yes )
7619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7621     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7625 esac
7626 echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   eval "$as_ac_Header=$ac_header_preproc"
7632 fi
7633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7635
7636 fi
7637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7638   cat >>confdefs.h <<_ACEOF
7639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7640 _ACEOF
7641  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7642 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7643 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   ac_check_lib_save_LIBS=$LIBS
7647 LIBS="-lcurses  $LIBS"
7648 cat >conftest.$ac_ext <<_ACEOF
7649 #line $LINENO "configure"
7650 #include "confdefs.h"
7651
7652 /* Override any gcc2 internal prototype to avoid an error.  */
7653 #ifdef __cplusplus
7654 extern "C"
7655 #endif
7656 /* We use char because int might match the return type of a gcc2
7657    builtin and then its argument prototype would still apply.  */
7658 char waddch ();
7659 #ifdef F77_DUMMY_MAIN
7660 #  ifdef __cplusplus
7661      extern "C"
7662 #  endif
7663    int F77_DUMMY_MAIN() { return 1; }
7664 #endif
7665 int
7666 main ()
7667 {
7668 waddch ();
7669   ;
7670   return 0;
7671 }
7672 _ACEOF
7673 rm -f conftest.$ac_objext conftest$ac_exeext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7675   (eval $ac_link) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } &&
7679          { ac_try='test -s conftest$ac_exeext'
7680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681   (eval $ac_try) 2>&5
7682   ac_status=$?
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); }; }; then
7685   ac_cv_lib_curses_waddch=yes
7686 else
7687   echo "$as_me: failed program was:" >&5
7688 cat conftest.$ac_ext >&5
7689 ac_cv_lib_curses_waddch=no
7690 fi
7691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7692 LIBS=$ac_check_lib_save_LIBS
7693 fi
7694 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7695 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7696 if test $ac_cv_lib_curses_waddch = yes; then
7697
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_LIBCURSES 1
7700 _ACEOF
7701
7702                       CURSESLIBS="-lcurses"
7703 fi
7704
7705 fi
7706
7707 done
7708
7709 fi
7710
7711 fi
7712
7713 done
7714
7715     saved_libs="$LIBS"
7716     LIBS="$CURSESLIBS $LIBS"
7717
7718
7719 for ac_func in getbkgd resizeterm
7720 do
7721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7722 echo "$as_me:$LINENO: checking for $ac_func" >&5
7723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_var+set}\" = set"; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 #include "confdefs.h"
7730 /* System header to define __stub macros and hopefully few prototypes,
7731     which can conflict with char $ac_func (); below.  */
7732 #include <assert.h>
7733 /* Override any gcc2 internal prototype to avoid an error.  */
7734 #ifdef __cplusplus
7735 extern "C"
7736 #endif
7737 /* We use char because int might match the return type of a gcc2
7738    builtin and then its argument prototype would still apply.  */
7739 char $ac_func ();
7740 char (*f) ();
7741
7742 #ifdef F77_DUMMY_MAIN
7743 #  ifdef __cplusplus
7744      extern "C"
7745 #  endif
7746    int F77_DUMMY_MAIN() { return 1; }
7747 #endif
7748 int
7749 main ()
7750 {
7751 /* The GNU C library defines this for functions which it implements
7752     to always fail with ENOSYS.  Some functions are actually named
7753     something starting with __ and the normal name is an alias.  */
7754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7755 choke me
7756 #else
7757 f = $ac_func;
7758 #endif
7759
7760   ;
7761   return 0;
7762 }
7763 _ACEOF
7764 rm -f conftest.$ac_objext conftest$ac_exeext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7766   (eval $ac_link) 2>&5
7767   ac_status=$?
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); } &&
7770          { ac_try='test -s conftest$ac_exeext'
7771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772   (eval $ac_try) 2>&5
7773   ac_status=$?
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); }; }; then
7776   eval "$as_ac_var=yes"
7777 else
7778   echo "$as_me: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7780 eval "$as_ac_var=no"
7781 fi
7782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7783 fi
7784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7786 if test `eval echo '${'$as_ac_var'}'` = yes; then
7787   cat >>confdefs.h <<_ACEOF
7788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7789 _ACEOF
7790
7791 fi
7792 done
7793
7794     LIBS="$saved_libs"
7795 fi
7796
7797
7798 CUPSLIBS=""
7799 wine_cv_warn_cups_h=no
7800 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7801 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7802 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   ac_check_lib_save_LIBS=$LIBS
7806 LIBS="-lcups  $LIBS"
7807 cat >conftest.$ac_ext <<_ACEOF
7808 #line $LINENO "configure"
7809 #include "confdefs.h"
7810
7811 /* Override any gcc2 internal prototype to avoid an error.  */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 /* We use char because int might match the return type of a gcc2
7816    builtin and then its argument prototype would still apply.  */
7817 char cupsGetPPD ();
7818 #ifdef F77_DUMMY_MAIN
7819 #  ifdef __cplusplus
7820      extern "C"
7821 #  endif
7822    int F77_DUMMY_MAIN() { return 1; }
7823 #endif
7824 int
7825 main ()
7826 {
7827 cupsGetPPD ();
7828   ;
7829   return 0;
7830 }
7831 _ACEOF
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834   (eval $ac_link) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); } &&
7838          { ac_try='test -s conftest$ac_exeext'
7839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840   (eval $ac_try) 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   ac_cv_lib_cups_cupsGetPPD=yes
7845 else
7846   echo "$as_me: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7848 ac_cv_lib_cups_cupsGetPPD=no
7849 fi
7850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7852 fi
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
7854 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7855 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
7856   if test "${ac_cv_header_cups_cups_h+set}" = set; then
7857   echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7858 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7859 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 fi
7862 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7863 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7864 else
7865   # Is the header compilable?
7866 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7867 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7868 cat >conftest.$ac_ext <<_ACEOF
7869 #line $LINENO "configure"
7870 #include "confdefs.h"
7871 $ac_includes_default
7872 #include <cups/cups.h>
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876   (eval $ac_compile) 2>&5
7877   ac_status=$?
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } &&
7880          { ac_try='test -s conftest.$ac_objext'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   ac_header_compiler=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 ac_header_compiler=no
7891 fi
7892 rm -f conftest.$ac_objext conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7894 echo "${ECHO_T}$ac_header_compiler" >&6
7895
7896 # Is the header present?
7897 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7898 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7901 #include "confdefs.h"
7902 #include <cups/cups.h>
7903 _ACEOF
7904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7906   ac_status=$?
7907   egrep -v '^ *\+' conftest.er1 >conftest.err
7908   rm -f conftest.er1
7909   cat conftest.err >&5
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); } >/dev/null; then
7912   if test -s conftest.err; then
7913     ac_cpp_err=$ac_c_preproc_warn_flag
7914   else
7915     ac_cpp_err=
7916   fi
7917 else
7918   ac_cpp_err=yes
7919 fi
7920 if test -z "$ac_cpp_err"; then
7921   ac_header_preproc=yes
7922 else
7923   echo "$as_me: failed program was:" >&5
7924   cat conftest.$ac_ext >&5
7925   ac_header_preproc=no
7926 fi
7927 rm -f conftest.err conftest.$ac_ext
7928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7929 echo "${ECHO_T}$ac_header_preproc" >&6
7930
7931 # So?  What about this header?
7932 case $ac_header_compiler:$ac_header_preproc in
7933   yes:no )
7934     { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
7935 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7936     { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7937 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7938   no:yes )
7939     { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
7940 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
7941     { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
7942 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
7943     { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7944 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7945 esac
7946 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7947 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7948 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7949   echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951   ac_cv_header_cups_cups_h=$ac_header_preproc
7952 fi
7953 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7954 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7955
7956 fi
7957 if test $ac_cv_header_cups_cups_h = yes; then
7958
7959 cat >>confdefs.h <<\_ACEOF
7960 #define HAVE_CUPS 1
7961 _ACEOF
7962
7963             CUPSLIBS="-lcups"
7964 else
7965   wine_cv_warn_cups_h=yes
7966 fi
7967
7968
7969
7970 fi
7971
7972
7973
7974 # Extract the first word of "sane-config", so it can be a program name with args.
7975 set dummy sane-config; ac_word=$2
7976 echo "$as_me:$LINENO: checking for $ac_word" >&5
7977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7978 if test "${ac_cv_prog_sane_devel+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981   if test -n "$sane_devel"; then
7982   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989   for ac_exec_ext in '' $ac_executable_extensions; do
7990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991     ac_cv_prog_sane_devel="sane-config"
7992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996 done
7997
7998   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7999 fi
8000 fi
8001 sane_devel=$ac_cv_prog_sane_devel
8002 if test -n "$sane_devel"; then
8003   echo "$as_me:$LINENO: result: $sane_devel" >&5
8004 echo "${ECHO_T}$sane_devel" >&6
8005 else
8006   echo "$as_me:$LINENO: result: no" >&5
8007 echo "${ECHO_T}no" >&6
8008 fi
8009
8010 if test "$sane_devel" = "no"
8011 then
8012     SANELIBS=""
8013     SANEINCL=""
8014 else
8015     SANELIBS="`$sane_devel --libs`"
8016     SANEINCL="`$sane_devel --cflags`"
8017     ac_save_CPPFLAGS="$CPPFLAGS"
8018     ac_save_LIBS="$LIBS"
8019     CPPFLAGS="$CPPFLAGS $SANEINCL"
8020     LIBS="$LIBS $SANELIBS"
8021     if test "${ac_cv_header_sane_sane_h+set}" = set; then
8022   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8023 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8024 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 fi
8027 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8028 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8029 else
8030   # Is the header compilable?
8031 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8032 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8033 cat >conftest.$ac_ext <<_ACEOF
8034 #line $LINENO "configure"
8035 #include "confdefs.h"
8036 $ac_includes_default
8037 #include <sane/sane.h>
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041   (eval $ac_compile) 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); } &&
8045          { ac_try='test -s conftest.$ac_objext'
8046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047   (eval $ac_try) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; }; then
8051   ac_header_compiler=yes
8052 else
8053   echo "$as_me: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8055 ac_header_compiler=no
8056 fi
8057 rm -f conftest.$ac_objext conftest.$ac_ext
8058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8059 echo "${ECHO_T}$ac_header_compiler" >&6
8060
8061 # Is the header present?
8062 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8063 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8064 cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8066 #include "confdefs.h"
8067 #include <sane/sane.h>
8068 _ACEOF
8069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8071   ac_status=$?
8072   egrep -v '^ *\+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } >/dev/null; then
8077   if test -s conftest.err; then
8078     ac_cpp_err=$ac_c_preproc_warn_flag
8079   else
8080     ac_cpp_err=
8081   fi
8082 else
8083   ac_cpp_err=yes
8084 fi
8085 if test -z "$ac_cpp_err"; then
8086   ac_header_preproc=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089   cat conftest.$ac_ext >&5
8090   ac_header_preproc=no
8091 fi
8092 rm -f conftest.err conftest.$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8094 echo "${ECHO_T}$ac_header_preproc" >&6
8095
8096 # So?  What about this header?
8097 case $ac_header_compiler:$ac_header_preproc in
8098   yes:no )
8099     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8100 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8101     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8102 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8103   no:yes )
8104     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8105 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8106     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8107 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8108     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8109 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8110 esac
8111 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8112 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8113 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116   ac_cv_header_sane_sane_h=$ac_header_preproc
8117 fi
8118 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8119 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8120
8121 fi
8122 if test $ac_cv_header_sane_sane_h = yes; then
8123   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8124 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8125 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8126   echo $ECHO_N "(cached) $ECHO_C" >&6
8127 else
8128   ac_check_lib_save_LIBS=$LIBS
8129 LIBS="-lsane  $LIBS"
8130 cat >conftest.$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8132 #include "confdefs.h"
8133
8134 /* Override any gcc2 internal prototype to avoid an error.  */
8135 #ifdef __cplusplus
8136 extern "C"
8137 #endif
8138 /* We use char because int might match the return type of a gcc2
8139    builtin and then its argument prototype would still apply.  */
8140 char sane_open ();
8141 #ifdef F77_DUMMY_MAIN
8142 #  ifdef __cplusplus
8143      extern "C"
8144 #  endif
8145    int F77_DUMMY_MAIN() { return 1; }
8146 #endif
8147 int
8148 main ()
8149 {
8150 sane_open ();
8151   ;
8152   return 0;
8153 }
8154 _ACEOF
8155 rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8157   (eval $ac_link) 2>&5
8158   ac_status=$?
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); } &&
8161          { ac_try='test -s conftest$ac_exeext'
8162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163   (eval $ac_try) 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; }; then
8167   ac_cv_lib_sane_sane_open=yes
8168 else
8169   echo "$as_me: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 ac_cv_lib_sane_sane_open=no
8172 fi
8173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8174 LIBS=$ac_check_lib_save_LIBS
8175 fi
8176 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8177 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8178 if test $ac_cv_lib_sane_sane_open = yes; then
8179
8180 cat >>confdefs.h <<\_ACEOF
8181 #define HAVE_SANE 1
8182 _ACEOF
8183
8184 else
8185   SANELIBS=""
8186                                   SANEINCL=""
8187 fi
8188
8189 else
8190   SANELIBS=""
8191                     SANEINCL=""
8192 fi
8193
8194
8195     LIBS="$ac_save_LIBS"
8196     CPPFLAGS="$ac_save_CPPFLAGS"
8197 fi
8198
8199
8200
8201 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8202 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8203 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206   ac_check_lib_save_LIBS=$LIBS
8207 LIBS="-lfreetype $X_LIBS $LIBS"
8208 cat >conftest.$ac_ext <<_ACEOF
8209 #line $LINENO "configure"
8210 #include "confdefs.h"
8211
8212 /* Override any gcc2 internal prototype to avoid an error.  */
8213 #ifdef __cplusplus
8214 extern "C"
8215 #endif
8216 /* We use char because int might match the return type of a gcc2
8217    builtin and then its argument prototype would still apply.  */
8218 char FT_Init_FreeType ();
8219 #ifdef F77_DUMMY_MAIN
8220 #  ifdef __cplusplus
8221      extern "C"
8222 #  endif
8223    int F77_DUMMY_MAIN() { return 1; }
8224 #endif
8225 int
8226 main ()
8227 {
8228 FT_Init_FreeType ();
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235   (eval $ac_link) 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } &&
8239          { ac_try='test -s conftest$ac_exeext'
8240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241   (eval $ac_try) 2>&5
8242   ac_status=$?
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); }; }; then
8245   ac_cv_lib_freetype_FT_Init_FreeType=yes
8246 else
8247   echo "$as_me: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 ac_cv_lib_freetype_FT_Init_FreeType=no
8250 fi
8251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8252 LIBS=$ac_check_lib_save_LIBS
8253 fi
8254 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8255 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8256 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8257   ft_lib=yes
8258 else
8259   ft_lib=no
8260 fi
8261
8262 if test "$ft_lib" = "no"
8263 then
8264     FREETYPEINCL=""
8265     wine_cv_msg_freetype=no
8266 else
8267     # Extract the first word of "freetype-config", so it can be a program name with args.
8268 set dummy freetype-config; ac_word=$2
8269 echo "$as_me:$LINENO: checking for $ac_word" >&5
8270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8271 if test "${ac_cv_prog_ft_devel+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   if test -n "$ft_devel"; then
8275   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282   for ac_exec_ext in '' $ac_executable_extensions; do
8283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284     ac_cv_prog_ft_devel="freetype-config"
8285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289 done
8290
8291   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8292 fi
8293 fi
8294 ft_devel=$ac_cv_prog_ft_devel
8295 if test -n "$ft_devel"; then
8296   echo "$as_me:$LINENO: result: $ft_devel" >&5
8297 echo "${ECHO_T}$ft_devel" >&6
8298 else
8299   echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6
8301 fi
8302
8303     if test "$ft_devel" = "no"
8304     then
8305         # Extract the first word of "freetype2-config", so it can be a program name with args.
8306 set dummy freetype2-config; ac_word=$2
8307 echo "$as_me:$LINENO: checking for $ac_word" >&5
8308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8309 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8310   echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312   if test -n "$ft_devel2"; then
8313   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320   for ac_exec_ext in '' $ac_executable_extensions; do
8321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322     ac_cv_prog_ft_devel2="freetype2-config"
8323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327 done
8328
8329   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8330 fi
8331 fi
8332 ft_devel2=$ac_cv_prog_ft_devel2
8333 if test -n "$ft_devel2"; then
8334   echo "$as_me:$LINENO: result: $ft_devel2" >&5
8335 echo "${ECHO_T}$ft_devel2" >&6
8336 else
8337   echo "$as_me:$LINENO: result: no" >&5
8338 echo "${ECHO_T}no" >&6
8339 fi
8340
8341         if test "$ft_devel2" = "freetype2-config"
8342         then
8343                 ft_devel=$ft_devel2
8344         fi
8345     fi
8346     if test "$ft_devel" = "no"
8347     then
8348         FREETYPEINCL=""
8349         wine_cv_msg_freetype=yes
8350     else
8351         FREETYPEINCL=`$ft_devel --cflags`
8352         ac_save_CPPFLAGS="$CPPFLAGS"
8353         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8354
8355
8356
8357
8358
8359
8360
8361
8362 for ac_header in freetype/freetype.h \
8363                          freetype/ftglyph.h \
8364                          freetype/tttables.h \
8365                          freetype/ftnames.h \
8366                          freetype/ftsnames.h \
8367                          freetype/ttnameid.h \
8368                          freetype/ftoutln.h \
8369                          freetype/internal/sfnt.h
8370 do
8371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8373   echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 fi
8378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8380 else
8381   # Is the header compilable?
8382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8384 cat >conftest.$ac_ext <<_ACEOF
8385 #line $LINENO "configure"
8386 #include "confdefs.h"
8387 $ac_includes_default
8388 #include <$ac_header>
8389 _ACEOF
8390 rm -f conftest.$ac_objext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8392   (eval $ac_compile) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -s conftest.$ac_objext'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; }; then
8402   ac_header_compiler=yes
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8406 ac_header_compiler=no
8407 fi
8408 rm -f conftest.$ac_objext conftest.$ac_ext
8409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8410 echo "${ECHO_T}$ac_header_compiler" >&6
8411
8412 # Is the header present?
8413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8415 cat >conftest.$ac_ext <<_ACEOF
8416 #line $LINENO "configure"
8417 #include "confdefs.h"
8418 #include <$ac_header>
8419 _ACEOF
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8422   ac_status=$?
8423   egrep -v '^ *\+' conftest.er1 >conftest.err
8424   rm -f conftest.er1
8425   cat conftest.err >&5
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); } >/dev/null; then
8428   if test -s conftest.err; then
8429     ac_cpp_err=$ac_c_preproc_warn_flag
8430   else
8431     ac_cpp_err=
8432   fi
8433 else
8434   ac_cpp_err=yes
8435 fi
8436 if test -z "$ac_cpp_err"; then
8437   ac_header_preproc=yes
8438 else
8439   echo "$as_me: failed program was:" >&5
8440   cat conftest.$ac_ext >&5
8441   ac_header_preproc=no
8442 fi
8443 rm -f conftest.err conftest.$ac_ext
8444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8445 echo "${ECHO_T}$ac_header_preproc" >&6
8446
8447 # So?  What about this header?
8448 case $ac_header_compiler:$ac_header_preproc in
8449   yes:no )
8450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8454   no:yes )
8455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8457     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8461 esac
8462 echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465   echo $ECHO_N "(cached) $ECHO_C" >&6
8466 else
8467   eval "$as_ac_Header=$ac_header_preproc"
8468 fi
8469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8471
8472 fi
8473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8474   cat >>confdefs.h <<_ACEOF
8475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8476 _ACEOF
8477
8478 fi
8479
8480 done
8481
8482         cat >conftest.$ac_ext <<_ACEOF
8483 #line $LINENO "configure"
8484 #include "confdefs.h"
8485 #include <ft2build.h>
8486                     #include <freetype/fttrigon.h>
8487 _ACEOF
8488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8490   ac_status=$?
8491   egrep -v '^ *\+' conftest.er1 >conftest.err
8492   rm -f conftest.er1
8493   cat conftest.err >&5
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); } >/dev/null; then
8496   if test -s conftest.err; then
8497     ac_cpp_err=$ac_c_preproc_warn_flag
8498   else
8499     ac_cpp_err=
8500   fi
8501 else
8502   ac_cpp_err=yes
8503 fi
8504 if test -z "$ac_cpp_err"; then
8505
8506 cat >>confdefs.h <<\_ACEOF
8507 #define HAVE_FREETYPE_FTTRIGON_H 1
8508 _ACEOF
8509
8510                     wine_cv_fttrigon=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513   cat conftest.$ac_ext >&5
8514   wine_cv_fttrigon=no
8515 fi
8516 rm -f conftest.err conftest.$ac_ext
8517         CPPFLAGS="$ac_save_CPPFLAGS"
8518                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8519         then
8520
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_FREETYPE 1
8523 _ACEOF
8524
8525             wine_cv_msg_freetype=no
8526         else
8527             FREETYPEINCL=""
8528             wine_cv_msg_freetype=yes
8529         fi
8530     fi
8531 fi
8532
8533
8534 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8535 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8536 if test "${ac_cv_c_ppdev+set}" = set; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   cat >conftest.$ac_ext <<_ACEOF
8540 #line $LINENO "configure"
8541 #include "confdefs.h"
8542 #include <linux/ppdev.h>
8543 #ifdef F77_DUMMY_MAIN
8544 #  ifdef __cplusplus
8545      extern "C"
8546 #  endif
8547    int F77_DUMMY_MAIN() { return 1; }
8548 #endif
8549 int
8550 main ()
8551 {
8552 ioctl (1,PPCLAIM,0)
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 rm -f conftest.$ac_objext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8559   (eval $ac_compile) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); } &&
8563          { ac_try='test -s conftest.$ac_objext'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   ac_cv_c_ppdev="yes"
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8573 ac_cv_c_ppdev="no"
8574 fi
8575 rm -f conftest.$ac_objext conftest.$ac_ext
8576
8577 fi
8578 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8579 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8580 if test "$ac_cv_c_ppdev" = "yes"
8581 then
8582
8583 cat >>confdefs.h <<\_ACEOF
8584 #define HAVE_PPDEV 1
8585 _ACEOF
8586
8587 fi
8588
8589 echo "$as_me:$LINENO: checking for va_copy" >&5
8590 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8591 if test "${ac_cv_c_va_copy+set}" = set; then
8592   echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594   cat >conftest.$ac_ext <<_ACEOF
8595 #line $LINENO "configure"
8596 #include "confdefs.h"
8597 #include <stdarg.h>
8598 #ifdef F77_DUMMY_MAIN
8599 #  ifdef __cplusplus
8600      extern "C"
8601 #  endif
8602    int F77_DUMMY_MAIN() { return 1; }
8603 #endif
8604 int
8605 main ()
8606 {
8607 va_list ap1, ap2;
8608     va_copy(ap1,ap2);
8609
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616   (eval $ac_link) 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } &&
8620          { ac_try='test -s conftest$ac_exeext'
8621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622   (eval $ac_try) 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; }; then
8626   ac_cv_c_va_copy="yes"
8627 else
8628   echo "$as_me: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8630 ac_cv_c_va_copy="no"
8631 fi
8632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8633
8634 fi
8635 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8636 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8637 if test "$ac_cv_c_va_copy" = "yes"
8638 then
8639
8640 cat >>confdefs.h <<\_ACEOF
8641 #define HAVE_VA_COPY 1
8642 _ACEOF
8643
8644 fi
8645 echo "$as_me:$LINENO: checking for __va_copy" >&5
8646 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8647 if test "${ac_cv_c___va_copy+set}" = set; then
8648   echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650   cat >conftest.$ac_ext <<_ACEOF
8651 #line $LINENO "configure"
8652 #include "confdefs.h"
8653 #include <stdarg.h>
8654 #ifdef F77_DUMMY_MAIN
8655 #  ifdef __cplusplus
8656      extern "C"
8657 #  endif
8658    int F77_DUMMY_MAIN() { return 1; }
8659 #endif
8660 int
8661 main ()
8662 {
8663 va_list ap1, ap2;
8664     __va_copy(ap1,ap2);
8665
8666   ;
8667   return 0;
8668 }
8669 _ACEOF
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672   (eval $ac_link) 2>&5
8673   ac_status=$?
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } &&
8676          { ac_try='test -s conftest$ac_exeext'
8677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678   (eval $ac_try) 2>&5
8679   ac_status=$?
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); }; }; then
8682   ac_cv_c___va_copy="yes"
8683 else
8684   echo "$as_me: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8686 ac_cv_c___va_copy="no"
8687 fi
8688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8689
8690 fi
8691 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8692 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8693 if test "$ac_cv_c___va_copy" = "yes"
8694 then
8695
8696 cat >>confdefs.h <<\_ACEOF
8697 #define HAVE___VA_COPY 1
8698 _ACEOF
8699
8700 fi
8701
8702 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8703 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8704 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   cat >conftest.$ac_ext <<_ACEOF
8708 #line $LINENO "configure"
8709 #include "confdefs.h"
8710 #include <sys/socket.h>
8711     #include <netipx/ipx.h>
8712 #ifdef F77_DUMMY_MAIN
8713 #  ifdef __cplusplus
8714      extern "C"
8715 #  endif
8716    int F77_DUMMY_MAIN() { return 1; }
8717 #endif
8718 int
8719 main ()
8720 {
8721 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8722   ;
8723   return 0;
8724 }
8725 _ACEOF
8726 rm -f conftest.$ac_objext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8728   (eval $ac_compile) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } &&
8732          { ac_try='test -s conftest.$ac_objext'
8733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734   (eval $ac_try) 2>&5
8735   ac_status=$?
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); }; }; then
8738   ac_cv_c_ipx_gnu="yes"
8739 else
8740   echo "$as_me: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8742 ac_cv_c_ipx_gnu="no"
8743 fi
8744 rm -f conftest.$ac_objext conftest.$ac_ext
8745
8746 fi
8747 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8748 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8749 if test "$ac_cv_c_ipx_gnu" = "yes"
8750 then
8751
8752 cat >>confdefs.h <<\_ACEOF
8753 #define HAVE_IPX_GNU 1
8754 _ACEOF
8755
8756 fi
8757
8758 if test "$ac_cv_c_ipx_gnu" = "no"
8759 then
8760  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8761 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8762 if test "${ac_cv_c_ipx_linux+set}" = set; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765   cat >conftest.$ac_ext <<_ACEOF
8766 #line $LINENO "configure"
8767 #include "confdefs.h"
8768 #include <sys/socket.h>
8769      #include <asm/types.h>
8770      #include <linux/ipx.h>
8771 #ifdef F77_DUMMY_MAIN
8772 #  ifdef __cplusplus
8773      extern "C"
8774 #  endif
8775    int F77_DUMMY_MAIN() { return 1; }
8776 #endif
8777 int
8778 main ()
8779 {
8780 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8781   ;
8782   return 0;
8783 }
8784 _ACEOF
8785 rm -f conftest.$ac_objext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787   (eval $ac_compile) 2>&5
8788   ac_status=$?
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } &&
8791          { ac_try='test -s conftest.$ac_objext'
8792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793   (eval $ac_try) 2>&5
8794   ac_status=$?
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); }; }; then
8797   ac_cv_c_ipx_linux="yes"
8798 else
8799   echo "$as_me: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 ac_cv_c_ipx_linux="no"
8802 fi
8803 rm -f conftest.$ac_objext conftest.$ac_ext
8804
8805 fi
8806 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8807 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8808   if test "$ac_cv_c_ipx_linux" = "yes"
8809   then
8810
8811 cat >>confdefs.h <<\_ACEOF
8812 #define HAVE_IPX_LINUX 1
8813 _ACEOF
8814
8815   fi
8816 fi
8817
8818
8819
8820
8821 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8822 do
8823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8825   echo "$as_me:$LINENO: checking for $ac_header" >&5
8826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8828   echo $ECHO_N "(cached) $ECHO_C" >&6
8829 fi
8830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8832 else
8833   # Is the header compilable?
8834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 #include "confdefs.h"
8839 $ac_includes_default
8840 #include <$ac_header>
8841 _ACEOF
8842 rm -f conftest.$ac_objext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8844   (eval $ac_compile) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } &&
8848          { ac_try='test -s conftest.$ac_objext'
8849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850   (eval $ac_try) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; }; then
8854   ac_header_compiler=yes
8855 else
8856   echo "$as_me: failed program was:" >&5
8857 cat conftest.$ac_ext >&5
8858 ac_header_compiler=no
8859 fi
8860 rm -f conftest.$ac_objext conftest.$ac_ext
8861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8862 echo "${ECHO_T}$ac_header_compiler" >&6
8863
8864 # Is the header present?
8865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8868 #line $LINENO "configure"
8869 #include "confdefs.h"
8870 #include <$ac_header>
8871 _ACEOF
8872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8873   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8874   ac_status=$?
8875   egrep -v '^ *\+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } >/dev/null; then
8880   if test -s conftest.err; then
8881     ac_cpp_err=$ac_c_preproc_warn_flag
8882   else
8883     ac_cpp_err=
8884   fi
8885 else
8886   ac_cpp_err=yes
8887 fi
8888 if test -z "$ac_cpp_err"; then
8889   ac_header_preproc=yes
8890 else
8891   echo "$as_me: failed program was:" >&5
8892   cat conftest.$ac_ext >&5
8893   ac_header_preproc=no
8894 fi
8895 rm -f conftest.err conftest.$ac_ext
8896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8897 echo "${ECHO_T}$ac_header_preproc" >&6
8898
8899 # So?  What about this header?
8900 case $ac_header_compiler:$ac_header_preproc in
8901   yes:no )
8902     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8906   no:yes )
8907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8909     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8913 esac
8914 echo "$as_me:$LINENO: checking for $ac_header" >&5
8915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8917   echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919   eval "$as_ac_Header=$ac_header_preproc"
8920 fi
8921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8923
8924 fi
8925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8926   cat >>confdefs.h <<_ACEOF
8927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8928 _ACEOF
8929  break
8930 fi
8931
8932 done
8933
8934
8935 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8936 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8937 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8938   echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940   cat >conftest.$ac_ext <<_ACEOF
8941 #line $LINENO "configure"
8942 #include "confdefs.h"
8943
8944         #if defined(HAVE_SYS_SOUNDCARD_H)
8945                 #include <sys/soundcard.h>
8946         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8947                 #include <machine/soundcard.h>
8948         #elif defined(HAVE_SOUNDCARD_H)
8949                 #include <soundcard.h>
8950         #endif
8951
8952 #ifdef F77_DUMMY_MAIN
8953 #  ifdef __cplusplus
8954      extern "C"
8955 #  endif
8956    int F77_DUMMY_MAIN() { return 1; }
8957 #endif
8958 int
8959 main ()
8960 {
8961
8962
8963 /* check for one of the Open Sound System specific SNDCTL_ defines */
8964 #if !defined(SNDCTL_DSP_STEREO)
8965 #error No open sound system
8966 #endif
8967
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974   (eval $ac_compile) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); } &&
8978          { ac_try='test -s conftest.$ac_objext'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; }; then
8984   ac_cv_c_opensoundsystem="yes"
8985 else
8986   echo "$as_me: failed program was:" >&5
8987 cat conftest.$ac_ext >&5
8988 ac_cv_c_opensoundsystem="no"
8989 fi
8990 rm -f conftest.$ac_objext conftest.$ac_ext
8991 fi
8992 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8993 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8994
8995 if test "$ac_cv_c_opensoundsystem" = "yes"
8996 then
8997
8998 cat >>confdefs.h <<\_ACEOF
8999 #define HAVE_OSS 1
9000 _ACEOF
9001
9002 fi
9003
9004 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
9005 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9006 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9007   echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009   cat >conftest.$ac_ext <<_ACEOF
9010 #line $LINENO "configure"
9011 #include "confdefs.h"
9012
9013         #if defined(HAVE_SYS_SOUNDCARD_H)
9014                 #include <sys/soundcard.h>
9015         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9016                 #include <machine/soundcard.h>
9017         #elif defined(HAVE_SOUNDCARD_H)
9018                 #include <soundcard.h>
9019         #endif
9020
9021 #ifdef F77_DUMMY_MAIN
9022 #  ifdef __cplusplus
9023      extern "C"
9024 #  endif
9025    int F77_DUMMY_MAIN() { return 1; }
9026 #endif
9027 int
9028 main ()
9029 {
9030
9031
9032 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9033 #if !defined(SNDCTL_SEQ_SYNC)
9034 #error No open sound system MIDI interface
9035 #endif
9036
9037   ;
9038   return 0;
9039 }
9040 _ACEOF
9041 rm -f conftest.$ac_objext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9043   (eval $ac_compile) 2>&5
9044   ac_status=$?
9045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046   (exit $ac_status); } &&
9047          { ac_try='test -s conftest.$ac_objext'
9048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049   (eval $ac_try) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }; }; then
9053   ac_cv_c_opensoundsystem_midi="yes"
9054 else
9055   echo "$as_me: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9057 ac_cv_c_opensoundsystem_midi="no"
9058 fi
9059 rm -f conftest.$ac_objext conftest.$ac_ext
9060 fi
9061 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9062 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9063
9064 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9065 then
9066
9067 cat >>confdefs.h <<\_ACEOF
9068 #define HAVE_OSS_MIDI 1
9069 _ACEOF
9070
9071 fi
9072
9073 # Extract the first word of "artsc-config", so it can be a program name with args.
9074 set dummy artsc-config; ac_word=$2
9075 echo "$as_me:$LINENO: checking for $ac_word" >&5
9076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9077 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9078   echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080   case $ARTSCCONFIG in
9081   [\\/]* | ?:[\\/]*)
9082   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9083   ;;
9084   *)
9085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 for as_dir in $PATH
9087 do
9088   IFS=$as_save_IFS
9089   test -z "$as_dir" && as_dir=.
9090   for ac_exec_ext in '' $ac_executable_extensions; do
9091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9092     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9094     break 2
9095   fi
9096 done
9097 done
9098
9099   ;;
9100 esac
9101 fi
9102 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9103
9104 if test -n "$ARTSCCONFIG"; then
9105   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9106 echo "${ECHO_T}$ARTSCCONFIG" >&6
9107 else
9108   echo "$as_me:$LINENO: result: no" >&5
9109 echo "${ECHO_T}no" >&6
9110 fi
9111
9112 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9113 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9114 if test "${ac_cv_c_artsserver+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9118         then
9119             ac_cv_c_artsserver=no
9120         else
9121             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9122             ARTSC_LIBS=`$ARTSCCONFIG --libs`
9123             ac_cv_c_artsserver=no
9124             save_CFLAGS="$CFLAGS"
9125             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9126             cat >conftest.$ac_ext <<_ACEOF
9127 #line $LINENO "configure"
9128 #include "confdefs.h"
9129
9130              #include <artsc.h>
9131
9132 #ifdef F77_DUMMY_MAIN
9133 #  ifdef __cplusplus
9134      extern "C"
9135 #  endif
9136    int F77_DUMMY_MAIN() { return 1; }
9137 #endif
9138 int
9139 main ()
9140 {
9141
9142              arts_stream_t stream;
9143
9144   ;
9145   return 0;
9146 }
9147 _ACEOF
9148 rm -f conftest.$ac_objext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9150   (eval $ac_compile) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); } &&
9154          { ac_try='test -s conftest.$ac_objext'
9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156   (eval $ac_try) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; }; then
9160
9161             ac_cv_c_artsserver=yes
9162
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9166 fi
9167 rm -f conftest.$ac_objext conftest.$ac_ext
9168             CFLAGS="$save_CFLAGS"
9169         fi
9170 fi
9171 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9172 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9173
9174 if test "$ac_cv_c_artsserver" = "yes"
9175 then
9176     ARTSLIBS=$ARTSC_LIBS
9177
9178     ARTSINCL=$ARTSC_CFLAGS
9179
9180
9181
9182 cat >>confdefs.h <<\_ACEOF
9183 #define HAVE_ARTS 1
9184 _ACEOF
9185
9186 fi
9187
9188 ALSALIBS=""
9189
9190
9191
9192 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9193 do
9194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196   echo "$as_me:$LINENO: checking for $ac_header" >&5
9197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199   echo $ECHO_N "(cached) $ECHO_C" >&6
9200 fi
9201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9203 else
9204   # Is the header compilable?
9205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9207 cat >conftest.$ac_ext <<_ACEOF
9208 #line $LINENO "configure"
9209 #include "confdefs.h"
9210 $ac_includes_default
9211 #include <$ac_header>
9212 _ACEOF
9213 rm -f conftest.$ac_objext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215   (eval $ac_compile) 2>&5
9216   ac_status=$?
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); } &&
9219          { ac_try='test -s conftest.$ac_objext'
9220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221   (eval $ac_try) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); }; }; then
9225   ac_header_compiler=yes
9226 else
9227   echo "$as_me: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 ac_header_compiler=no
9230 fi
9231 rm -f conftest.$ac_objext conftest.$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9233 echo "${ECHO_T}$ac_header_compiler" >&6
9234
9235 # Is the header present?
9236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9239 #line $LINENO "configure"
9240 #include "confdefs.h"
9241 #include <$ac_header>
9242 _ACEOF
9243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9245   ac_status=$?
9246   egrep -v '^ *\+' conftest.er1 >conftest.err
9247   rm -f conftest.er1
9248   cat conftest.err >&5
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); } >/dev/null; then
9251   if test -s conftest.err; then
9252     ac_cpp_err=$ac_c_preproc_warn_flag
9253   else
9254     ac_cpp_err=
9255   fi
9256 else
9257   ac_cpp_err=yes
9258 fi
9259 if test -z "$ac_cpp_err"; then
9260   ac_header_preproc=yes
9261 else
9262   echo "$as_me: failed program was:" >&5
9263   cat conftest.$ac_ext >&5
9264   ac_header_preproc=no
9265 fi
9266 rm -f conftest.err conftest.$ac_ext
9267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9268 echo "${ECHO_T}$ac_header_preproc" >&6
9269
9270 # So?  What about this header?
9271 case $ac_header_compiler:$ac_header_preproc in
9272   yes:no )
9273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9277   no:yes )
9278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9284 esac
9285 echo "$as_me:$LINENO: checking for $ac_header" >&5
9286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9288   echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290   eval "$as_ac_Header=$ac_header_preproc"
9291 fi
9292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9294
9295 fi
9296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9297   cat >>confdefs.h <<_ACEOF
9298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9299 _ACEOF
9300  break
9301 fi
9302
9303 done
9304
9305 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
9306 then
9307     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9308 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9309 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9310   echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312   ac_check_lib_save_LIBS=$LIBS
9313 LIBS="-lasound  $LIBS"
9314 cat >conftest.$ac_ext <<_ACEOF
9315 #line $LINENO "configure"
9316 #include "confdefs.h"
9317
9318 /* Override any gcc2 internal prototype to avoid an error.  */
9319 #ifdef __cplusplus
9320 extern "C"
9321 #endif
9322 /* We use char because int might match the return type of a gcc2
9323    builtin and then its argument prototype would still apply.  */
9324 char snd_pcm_open ();
9325 #ifdef F77_DUMMY_MAIN
9326 #  ifdef __cplusplus
9327      extern "C"
9328 #  endif
9329    int F77_DUMMY_MAIN() { return 1; }
9330 #endif
9331 int
9332 main ()
9333 {
9334 snd_pcm_open ();
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341   (eval $ac_link) 2>&5
9342   ac_status=$?
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } &&
9345          { ac_try='test -s conftest$ac_exeext'
9346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347   (eval $ac_try) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }; }; then
9351   ac_cv_lib_asound_snd_pcm_open=yes
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9355 ac_cv_lib_asound_snd_pcm_open=no
9356 fi
9357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9358 LIBS=$ac_check_lib_save_LIBS
9359 fi
9360 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9361 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9362 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9363
9364 cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_ALSA 1
9366 _ACEOF
9367
9368         ALSALIBS="-lasound"
9369 fi
9370
9371 fi
9372
9373 NASLIBS=""
9374
9375
9376 for ac_header in audio/audiolib.h
9377 do
9378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9380   echo "$as_me:$LINENO: checking for $ac_header" >&5
9381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 fi
9385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9387 else
9388   # Is the header compilable?
9389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9391 cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9393 #include "confdefs.h"
9394 $ac_includes_default
9395 #include <$ac_header>
9396 _ACEOF
9397 rm -f conftest.$ac_objext
9398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9399   (eval $ac_compile) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); } &&
9403          { ac_try='test -s conftest.$ac_objext'
9404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405   (eval $ac_try) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); }; }; then
9409   ac_header_compiler=yes
9410 else
9411   echo "$as_me: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9413 ac_header_compiler=no
9414 fi
9415 rm -f conftest.$ac_objext conftest.$ac_ext
9416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9417 echo "${ECHO_T}$ac_header_compiler" >&6
9418
9419 # Is the header present?
9420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9422 cat >conftest.$ac_ext <<_ACEOF
9423 #line $LINENO "configure"
9424 #include "confdefs.h"
9425 #include <$ac_header>
9426 _ACEOF
9427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9429   ac_status=$?
9430   egrep -v '^ *\+' conftest.er1 >conftest.err
9431   rm -f conftest.er1
9432   cat conftest.err >&5
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } >/dev/null; then
9435   if test -s conftest.err; then
9436     ac_cpp_err=$ac_c_preproc_warn_flag
9437   else
9438     ac_cpp_err=
9439   fi
9440 else
9441   ac_cpp_err=yes
9442 fi
9443 if test -z "$ac_cpp_err"; then
9444   ac_header_preproc=yes
9445 else
9446   echo "$as_me: failed program was:" >&5
9447   cat conftest.$ac_ext >&5
9448   ac_header_preproc=no
9449 fi
9450 rm -f conftest.err conftest.$ac_ext
9451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9452 echo "${ECHO_T}$ac_header_preproc" >&6
9453
9454 # So?  What about this header?
9455 case $ac_header_compiler:$ac_header_preproc in
9456   yes:no )
9457     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9461   no:yes )
9462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9464     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9468 esac
9469 echo "$as_me:$LINENO: checking for $ac_header" >&5
9470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   eval "$as_ac_Header=$ac_header_preproc"
9475 fi
9476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9478
9479 fi
9480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9481   cat >>confdefs.h <<_ACEOF
9482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9483 _ACEOF
9484
9485 for ac_header in audio/soundlib.h
9486 do
9487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9488 echo "$as_me:$LINENO: checking for $ac_header" >&5
9489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493   cat >conftest.$ac_ext <<_ACEOF
9494 #line $LINENO "configure"
9495 #include "confdefs.h"
9496 #include <audio/audiolib.h>
9497
9498 #include <$ac_header>
9499 _ACEOF
9500 rm -f conftest.$ac_objext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502   (eval $ac_compile) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); } &&
9506          { ac_try='test -s conftest.$ac_objext'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; }; then
9512   eval "$as_ac_Header=yes"
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 eval "$as_ac_Header=no"
9517 fi
9518 rm -f conftest.$ac_objext conftest.$ac_ext
9519 fi
9520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9523   cat >>confdefs.h <<_ACEOF
9524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9525 _ACEOF
9526
9527 fi
9528
9529 done
9530
9531       echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9532 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9533 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   ac_check_lib_save_LIBS=$LIBS
9537 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9538 cat >conftest.$ac_ext <<_ACEOF
9539 #line $LINENO "configure"
9540 #include "confdefs.h"
9541
9542 /* Override any gcc2 internal prototype to avoid an error.  */
9543 #ifdef __cplusplus
9544 extern "C"
9545 #endif
9546 /* We use char because int might match the return type of a gcc2
9547    builtin and then its argument prototype would still apply.  */
9548 char AuCreateFlow ();
9549 #ifdef F77_DUMMY_MAIN
9550 #  ifdef __cplusplus
9551      extern "C"
9552 #  endif
9553    int F77_DUMMY_MAIN() { return 1; }
9554 #endif
9555 int
9556 main ()
9557 {
9558 AuCreateFlow ();
9559   ;
9560   return 0;
9561 }
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565   (eval $ac_link) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); } &&
9569          { ac_try='test -s conftest$ac_exeext'
9570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571   (eval $ac_try) 2>&5
9572   ac_status=$?
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); }; }; then
9575   ac_cv_lib_audio_AuCreateFlow=yes
9576 else
9577   echo "$as_me: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9579 ac_cv_lib_audio_AuCreateFlow=no
9580 fi
9581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9583 fi
9584 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9585 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9586 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9587
9588 cat >>confdefs.h <<\_ACEOF
9589 #define HAVE_NAS 1
9590 _ACEOF
9591
9592                     NASLIBS="-laudio -lXt \$(X_LIBS) \$(XLIB)"
9593 fi
9594
9595 fi
9596
9597 done
9598
9599
9600
9601 AUDIOIOLIBS=""
9602
9603
9604 for ac_header in libaudioio.h
9605 do
9606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9608   echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9611   echo $ECHO_N "(cached) $ECHO_C" >&6
9612 fi
9613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9615 else
9616   # Is the header compilable?
9617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9620 #line $LINENO "configure"
9621 #include "confdefs.h"
9622 $ac_includes_default
9623 #include <$ac_header>
9624 _ACEOF
9625 rm -f conftest.$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627   (eval $ac_compile) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } &&
9631          { ac_try='test -s conftest.$ac_objext'
9632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633   (eval $ac_try) 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); }; }; then
9637   ac_header_compiler=yes
9638 else
9639   echo "$as_me: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9641 ac_header_compiler=no
9642 fi
9643 rm -f conftest.$ac_objext conftest.$ac_ext
9644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9645 echo "${ECHO_T}$ac_header_compiler" >&6
9646
9647 # Is the header present?
9648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9650 cat >conftest.$ac_ext <<_ACEOF
9651 #line $LINENO "configure"
9652 #include "confdefs.h"
9653 #include <$ac_header>
9654 _ACEOF
9655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9657   ac_status=$?
9658   egrep -v '^ *\+' conftest.er1 >conftest.err
9659   rm -f conftest.er1
9660   cat conftest.err >&5
9661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); } >/dev/null; then
9663   if test -s conftest.err; then
9664     ac_cpp_err=$ac_c_preproc_warn_flag
9665   else
9666     ac_cpp_err=
9667   fi
9668 else
9669   ac_cpp_err=yes
9670 fi
9671 if test -z "$ac_cpp_err"; then
9672   ac_header_preproc=yes
9673 else
9674   echo "$as_me: failed program was:" >&5
9675   cat conftest.$ac_ext >&5
9676   ac_header_preproc=no
9677 fi
9678 rm -f conftest.err conftest.$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680 echo "${ECHO_T}$ac_header_preproc" >&6
9681
9682 # So?  What about this header?
9683 case $ac_header_compiler:$ac_header_preproc in
9684   yes:no )
9685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9689   no:yes )
9690     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9692     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9696 esac
9697 echo "$as_me:$LINENO: checking for $ac_header" >&5
9698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9700   echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702   eval "$as_ac_Header=$ac_header_preproc"
9703 fi
9704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9706
9707 fi
9708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9709   cat >>confdefs.h <<_ACEOF
9710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9711 _ACEOF
9712  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9713 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9714 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9715   echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717   ac_check_lib_save_LIBS=$LIBS
9718 LIBS="-laudioio  $LIBS"
9719 cat >conftest.$ac_ext <<_ACEOF
9720 #line $LINENO "configure"
9721 #include "confdefs.h"
9722
9723 /* Override any gcc2 internal prototype to avoid an error.  */
9724 #ifdef __cplusplus
9725 extern "C"
9726 #endif
9727 /* We use char because int might match the return type of a gcc2
9728    builtin and then its argument prototype would still apply.  */
9729 char AudioIOGetVersion ();
9730 #ifdef F77_DUMMY_MAIN
9731 #  ifdef __cplusplus
9732      extern "C"
9733 #  endif
9734    int F77_DUMMY_MAIN() { return 1; }
9735 #endif
9736 int
9737 main ()
9738 {
9739 AudioIOGetVersion ();
9740   ;
9741   return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746   (eval $ac_link) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } &&
9750          { ac_try='test -s conftest$ac_exeext'
9751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752   (eval $ac_try) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; }; then
9756   ac_cv_lib_audioio_AudioIOGetVersion=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9760 ac_cv_lib_audioio_AudioIOGetVersion=no
9761 fi
9762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9763 LIBS=$ac_check_lib_save_LIBS
9764 fi
9765 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9766 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9767 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9768   AUDIOIOLIBS="-laudioio"
9769
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_LIBAUDIOIO 1
9772 _ACEOF
9773
9774 fi
9775
9776 fi
9777
9778 done
9779
9780
9781
9782 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9783 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9784 if test "${ac_cv_mmap64_works+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   if test "$cross_compiling" = yes; then
9788   ac_cv_mmap64_works="no"
9789 else
9790   cat >conftest.$ac_ext <<_ACEOF
9791 #line $LINENO "configure"
9792 #include "confdefs.h"
9793
9794                 #define _FILE_OFFSET_BITS 64
9795                 #include <stdio.h>
9796                 #include <unistd.h>
9797                 #include <fcntl.h>
9798                 #include <sys/mman.h>
9799                 #include <errno.h>
9800
9801                 int main(int argc,char **argv) {
9802                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9803                         if (fd == -1) exit(1);
9804
9805                         unlink("conftest.map");
9806
9807                         write(fd,"test",4);
9808
9809                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9810                             (errno == EINVAL)
9811                         ) {
9812                                 exit(1);
9813                         }
9814                         close(fd);
9815                         fprintf(stderr,"success!\n");
9816                         exit(0);
9817                 }
9818
9819
9820 _ACEOF
9821 rm -f conftest$ac_exeext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823   (eval $ac_link) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828   (eval $ac_try) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; }; then
9832   ac_cv_mmap64_works="yes"
9833 else
9834   echo "$as_me: program exited with status $ac_status" >&5
9835 echo "$as_me: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9837 ( exit $ac_status )
9838 ac_cv_mmap64_works="no"
9839 fi
9840 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9841 fi
9842 fi
9843 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9844 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9845
9846 if test "$ac_cv_mmap64_works" = "yes"
9847 then
9848
9849 cat >>confdefs.h <<\_ACEOF
9850 #define _FILE_OFFSET_BITS 64
9851 _ACEOF
9852
9853 fi
9854
9855
9856 if test "x${GCC}" = "xyes"
9857 then
9858   CFLAGS="$CFLAGS -Wall"
9859   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9860 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9861 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864   if test "$cross_compiling" = yes; then
9865   ac_cv_c_gcc_strength_bug="yes"
9866 else
9867   cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9869 #include "confdefs.h"
9870
9871 int     L[4] = {0,1,2,3};
9872 int main(void) {
9873   static int Array[3];
9874   unsigned int B = 3;
9875   int i;
9876   for(i=0; i<B; i++) Array[i] = i - 3;
9877   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9878   L[i] = 4;
9879
9880   exit( Array[1] != -2 || L[2] != 3);
9881 }
9882 _ACEOF
9883 rm -f conftest$ac_exeext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9885   (eval $ac_link) 2>&5
9886   ac_status=$?
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890   (eval $ac_try) 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); }; }; then
9894   ac_cv_c_gcc_strength_bug="no"
9895 else
9896   echo "$as_me: program exited with status $ac_status" >&5
9897 echo "$as_me: failed program was:" >&5
9898 cat conftest.$ac_ext >&5
9899 ( exit $ac_status )
9900 ac_cv_c_gcc_strength_bug="yes"
9901 fi
9902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9903 fi
9904 fi
9905 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9906 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9907   if test "$ac_cv_c_gcc_strength_bug" = "yes"
9908   then
9909     CFLAGS="$CFLAGS -fno-strength-reduce"
9910   fi
9911
9912     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9913 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9914 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9915   echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917   ac_wine_try_cflags_saved=$CFLAGS
9918 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9919 cat >conftest.$ac_ext <<_ACEOF
9920 #line $LINENO "configure"
9921 #include "confdefs.h"
9922
9923 #ifdef F77_DUMMY_MAIN
9924 #  ifdef __cplusplus
9925      extern "C"
9926 #  endif
9927    int F77_DUMMY_MAIN() { return 1; }
9928 #endif
9929 int
9930 main ()
9931 {
9932
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939   (eval $ac_link) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } &&
9943          { ac_try='test -s conftest$ac_exeext'
9944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945   (eval $ac_try) 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); }; }; then
9949   ac_cv_c_gcc_stack_boundary="yes"
9950 else
9951   echo "$as_me: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 ac_cv_c_gcc_stack_boundary="no"
9954 fi
9955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9956 CFLAGS=$ac_wine_try_cflags_saved
9957 fi
9958 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9959 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9960   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9961   then
9962     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9963   fi
9964 fi
9965
9966
9967 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9968 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9969 if test "${ac_cv_asm_func_def+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   cat >conftest.$ac_ext <<_ACEOF
9973 #line $LINENO "configure"
9974 #include "confdefs.h"
9975 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
9976
9977 #ifdef F77_DUMMY_MAIN
9978 #  ifdef __cplusplus
9979      extern "C"
9980 #  endif
9981    int F77_DUMMY_MAIN() { return 1; }
9982 #endif
9983 int
9984 main ()
9985 {
9986
9987   ;
9988   return 0;
9989 }
9990 _ACEOF
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993   (eval $ac_link) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); } &&
9997          { ac_try='test -s conftest$ac_exeext'
9998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999   (eval $ac_try) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; }; then
10003   ac_cv_asm_func_def=".def"
10004 else
10005   echo "$as_me: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10007 cat >conftest.$ac_ext <<_ACEOF
10008 #line $LINENO "configure"
10009 #include "confdefs.h"
10010 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
10011
10012 #ifdef F77_DUMMY_MAIN
10013 #  ifdef __cplusplus
10014      extern "C"
10015 #  endif
10016    int F77_DUMMY_MAIN() { return 1; }
10017 #endif
10018 int
10019 main ()
10020 {
10021
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028   (eval $ac_link) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -s conftest$ac_exeext'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; }; then
10038   ac_cv_asm_func_def=".type @function"
10039 else
10040   echo "$as_me: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10044 #include "confdefs.h"
10045 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
10046
10047 #ifdef F77_DUMMY_MAIN
10048 #  ifdef __cplusplus
10049      extern "C"
10050 #  endif
10051    int F77_DUMMY_MAIN() { return 1; }
10052 #endif
10053 int
10054 main ()
10055 {
10056
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063   (eval $ac_link) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } &&
10067          { ac_try='test -s conftest$ac_exeext'
10068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069   (eval $ac_try) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; }; then
10073   ac_cv_asm_func_def=".type 2"
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 ac_cv_asm_func_def="unknown"
10078 fi
10079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10080 fi
10081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10082 fi
10083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10084 fi
10085 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
10086 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
10087
10088
10089
10090 case "$ac_cv_asm_func_def" in
10091   ".def")
10092      cat >>confdefs.h <<\_ACEOF
10093 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
10094 _ACEOF
10095  ;;
10096   ".type @function")
10097      cat >>confdefs.h <<\_ACEOF
10098 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
10099 _ACEOF
10100  ;;
10101   ".type 2")
10102      cat >>confdefs.h <<\_ACEOF
10103 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
10104 _ACEOF
10105  ;;
10106   *)
10107      cat >>confdefs.h <<\_ACEOF
10108 #define __ASM_FUNC(name) ""
10109 _ACEOF
10110  ;;
10111 esac
10112
10113
10114 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
10115 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10116 if test "${ac_cv_c_extern_prefix+set}" = set; then
10117   echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119   cat >conftest.$ac_ext <<_ACEOF
10120 #line $LINENO "configure"
10121 #include "confdefs.h"
10122 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
10123 extern int ac_test;
10124 #ifdef F77_DUMMY_MAIN
10125 #  ifdef __cplusplus
10126      extern "C"
10127 #  endif
10128    int F77_DUMMY_MAIN() { return 1; }
10129 #endif
10130 int
10131 main ()
10132 {
10133 if (ac_test) return 1
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140   (eval $ac_link) 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -s conftest$ac_exeext'
10145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146   (eval $ac_try) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; }; then
10150   ac_cv_c_extern_prefix="yes"
10151 else
10152   echo "$as_me: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 ac_cv_c_extern_prefix="no"
10155 fi
10156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10157 fi
10158 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
10159 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
10160
10161
10162
10163 if test "$ac_cv_c_extern_prefix" = "yes"
10164 then
10165   cat >>confdefs.h <<\_ACEOF
10166 #define __ASM_NAME(name) "_" name
10167 _ACEOF
10168
10169 else
10170   cat >>confdefs.h <<\_ACEOF
10171 #define __ASM_NAME(name) name
10172 _ACEOF
10173
10174 fi
10175
10176
10177 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
10178 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
10179 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   cat >conftest.$ac_ext <<_ACEOF
10183 #line $LINENO "configure"
10184 #include "confdefs.h"
10185 void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); }
10186 extern void __attribute__((__stdcall__)) ac_test(void);
10187 #ifdef F77_DUMMY_MAIN
10188 #  ifdef __cplusplus
10189      extern "C"
10190 #  endif
10191    int F77_DUMMY_MAIN() { return 1; }
10192 #endif
10193 int
10194 main ()
10195 {
10196 ac_test()
10197   ;
10198   return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203   (eval $ac_link) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); } &&
10207          { ac_try='test -s conftest$ac_exeext'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   ac_cv_c_stdcall_decoration="yes"
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 cat conftest.$ac_ext >&5
10217 ac_cv_c_stdcall_decoration="no"
10218 fi
10219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10220 fi
10221 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
10222 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
10223 if test "$ac_cv_c_stdcall_decoration" = "yes"
10224 then
10225
10226 cat >>confdefs.h <<\_ACEOF
10227 #define NEED_STDCALL_DECORATION 1
10228 _ACEOF
10229
10230 fi
10231
10232
10233 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
10234 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
10235 if test "${ac_cv_c_asm_string+set}" = set; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238   cat >conftest.$ac_ext <<_ACEOF
10239 #line $LINENO "configure"
10240 #include "confdefs.h"
10241 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
10242
10243 #ifdef F77_DUMMY_MAIN
10244 #  ifdef __cplusplus
10245      extern "C"
10246 #  endif
10247    int F77_DUMMY_MAIN() { return 1; }
10248 #endif
10249 int
10250 main ()
10251 {
10252
10253   ;
10254   return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259   (eval $ac_link) 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); } &&
10263          { ac_try='test -s conftest$ac_exeext'
10264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265   (eval $ac_try) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; }; then
10269   ac_cv_c_asm_string="yes"
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10273 ac_cv_c_asm_string="no"
10274 fi
10275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10276 fi
10277 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
10278 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
10279 if test "$ac_cv_c_asm_string" = "yes"
10280 then
10281
10282 cat >>confdefs.h <<\_ACEOF
10283 #define HAVE_ASM_STRING 1
10284 _ACEOF
10285
10286 fi
10287
10288
10289 DLLEXT=""
10290
10291 DLLFLAGS=""
10292
10293 DLLIBS=""
10294
10295 LDDLLFLAGS=""
10296
10297 LDSHARED=""
10298
10299
10300 case $host_os in
10301   cygwin*|mingw32*)
10302     if test -n "$ac_tool_prefix"; then
10303   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
10304 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
10305 echo "$as_me:$LINENO: checking for $ac_word" >&5
10306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10307 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
10308   echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310   if test -n "$DLLWRAP"; then
10311   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
10312 else
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10315 do
10316   IFS=$as_save_IFS
10317   test -z "$as_dir" && as_dir=.
10318   for ac_exec_ext in '' $ac_executable_extensions; do
10319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10320     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
10321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10322     break 2
10323   fi
10324 done
10325 done
10326
10327 fi
10328 fi
10329 DLLWRAP=$ac_cv_prog_DLLWRAP
10330 if test -n "$DLLWRAP"; then
10331   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10332 echo "${ECHO_T}$DLLWRAP" >&6
10333 else
10334   echo "$as_me:$LINENO: result: no" >&5
10335 echo "${ECHO_T}no" >&6
10336 fi
10337
10338 fi
10339 if test -z "$ac_cv_prog_DLLWRAP"; then
10340   ac_ct_DLLWRAP=$DLLWRAP
10341   # Extract the first word of "dllwrap", so it can be a program name with args.
10342 set dummy dllwrap; ac_word=$2
10343 echo "$as_me:$LINENO: checking for $ac_word" >&5
10344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10345 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
10346   echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348   if test -n "$ac_ct_DLLWRAP"; then
10349   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
10350 else
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10353 do
10354   IFS=$as_save_IFS
10355   test -z "$as_dir" && as_dir=.
10356   for ac_exec_ext in '' $ac_executable_extensions; do
10357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10358     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
10359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10360     break 2
10361   fi
10362 done
10363 done
10364
10365   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10366 fi
10367 fi
10368 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10369 if test -n "$ac_ct_DLLWRAP"; then
10370   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10371 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10372 else
10373   echo "$as_me:$LINENO: result: no" >&5
10374 echo "${ECHO_T}no" >&6
10375 fi
10376
10377   DLLWRAP=$ac_ct_DLLWRAP
10378 else
10379   DLLWRAP="$ac_cv_prog_DLLWRAP"
10380 fi
10381
10382     if test "$DLLWRAP" = "false"; then
10383       LIBEXT="a"
10384     else
10385             LIBEXT="dll"
10386     fi
10387     ;;
10388   *)
10389
10390 for ac_header in dlfcn.h
10391 do
10392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10394   echo "$as_me:$LINENO: checking for $ac_header" >&5
10395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 fi
10399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10401 else
10402   # Is the header compilable?
10403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10405 cat >conftest.$ac_ext <<_ACEOF
10406 #line $LINENO "configure"
10407 #include "confdefs.h"
10408 $ac_includes_default
10409 #include <$ac_header>
10410 _ACEOF
10411 rm -f conftest.$ac_objext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413   (eval $ac_compile) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); } &&
10417          { ac_try='test -s conftest.$ac_objext'
10418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419   (eval $ac_try) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); }; }; then
10423   ac_header_compiler=yes
10424 else
10425   echo "$as_me: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10427 ac_header_compiler=no
10428 fi
10429 rm -f conftest.$ac_objext conftest.$ac_ext
10430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10431 echo "${ECHO_T}$ac_header_compiler" >&6
10432
10433 # Is the header present?
10434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10436 cat >conftest.$ac_ext <<_ACEOF
10437 #line $LINENO "configure"
10438 #include "confdefs.h"
10439 #include <$ac_header>
10440 _ACEOF
10441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10443   ac_status=$?
10444   egrep -v '^ *\+' conftest.er1 >conftest.err
10445   rm -f conftest.er1
10446   cat conftest.err >&5
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } >/dev/null; then
10449   if test -s conftest.err; then
10450     ac_cpp_err=$ac_c_preproc_warn_flag
10451   else
10452     ac_cpp_err=
10453   fi
10454 else
10455   ac_cpp_err=yes
10456 fi
10457 if test -z "$ac_cpp_err"; then
10458   ac_header_preproc=yes
10459 else
10460   echo "$as_me: failed program was:" >&5
10461   cat conftest.$ac_ext >&5
10462   ac_header_preproc=no
10463 fi
10464 rm -f conftest.err conftest.$ac_ext
10465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10466 echo "${ECHO_T}$ac_header_preproc" >&6
10467
10468 # So?  What about this header?
10469 case $ac_header_compiler:$ac_header_preproc in
10470   yes:no )
10471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10475   no:yes )
10476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10478     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10482 esac
10483 echo "$as_me:$LINENO: checking for $ac_header" >&5
10484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10486   echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488   eval "$as_ac_Header=$ac_header_preproc"
10489 fi
10490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10492
10493 fi
10494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10495   cat >>confdefs.h <<_ACEOF
10496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10497 _ACEOF
10498
10499 for ac_func in dlopen
10500 do
10501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10502 echo "$as_me:$LINENO: checking for $ac_func" >&5
10503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10504 if eval "test \"\${$as_ac_var+set}\" = set"; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   cat >conftest.$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10509 #include "confdefs.h"
10510 /* System header to define __stub macros and hopefully few prototypes,
10511     which can conflict with char $ac_func (); below.  */
10512 #include <assert.h>
10513 /* Override any gcc2 internal prototype to avoid an error.  */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 /* We use char because int might match the return type of a gcc2
10518    builtin and then its argument prototype would still apply.  */
10519 char $ac_func ();
10520 char (*f) ();
10521
10522 #ifdef F77_DUMMY_MAIN
10523 #  ifdef __cplusplus
10524      extern "C"
10525 #  endif
10526    int F77_DUMMY_MAIN() { return 1; }
10527 #endif
10528 int
10529 main ()
10530 {
10531 /* The GNU C library defines this for functions which it implements
10532     to always fail with ENOSYS.  Some functions are actually named
10533     something starting with __ and the normal name is an alias.  */
10534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10535 choke me
10536 #else
10537 f = $ac_func;
10538 #endif
10539
10540   ;
10541   return 0;
10542 }
10543 _ACEOF
10544 rm -f conftest.$ac_objext conftest$ac_exeext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546   (eval $ac_link) 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -s conftest$ac_exeext'
10551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552   (eval $ac_try) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; }; then
10556   eval "$as_ac_var=yes"
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10560 eval "$as_ac_var=no"
10561 fi
10562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10563 fi
10564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10566 if test `eval echo '${'$as_ac_var'}'` = yes; then
10567   cat >>confdefs.h <<_ACEOF
10568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10569 _ACEOF
10570
10571 else
10572   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10573 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10574 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   ac_check_lib_save_LIBS=$LIBS
10578 LIBS="-ldl  $LIBS"
10579 cat >conftest.$ac_ext <<_ACEOF
10580 #line $LINENO "configure"
10581 #include "confdefs.h"
10582
10583 /* Override any gcc2 internal prototype to avoid an error.  */
10584 #ifdef __cplusplus
10585 extern "C"
10586 #endif
10587 /* We use char because int might match the return type of a gcc2
10588    builtin and then its argument prototype would still apply.  */
10589 char dlopen ();
10590 #ifdef F77_DUMMY_MAIN
10591 #  ifdef __cplusplus
10592      extern "C"
10593 #  endif
10594    int F77_DUMMY_MAIN() { return 1; }
10595 #endif
10596 int
10597 main ()
10598 {
10599 dlopen ();
10600   ;
10601   return 0;
10602 }
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606   (eval $ac_link) 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); } &&
10610          { ac_try='test -s conftest$ac_exeext'
10611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612   (eval $ac_try) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; }; then
10616   ac_cv_lib_dl_dlopen=yes
10617 else
10618   echo "$as_me: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10620 ac_cv_lib_dl_dlopen=no
10621 fi
10622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10624 fi
10625 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10627 if test $ac_cv_lib_dl_dlopen = yes; then
10628
10629 cat >>confdefs.h <<\_ACEOF
10630 #define HAVE_DLOPEN 1
10631 _ACEOF
10632
10633                           DLLIBS="-ldl"
10634 else
10635   LIBEXT="a"
10636 fi
10637
10638 fi
10639 done
10640
10641 else
10642   LIBEXT="a"
10643 fi
10644
10645 done
10646
10647
10648     if test "$LIBEXT" = "so"
10649     then
10650       DLLFLAGS="-fPIC"
10651       DLLEXT=".so"
10652       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10653 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10654 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10655   echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657   ac_wine_try_cflags_saved=$CFLAGS
10658 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10659 cat >conftest.$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10661 #include "confdefs.h"
10662
10663 #ifdef F77_DUMMY_MAIN
10664 #  ifdef __cplusplus
10665      extern "C"
10666 #  endif
10667    int F77_DUMMY_MAIN() { return 1; }
10668 #endif
10669 int
10670 main ()
10671 {
10672
10673   ;
10674   return 0;
10675 }
10676 _ACEOF
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10679   (eval $ac_link) 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); } &&
10683          { ac_try='test -s conftest$ac_exeext'
10684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685   (eval $ac_try) 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; }; then
10689   ac_cv_c_dll_gnuelf="yes"
10690 else
10691   echo "$as_me: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10693 ac_cv_c_dll_gnuelf="no"
10694 fi
10695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10696 CFLAGS=$ac_wine_try_cflags_saved
10697 fi
10698 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10699 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10700       if test "$ac_cv_c_dll_gnuelf" = "yes"
10701       then
10702         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10703         LDDLLFLAGS="-Wl,-Bsymbolic"
10704       else
10705         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10706 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10707 if test "${ac_cv_c_dll_unixware+set}" = set; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710   ac_wine_try_cflags_saved=$CFLAGS
10711 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10712 cat >conftest.$ac_ext <<_ACEOF
10713 #line $LINENO "configure"
10714 #include "confdefs.h"
10715
10716 #ifdef F77_DUMMY_MAIN
10717 #  ifdef __cplusplus
10718      extern "C"
10719 #  endif
10720    int F77_DUMMY_MAIN() { return 1; }
10721 #endif
10722 int
10723 main ()
10724 {
10725
10726   ;
10727   return 0;
10728 }
10729 _ACEOF
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732   (eval $ac_link) 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); } &&
10736          { ac_try='test -s conftest$ac_exeext'
10737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738   (eval $ac_try) 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); }; }; then
10742   ac_cv_c_dll_unixware="yes"
10743 else
10744   echo "$as_me: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10746 ac_cv_c_dll_unixware="no"
10747 fi
10748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10749 CFLAGS=$ac_wine_try_cflags_saved
10750 fi
10751 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10752 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10753         if test "$ac_cv_c_dll_unixware" = "yes"
10754         then
10755           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10756           LDDLLFLAGS="-Wl,-B,symbolic"
10757         fi
10758       fi
10759     fi
10760
10761         CROSSTEST=""
10762
10763     if test "$cross_compiling" = "no"
10764     then
10765       for ac_prog in i586-mingw32msvc-gcc
10766 do
10767   # Extract the first word of "$ac_prog", so it can be a program name with args.
10768 set dummy $ac_prog; ac_word=$2
10769 echo "$as_me:$LINENO: checking for $ac_word" >&5
10770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10771 if test "${ac_cv_prog_CROSSCC+set}" = set; then
10772   echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774   if test -n "$CROSSCC"; then
10775   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10776 else
10777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778 for as_dir in $PATH
10779 do
10780   IFS=$as_save_IFS
10781   test -z "$as_dir" && as_dir=.
10782   for ac_exec_ext in '' $ac_executable_extensions; do
10783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784     ac_cv_prog_CROSSCC="$ac_prog"
10785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786     break 2
10787   fi
10788 done
10789 done
10790
10791 fi
10792 fi
10793 CROSSCC=$ac_cv_prog_CROSSCC
10794 if test -n "$CROSSCC"; then
10795   echo "$as_me:$LINENO: result: $CROSSCC" >&5
10796 echo "${ECHO_T}$CROSSCC" >&6
10797 else
10798   echo "$as_me:$LINENO: result: no" >&5
10799 echo "${ECHO_T}no" >&6
10800 fi
10801
10802   test -n "$CROSSCC" && break
10803 done
10804 test -n "$CROSSCC" || CROSSCC="false"
10805
10806       for ac_prog in i586-mingw32msvc-dlltool
10807 do
10808   # Extract the first word of "$ac_prog", so it can be a program name with args.
10809 set dummy $ac_prog; ac_word=$2
10810 echo "$as_me:$LINENO: checking for $ac_word" >&5
10811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10812 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10813   echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815   if test -n "$DLLTOOL"; then
10816   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10817 else
10818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819 for as_dir in $PATH
10820 do
10821   IFS=$as_save_IFS
10822   test -z "$as_dir" && as_dir=.
10823   for ac_exec_ext in '' $ac_executable_extensions; do
10824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10825     ac_cv_prog_DLLTOOL="$ac_prog"
10826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10827     break 2
10828   fi
10829 done
10830 done
10831
10832 fi
10833 fi
10834 DLLTOOL=$ac_cv_prog_DLLTOOL
10835 if test -n "$DLLTOOL"; then
10836   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10837 echo "${ECHO_T}$DLLTOOL" >&6
10838 else
10839   echo "$as_me:$LINENO: result: no" >&5
10840 echo "${ECHO_T}no" >&6
10841 fi
10842
10843   test -n "$DLLTOOL" && break
10844 done
10845 test -n "$DLLTOOL" || DLLTOOL="false"
10846
10847       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10848     fi
10849     ;;
10850 esac
10851
10852 if test "$LIBEXT" = "a"; then
10853   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10854 It is currently not possible to build Wine without shared library
10855 (.so) support to allow transparent switch between .so and .dll files.
10856 If you are using Linux, you will need a newer binutils.
10857 " >&5
10858 echo "$as_me: error: could not find a way to build shared libraries.
10859 It is currently not possible to build Wine without shared library
10860 (.so) support to allow transparent switch between .so and .dll files.
10861 If you are using Linux, you will need a newer binutils.
10862 " >&2;}
10863    { (exit 1); exit 1; }; }
10864 fi
10865
10866 case $build_os in
10867   cygwin*|mingw32*)
10868     LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10869  ;;
10870   *)
10871     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10872  ;;
10873 esac
10874
10875 CRTLIBS=""
10876
10877 case $host_os in
10878   mingw32*)
10879     CRTLIBS="-lmsvcrt" ;;
10880 esac
10881
10882
10883 if test "$LIBEXT" = "so"
10884 then
10885   # Extract the first word of "ldd", so it can be a program name with args.
10886 set dummy ldd; ac_word=$2
10887 echo "$as_me:$LINENO: checking for $ac_word" >&5
10888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10889 if test "${ac_cv_path_LDD+set}" = set; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   case $LDD in
10893   [\\/]* | ?:[\\/]*)
10894   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10895   ;;
10896   *)
10897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898 for as_dir in /sbin:/usr/sbin:$PATH
10899 do
10900   IFS=$as_save_IFS
10901   test -z "$as_dir" && as_dir=.
10902   for ac_exec_ext in '' $ac_executable_extensions; do
10903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10904     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10906     break 2
10907   fi
10908 done
10909 done
10910
10911   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10912   ;;
10913 esac
10914 fi
10915 LDD=$ac_cv_path_LDD
10916
10917 if test -n "$LDD"; then
10918   echo "$as_me:$LINENO: result: $LDD" >&5
10919 echo "${ECHO_T}$LDD" >&6
10920 else
10921   echo "$as_me:$LINENO: result: no" >&5
10922 echo "${ECHO_T}no" >&6
10923 fi
10924
10925
10926 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10927 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10928 if test "${ac_cv_lib_soname_X11+set}" = set; then
10929   echo $ECHO_N "(cached) $ECHO_C" >&6
10930 else
10931   ac_get_soname_save_LIBS=$LIBS
10932 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10933   cat >conftest.$ac_ext <<_ACEOF
10934 #line $LINENO "configure"
10935 #include "confdefs.h"
10936
10937 /* Override any gcc2 internal prototype to avoid an error.  */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 /* We use char because int might match the return type of a gcc2
10942    builtin and then its argument prototype would still apply.  */
10943 char XCreateWindow ();
10944 #ifdef F77_DUMMY_MAIN
10945 #  ifdef __cplusplus
10946      extern "C"
10947 #  endif
10948    int F77_DUMMY_MAIN() { return 1; }
10949 #endif
10950 int
10951 main ()
10952 {
10953 XCreateWindow ();
10954   ;
10955   return 0;
10956 }
10957 _ACEOF
10958 rm -f conftest.$ac_objext conftest$ac_exeext
10959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10960   (eval $ac_link) 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); } &&
10964          { ac_try='test -s conftest$ac_exeext'
10965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966   (eval $ac_try) 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; }; then
10970   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10971   if test "x$ac_cv_lib_soname_X11" = "x"
10972   then
10973      ac_cv_lib_soname_X11="libX11.so"
10974   fi
10975 else
10976   echo "$as_me: failed program was:" >&5
10977 cat conftest.$ac_ext >&5
10978 ac_cv_lib_soname_X11="libX11.so"
10979 fi
10980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10981   LIBS=$ac_get_soname_save_LIBS
10982 fi
10983 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10984 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10985 if test "x$ac_cv_lib_soname_X11" != xNONE
10986 then
10987 cat >>confdefs.h <<_ACEOF
10988 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10989 _ACEOF
10990 fi
10991
10992 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10993 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10994 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10995   echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997   ac_get_soname_save_LIBS=$LIBS
10998 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10999   cat >conftest.$ac_ext <<_ACEOF
11000 #line $LINENO "configure"
11001 #include "confdefs.h"
11002
11003 /* Override any gcc2 internal prototype to avoid an error.  */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 /* We use char because int might match the return type of a gcc2
11008    builtin and then its argument prototype would still apply.  */
11009 char XextCreateExtension ();
11010 #ifdef F77_DUMMY_MAIN
11011 #  ifdef __cplusplus
11012      extern "C"
11013 #  endif
11014    int F77_DUMMY_MAIN() { return 1; }
11015 #endif
11016 int
11017 main ()
11018 {
11019 XextCreateExtension ();
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026   (eval $ac_link) 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); } &&
11030          { ac_try='test -s conftest$ac_exeext'
11031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032   (eval $ac_try) 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; }; then
11036   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11037   if test "x$ac_cv_lib_soname_Xext" = "x"
11038   then
11039      ac_cv_lib_soname_Xext="libXext.so"
11040   fi
11041 else
11042   echo "$as_me: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
11044 ac_cv_lib_soname_Xext="libXext.so"
11045 fi
11046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11047   LIBS=$ac_get_soname_save_LIBS
11048 fi
11049 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
11050 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
11051 if test "x$ac_cv_lib_soname_Xext" != xNONE
11052 then
11053 cat >>confdefs.h <<_ACEOF
11054 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
11055 _ACEOF
11056 fi
11057
11058 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
11059 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
11060 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
11061   echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063   ac_get_soname_save_LIBS=$LIBS
11064 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
11065   cat >conftest.$ac_ext <<_ACEOF
11066 #line $LINENO "configure"
11067 #include "confdefs.h"
11068
11069 /* Override any gcc2 internal prototype to avoid an error.  */
11070 #ifdef __cplusplus
11071 extern "C"
11072 #endif
11073 /* We use char because int might match the return type of a gcc2
11074    builtin and then its argument prototype would still apply.  */
11075 char XRenderQueryExtension ();
11076 #ifdef F77_DUMMY_MAIN
11077 #  ifdef __cplusplus
11078      extern "C"
11079 #  endif
11080    int F77_DUMMY_MAIN() { return 1; }
11081 #endif
11082 int
11083 main ()
11084 {
11085 XRenderQueryExtension ();
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092   (eval $ac_link) 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -s conftest$ac_exeext'
11097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098   (eval $ac_try) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); }; }; then
11102   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11103   if test "x$ac_cv_lib_soname_Xrender" = "x"
11104   then
11105      ac_cv_lib_soname_Xrender="libXrender.so"
11106   fi
11107 else
11108   echo "$as_me: failed program was:" >&5
11109 cat conftest.$ac_ext >&5
11110 ac_cv_lib_soname_Xrender="libXrender.so"
11111 fi
11112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11113   LIBS=$ac_get_soname_save_LIBS
11114 fi
11115 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
11116 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
11117 if test "x$ac_cv_lib_soname_Xrender" != xNONE
11118 then
11119 cat >>confdefs.h <<_ACEOF
11120 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
11121 _ACEOF
11122 fi
11123
11124 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
11125 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
11126 if test "${ac_cv_lib_soname_freetype+set}" = set; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129   ac_get_soname_save_LIBS=$LIBS
11130 LIBS="-lfreetype $X_LIBS $LIBS"
11131   cat >conftest.$ac_ext <<_ACEOF
11132 #line $LINENO "configure"
11133 #include "confdefs.h"
11134
11135 /* Override any gcc2 internal prototype to avoid an error.  */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 /* We use char because int might match the return type of a gcc2
11140    builtin and then its argument prototype would still apply.  */
11141 char FT_Init_FreeType ();
11142 #ifdef F77_DUMMY_MAIN
11143 #  ifdef __cplusplus
11144      extern "C"
11145 #  endif
11146    int F77_DUMMY_MAIN() { return 1; }
11147 #endif
11148 int
11149 main ()
11150 {
11151 FT_Init_FreeType ();
11152   ;
11153   return 0;
11154 }
11155 _ACEOF
11156 rm -f conftest.$ac_objext conftest$ac_exeext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158   (eval $ac_link) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); } &&
11162          { ac_try='test -s conftest$ac_exeext'
11163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164   (eval $ac_try) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; }; then
11168   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11169   if test "x$ac_cv_lib_soname_freetype" = "x"
11170   then
11171      ac_cv_lib_soname_freetype="libfreetype.so"
11172   fi
11173 else
11174   echo "$as_me: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 ac_cv_lib_soname_freetype="libfreetype.so"
11177 fi
11178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11179   LIBS=$ac_get_soname_save_LIBS
11180 fi
11181 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
11182 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
11183 if test "x$ac_cv_lib_soname_freetype" != xNONE
11184 then
11185 cat >>confdefs.h <<_ACEOF
11186 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11187 _ACEOF
11188 fi
11189 fi
11190
11191
11192
11193 wine_cv_libc_reentrant=no
11194 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
11195 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
11196 if test "${wine_cv_libc_r___errno_location+set}" = set; then
11197   echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199   if test "$cross_compiling" = yes; then
11200   wine_cv_libc_r___errno_location=yes
11201 else
11202   cat >conftest.$ac_ext <<_ACEOF
11203 #line $LINENO "configure"
11204 #include "confdefs.h"
11205 int myerrno = 0;
11206 int *__errno_location(){return &myerrno;}
11207 main(){close(333); close(333); exit(!myerrno);}
11208 _ACEOF
11209 rm -f conftest$ac_exeext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11211   (eval $ac_link) 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216   (eval $ac_try) 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }; }; then
11220   wine_cv_libc_r___errno_location=yes
11221 else
11222   echo "$as_me: program exited with status $ac_status" >&5
11223 echo "$as_me: failed program was:" >&5
11224 cat conftest.$ac_ext >&5
11225 ( exit $ac_status )
11226 wine_cv_libc_r___errno_location=no
11227 fi
11228 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11229 fi
11230 fi
11231 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
11232 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
11233 if test "$wine_cv_libc_r___errno_location" = "yes"; then
11234   wine_cv_libc_reentrant=__errno_location
11235 else
11236     echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
11237 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
11238 if test "${wine_cv_libc_r___error+set}" = set; then
11239   echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241   if test "$cross_compiling" = yes; then
11242   wine_cv_libc_r___error=yes
11243 else
11244   cat >conftest.$ac_ext <<_ACEOF
11245 #line $LINENO "configure"
11246 #include "confdefs.h"
11247 int myerrno = 0;
11248 int *__error(){return &myerrno;}
11249 main(){close(333); close(333); exit(!myerrno);}
11250 _ACEOF
11251 rm -f conftest$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253   (eval $ac_link) 2>&5
11254   ac_status=$?
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258   (eval $ac_try) 2>&5
11259   ac_status=$?
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); }; }; then
11262   wine_cv_libc_r___error=yes
11263 else
11264   echo "$as_me: program exited with status $ac_status" >&5
11265 echo "$as_me: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11267 ( exit $ac_status )
11268 wine_cv_libc_r___error=no
11269 fi
11270 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11271 fi
11272 fi
11273 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
11274 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
11275 if test "$wine_cv_libc_r___error" = "yes"; then
11276   wine_cv_libc_reentrant=__error
11277 else
11278       echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
11279 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
11280 if test "${wine_cv_libc_r____errno+set}" = set; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283   if test "$cross_compiling" = yes; then
11284   wine_cv_libc_r____errno=yes
11285 else
11286   cat >conftest.$ac_ext <<_ACEOF
11287 #line $LINENO "configure"
11288 #include "confdefs.h"
11289 int myerrno = 0;
11290 int *___errno(){return &myerrno;}
11291 main(){close(333); close(333); exit(!myerrno);}
11292 _ACEOF
11293 rm -f conftest$ac_exeext
11294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11295   (eval $ac_link) 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300   (eval $ac_try) 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; }; then
11304   wine_cv_libc_r____errno=yes
11305 else
11306   echo "$as_me: program exited with status $ac_status" >&5
11307 echo "$as_me: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 ( exit $ac_status )
11310 wine_cv_libc_r____errno=no
11311 fi
11312 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11313 fi
11314 fi
11315 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
11316 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
11317 if test "$wine_cv_libc_r____errno" = "yes"; then
11318   wine_cv_libc_reentrant=___errno
11319 else
11320         echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
11321 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
11322 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
11323   echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325   if test "$cross_compiling" = yes; then
11326   wine_cv_libc_r___thr_errno=yes
11327 else
11328   cat >conftest.$ac_ext <<_ACEOF
11329 #line $LINENO "configure"
11330 #include "confdefs.h"
11331 int myerrno = 0;
11332 int *__thr_errno(){return &myerrno;}
11333 main(){close(333); close(333); exit(!myerrno);}
11334 _ACEOF
11335 rm -f conftest$ac_exeext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11337   (eval $ac_link) 2>&5
11338   ac_status=$?
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; }; then
11346   wine_cv_libc_r___thr_errno=yes
11347 else
11348   echo "$as_me: program exited with status $ac_status" >&5
11349 echo "$as_me: failed program was:" >&5
11350 cat conftest.$ac_ext >&5
11351 ( exit $ac_status )
11352 wine_cv_libc_r___thr_errno=no
11353 fi
11354 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11355 fi
11356 fi
11357 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
11358 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
11359 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11360   wine_cv_libc_reentrant=__thr_errno
11361 else
11362           echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
11363 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11364 if test "${wine_cv_libc_r___errno+set}" = set; then
11365   echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367   if test "$cross_compiling" = yes; then
11368   wine_cv_libc_r___errno=yes
11369 else
11370   cat >conftest.$ac_ext <<_ACEOF
11371 #line $LINENO "configure"
11372 #include "confdefs.h"
11373 int myerrno = 0;
11374 int *__errno(){return &myerrno;}
11375 main(){close(333); close(333); exit(!myerrno);}
11376 _ACEOF
11377 rm -f conftest$ac_exeext
11378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11379   (eval $ac_link) 2>&5
11380   ac_status=$?
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384   (eval $ac_try) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); }; }; then
11388   wine_cv_libc_r___errno=yes
11389 else
11390   echo "$as_me: program exited with status $ac_status" >&5
11391 echo "$as_me: failed program was:" >&5
11392 cat conftest.$ac_ext >&5
11393 ( exit $ac_status )
11394 wine_cv_libc_r___errno=no
11395 fi
11396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11397 fi
11398 fi
11399 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
11400 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
11401 if test "$wine_cv_libc_r___errno" = "yes"; then
11402   wine_cv_libc_reentrant=__errno
11403 fi
11404
11405
11406 fi
11407
11408 fi
11409
11410 fi
11411
11412 fi
11413
11414
11415 if test "$wine_cv_libc_reentrant" != "no"
11416 then
11417
11418 cat >>confdefs.h <<_ACEOF
11419 #define ERRNO_LOCATION $wine_cv_libc_reentrant
11420 _ACEOF
11421
11422 fi
11423
11424
11425 if test "$have_x" = "yes"
11426 then
11427 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
11428 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11429 if test "${wine_cv_x_reentrant+set}" = set; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432   libX11_check=none
11433     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11434         if test -r $dir/libX11.so; then
11435             libX11_check="-D $dir/libX11.so"
11436             break
11437         fi
11438         if test -r $dir/libX11.a; then
11439             libX11_check="$dir/libX11.a"
11440             break
11441         fi
11442     done
11443     if test "$libX11_check" != "none"; then
11444         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11445         then
11446             wine_cv_x_reentrant=yes
11447         else
11448             wine_cv_x_reentrant=no
11449         fi
11450     else
11451         wine_cv_x_reentrant=unknown
11452     fi
11453 fi
11454 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
11455 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
11456 fi
11457
11458
11459 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11460 # for constant arguments.  Useless!
11461 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11462 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11463 if test "${ac_cv_working_alloca_h+set}" = set; then
11464   echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466   cat >conftest.$ac_ext <<_ACEOF
11467 #line $LINENO "configure"
11468 #include "confdefs.h"
11469 #include <alloca.h>
11470 #ifdef F77_DUMMY_MAIN
11471 #  ifdef __cplusplus
11472      extern "C"
11473 #  endif
11474    int F77_DUMMY_MAIN() { return 1; }
11475 #endif
11476 int
11477 main ()
11478 {
11479 char *p = (char *) alloca (2 * sizeof (int));
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11486   (eval $ac_link) 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); } &&
11490          { ac_try='test -s conftest$ac_exeext'
11491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492   (eval $ac_try) 2>&5
11493   ac_status=$?
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); }; }; then
11496   ac_cv_working_alloca_h=yes
11497 else
11498   echo "$as_me: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11500 ac_cv_working_alloca_h=no
11501 fi
11502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11503 fi
11504 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11505 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11506 if test $ac_cv_working_alloca_h = yes; then
11507
11508 cat >>confdefs.h <<\_ACEOF
11509 #define HAVE_ALLOCA_H 1
11510 _ACEOF
11511
11512 fi
11513
11514 echo "$as_me:$LINENO: checking for alloca" >&5
11515 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11516 if test "${ac_cv_func_alloca_works+set}" = set; then
11517   echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519   cat >conftest.$ac_ext <<_ACEOF
11520 #line $LINENO "configure"
11521 #include "confdefs.h"
11522 #ifdef __GNUC__
11523 # define alloca __builtin_alloca
11524 #else
11525 # ifdef _MSC_VER
11526 #  include <malloc.h>
11527 #  define alloca _alloca
11528 # else
11529 #  if HAVE_ALLOCA_H
11530 #   include <alloca.h>
11531 #  else
11532 #   ifdef _AIX
11533  #pragma alloca
11534 #   else
11535 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11536 char *alloca ();
11537 #    endif
11538 #   endif
11539 #  endif
11540 # endif
11541 #endif
11542
11543 #ifdef F77_DUMMY_MAIN
11544 #  ifdef __cplusplus
11545      extern "C"
11546 #  endif
11547    int F77_DUMMY_MAIN() { return 1; }
11548 #endif
11549 int
11550 main ()
11551 {
11552 char *p = (char *) alloca (1);
11553   ;
11554   return 0;
11555 }
11556 _ACEOF
11557 rm -f conftest.$ac_objext conftest$ac_exeext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11559   (eval $ac_link) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } &&
11563          { ac_try='test -s conftest$ac_exeext'
11564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565   (eval $ac_try) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; }; then
11569   ac_cv_func_alloca_works=yes
11570 else
11571   echo "$as_me: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 ac_cv_func_alloca_works=no
11574 fi
11575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11576 fi
11577 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11578 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11579
11580 if test $ac_cv_func_alloca_works = yes; then
11581
11582 cat >>confdefs.h <<\_ACEOF
11583 #define HAVE_ALLOCA 1
11584 _ACEOF
11585
11586 else
11587   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11588 # that cause trouble.  Some versions do not even contain alloca or
11589 # contain a buggy version.  If you still want to use their alloca,
11590 # use ar to extract alloca.o from them instead of compiling alloca.c.
11591
11592 ALLOCA=alloca.$ac_objext
11593
11594 cat >>confdefs.h <<\_ACEOF
11595 #define C_ALLOCA 1
11596 _ACEOF
11597
11598
11599 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11600 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11601 if test "${ac_cv_os_cray+set}" = set; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   cat >conftest.$ac_ext <<_ACEOF
11605 #line $LINENO "configure"
11606 #include "confdefs.h"
11607 #if defined(CRAY) && ! defined(CRAY2)
11608 webecray
11609 #else
11610 wenotbecray
11611 #endif
11612
11613 _ACEOF
11614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11615   egrep "webecray" >/dev/null 2>&1; then
11616   ac_cv_os_cray=yes
11617 else
11618   ac_cv_os_cray=no
11619 fi
11620 rm -f conftest*
11621
11622 fi
11623 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11624 echo "${ECHO_T}$ac_cv_os_cray" >&6
11625 if test $ac_cv_os_cray = yes; then
11626   for ac_func in _getb67 GETB67 getb67; do
11627     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11628 echo "$as_me:$LINENO: checking for $ac_func" >&5
11629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11630 if eval "test \"\${$as_ac_var+set}\" = set"; then
11631   echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633   cat >conftest.$ac_ext <<_ACEOF
11634 #line $LINENO "configure"
11635 #include "confdefs.h"
11636 /* System header to define __stub macros and hopefully few prototypes,
11637     which can conflict with char $ac_func (); below.  */
11638 #include <assert.h>
11639 /* Override any gcc2 internal prototype to avoid an error.  */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 /* We use char because int might match the return type of a gcc2
11644    builtin and then its argument prototype would still apply.  */
11645 char $ac_func ();
11646 char (*f) ();
11647
11648 #ifdef F77_DUMMY_MAIN
11649 #  ifdef __cplusplus
11650      extern "C"
11651 #  endif
11652    int F77_DUMMY_MAIN() { return 1; }
11653 #endif
11654 int
11655 main ()
11656 {
11657 /* The GNU C library defines this for functions which it implements
11658     to always fail with ENOSYS.  Some functions are actually named
11659     something starting with __ and the normal name is an alias.  */
11660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11661 choke me
11662 #else
11663 f = $ac_func;
11664 #endif
11665
11666   ;
11667   return 0;
11668 }
11669 _ACEOF
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672   (eval $ac_link) 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } &&
11676          { ac_try='test -s conftest$ac_exeext'
11677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678   (eval $ac_try) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); }; }; then
11682   eval "$as_ac_var=yes"
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 cat conftest.$ac_ext >&5
11686 eval "$as_ac_var=no"
11687 fi
11688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11689 fi
11690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11692 if test `eval echo '${'$as_ac_var'}'` = yes; then
11693
11694 cat >>confdefs.h <<_ACEOF
11695 #define CRAY_STACKSEG_END $ac_func
11696 _ACEOF
11697
11698     break
11699 fi
11700
11701   done
11702 fi
11703
11704 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11705 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11706 if test "${ac_cv_c_stack_direction+set}" = set; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709   if test "$cross_compiling" = yes; then
11710   ac_cv_c_stack_direction=0
11711 else
11712   cat >conftest.$ac_ext <<_ACEOF
11713 #line $LINENO "configure"
11714 #include "confdefs.h"
11715 int
11716 find_stack_direction ()
11717 {
11718   static char *addr = 0;
11719   auto char dummy;
11720   if (addr == 0)
11721     {
11722       addr = &dummy;
11723       return find_stack_direction ();
11724     }
11725   else
11726     return (&dummy > addr) ? 1 : -1;
11727 }
11728
11729 int
11730 main ()
11731 {
11732   exit (find_stack_direction () < 0);
11733 }
11734 _ACEOF
11735 rm -f conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737   (eval $ac_link) 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742   (eval $ac_try) 2>&5
11743   ac_status=$?
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); }; }; then
11746   ac_cv_c_stack_direction=1
11747 else
11748   echo "$as_me: program exited with status $ac_status" >&5
11749 echo "$as_me: failed program was:" >&5
11750 cat conftest.$ac_ext >&5
11751 ( exit $ac_status )
11752 ac_cv_c_stack_direction=-1
11753 fi
11754 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11755 fi
11756 fi
11757 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11758 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11759
11760 cat >>confdefs.h <<_ACEOF
11761 #define STACK_DIRECTION $ac_cv_c_stack_direction
11762 _ACEOF
11763
11764
11765 fi
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815 for ac_func in \
11816         __libc_fork \
11817         _lwp_create \
11818         _pclose \
11819         _popen \
11820         _snprintf \
11821         _stricmp \
11822         _strnicmp \
11823         chsize \
11824         clone \
11825         ecvt \
11826         finite \
11827         fpclass \
11828         ftruncate \
11829         ftruncate64 \
11830         getnetbyaddr \
11831         getnetbyname \
11832         getpagesize \
11833         getprotobyname \
11834         getprotobynumber \
11835         getpwuid \
11836         getservbyport \
11837         getsockopt \
11838         inet_network \
11839         lseek64 \
11840         lstat \
11841         memmove \
11842         mkstemp \
11843         mmap \
11844         pclose \
11845         popen \
11846         pread \
11847         pwrite \
11848         rfork \
11849         select \
11850         sendmsg \
11851         settimeofday \
11852         sigaltstack \
11853         snprintf \
11854         statfs \
11855         strcasecmp \
11856         strerror \
11857         strncasecmp \
11858         tcgetattr \
11859         timegm \
11860         usleep \
11861         vfscanf \
11862         wait4 \
11863         waitpid \
11864
11865 do
11866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11867 echo "$as_me:$LINENO: checking for $ac_func" >&5
11868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11869 if eval "test \"\${$as_ac_var+set}\" = set"; then
11870   echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872   cat >conftest.$ac_ext <<_ACEOF
11873 #line $LINENO "configure"
11874 #include "confdefs.h"
11875 /* System header to define __stub macros and hopefully few prototypes,
11876     which can conflict with char $ac_func (); below.  */
11877 #include <assert.h>
11878 /* Override any gcc2 internal prototype to avoid an error.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 /* We use char because int might match the return type of a gcc2
11883    builtin and then its argument prototype would still apply.  */
11884 char $ac_func ();
11885 char (*f) ();
11886
11887 #ifdef F77_DUMMY_MAIN
11888 #  ifdef __cplusplus
11889      extern "C"
11890 #  endif
11891    int F77_DUMMY_MAIN() { return 1; }
11892 #endif
11893 int
11894 main ()
11895 {
11896 /* The GNU C library defines this for functions which it implements
11897     to always fail with ENOSYS.  Some functions are actually named
11898     something starting with __ and the normal name is an alias.  */
11899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11900 choke me
11901 #else
11902 f = $ac_func;
11903 #endif
11904
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11911   (eval $ac_link) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); } &&
11915          { ac_try='test -s conftest$ac_exeext'
11916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917   (eval $ac_try) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; }; then
11921   eval "$as_ac_var=yes"
11922 else
11923   echo "$as_me: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11925 eval "$as_ac_var=no"
11926 fi
11927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11928 fi
11929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11931 if test `eval echo '${'$as_ac_var'}'` = yes; then
11932   cat >>confdefs.h <<_ACEOF
11933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11934 _ACEOF
11935
11936 fi
11937 done
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009 for ac_header in \
12010         arpa/inet.h \
12011         arpa/nameser.h \
12012         direct.h \
12013         elf.h \
12014         float.h \
12015         ieeefp.h \
12016         io.h \
12017         libaudioio.h \
12018         libio.h \
12019         libutil.h \
12020         link.h \
12021         linux/cdrom.h \
12022         linux/hdreg.h \
12023         linux/input.h \
12024         linux/joystick.h \
12025         linux/major.h \
12026         linux/param.h \
12027         linux/serial.h \
12028         linux/ucdrom.h \
12029         netdb.h \
12030         netinet/in.h \
12031         netinet/in_systm.h \
12032         netinet/tcp.h \
12033         pty.h \
12034         pwd.h \
12035         sched.h \
12036         scsi/sg.h \
12037         socket.h \
12038         stdint.h \
12039         strings.h \
12040         sys/cdio.h \
12041         sys/errno.h \
12042         sys/file.h \
12043         sys/filio.h \
12044         sys/inttypes.h \
12045         sys/ioctl.h \
12046         sys/ipc.h \
12047         sys/link.h \
12048         sys/lwp.h \
12049         sys/mman.h \
12050         sys/modem.h \
12051         sys/mount.h \
12052         sys/msg.h \
12053         sys/param.h \
12054         sys/poll.h \
12055         sys/ptrace.h \
12056         sys/reg.h \
12057         sys/shm.h \
12058         sys/signal.h \
12059         sys/socket.h \
12060         sys/sockio.h \
12061         sys/statfs.h \
12062         sys/strtio.h \
12063         sys/syscall.h \
12064         sys/sysctl.h \
12065         sys/time.h \
12066         sys/times.h \
12067         sys/user.h \
12068         sys/v86.h \
12069         sys/v86intr.h \
12070         sys/vfs.h \
12071         sys/vm86.h \
12072         sys/wait.h \
12073         syscall.h \
12074         termios.h \
12075         ucontext.h \
12076         unistd.h \
12077         utime.h \
12078
12079 do
12080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12082   echo "$as_me:$LINENO: checking for $ac_header" >&5
12083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 fi
12087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12089 else
12090   # Is the header compilable?
12091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12093 cat >conftest.$ac_ext <<_ACEOF
12094 #line $LINENO "configure"
12095 #include "confdefs.h"
12096 $ac_includes_default
12097 #include <$ac_header>
12098 _ACEOF
12099 rm -f conftest.$ac_objext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101   (eval $ac_compile) 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -s conftest.$ac_objext'
12106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107   (eval $ac_try) 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; }; then
12111   ac_header_compiler=yes
12112 else
12113   echo "$as_me: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12115 ac_header_compiler=no
12116 fi
12117 rm -f conftest.$ac_objext conftest.$ac_ext
12118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12119 echo "${ECHO_T}$ac_header_compiler" >&6
12120
12121 # Is the header present?
12122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12124 cat >conftest.$ac_ext <<_ACEOF
12125 #line $LINENO "configure"
12126 #include "confdefs.h"
12127 #include <$ac_header>
12128 _ACEOF
12129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12131   ac_status=$?
12132   egrep -v '^ *\+' conftest.er1 >conftest.err
12133   rm -f conftest.er1
12134   cat conftest.err >&5
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } >/dev/null; then
12137   if test -s conftest.err; then
12138     ac_cpp_err=$ac_c_preproc_warn_flag
12139   else
12140     ac_cpp_err=
12141   fi
12142 else
12143   ac_cpp_err=yes
12144 fi
12145 if test -z "$ac_cpp_err"; then
12146   ac_header_preproc=yes
12147 else
12148   echo "$as_me: failed program was:" >&5
12149   cat conftest.$ac_ext >&5
12150   ac_header_preproc=no
12151 fi
12152 rm -f conftest.err conftest.$ac_ext
12153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12154 echo "${ECHO_T}$ac_header_preproc" >&6
12155
12156 # So?  What about this header?
12157 case $ac_header_compiler:$ac_header_preproc in
12158   yes:no )
12159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12163   no:yes )
12164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12166     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12170 esac
12171 echo "$as_me:$LINENO: checking for $ac_header" >&5
12172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12174   echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176   eval "$as_ac_Header=$ac_header_preproc"
12177 fi
12178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12180
12181 fi
12182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12183   cat >>confdefs.h <<_ACEOF
12184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12185 _ACEOF
12186
12187 fi
12188
12189 done
12190
12191 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12192 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12193 if test "${ac_cv_header_stat_broken+set}" = set; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196   cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12198 #include "confdefs.h"
12199 #include <sys/types.h>
12200 #include <sys/stat.h>
12201
12202 #if defined(S_ISBLK) && defined(S_IFDIR)
12203 # if S_ISBLK (S_IFDIR)
12204 You lose.
12205 # endif
12206 #endif
12207
12208 #if defined(S_ISBLK) && defined(S_IFCHR)
12209 # if S_ISBLK (S_IFCHR)
12210 You lose.
12211 # endif
12212 #endif
12213
12214 #if defined(S_ISLNK) && defined(S_IFREG)
12215 # if S_ISLNK (S_IFREG)
12216 You lose.
12217 # endif
12218 #endif
12219
12220 #if defined(S_ISSOCK) && defined(S_IFREG)
12221 # if S_ISSOCK (S_IFREG)
12222 You lose.
12223 # endif
12224 #endif
12225
12226 _ACEOF
12227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12228   egrep "You lose" >/dev/null 2>&1; then
12229   ac_cv_header_stat_broken=yes
12230 else
12231   ac_cv_header_stat_broken=no
12232 fi
12233 rm -f conftest*
12234
12235 fi
12236 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12237 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12238 if test $ac_cv_header_stat_broken = yes; then
12239
12240 cat >>confdefs.h <<\_ACEOF
12241 #define STAT_MACROS_BROKEN 1
12242 _ACEOF
12243
12244 fi
12245
12246
12247
12248 for ac_header in net/if.h
12249 do
12250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12251 echo "$as_me:$LINENO: checking for $ac_header" >&5
12252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12254   echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256   cat >conftest.$ac_ext <<_ACEOF
12257 #line $LINENO "configure"
12258 #include "confdefs.h"
12259 #if HAVE_SYS_TYPES_H
12260      # include <sys/types.h>
12261      #endif
12262      #if HAVE_SYS_SOCKET_H
12263      # include <sys/socket.h>
12264      #endif
12265
12266 #include <$ac_header>
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270   (eval $ac_compile) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } &&
12274          { ac_try='test -s conftest.$ac_objext'
12275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276   (eval $ac_try) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280   eval "$as_ac_Header=yes"
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 eval "$as_ac_Header=no"
12285 fi
12286 rm -f conftest.$ac_objext conftest.$ac_ext
12287 fi
12288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12291   cat >>confdefs.h <<_ACEOF
12292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12293 _ACEOF
12294
12295 fi
12296
12297 done
12298
12299
12300
12301 for ac_header in netinet/ip.h
12302 do
12303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12304 echo "$as_me:$LINENO: checking for $ac_header" >&5
12305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12307   echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309   cat >conftest.$ac_ext <<_ACEOF
12310 #line $LINENO "configure"
12311 #include "confdefs.h"
12312 #if HAVE_SYS_SOCKET_H
12313      # include <sys/socket.h>
12314      #endif
12315      #if HAVE_NETINET_IN_SYSTM_H
12316      # include <netinet/in_systm.h>
12317      #endif
12318
12319 #include <$ac_header>
12320 _ACEOF
12321 rm -f conftest.$ac_objext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12323   (eval $ac_compile) 2>&5
12324   ac_status=$?
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); } &&
12327          { ac_try='test -s conftest.$ac_objext'
12328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329   (eval $ac_try) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; }; then
12333   eval "$as_ac_Header=yes"
12334 else
12335   echo "$as_me: failed program was:" >&5
12336 cat conftest.$ac_ext >&5
12337 eval "$as_ac_Header=no"
12338 fi
12339 rm -f conftest.$ac_objext conftest.$ac_ext
12340 fi
12341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12344   cat >>confdefs.h <<_ACEOF
12345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12346 _ACEOF
12347
12348 fi
12349
12350 done
12351
12352
12353
12354 for ac_header in resolv.h
12355 do
12356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12357 echo "$as_me:$LINENO: checking for $ac_header" >&5
12358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   cat >conftest.$ac_ext <<_ACEOF
12363 #line $LINENO "configure"
12364 #include "confdefs.h"
12365 #if HAVE_SYS_SOCKET_H
12366      # include <sys/socket.h>
12367      #endif
12368
12369 #include <$ac_header>
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373   (eval $ac_compile) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); } &&
12377          { ac_try='test -s conftest.$ac_objext'
12378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379   (eval $ac_try) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); }; }; then
12383   eval "$as_ac_Header=yes"
12384 else
12385   echo "$as_me: failed program was:" >&5
12386 cat conftest.$ac_ext >&5
12387 eval "$as_ac_Header=no"
12388 fi
12389 rm -f conftest.$ac_objext conftest.$ac_ext
12390 fi
12391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12394   cat >>confdefs.h <<_ACEOF
12395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12396 _ACEOF
12397
12398 fi
12399
12400 done
12401
12402
12403
12404 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12405 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12406 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409   ac_cv_prog_cc_stdc=no
12410 ac_save_CC=$CC
12411 cat >conftest.$ac_ext <<_ACEOF
12412 #line $LINENO "configure"
12413 #include "confdefs.h"
12414 #include <stdarg.h>
12415 #include <stdio.h>
12416 #include <sys/types.h>
12417 #include <sys/stat.h>
12418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12419 struct buf { int x; };
12420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12421 static char *e (p, i)
12422      char **p;
12423      int i;
12424 {
12425   return p[i];
12426 }
12427 static char *f (char * (*g) (char **, int), char **p, ...)
12428 {
12429   char *s;
12430   va_list v;
12431   va_start (v,p);
12432   s = g (p, va_arg (v,int));
12433   va_end (v);
12434   return s;
12435 }
12436 int test (int i, double x);
12437 struct s1 {int (*f) (int a);};
12438 struct s2 {int (*f) (double a);};
12439 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12440 int argc;
12441 char **argv;
12442 #ifdef F77_DUMMY_MAIN
12443 #  ifdef __cplusplus
12444      extern "C"
12445 #  endif
12446    int F77_DUMMY_MAIN() { return 1; }
12447 #endif
12448 int
12449 main ()
12450 {
12451 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 # Don't try gcc -ansi; that turns off useful extensions and
12457 # breaks some systems' header files.
12458 # AIX                   -qlanglvl=ansi
12459 # Ultrix and OSF/1      -std1
12460 # HP-UX 10.20 and later -Ae
12461 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12462 # SVR4                  -Xc -D__EXTENSIONS__
12463 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12464 do
12465   CC="$ac_save_CC $ac_arg"
12466   rm -f conftest.$ac_objext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12468   (eval $ac_compile) 2>&5
12469   ac_status=$?
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); } &&
12472          { ac_try='test -s conftest.$ac_objext'
12473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474   (eval $ac_try) 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); }; }; then
12478   ac_cv_prog_cc_stdc=$ac_arg
12479 break
12480 else
12481   echo "$as_me: failed program was:" >&5
12482 cat conftest.$ac_ext >&5
12483 fi
12484 rm -f conftest.$ac_objext
12485 done
12486 rm -f conftest.$ac_ext conftest.$ac_objext
12487 CC=$ac_save_CC
12488
12489 fi
12490
12491 case "x$ac_cv_prog_cc_stdc" in
12492   x|xno)
12493     echo "$as_me:$LINENO: result: none needed" >&5
12494 echo "${ECHO_T}none needed" >&6 ;;
12495   *)
12496     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12497 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12498     CC="$CC $ac_cv_prog_cc_stdc" ;;
12499 esac
12500
12501 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12502 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12503 if test "${ac_cv_c_const+set}" = set; then
12504   echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506   cat >conftest.$ac_ext <<_ACEOF
12507 #line $LINENO "configure"
12508 #include "confdefs.h"
12509
12510 #ifdef F77_DUMMY_MAIN
12511 #  ifdef __cplusplus
12512      extern "C"
12513 #  endif
12514    int F77_DUMMY_MAIN() { return 1; }
12515 #endif
12516 int
12517 main ()
12518 {
12519 /* FIXME: Include the comments suggested by Paul. */
12520 #ifndef __cplusplus
12521   /* Ultrix mips cc rejects this.  */
12522   typedef int charset[2];
12523   const charset x;
12524   /* SunOS 4.1.1 cc rejects this.  */
12525   char const *const *ccp;
12526   char **p;
12527   /* NEC SVR4.0.2 mips cc rejects this.  */
12528   struct point {int x, y;};
12529   static struct point const zero = {0,0};
12530   /* AIX XL C 1.02.0.0 rejects this.
12531      It does not let you subtract one const X* pointer from another in
12532      an arm of an if-expression whose if-part is not a constant
12533      expression */
12534   const char *g = "string";
12535   ccp = &g + (g ? g-g : 0);
12536   /* HPUX 7.0 cc rejects these. */
12537   ++ccp;
12538   p = (char**) ccp;
12539   ccp = (char const *const *) p;
12540   { /* SCO 3.2v4 cc rejects this.  */
12541     char *t;
12542     char const *s = 0 ? (char *) 0 : (char const *) 0;
12543
12544     *t++ = 0;
12545   }
12546   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12547     int x[] = {25, 17};
12548     const int *foo = &x[0];
12549     ++foo;
12550   }
12551   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12552     typedef const int *iptr;
12553     iptr p = 0;
12554     ++p;
12555   }
12556   { /* AIX XL C 1.02.0.0 rejects this saying
12557        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12558     struct s { int j; const int *ap[3]; };
12559     struct s *b; b->j = 5;
12560   }
12561   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12562     const int foo = 10;
12563   }
12564 #endif
12565
12566   ;
12567   return 0;
12568 }
12569 _ACEOF
12570 rm -f conftest.$ac_objext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572   (eval $ac_compile) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); } &&
12576          { ac_try='test -s conftest.$ac_objext'
12577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578   (eval $ac_try) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); }; }; then
12582   ac_cv_c_const=yes
12583 else
12584   echo "$as_me: failed program was:" >&5
12585 cat conftest.$ac_ext >&5
12586 ac_cv_c_const=no
12587 fi
12588 rm -f conftest.$ac_objext conftest.$ac_ext
12589 fi
12590 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12591 echo "${ECHO_T}$ac_cv_c_const" >&6
12592 if test $ac_cv_c_const = no; then
12593
12594 cat >>confdefs.h <<\_ACEOF
12595 #define const
12596 _ACEOF
12597
12598 fi
12599
12600 echo "$as_me:$LINENO: checking for inline" >&5
12601 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12602 if test "${ac_cv_c_inline+set}" = set; then
12603   echo $ECHO_N "(cached) $ECHO_C" >&6
12604 else
12605   ac_cv_c_inline=no
12606 for ac_kw in inline __inline__ __inline; do
12607   cat >conftest.$ac_ext <<_ACEOF
12608 #line $LINENO "configure"
12609 #include "confdefs.h"
12610 #ifndef __cplusplus
12611 static $ac_kw int static_foo () {return 0; }
12612 $ac_kw int foo () {return 0; }
12613 #endif
12614
12615 _ACEOF
12616 rm -f conftest.$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618   (eval $ac_compile) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); } &&
12622          { ac_try='test -s conftest.$ac_objext'
12623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624   (eval $ac_try) 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); }; }; then
12628   ac_cv_c_inline=$ac_kw; break
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 cat conftest.$ac_ext >&5
12632 fi
12633 rm -f conftest.$ac_objext conftest.$ac_ext
12634 done
12635
12636 fi
12637 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12638 echo "${ECHO_T}$ac_cv_c_inline" >&6
12639 case $ac_cv_c_inline in
12640   inline | yes) ;;
12641   no)
12642 cat >>confdefs.h <<\_ACEOF
12643 #define inline
12644 _ACEOF
12645  ;;
12646   *)  cat >>confdefs.h <<_ACEOF
12647 #define inline $ac_cv_c_inline
12648 _ACEOF
12649  ;;
12650 esac
12651
12652 echo "$as_me:$LINENO: checking for mode_t" >&5
12653 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12654 if test "${ac_cv_type_mode_t+set}" = set; then
12655   echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657   cat >conftest.$ac_ext <<_ACEOF
12658 #line $LINENO "configure"
12659 #include "confdefs.h"
12660 $ac_includes_default
12661 #ifdef F77_DUMMY_MAIN
12662 #  ifdef __cplusplus
12663      extern "C"
12664 #  endif
12665    int F77_DUMMY_MAIN() { return 1; }
12666 #endif
12667 int
12668 main ()
12669 {
12670 if ((mode_t *) 0)
12671   return 0;
12672 if (sizeof (mode_t))
12673   return 0;
12674   ;
12675   return 0;
12676 }
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680   (eval $ac_compile) 2>&5
12681   ac_status=$?
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } &&
12684          { ac_try='test -s conftest.$ac_objext'
12685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686   (eval $ac_try) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; }; then
12690   ac_cv_type_mode_t=yes
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 cat conftest.$ac_ext >&5
12694 ac_cv_type_mode_t=no
12695 fi
12696 rm -f conftest.$ac_objext conftest.$ac_ext
12697 fi
12698 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12699 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12700 if test $ac_cv_type_mode_t = yes; then
12701
12702 cat >>confdefs.h <<_ACEOF
12703 #define HAVE_MODE_T 1
12704 _ACEOF
12705
12706
12707 fi
12708 echo "$as_me:$LINENO: checking for off_t" >&5
12709 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12710 if test "${ac_cv_type_off_t+set}" = set; then
12711   echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713   cat >conftest.$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12715 #include "confdefs.h"
12716 $ac_includes_default
12717 #ifdef F77_DUMMY_MAIN
12718 #  ifdef __cplusplus
12719      extern "C"
12720 #  endif
12721    int F77_DUMMY_MAIN() { return 1; }
12722 #endif
12723 int
12724 main ()
12725 {
12726 if ((off_t *) 0)
12727   return 0;
12728 if (sizeof (off_t))
12729   return 0;
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 rm -f conftest.$ac_objext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12736   (eval $ac_compile) 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); } &&
12740          { ac_try='test -s conftest.$ac_objext'
12741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742   (eval $ac_try) 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); }; }; then
12746   ac_cv_type_off_t=yes
12747 else
12748   echo "$as_me: failed program was:" >&5
12749 cat conftest.$ac_ext >&5
12750 ac_cv_type_off_t=no
12751 fi
12752 rm -f conftest.$ac_objext conftest.$ac_ext
12753 fi
12754 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12755 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12756 if test $ac_cv_type_off_t = yes; then
12757
12758 cat >>confdefs.h <<_ACEOF
12759 #define HAVE_OFF_T 1
12760 _ACEOF
12761
12762
12763 fi
12764 echo "$as_me:$LINENO: checking for pid_t" >&5
12765 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12766 if test "${ac_cv_type_pid_t+set}" = set; then
12767   echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769   cat >conftest.$ac_ext <<_ACEOF
12770 #line $LINENO "configure"
12771 #include "confdefs.h"
12772 $ac_includes_default
12773 #ifdef F77_DUMMY_MAIN
12774 #  ifdef __cplusplus
12775      extern "C"
12776 #  endif
12777    int F77_DUMMY_MAIN() { return 1; }
12778 #endif
12779 int
12780 main ()
12781 {
12782 if ((pid_t *) 0)
12783   return 0;
12784 if (sizeof (pid_t))
12785   return 0;
12786   ;
12787   return 0;
12788 }
12789 _ACEOF
12790 rm -f conftest.$ac_objext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12792   (eval $ac_compile) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } &&
12796          { ac_try='test -s conftest.$ac_objext'
12797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798   (eval $ac_try) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; }; then
12802   ac_cv_type_pid_t=yes
12803 else
12804   echo "$as_me: failed program was:" >&5
12805 cat conftest.$ac_ext >&5
12806 ac_cv_type_pid_t=no
12807 fi
12808 rm -f conftest.$ac_objext conftest.$ac_ext
12809 fi
12810 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12811 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12812 if test $ac_cv_type_pid_t = yes; then
12813
12814 cat >>confdefs.h <<_ACEOF
12815 #define HAVE_PID_T 1
12816 _ACEOF
12817
12818
12819 fi
12820 echo "$as_me:$LINENO: checking for size_t" >&5
12821 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12822 if test "${ac_cv_type_size_t+set}" = set; then
12823   echo $ECHO_N "(cached) $ECHO_C" >&6
12824 else
12825   cat >conftest.$ac_ext <<_ACEOF
12826 #line $LINENO "configure"
12827 #include "confdefs.h"
12828 $ac_includes_default
12829 #ifdef F77_DUMMY_MAIN
12830 #  ifdef __cplusplus
12831      extern "C"
12832 #  endif
12833    int F77_DUMMY_MAIN() { return 1; }
12834 #endif
12835 int
12836 main ()
12837 {
12838 if ((size_t *) 0)
12839   return 0;
12840 if (sizeof (size_t))
12841   return 0;
12842   ;
12843   return 0;
12844 }
12845 _ACEOF
12846 rm -f conftest.$ac_objext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12848   (eval $ac_compile) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } &&
12852          { ac_try='test -s conftest.$ac_objext'
12853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854   (eval $ac_try) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; }; then
12858   ac_cv_type_size_t=yes
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12862 ac_cv_type_size_t=no
12863 fi
12864 rm -f conftest.$ac_objext conftest.$ac_ext
12865 fi
12866 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12867 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12868 if test $ac_cv_type_size_t = yes; then
12869
12870 cat >>confdefs.h <<_ACEOF
12871 #define HAVE_SIZE_T 1
12872 _ACEOF
12873
12874
12875 fi
12876 echo "$as_me:$LINENO: checking for ssize_t" >&5
12877 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12878 if test "${ac_cv_type_ssize_t+set}" = set; then
12879   echo $ECHO_N "(cached) $ECHO_C" >&6
12880 else
12881   cat >conftest.$ac_ext <<_ACEOF
12882 #line $LINENO "configure"
12883 #include "confdefs.h"
12884 $ac_includes_default
12885 #ifdef F77_DUMMY_MAIN
12886 #  ifdef __cplusplus
12887      extern "C"
12888 #  endif
12889    int F77_DUMMY_MAIN() { return 1; }
12890 #endif
12891 int
12892 main ()
12893 {
12894 if ((ssize_t *) 0)
12895   return 0;
12896 if (sizeof (ssize_t))
12897   return 0;
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 rm -f conftest.$ac_objext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904   (eval $ac_compile) 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } &&
12908          { ac_try='test -s conftest.$ac_objext'
12909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910   (eval $ac_try) 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   ac_cv_type_ssize_t=yes
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12918 ac_cv_type_ssize_t=no
12919 fi
12920 rm -f conftest.$ac_objext conftest.$ac_ext
12921 fi
12922 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12923 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12924 if test $ac_cv_type_ssize_t = yes; then
12925
12926 cat >>confdefs.h <<_ACEOF
12927 #define HAVE_SSIZE_T 1
12928 _ACEOF
12929
12930
12931 fi
12932
12933 echo "$as_me:$LINENO: checking for long long" >&5
12934 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12935 if test "${ac_cv_type_long_long+set}" = set; then
12936   echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938   cat >conftest.$ac_ext <<_ACEOF
12939 #line $LINENO "configure"
12940 #include "confdefs.h"
12941 $ac_includes_default
12942 #ifdef F77_DUMMY_MAIN
12943 #  ifdef __cplusplus
12944      extern "C"
12945 #  endif
12946    int F77_DUMMY_MAIN() { return 1; }
12947 #endif
12948 int
12949 main ()
12950 {
12951 if ((long long *) 0)
12952   return 0;
12953 if (sizeof (long long))
12954   return 0;
12955   ;
12956   return 0;
12957 }
12958 _ACEOF
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961   (eval $ac_compile) 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } &&
12965          { ac_try='test -s conftest.$ac_objext'
12966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967   (eval $ac_try) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }; }; then
12971   ac_cv_type_long_long=yes
12972 else
12973   echo "$as_me: failed program was:" >&5
12974 cat conftest.$ac_ext >&5
12975 ac_cv_type_long_long=no
12976 fi
12977 rm -f conftest.$ac_objext conftest.$ac_ext
12978 fi
12979 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12980 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12981
12982 echo "$as_me:$LINENO: checking size of long long" >&5
12983 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12984 if test "${ac_cv_sizeof_long_long+set}" = set; then
12985   echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987   if test "$ac_cv_type_long_long" = yes; then
12988   # The cast to unsigned long works around a bug in the HP C Compiler
12989   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12990   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12991   # This bug is HP SR number 8606223364.
12992   if test "$cross_compiling" = yes; then
12993   # Depending upon the size, compute the lo and hi bounds.
12994 cat >conftest.$ac_ext <<_ACEOF
12995 #line $LINENO "configure"
12996 #include "confdefs.h"
12997 $ac_includes_default
12998 #ifdef F77_DUMMY_MAIN
12999 #  ifdef __cplusplus
13000      extern "C"
13001 #  endif
13002    int F77_DUMMY_MAIN() { return 1; }
13003 #endif
13004 int
13005 main ()
13006 {
13007 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13008 test_array [0] = 0
13009
13010   ;
13011   return 0;
13012 }
13013 _ACEOF
13014 rm -f conftest.$ac_objext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13016   (eval $ac_compile) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); } &&
13020          { ac_try='test -s conftest.$ac_objext'
13021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022   (eval $ac_try) 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; }; then
13026   ac_lo=0 ac_mid=0
13027   while :; do
13028     cat >conftest.$ac_ext <<_ACEOF
13029 #line $LINENO "configure"
13030 #include "confdefs.h"
13031 $ac_includes_default
13032 #ifdef F77_DUMMY_MAIN
13033 #  ifdef __cplusplus
13034      extern "C"
13035 #  endif
13036    int F77_DUMMY_MAIN() { return 1; }
13037 #endif
13038 int
13039 main ()
13040 {
13041 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13042 test_array [0] = 0
13043
13044   ;
13045   return 0;
13046 }
13047 _ACEOF
13048 rm -f conftest.$ac_objext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13050   (eval $ac_compile) 2>&5
13051   ac_status=$?
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); } &&
13054          { ac_try='test -s conftest.$ac_objext'
13055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056   (eval $ac_try) 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); }; }; then
13060   ac_hi=$ac_mid; break
13061 else
13062   echo "$as_me: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13064 ac_lo=`expr $ac_mid + 1`
13065                     if test $ac_lo -le $ac_mid; then
13066                       ac_lo= ac_hi=
13067                       break
13068                     fi
13069                     ac_mid=`expr 2 '*' $ac_mid + 1`
13070 fi
13071 rm -f conftest.$ac_objext conftest.$ac_ext
13072   done
13073 else
13074   echo "$as_me: failed program was:" >&5
13075 cat conftest.$ac_ext >&5
13076 cat >conftest.$ac_ext <<_ACEOF
13077 #line $LINENO "configure"
13078 #include "confdefs.h"
13079 $ac_includes_default
13080 #ifdef F77_DUMMY_MAIN
13081 #  ifdef __cplusplus
13082      extern "C"
13083 #  endif
13084    int F77_DUMMY_MAIN() { return 1; }
13085 #endif
13086 int
13087 main ()
13088 {
13089 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13090 test_array [0] = 0
13091
13092   ;
13093   return 0;
13094 }
13095 _ACEOF
13096 rm -f conftest.$ac_objext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13098   (eval $ac_compile) 2>&5
13099   ac_status=$?
13100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101   (exit $ac_status); } &&
13102          { ac_try='test -s conftest.$ac_objext'
13103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104   (eval $ac_try) 2>&5
13105   ac_status=$?
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); }; }; then
13108   ac_hi=-1 ac_mid=-1
13109   while :; do
13110     cat >conftest.$ac_ext <<_ACEOF
13111 #line $LINENO "configure"
13112 #include "confdefs.h"
13113 $ac_includes_default
13114 #ifdef F77_DUMMY_MAIN
13115 #  ifdef __cplusplus
13116      extern "C"
13117 #  endif
13118    int F77_DUMMY_MAIN() { return 1; }
13119 #endif
13120 int
13121 main ()
13122 {
13123 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13124 test_array [0] = 0
13125
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 rm -f conftest.$ac_objext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132   (eval $ac_compile) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); } &&
13136          { ac_try='test -s conftest.$ac_objext'
13137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138   (eval $ac_try) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; }; then
13142   ac_lo=$ac_mid; break
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 cat conftest.$ac_ext >&5
13146 ac_hi=`expr '(' $ac_mid ')' - 1`
13147                        if test $ac_mid -le $ac_hi; then
13148                          ac_lo= ac_hi=
13149                          break
13150                        fi
13151                        ac_mid=`expr 2 '*' $ac_mid`
13152 fi
13153 rm -f conftest.$ac_objext conftest.$ac_ext
13154   done
13155 else
13156   echo "$as_me: failed program was:" >&5
13157 cat conftest.$ac_ext >&5
13158 ac_lo= ac_hi=
13159 fi
13160 rm -f conftest.$ac_objext conftest.$ac_ext
13161 fi
13162 rm -f conftest.$ac_objext conftest.$ac_ext
13163 # Binary search between lo and hi bounds.
13164 while test "x$ac_lo" != "x$ac_hi"; do
13165   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13166   cat >conftest.$ac_ext <<_ACEOF
13167 #line $LINENO "configure"
13168 #include "confdefs.h"
13169 $ac_includes_default
13170 #ifdef F77_DUMMY_MAIN
13171 #  ifdef __cplusplus
13172      extern "C"
13173 #  endif
13174    int F77_DUMMY_MAIN() { return 1; }
13175 #endif
13176 int
13177 main ()
13178 {
13179 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13180 test_array [0] = 0
13181
13182   ;
13183   return 0;
13184 }
13185 _ACEOF
13186 rm -f conftest.$ac_objext
13187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188   (eval $ac_compile) 2>&5
13189   ac_status=$?
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); } &&
13192          { ac_try='test -s conftest.$ac_objext'
13193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194   (eval $ac_try) 2>&5
13195   ac_status=$?
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); }; }; then
13198   ac_hi=$ac_mid
13199 else
13200   echo "$as_me: failed program was:" >&5
13201 cat conftest.$ac_ext >&5
13202 ac_lo=`expr '(' $ac_mid ')' + 1`
13203 fi
13204 rm -f conftest.$ac_objext conftest.$ac_ext
13205 done
13206 case $ac_lo in
13207 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13208 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13209 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13210    { (exit 1); exit 1; }; } ;;
13211 esac
13212 else
13213   if test "$cross_compiling" = yes; then
13214   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13215 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13216    { (exit 1); exit 1; }; }
13217 else
13218   cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13220 #include "confdefs.h"
13221 $ac_includes_default
13222 long longval () { return (long) (sizeof (long long)); }
13223 unsigned long ulongval () { return (long) (sizeof (long long)); }
13224 #include <stdio.h>
13225 #include <stdlib.h>
13226 #ifdef F77_DUMMY_MAIN
13227 #  ifdef __cplusplus
13228      extern "C"
13229 #  endif
13230    int F77_DUMMY_MAIN() { return 1; }
13231 #endif
13232 int
13233 main ()
13234 {
13235
13236   FILE *f = fopen ("conftest.val", "w");
13237   if (! f)
13238     exit (1);
13239   if (((long) (sizeof (long long))) < 0)
13240     {
13241       long i = longval ();
13242       if (i != ((long) (sizeof (long long))))
13243         exit (1);
13244       fprintf (f, "%ld\n", i);
13245     }
13246   else
13247     {
13248       unsigned long i = ulongval ();
13249       if (i != ((long) (sizeof (long long))))
13250         exit (1);
13251       fprintf (f, "%lu\n", i);
13252     }
13253   exit (ferror (f) || fclose (f) != 0);
13254
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 rm -f conftest$ac_exeext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261   (eval $ac_link) 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266   (eval $ac_try) 2>&5
13267   ac_status=$?
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); }; }; then
13270   ac_cv_sizeof_long_long=`cat conftest.val`
13271 else
13272   echo "$as_me: program exited with status $ac_status" >&5
13273 echo "$as_me: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13275 ( exit $ac_status )
13276 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13277 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13278    { (exit 1); exit 1; }; }
13279 fi
13280 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13281 fi
13282 fi
13283 rm -f conftest.val
13284 else
13285   ac_cv_sizeof_long_long=0
13286 fi
13287 fi
13288 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13289 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13290 cat >>confdefs.h <<_ACEOF
13291 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13292 _ACEOF
13293
13294
13295
13296 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
13297 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
13298 if test "${wine_cv_linux_input_h+set}" = set; then
13299   echo $ECHO_N "(cached) $ECHO_C" >&6
13300 else
13301   cat >conftest.$ac_ext <<_ACEOF
13302 #line $LINENO "configure"
13303 #include "confdefs.h"
13304
13305             #include <linux/input.h>
13306
13307 #ifdef F77_DUMMY_MAIN
13308 #  ifdef __cplusplus
13309      extern "C"
13310 #  endif
13311    int F77_DUMMY_MAIN() { return 1; }
13312 #endif
13313 int
13314 main ()
13315 {
13316
13317             int foo = EVIOCGBIT(EV_ABS,42);
13318             int bar = BTN_PINKIE;
13319             int fortytwo = 42;
13320
13321   ;
13322   return 0;
13323 }
13324 _ACEOF
13325 rm -f conftest.$ac_objext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13327   (eval $ac_compile) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } &&
13331          { ac_try='test -s conftest.$ac_objext'
13332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333   (eval $ac_try) 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; }; then
13337   wine_cv_linux_input_h=yes
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 cat conftest.$ac_ext >&5
13341 wine_cv_linux_input_h=no
13342 fi
13343 rm -f conftest.$ac_objext conftest.$ac_ext
13344
13345 fi
13346 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
13347 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
13348     if test "$wine_cv_linux_input_h" = "yes"
13349     then
13350
13351 cat >>confdefs.h <<\_ACEOF
13352 #define HAVE_CORRECT_LINUXINPUT_H 1
13353 _ACEOF
13354
13355     fi
13356
13357
13358 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13359 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
13360 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   cat >conftest.$ac_ext <<_ACEOF
13364 #line $LINENO "configure"
13365 #include "confdefs.h"
13366
13367 #include <netdb.h>
13368
13369 #ifdef F77_DUMMY_MAIN
13370 #  ifdef __cplusplus
13371      extern "C"
13372 #  endif
13373    int F77_DUMMY_MAIN() { return 1; }
13374 #endif
13375 int
13376 main ()
13377 {
13378
13379     char *name=NULL;
13380     struct hostent he;
13381     struct hostent *result;
13382     char *buf=NULL;
13383     int bufsize=0;
13384     int res,errnr;
13385     char *addr=NULL;
13386     int addrlen=0;
13387     int addrtype=0;
13388     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13389     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13390
13391   ;
13392   return 0;
13393 }
13394 _ACEOF
13395 rm -f conftest.$ac_objext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397   (eval $ac_compile) 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } &&
13401          { ac_try='test -s conftest.$ac_objext'
13402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403   (eval $ac_try) 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; }; then
13407   wine_cv_linux_gethostbyname_r_6=yes
13408 else
13409   echo "$as_me: failed program was:" >&5
13410 cat conftest.$ac_ext >&5
13411 wine_cv_linux_gethostbyname_r_6=no
13412
13413 fi
13414 rm -f conftest.$ac_objext conftest.$ac_ext
13415
13416 fi
13417 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
13418 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
13419    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13420    then
13421
13422 cat >>confdefs.h <<\_ACEOF
13423 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
13424 _ACEOF
13425
13426    fi
13427
13428 if test "$ac_cv_header_linux_joystick_h" = "yes"
13429 then
13430    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13431 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
13432 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
13433   echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435   cat >conftest.$ac_ext <<_ACEOF
13436 #line $LINENO "configure"
13437 #include "confdefs.h"
13438
13439         #include <sys/ioctl.h>
13440         #include <linux/joystick.h>
13441
13442         struct js_event blub;
13443         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13444         #error "no 2.2 header"
13445         #endif
13446
13447 #ifdef F77_DUMMY_MAIN
13448 #  ifdef __cplusplus
13449      extern "C"
13450 #  endif
13451    int F77_DUMMY_MAIN() { return 1; }
13452 #endif
13453 int
13454 main ()
13455 {
13456 /*empty*/
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 rm -f conftest.$ac_objext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13463   (eval $ac_compile) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } &&
13467          { ac_try='test -s conftest.$ac_objext'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; }; then
13473   wine_cv_linux_joystick_22_api=yes
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 cat conftest.$ac_ext >&5
13477 wine_cv_linux_joystick_22_api=no
13478 fi
13479 rm -f conftest.$ac_objext conftest.$ac_ext
13480
13481 fi
13482 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
13483 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
13484    if test "$wine_cv_linux_joystick_22_api" = "yes"
13485    then
13486
13487 cat >>confdefs.h <<\_ACEOF
13488 #define HAVE_LINUX_22_JOYSTICK_API 1
13489 _ACEOF
13490
13491    fi
13492 fi
13493
13494
13495 if test "$ac_cv_header_sys_vfs_h" = "yes"
13496 then
13497     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
13498 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13499 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13500   echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502   cat >conftest.$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 #include "confdefs.h"
13505
13506         #include <sys/types.h>
13507         #ifdef HAVE_SYS_PARAM_H
13508         # include <sys/param.h>
13509         #endif
13510         #include <sys/vfs.h>
13511
13512 #ifdef F77_DUMMY_MAIN
13513 #  ifdef __cplusplus
13514      extern "C"
13515 #  endif
13516    int F77_DUMMY_MAIN() { return 1; }
13517 #endif
13518 int
13519 main ()
13520 {
13521
13522                 struct statfs stfs;
13523
13524                 memset(&stfs,0,sizeof(stfs));
13525
13526   ;
13527   return 0;
13528 }
13529 _ACEOF
13530 rm -f conftest.$ac_objext
13531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13532   (eval $ac_compile) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); } &&
13536          { ac_try='test -s conftest.$ac_objext'
13537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538   (eval $ac_try) 2>&5
13539   ac_status=$?
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); }; }; then
13542   wine_cv_sys_vfs_has_statfs=yes
13543 else
13544   echo "$as_me: failed program was:" >&5
13545 cat conftest.$ac_ext >&5
13546 wine_cv_sys_vfs_has_statfs=no
13547
13548 fi
13549 rm -f conftest.$ac_objext conftest.$ac_ext
13550
13551 fi
13552 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
13553 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
13554     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13555     then
13556
13557 cat >>confdefs.h <<\_ACEOF
13558 #define STATFS_DEFINED_BY_SYS_VFS 1
13559 _ACEOF
13560
13561     fi
13562 fi
13563
13564 if test "$ac_cv_header_sys_statfs_h" = "yes"
13565 then
13566     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
13567 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13568 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13569   echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571   cat >conftest.$ac_ext <<_ACEOF
13572 #line $LINENO "configure"
13573 #include "confdefs.h"
13574
13575         #include <sys/types.h>
13576         #ifdef HAVE_SYS_PARAM_H
13577         # include <sys/param.h>
13578         #endif
13579         #include <sys/statfs.h>
13580
13581 #ifdef F77_DUMMY_MAIN
13582 #  ifdef __cplusplus
13583      extern "C"
13584 #  endif
13585    int F77_DUMMY_MAIN() { return 1; }
13586 #endif
13587 int
13588 main ()
13589 {
13590
13591                 struct statfs stfs;
13592
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest.$ac_objext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13599   (eval $ac_compile) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } &&
13603          { ac_try='test -s conftest.$ac_objext'
13604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605   (eval $ac_try) 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }; }; then
13609   wine_cv_sys_statfs_has_statfs=yes
13610 else
13611   echo "$as_me: failed program was:" >&5
13612 cat conftest.$ac_ext >&5
13613 wine_cv_sys_statfs_has_statfs=no
13614
13615 fi
13616 rm -f conftest.$ac_objext conftest.$ac_ext
13617
13618 fi
13619 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
13620 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
13621     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13622     then
13623
13624 cat >>confdefs.h <<\_ACEOF
13625 #define STATFS_DEFINED_BY_SYS_STATFS 1
13626 _ACEOF
13627
13628     fi
13629 fi
13630
13631 if test "$ac_cv_header_sys_mount_h" = "yes"
13632 then
13633     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
13634 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13635 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13636   echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638   cat >conftest.$ac_ext <<_ACEOF
13639 #line $LINENO "configure"
13640 #include "confdefs.h"
13641
13642         #include <sys/types.h>
13643         #ifdef HAVE_SYS_PARAM_H
13644         # include <sys/param.h>
13645         #endif
13646         #include <sys/mount.h>
13647
13648 #ifdef F77_DUMMY_MAIN
13649 #  ifdef __cplusplus
13650      extern "C"
13651 #  endif
13652    int F77_DUMMY_MAIN() { return 1; }
13653 #endif
13654 int
13655 main ()
13656 {
13657
13658                 struct statfs stfs;
13659
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666   (eval $ac_compile) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -s conftest.$ac_objext'
13671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672   (eval $ac_try) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   wine_cv_sys_mount_has_statfs=yes
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 wine_cv_sys_mount_has_statfs=no
13681
13682 fi
13683 rm -f conftest.$ac_objext conftest.$ac_ext
13684
13685 fi
13686 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
13687 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
13688     if test "$wine_cv_sys_mount_has_statfs" = "yes"
13689     then
13690
13691 cat >>confdefs.h <<\_ACEOF
13692 #define STATFS_DEFINED_BY_SYS_MOUNT 1
13693 _ACEOF
13694
13695     fi
13696 fi
13697
13698
13699 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
13700 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13701 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13702   echo $ECHO_N "(cached) $ECHO_C" >&6
13703 else
13704   cat >conftest.$ac_ext <<_ACEOF
13705 #line $LINENO "configure"
13706 #include "confdefs.h"
13707 #include <sys/types.h>
13708 #ifdef HAVE_SYS_PARAM_H
13709 # include <sys/param.h>
13710 #endif
13711 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13712 # include <sys/mount.h>
13713 #else
13714 # ifdef STATFS_DEFINED_BY_SYS_VFS
13715 #  include <sys/vfs.h>
13716 # else
13717 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
13718 #   include <sys/statfs.h>
13719 #  endif
13720 # endif
13721 #endif
13722 #ifdef F77_DUMMY_MAIN
13723 #  ifdef __cplusplus
13724      extern "C"
13725 #  endif
13726    int F77_DUMMY_MAIN() { return 1; }
13727 #endif
13728 int
13729 main ()
13730 {
13731 struct statfs s; s.f_bfree = 0
13732   ;
13733   return 0;
13734 }
13735 _ACEOF
13736 rm -f conftest.$ac_objext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738   (eval $ac_compile) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } &&
13742          { ac_try='test -s conftest.$ac_objext'
13743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744   (eval $ac_try) 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; }; then
13748   ac_cv_c_statfs_f_bfree="yes"
13749 else
13750   echo "$as_me: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13752 ac_cv_c_statfs_f_bfree="no"
13753 fi
13754 rm -f conftest.$ac_objext conftest.$ac_ext
13755 fi
13756 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
13757 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13758 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
13759
13760 cat >>confdefs.h <<\_ACEOF
13761 #define STATFS_HAS_BFREE 1
13762 _ACEOF
13763
13764 fi
13765
13766
13767
13768 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
13769 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13770 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13771   echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773   cat >conftest.$ac_ext <<_ACEOF
13774 #line $LINENO "configure"
13775 #include "confdefs.h"
13776 #include <sys/types.h>
13777 #ifdef HAVE_SYS_PARAM_H
13778 # include <sys/param.h>
13779 #endif
13780 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13781 # include <sys/mount.h>
13782 #else
13783 # ifdef STATFS_DEFINED_BY_SYS_VFS
13784 #  include <sys/vfs.h>
13785 # else
13786 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
13787 #   include <sys/statfs.h>
13788 #  endif
13789 # endif
13790 #endif
13791 #ifdef F77_DUMMY_MAIN
13792 #  ifdef __cplusplus
13793      extern "C"
13794 #  endif
13795    int F77_DUMMY_MAIN() { return 1; }
13796 #endif
13797 int
13798 main ()
13799 {
13800 struct statfs s; s.f_bavail = 0
13801   ;
13802   return 0;
13803 }
13804 _ACEOF
13805 rm -f conftest.$ac_objext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807   (eval $ac_compile) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); } &&
13811          { ac_try='test -s conftest.$ac_objext'
13812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813   (eval $ac_try) 2>&5
13814   ac_status=$?
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); }; }; then
13817   ac_cv_c_statfs_f_bavail="yes"
13818 else
13819   echo "$as_me: failed program was:" >&5
13820 cat conftest.$ac_ext >&5
13821 ac_cv_c_statfs_f_bavail="no"
13822 fi
13823 rm -f conftest.$ac_objext conftest.$ac_ext
13824 fi
13825 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13826 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13827 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13828
13829 cat >>confdefs.h <<\_ACEOF
13830 #define STATFS_HAS_BAVAIL 1
13831 _ACEOF
13832
13833 fi
13834
13835
13836
13837 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13838 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13839 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   cat >conftest.$ac_ext <<_ACEOF
13843 #line $LINENO "configure"
13844 #include "confdefs.h"
13845 #include <sys/types.h>
13846 #include <sys/socket.h>
13847 #ifdef F77_DUMMY_MAIN
13848 #  ifdef __cplusplus
13849      extern "C"
13850 #  endif
13851    int F77_DUMMY_MAIN() { return 1; }
13852 #endif
13853 int
13854 main ()
13855 {
13856 struct msghdr s; s.msg_accrights = 0
13857   ;
13858   return 0;
13859 }
13860 _ACEOF
13861 rm -f conftest.$ac_objext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13863   (eval $ac_compile) 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } &&
13867          { ac_try='test -s conftest.$ac_objext'
13868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869   (eval $ac_try) 2>&5
13870   ac_status=$?
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); }; }; then
13873   ac_cv_c_msghdr_msg_accrights="yes"
13874 else
13875   echo "$as_me: failed program was:" >&5
13876 cat conftest.$ac_ext >&5
13877 ac_cv_c_msghdr_msg_accrights="no"
13878 fi
13879 rm -f conftest.$ac_objext conftest.$ac_ext
13880 fi
13881 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13882 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13883 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13884
13885 cat >>confdefs.h <<\_ACEOF
13886 #define HAVE_MSGHDR_ACCRIGHTS 1
13887 _ACEOF
13888
13889 fi
13890
13891
13892
13893 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13894 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13895 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13896   echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898   cat >conftest.$ac_ext <<_ACEOF
13899 #line $LINENO "configure"
13900 #include "confdefs.h"
13901 #include <sys/types.h>
13902 #include <sys/socket.h>
13903 #ifdef F77_DUMMY_MAIN
13904 #  ifdef __cplusplus
13905      extern "C"
13906 #  endif
13907    int F77_DUMMY_MAIN() { return 1; }
13908 #endif
13909 int
13910 main ()
13911 {
13912 struct sockaddr s; s.sa_len = 0
13913   ;
13914   return 0;
13915 }
13916 _ACEOF
13917 rm -f conftest.$ac_objext
13918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13919   (eval $ac_compile) 2>&5
13920   ac_status=$?
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } &&
13923          { ac_try='test -s conftest.$ac_objext'
13924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925   (eval $ac_try) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); }; }; then
13929   ac_cv_c_sockaddr_sa_len="yes"
13930 else
13931   echo "$as_me: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13933 ac_cv_c_sockaddr_sa_len="no"
13934 fi
13935 rm -f conftest.$ac_objext conftest.$ac_ext
13936 fi
13937 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13938 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13939 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13940
13941 cat >>confdefs.h <<\_ACEOF
13942 #define HAVE_SOCKADDR_SA_LEN 1
13943 _ACEOF
13944
13945 fi
13946
13947
13948
13949 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13950 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13951 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13952   echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954   cat >conftest.$ac_ext <<_ACEOF
13955 #line $LINENO "configure"
13956 #include "confdefs.h"
13957 #include <sys/types.h>
13958 #include <sys/socket.h>
13959 #include <sys/un.h>
13960 #ifdef F77_DUMMY_MAIN
13961 #  ifdef __cplusplus
13962      extern "C"
13963 #  endif
13964    int F77_DUMMY_MAIN() { return 1; }
13965 #endif
13966 int
13967 main ()
13968 {
13969 struct sockaddr_un s; s.sun_len = 0
13970   ;
13971   return 0;
13972 }
13973 _ACEOF
13974 rm -f conftest.$ac_objext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976   (eval $ac_compile) 2>&5
13977   ac_status=$?
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } &&
13980          { ac_try='test -s conftest.$ac_objext'
13981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982   (eval $ac_try) 2>&5
13983   ac_status=$?
13984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985   (exit $ac_status); }; }; then
13986   ac_cv_c_sockaddr_un_sun_len="yes"
13987 else
13988   echo "$as_me: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 ac_cv_c_sockaddr_un_sun_len="no"
13991 fi
13992 rm -f conftest.$ac_objext conftest.$ac_ext
13993 fi
13994 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13995 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13996 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13997
13998 cat >>confdefs.h <<\_ACEOF
13999 #define HAVE_SOCKADDR_SUN_LEN 1
14000 _ACEOF
14001
14002 fi
14003
14004
14005
14006
14007 case $host_cpu in
14008   *i345678986* )
14009     echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
14010 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
14011 if test "${ac_cv_cpp_def_i386+set}" = set; then
14012   echo $ECHO_N "(cached) $ECHO_C" >&6
14013 else
14014   cat >conftest.$ac_ext <<_ACEOF
14015 #line $LINENO "configure"
14016 #include "confdefs.h"
14017 #ifndef __i386__
14018 yes
14019 #endif
14020 _ACEOF
14021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14022   egrep "yes" >/dev/null 2>&1; then
14023   ac_cv_cpp_def_i386="yes"
14024 else
14025   ac_cv_cpp_def_i386="no"
14026 fi
14027 rm -f conftest*
14028
14029 fi
14030 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
14031 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
14032     ;;
14033 esac
14034 if test "$ac_cv_cpp_def_i386" = "yes"
14035 then
14036     CFLAGS="$CFLAGS -D__i386__"
14037     LINTFLAGS="$LINTFLAGS -D__i386__"
14038 fi
14039
14040
14041 case $host_cpu in
14042   *sparc* )
14043     echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
14044 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
14045 if test "${ac_cv_cpp_def_sparc+set}" = set; then
14046   echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048   cat >conftest.$ac_ext <<_ACEOF
14049 #line $LINENO "configure"
14050 #include "confdefs.h"
14051 #ifndef __sparc__
14052 yes
14053 #endif
14054 _ACEOF
14055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14056   egrep "yes" >/dev/null 2>&1; then
14057   ac_cv_cpp_def_sparc="yes"
14058 else
14059   ac_cv_cpp_def_sparc="no"
14060 fi
14061 rm -f conftest*
14062
14063 fi
14064 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
14065 echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
14066     ;;
14067 esac
14068 if test "$ac_cv_cpp_def_sparc" = "yes"
14069 then
14070     CFLAGS="$CFLAGS -D__sparc__"
14071     LINTFLAGS="$LINTFLAGS -D__sparc__"
14072 fi
14073
14074
14075 case $host_vendor in
14076   *sun* )
14077     echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
14078 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
14079 if test "${ac_cv_cpp_def_sun+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   cat >conftest.$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14084 #include "confdefs.h"
14085 #ifndef __sun__
14086 yes
14087 #endif
14088 _ACEOF
14089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14090   egrep "yes" >/dev/null 2>&1; then
14091   ac_cv_cpp_def_sun="yes"
14092 else
14093   ac_cv_cpp_def_sun="no"
14094 fi
14095 rm -f conftest*
14096
14097 fi
14098 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
14099 echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
14100     ;;
14101 esac
14102 if test "$ac_cv_cpp_def_sun" = "yes"
14103 then
14104     CFLAGS="$CFLAGS -D__sun__"
14105     LINTFLAGS="$LINTFLAGS -D__sun__"
14106 fi
14107
14108
14109
14110
14111
14112 ac_config_commands="$ac_config_commands controls"
14113
14114 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
14115
14116 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
14117
14118 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
14119
14120 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
14121
14122 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
14123
14124 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
14125
14126 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
14127
14128 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
14129
14130 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
14131
14132 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
14133
14134 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
14135
14136 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
14137
14138 ac_config_commands="$ac_config_commands dlls/kernel/messages"
14139
14140 ac_config_commands="$ac_config_commands dlls/user/dde"
14141
14142 ac_config_commands="$ac_config_commands dlls/user/resources"
14143
14144 ac_config_commands="$ac_config_commands dlls/wineps/data"
14145
14146 ac_config_commands="$ac_config_commands files"
14147
14148 ac_config_commands="$ac_config_commands graphics"
14149
14150 ac_config_commands="$ac_config_commands graphics/x11drv"
14151
14152 ac_config_commands="$ac_config_commands if1632"
14153
14154 ac_config_commands="$ac_config_commands include/wine"
14155
14156 ac_config_commands="$ac_config_commands loader"
14157
14158 ac_config_commands="$ac_config_commands loader/ne"
14159
14160 ac_config_commands="$ac_config_commands memory"
14161
14162 ac_config_commands="$ac_config_commands misc"
14163
14164 ac_config_commands="$ac_config_commands msdos"
14165
14166 ac_config_commands="$ac_config_commands objects"
14167
14168 ac_config_commands="$ac_config_commands programs/regapi/tests"
14169
14170 ac_config_commands="$ac_config_commands programs/regedit/tests"
14171
14172 ac_config_commands="$ac_config_commands programs/winetest/tests"
14173
14174 ac_config_commands="$ac_config_commands relay32"
14175
14176 ac_config_commands="$ac_config_commands scheduler"
14177
14178 ac_config_commands="$ac_config_commands win32"
14179
14180 ac_config_commands="$ac_config_commands windows"
14181
14182
14183 MAKE_RULES=Make.rules
14184
14185
14186 MAKE_DLL_RULES=dlls/Makedll.rules
14187
14188
14189 MAKE_TEST_RULES=dlls/Maketest.rules
14190
14191
14192 MAKE_PROG_RULES=programs/Makeprog.rules
14193
14194
14195 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/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/kernel/tests/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/msacm/winemp3/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/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/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/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/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/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/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/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/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/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile"
14196
14197
14198 cat >confcache <<\_ACEOF
14199 # This file is a shell script that caches the results of configure
14200 # tests run on this system so they can be shared between configure
14201 # scripts and configure runs, see configure's option --config-cache.
14202 # It is not useful on other systems.  If it contains results you don't
14203 # want to keep, you may remove or edit it.
14204 #
14205 # config.status only pays attention to the cache file if you give it
14206 # the --recheck option to rerun configure.
14207 #
14208 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14209 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14210 # following values.
14211
14212 _ACEOF
14213
14214 # The following way of writing the cache mishandles newlines in values,
14215 # but we know of no workaround that is simple, portable, and efficient.
14216 # So, don't put newlines in cache variables' values.
14217 # Ultrix sh set writes to stderr and can't be redirected directly,
14218 # and sets the high bit in the cache file unless we assign to the vars.
14219 {
14220   (set) 2>&1 |
14221     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14222     *ac_space=\ *)
14223       # `set' does not quote correctly, so add quotes (double-quote
14224       # substitution turns \\\\ into \\, and sed turns \\ into \).
14225       sed -n \
14226         "s/'/'\\\\''/g;
14227           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14228       ;;
14229     *)
14230       # `set' quotes correctly as required by POSIX, so do not add quotes.
14231       sed -n \
14232         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14233       ;;
14234     esac;
14235 } |
14236   sed '
14237      t clear
14238      : clear
14239      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14240      t end
14241      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14242      : end' >>confcache
14243 if cmp -s $cache_file confcache; then :; else
14244   if test -w $cache_file; then
14245     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14246     cat confcache >$cache_file
14247   else
14248     echo "not updating unwritable cache $cache_file"
14249   fi
14250 fi
14251 rm -f confcache
14252
14253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14254 # Let make expand exec_prefix.
14255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14256
14257 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14258 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14259 # trailing colons and then remove the whole line if VPATH becomes empty
14260 # (actually we leave an empty line to preserve line numbers).
14261 if test "x$srcdir" = x.; then
14262   ac_vpsub='/^[         ]*VPATH[        ]*=/{
14263 s/:*\$(srcdir):*/:/;
14264 s/:*\${srcdir}:*/:/;
14265 s/:*@srcdir@:*/:/;
14266 s/^\([^=]*=[    ]*\):*/\1/;
14267 s/:*$//;
14268 s/^[^=]*=[      ]*$//;
14269 }'
14270 fi
14271
14272 DEFS=-DHAVE_CONFIG_H
14273
14274
14275 : ${CONFIG_STATUS=./config.status}
14276 ac_clean_files_save=$ac_clean_files
14277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14278 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14279 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14280 cat >$CONFIG_STATUS <<_ACEOF
14281 #! $SHELL
14282 # Generated by $as_me.
14283 # Run this file to recreate the current configuration.
14284 # Compiler output produced by configure, useful for debugging
14285 # configure, is in config.log if it exists.
14286
14287 debug=false
14288 SHELL=\${CONFIG_SHELL-$SHELL}
14289 _ACEOF
14290
14291 cat >>$CONFIG_STATUS <<\_ACEOF
14292
14293 ## --------------------- ##
14294 ## M4sh Initialization.  ##
14295 ## --------------------- ##
14296
14297 # Be Bourne compatible
14298 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14299   emulate sh
14300   NULLCMD=:
14301 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14302   set -o posix
14303 fi
14304
14305 # NLS nuisances.
14306 # Support unset when possible.
14307 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14308   as_unset=unset
14309 else
14310   as_unset=false
14311 fi
14312
14313 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
14314     { $as_unset LANG || test "${LANG+set}" != set; } ||
14315       { LANG=C; export LANG; }
14316 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
14317     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
14318       { LC_ALL=C; export LC_ALL; }
14319 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
14320     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
14321       { LC_TIME=C; export LC_TIME; }
14322 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
14323     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
14324       { LC_CTYPE=C; export LC_CTYPE; }
14325 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
14326     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
14327       { LANGUAGE=C; export LANGUAGE; }
14328 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
14329     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
14330       { LC_COLLATE=C; export LC_COLLATE; }
14331 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
14332     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
14333       { LC_NUMERIC=C; export LC_NUMERIC; }
14334 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
14335     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
14336       { LC_MESSAGES=C; export LC_MESSAGES; }
14337
14338
14339 # Name of the executable.
14340 as_me=`(basename "$0") 2>/dev/null ||
14341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14342          X"$0" : 'X\(//\)$' \| \
14343          X"$0" : 'X\(/\)$' \| \
14344          .     : '\(.\)' 2>/dev/null ||
14345 echo X/"$0" |
14346     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14347           /^X\/\(\/\/\)$/{ s//\1/; q; }
14348           /^X\/\(\/\).*/{ s//\1/; q; }
14349           s/.*/./; q'`
14350
14351 # PATH needs CR, and LINENO needs CR and PATH.
14352 # Avoid depending upon Character Ranges.
14353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14356 as_cr_digits='0123456789'
14357 as_cr_alnum=$as_cr_Letters$as_cr_digits
14358
14359 # The user is always right.
14360 if test "${PATH_SEPARATOR+set}" != set; then
14361   echo "#! /bin/sh" >conftest.sh
14362   echo  "exit 0"   >>conftest.sh
14363   chmod +x conftest.sh
14364   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
14365     PATH_SEPARATOR=';'
14366   else
14367     PATH_SEPARATOR=:
14368   fi
14369   rm -f conftest.sh
14370 fi
14371
14372
14373   as_lineno_1=$LINENO
14374   as_lineno_2=$LINENO
14375   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14376   test "x$as_lineno_1" != "x$as_lineno_2" &&
14377   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14378   # Find who we are.  Look in the path if we contain no path at all
14379   # relative or not.
14380   case $0 in
14381     *[\\/]* ) as_myself=$0 ;;
14382     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14384 do
14385   IFS=$as_save_IFS
14386   test -z "$as_dir" && as_dir=.
14387   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14388 done
14389
14390        ;;
14391   esac
14392   # We did not find ourselves, most probably we were run as `sh COMMAND'
14393   # in which case we are not to be found in the path.
14394   if test "x$as_myself" = x; then
14395     as_myself=$0
14396   fi
14397   if test ! -f "$as_myself"; then
14398     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14399 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14400    { (exit 1); exit 1; }; }
14401   fi
14402   case $CONFIG_SHELL in
14403   '')
14404     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14406 do
14407   IFS=$as_save_IFS
14408   test -z "$as_dir" && as_dir=.
14409   for as_base in sh bash ksh sh5; do
14410          case $as_dir in
14411          /*)
14412            if ("$as_dir/$as_base" -c '
14413   as_lineno_1=$LINENO
14414   as_lineno_2=$LINENO
14415   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14416   test "x$as_lineno_1" != "x$as_lineno_2" &&
14417   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14418              CONFIG_SHELL=$as_dir/$as_base
14419              export CONFIG_SHELL
14420              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14421            fi;;
14422          esac
14423        done
14424 done
14425 ;;
14426   esac
14427
14428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14429   # uniformly replaced by the line number.  The first 'sed' inserts a
14430   # line-number line before each line; the second 'sed' does the real
14431   # work.  The second script uses 'N' to pair each line-number line
14432   # with the numbered line, and appends trailing '-' during
14433   # substitution so that $LINENO is not a special case at line end.
14434   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14435   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14436   sed '=' <$as_myself |
14437     sed '
14438       N
14439       s,$,-,
14440       : loop
14441       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14442       t loop
14443       s,-$,,
14444       s,^['$as_cr_digits']*\n,,
14445     ' >$as_me.lineno &&
14446   chmod +x $as_me.lineno ||
14447     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14448 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14449    { (exit 1); exit 1; }; }
14450
14451   # Don't try to exec as it changes $[0], causing all sort of problems
14452   # (the dirname of $[0] is not the place where we might find the
14453   # original and so on.  Autoconf is especially sensible to this).
14454   . ./$as_me.lineno
14455   # Exit status is that of the last command.
14456   exit
14457 }
14458
14459
14460 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14461   *c*,-n*) ECHO_N= ECHO_C='
14462 ' ECHO_T='      ' ;;
14463   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14464   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14465 esac
14466
14467 if expr a : '\(a\)' >/dev/null 2>&1; then
14468   as_expr=expr
14469 else
14470   as_expr=false
14471 fi
14472
14473 rm -f conf$$ conf$$.exe conf$$.file
14474 echo >conf$$.file
14475 if ln -s conf$$.file conf$$ 2>/dev/null; then
14476   # We could just check for DJGPP; but this test a) works b) is more generic
14477   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14478   if test -f conf$$.exe; then
14479     # Don't use ln at all; we don't have any links
14480     as_ln_s='cp -p'
14481   else
14482     as_ln_s='ln -s'
14483   fi
14484 elif ln conf$$.file conf$$ 2>/dev/null; then
14485   as_ln_s=ln
14486 else
14487   as_ln_s='cp -p'
14488 fi
14489 rm -f conf$$ conf$$.exe conf$$.file
14490
14491 as_executable_p="test -f"
14492
14493 # Sed expression to map a string onto a valid CPP name.
14494 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14495
14496 # Sed expression to map a string onto a valid variable name.
14497 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14498
14499
14500 # IFS
14501 # We need space, tab and new line, in precisely that order.
14502 as_nl='
14503 '
14504 IFS="   $as_nl"
14505
14506 # CDPATH.
14507 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
14508
14509 exec 6>&1
14510
14511 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14512 # report actual input values of CONFIG_FILES etc. instead of their
14513 # values after options handling.  Logging --version etc. is OK.
14514 exec 5>>config.log
14515 {
14516   echo
14517   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14518 ## Running $as_me. ##
14519 _ASBOX
14520 } >&5
14521 cat >&5 <<_CSEOF
14522
14523 This file was extended by Wine $as_me 20020904, which was
14524 generated by GNU Autoconf 2.53.  Invocation command line was
14525
14526   CONFIG_FILES    = $CONFIG_FILES
14527   CONFIG_HEADERS  = $CONFIG_HEADERS
14528   CONFIG_LINKS    = $CONFIG_LINKS
14529   CONFIG_COMMANDS = $CONFIG_COMMANDS
14530   $ $0 $@
14531
14532 _CSEOF
14533 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14534 echo >&5
14535 _ACEOF
14536
14537 # Files that config.status was made for.
14538 if test -n "$ac_config_files"; then
14539   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14540 fi
14541
14542 if test -n "$ac_config_headers"; then
14543   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14544 fi
14545
14546 if test -n "$ac_config_links"; then
14547   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14548 fi
14549
14550 if test -n "$ac_config_commands"; then
14551   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14552 fi
14553
14554 cat >>$CONFIG_STATUS <<\_ACEOF
14555
14556 ac_cs_usage="\
14557 \`$as_me' instantiates files from templates according to the
14558 current configuration.
14559
14560 Usage: $0 [OPTIONS] [FILE]...
14561
14562   -h, --help       print this help, then exit
14563   -V, --version    print version number, then exit
14564   -d, --debug      don't remove temporary files
14565       --recheck    update $as_me by reconfiguring in the same conditions
14566   --file=FILE[:TEMPLATE]
14567                    instantiate the configuration file FILE
14568   --header=FILE[:TEMPLATE]
14569                    instantiate the configuration header FILE
14570
14571 Configuration files:
14572 $config_files
14573
14574 Configuration headers:
14575 $config_headers
14576
14577 Configuration commands:
14578 $config_commands
14579
14580 Report bugs to <bug-autoconf@gnu.org>."
14581 _ACEOF
14582
14583 cat >>$CONFIG_STATUS <<_ACEOF
14584 ac_cs_version="\\
14585 Wine config.status 20020904
14586 configured by $0, generated by GNU Autoconf 2.53,
14587   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14588
14589 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14590 Free Software Foundation, Inc.
14591 This config.status script is free software; the Free Software Foundation
14592 gives unlimited permission to copy, distribute and modify it."
14593 srcdir=$srcdir
14594 INSTALL="$INSTALL"
14595 _ACEOF
14596
14597 cat >>$CONFIG_STATUS <<\_ACEOF
14598 # If no file are specified by the user, then we need to provide default
14599 # value.  By we need to know if files were specified by the user.
14600 ac_need_defaults=:
14601 while test $# != 0
14602 do
14603   case $1 in
14604   --*=*)
14605     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14606     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14607     shift
14608     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14609     shift
14610     ;;
14611   -*);;
14612   *) # This is not an option, so the user has probably given explicit
14613      # arguments.
14614      ac_need_defaults=false;;
14615   esac
14616
14617   case $1 in
14618   # Handling of the options.
14619 _ACEOF
14620 cat >>$CONFIG_STATUS <<_ACEOF
14621   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14622     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14623     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14624 _ACEOF
14625 cat >>$CONFIG_STATUS <<\_ACEOF
14626   --version | --vers* | -V )
14627     echo "$ac_cs_version"; exit 0 ;;
14628   --he | --h)
14629     # Conflict between --help and --header
14630     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14631 Try \`$0 --help' for more information." >&5
14632 echo "$as_me: error: ambiguous option: $1
14633 Try \`$0 --help' for more information." >&2;}
14634    { (exit 1); exit 1; }; };;
14635   --help | --hel | -h )
14636     echo "$ac_cs_usage"; exit 0 ;;
14637   --debug | --d* | -d )
14638     debug=: ;;
14639   --file | --fil | --fi | --f )
14640     shift
14641     CONFIG_FILES="$CONFIG_FILES $1"
14642     ac_need_defaults=false;;
14643   --header | --heade | --head | --hea )
14644     shift
14645     CONFIG_HEADERS="$CONFIG_HEADERS $1"
14646     ac_need_defaults=false;;
14647
14648   # This is an error.
14649   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14650 Try \`$0 --help' for more information." >&5
14651 echo "$as_me: error: unrecognized option: $1
14652 Try \`$0 --help' for more information." >&2;}
14653    { (exit 1); exit 1; }; } ;;
14654
14655   *) ac_config_targets="$ac_config_targets $1" ;;
14656
14657   esac
14658   shift
14659 done
14660
14661 _ACEOF
14662
14663
14664
14665
14666
14667 cat >>$CONFIG_STATUS <<\_ACEOF
14668 for ac_config_target in $ac_config_targets
14669 do
14670   case "$ac_config_target" in
14671   # Handling of arguments.
14672   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14673   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
14674   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
14675   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14676   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14677   "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
14678   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14679   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
14680   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
14681   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14682   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
14683   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
14684   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14685   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14686   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14687   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
14688   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
14689   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14690   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14691   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14692   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
14693   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
14694   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14695   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14696   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14697   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14698   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14699   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14700   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14701   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14702   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
14703   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
14704   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14705   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14706   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14707   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
14708   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
14709   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
14710   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
14711   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
14712   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14713   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
14714   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
14715   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14716   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
14717   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14718   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14719   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14720   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
14721   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
14722   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
14723   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14724   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14725   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
14726   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
14727   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14728   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14729   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14730   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14731   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14732   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14733   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14734   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14735   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14736   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14737   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14738   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14739   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14740   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14741   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
14742   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
14743   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14744   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
14745   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
14746   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
14747   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14748   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14749   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
14750   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
14751   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14752   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14753   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
14754   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
14755   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14756   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14757   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14758   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14759   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14760   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14761   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
14762   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14763   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14764   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14765   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14766   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14767   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14768   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14769   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14770   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
14771   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
14772   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
14773   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14774   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
14775   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14776   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14777   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14778   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
14779   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14780   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14781   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14782   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14783   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14784   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
14785   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14786   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14787   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
14788   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14789   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14790   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14791   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14792   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14793   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
14794   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
14795   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14796   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14797   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14798   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
14799   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
14800   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
14801   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14802   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14803   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14804   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14805   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
14806   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
14807   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
14808   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
14809   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
14810   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14811   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
14812   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14813   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14814   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
14815   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14816   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14817   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14818   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
14819   "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
14820   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14821   "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
14822   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
14823   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
14824   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14825   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14826   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14827   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14828   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14829   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14830   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14831   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14832   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
14833   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14834   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14835   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
14836   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14837   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14838   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14839   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
14840   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14841   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14842   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14843   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
14844   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
14845   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14846   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14847   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14848   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14849   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14850   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
14851   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
14852   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
14853   "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
14854   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14855   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14856   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14857   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
14858   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14859   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14860 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14861    { (exit 1); exit 1; }; };;
14862   esac
14863 done
14864
14865 # If the user did not use the arguments to specify the items to instantiate,
14866 # then the envvar interface is used.  Set only those that are not.
14867 # We use the long form for the default assignment because of an extremely
14868 # bizarre bug on SunOS 4.1.3.
14869 if $ac_need_defaults; then
14870   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14871   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14872   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14873 fi
14874
14875 # Create a temporary directory, and hook for its removal unless debugging.
14876 $debug ||
14877 {
14878   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14879   trap '{ (exit 1); exit 1; }' 1 2 13 15
14880 }
14881
14882 # Create a (secure) tmp directory for tmp files.
14883 : ${TMPDIR=/tmp}
14884 {
14885   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14886   test -n "$tmp" && test -d "$tmp"
14887 }  ||
14888 {
14889   tmp=$TMPDIR/cs$$-$RANDOM
14890   (umask 077 && mkdir $tmp)
14891 } ||
14892 {
14893    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14894    { (exit 1); exit 1; }
14895 }
14896
14897 _ACEOF
14898
14899 cat >>$CONFIG_STATUS <<_ACEOF
14900
14901 #
14902 # CONFIG_FILES section.
14903 #
14904
14905 # No need to generate the scripts if there are no CONFIG_FILES.
14906 # This happens for instance when ./config.status config.h
14907 if test -n "\$CONFIG_FILES"; then
14908   # Protect against being on the right side of a sed subst in config.status.
14909   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14910    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14911 s,@SHELL@,$SHELL,;t t
14912 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14913 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14914 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14915 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14916 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14917 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14918 s,@exec_prefix@,$exec_prefix,;t t
14919 s,@prefix@,$prefix,;t t
14920 s,@program_transform_name@,$program_transform_name,;t t
14921 s,@bindir@,$bindir,;t t
14922 s,@sbindir@,$sbindir,;t t
14923 s,@libexecdir@,$libexecdir,;t t
14924 s,@datadir@,$datadir,;t t
14925 s,@sysconfdir@,$sysconfdir,;t t
14926 s,@sharedstatedir@,$sharedstatedir,;t t
14927 s,@localstatedir@,$localstatedir,;t t
14928 s,@libdir@,$libdir,;t t
14929 s,@includedir@,$includedir,;t t
14930 s,@oldincludedir@,$oldincludedir,;t t
14931 s,@infodir@,$infodir,;t t
14932 s,@mandir@,$mandir,;t t
14933 s,@build_alias@,$build_alias,;t t
14934 s,@host_alias@,$host_alias,;t t
14935 s,@target_alias@,$target_alias,;t t
14936 s,@DEFS@,$DEFS,;t t
14937 s,@ECHO_C@,$ECHO_C,;t t
14938 s,@ECHO_N@,$ECHO_N,;t t
14939 s,@ECHO_T@,$ECHO_T,;t t
14940 s,@LIBS@,$LIBS,;t t
14941 s,@LIBEXT@,$LIBEXT,;t t
14942 s,@OPTIONS@,$OPTIONS,;t t
14943 s,@build@,$build,;t t
14944 s,@build_cpu@,$build_cpu,;t t
14945 s,@build_vendor@,$build_vendor,;t t
14946 s,@build_os@,$build_os,;t t
14947 s,@host@,$host,;t t
14948 s,@host_cpu@,$host_cpu,;t t
14949 s,@host_vendor@,$host_vendor,;t t
14950 s,@host_os@,$host_os,;t t
14951 s,@SET_MAKE@,$SET_MAKE,;t t
14952 s,@CC@,$CC,;t t
14953 s,@CFLAGS@,$CFLAGS,;t t
14954 s,@LDFLAGS@,$LDFLAGS,;t t
14955 s,@CPPFLAGS@,$CPPFLAGS,;t t
14956 s,@ac_ct_CC@,$ac_ct_CC,;t t
14957 s,@EXEEXT@,$EXEEXT,;t t
14958 s,@OBJEXT@,$OBJEXT,;t t
14959 s,@CPP@,$CPP,;t t
14960 s,@TOOLSDIR@,$TOOLSDIR,;t t
14961 s,@X_CFLAGS@,$X_CFLAGS,;t t
14962 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14963 s,@X_LIBS@,$X_LIBS,;t t
14964 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14965 s,@YACC@,$YACC,;t t
14966 s,@LEX@,$LEX,;t t
14967 s,@LEXLIB@,$LEXLIB,;t t
14968 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14969 s,@XYACC@,$XYACC,;t t
14970 s,@XLEX@,$XLEX,;t t
14971 s,@LD@,$LD,;t t
14972 s,@ac_ct_LD@,$ac_ct_LD,;t t
14973 s,@AR@,$AR,;t t
14974 s,@ac_ct_AR@,$ac_ct_AR,;t t
14975 s,@RANLIB@,$RANLIB,;t t
14976 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14977 s,@STRIP@,$STRIP,;t t
14978 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14979 s,@WINDRES@,$WINDRES,;t t
14980 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14981 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14982 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14983 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14984 s,@LN_S@,$LN_S,;t t
14985 s,@LN@,$LN,;t t
14986 s,@C2MAN@,$C2MAN,;t t
14987 s,@LDCONFIG@,$LDCONFIG,;t t
14988 s,@LINT@,$LINT,;t t
14989 s,@LINTFLAGS@,$LINTFLAGS,;t t
14990 s,@JPEGLIB@,$JPEGLIB,;t t
14991 s,@XLIB@,$XLIB,;t t
14992 s,@XFILES@,$XFILES,;t t
14993 s,@OPENGLFILES@,$OPENGLFILES,;t t
14994 s,@GLU32FILES@,$GLU32FILES,;t t
14995 s,@CURSESLIBS@,$CURSESLIBS,;t t
14996 s,@CUPSLIBS@,$CUPSLIBS,;t t
14997 s,@sane_devel@,$sane_devel,;t t
14998 s,@SANELIBS@,$SANELIBS,;t t
14999 s,@SANEINCL@,$SANEINCL,;t t
15000 s,@ft_devel@,$ft_devel,;t t
15001 s,@ft_devel2@,$ft_devel2,;t t
15002 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
15003 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
15004 s,@ARTSLIBS@,$ARTSLIBS,;t t
15005 s,@ARTSINCL@,$ARTSINCL,;t t
15006 s,@ALSALIBS@,$ALSALIBS,;t t
15007 s,@NASLIBS@,$NASLIBS,;t t
15008 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
15009 s,@DLLEXT@,$DLLEXT,;t t
15010 s,@DLLFLAGS@,$DLLFLAGS,;t t
15011 s,@DLLIBS@,$DLLIBS,;t t
15012 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
15013 s,@LDSHARED@,$LDSHARED,;t t
15014 s,@DLLWRAP@,$DLLWRAP,;t t
15015 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
15016 s,@CROSSTEST@,$CROSSTEST,;t t
15017 s,@CROSSCC@,$CROSSCC,;t t
15018 s,@DLLTOOL@,$DLLTOOL,;t t
15019 s,@LDPATH@,$LDPATH,;t t
15020 s,@CRTLIBS@,$CRTLIBS,;t t
15021 s,@LDD@,$LDD,;t t
15022 s,@ALLOCA@,$ALLOCA,;t t
15023 /@MAKE_RULES@/r $MAKE_RULES
15024 s,@MAKE_RULES@,,;t t
15025 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
15026 s,@MAKE_DLL_RULES@,,;t t
15027 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
15028 s,@MAKE_TEST_RULES@,,;t t
15029 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
15030 s,@MAKE_PROG_RULES@,,;t t
15031 CEOF
15032
15033 _ACEOF
15034
15035   cat >>$CONFIG_STATUS <<\_ACEOF
15036   # Split the substitutions into bite-sized pieces for seds with
15037   # small command number limits, like on Digital OSF/1 and HP-UX.
15038   ac_max_sed_lines=48
15039   ac_sed_frag=1 # Number of current file.
15040   ac_beg=1 # First line for current file.
15041   ac_end=$ac_max_sed_lines # Line after last line for current file.
15042   ac_more_lines=:
15043   ac_sed_cmds=
15044   while $ac_more_lines; do
15045     if test $ac_beg -gt 1; then
15046       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15047     else
15048       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15049     fi
15050     if test ! -s $tmp/subs.frag; then
15051       ac_more_lines=false
15052     else
15053       # The purpose of the label and of the branching condition is to
15054       # speed up the sed processing (if there are no `@' at all, there
15055       # is no need to browse any of the substitutions).
15056       # These are the two extra sed commands mentioned above.
15057       (echo ':t
15058   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15059       if test -z "$ac_sed_cmds"; then
15060         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15061       else
15062         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15063       fi
15064       ac_sed_frag=`expr $ac_sed_frag + 1`
15065       ac_beg=$ac_end
15066       ac_end=`expr $ac_end + $ac_max_sed_lines`
15067     fi
15068   done
15069   if test -z "$ac_sed_cmds"; then
15070     ac_sed_cmds=cat
15071   fi
15072 fi # test -n "$CONFIG_FILES"
15073
15074 _ACEOF
15075 cat >>$CONFIG_STATUS <<\_ACEOF
15076 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15077   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15078   case $ac_file in
15079   - | *:- | *:-:* ) # input from stdin
15080         cat >$tmp/stdin
15081         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15082         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15083   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15084         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15085   * )   ac_file_in=$ac_file.in ;;
15086   esac
15087
15088   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15089   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15090 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15091          X"$ac_file" : 'X\(//\)[^/]' \| \
15092          X"$ac_file" : 'X\(//\)$' \| \
15093          X"$ac_file" : 'X\(/\)' \| \
15094          .     : '\(.\)' 2>/dev/null ||
15095 echo X"$ac_file" |
15096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15097           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15098           /^X\(\/\/\)$/{ s//\1/; q; }
15099           /^X\(\/\).*/{ s//\1/; q; }
15100           s/.*/./; q'`
15101   { case "$ac_dir" in
15102   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15103   *)                      as_incr_dir=.;;
15104 esac
15105 as_dummy="$ac_dir"
15106 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15107   case $as_mkdir_dir in
15108     # Skip DOS drivespec
15109     ?:) as_incr_dir=$as_mkdir_dir ;;
15110     *)
15111       as_incr_dir=$as_incr_dir/$as_mkdir_dir
15112       test -d "$as_incr_dir" ||
15113         mkdir "$as_incr_dir" ||
15114         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15115 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15116    { (exit 1); exit 1; }; }
15117     ;;
15118   esac
15119 done; }
15120
15121   ac_builddir=.
15122
15123 if test "$ac_dir" != .; then
15124   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15125   # A "../" for each directory in $ac_dir_suffix.
15126   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15127 else
15128   ac_dir_suffix= ac_top_builddir=
15129 fi
15130
15131 case $srcdir in
15132   .)  # No --srcdir option.  We are building in place.
15133     ac_srcdir=.
15134     if test -z "$ac_top_builddir"; then
15135        ac_top_srcdir=.
15136     else
15137        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15138     fi ;;
15139   [\\/]* | ?:[\\/]* )  # Absolute path.
15140     ac_srcdir=$srcdir$ac_dir_suffix;
15141     ac_top_srcdir=$srcdir ;;
15142   *) # Relative path.
15143     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15144     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15145 esac
15146 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15147 # absolute.
15148 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15149 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15150 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15151 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15152
15153
15154   case $INSTALL in
15155   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15156   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15157   esac
15158
15159   if test x"$ac_file" != x-; then
15160     { echo "$as_me:$LINENO: creating $ac_file" >&5
15161 echo "$as_me: creating $ac_file" >&6;}
15162     rm -f "$ac_file"
15163   fi
15164   # Let's still pretend it is `configure' which instantiates (i.e., don't
15165   # use $as_me), people would be surprised to read:
15166   #    /* config.h.  Generated by config.status.  */
15167   if test x"$ac_file" = x-; then
15168     configure_input=
15169   else
15170     configure_input="$ac_file.  "
15171   fi
15172   configure_input=$configure_input"Generated from `echo $ac_file_in |
15173                                      sed 's,.*/,,'` by configure."
15174
15175   # First look for the input files in the build tree, otherwise in the
15176   # src tree.
15177   ac_file_inputs=`IFS=:
15178     for f in $ac_file_in; do
15179       case $f in
15180       -) echo $tmp/stdin ;;
15181       [\\/$]*)
15182          # Absolute (can't be DOS-style, as IFS=:)
15183          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15184 echo "$as_me: error: cannot find input file: $f" >&2;}
15185    { (exit 1); exit 1; }; }
15186          echo $f;;
15187       *) # Relative
15188          if test -f "$f"; then
15189            # Build tree
15190            echo $f
15191          elif test -f "$srcdir/$f"; then
15192            # Source tree
15193            echo $srcdir/$f
15194          else
15195            # /dev/null tree
15196            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15197 echo "$as_me: error: cannot find input file: $f" >&2;}
15198    { (exit 1); exit 1; }; }
15199          fi;;
15200       esac
15201     done` || { (exit 1); exit 1; }
15202 _ACEOF
15203 cat >>$CONFIG_STATUS <<_ACEOF
15204   sed "$ac_vpsub
15205 $extrasub
15206 _ACEOF
15207 cat >>$CONFIG_STATUS <<\_ACEOF
15208 :t
15209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15210 s,@configure_input@,$configure_input,;t t
15211 s,@srcdir@,$ac_srcdir,;t t
15212 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15213 s,@top_srcdir@,$ac_top_srcdir,;t t
15214 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15215 s,@builddir@,$ac_builddir,;t t
15216 s,@abs_builddir@,$ac_abs_builddir,;t t
15217 s,@top_builddir@,$ac_top_builddir,;t t
15218 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15219 s,@INSTALL@,$ac_INSTALL,;t t
15220 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15221   rm -f $tmp/stdin
15222   if test x"$ac_file" != x-; then
15223     mv $tmp/out $ac_file
15224   else
15225     cat $tmp/out
15226     rm -f $tmp/out
15227   fi
15228
15229 done
15230 _ACEOF
15231 cat >>$CONFIG_STATUS <<\_ACEOF
15232
15233 #
15234 # CONFIG_HEADER section.
15235 #
15236
15237 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15238 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15239 #
15240 # ac_d sets the value in "#define NAME VALUE" lines.
15241 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
15242 ac_dB='[        ].*$,\1#\2'
15243 ac_dC=' '
15244 ac_dD=',;t'
15245 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15246 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15247 ac_uB='$,\1#\2define\3'
15248 ac_uC=' '
15249 ac_uD=',;t'
15250
15251 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15252   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15253   case $ac_file in
15254   - | *:- | *:-:* ) # input from stdin
15255         cat >$tmp/stdin
15256         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15257         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15258   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15259         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15260   * )   ac_file_in=$ac_file.in ;;
15261   esac
15262
15263   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15264 echo "$as_me: creating $ac_file" >&6;}
15265
15266   # First look for the input files in the build tree, otherwise in the
15267   # src tree.
15268   ac_file_inputs=`IFS=:
15269     for f in $ac_file_in; do
15270       case $f in
15271       -) echo $tmp/stdin ;;
15272       [\\/$]*)
15273          # Absolute (can't be DOS-style, as IFS=:)
15274          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15275 echo "$as_me: error: cannot find input file: $f" >&2;}
15276    { (exit 1); exit 1; }; }
15277          echo $f;;
15278       *) # Relative
15279          if test -f "$f"; then
15280            # Build tree
15281            echo $f
15282          elif test -f "$srcdir/$f"; then
15283            # Source tree
15284            echo $srcdir/$f
15285          else
15286            # /dev/null tree
15287            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15288 echo "$as_me: error: cannot find input file: $f" >&2;}
15289    { (exit 1); exit 1; }; }
15290          fi;;
15291       esac
15292     done` || { (exit 1); exit 1; }
15293   # Remove the trailing spaces.
15294   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
15295
15296 _ACEOF
15297
15298 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15299 # `conftest.undefs', that substitutes the proper values into
15300 # config.h.in to produce config.h.  The first handles `#define'
15301 # templates, and the second `#undef' templates.
15302 # And first: Protect against being on the right side of a sed subst in
15303 # config.status.  Protect against being in an unquoted here document
15304 # in config.status.
15305 rm -f conftest.defines conftest.undefs
15306 # Using a here document instead of a string reduces the quoting nightmare.
15307 # Putting comments in sed scripts is not portable.
15308 #
15309 # `end' is used to avoid that the second main sed command (meant for
15310 # 0-ary CPP macros) applies to n-ary macro definitions.
15311 # See the Autoconf documentation for `clear'.
15312 cat >confdef2sed.sed <<\_ACEOF
15313 s/[\\&,]/\\&/g
15314 s,[\\$`],\\&,g
15315 t clear
15316 : clear
15317 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15318 t end
15319 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15320 : end
15321 _ACEOF
15322 # If some macros were called several times there might be several times
15323 # the same #defines, which is useless.  Nevertheless, we may not want to
15324 # sort them, since we want the *last* AC-DEFINE to be honored.
15325 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15326 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15327 rm -f confdef2sed.sed
15328
15329 # This sed command replaces #undef with comments.  This is necessary, for
15330 # example, in the case of _POSIX_SOURCE, which is predefined and required
15331 # on some systems where configure will not decide to define it.
15332 cat >>conftest.undefs <<\_ACEOF
15333 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15334 _ACEOF
15335
15336 # Break up conftest.defines because some shells have a limit on the size
15337 # of here documents, and old seds have small limits too (100 cmds).
15338 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15339 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15340 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15341 echo '  :' >>$CONFIG_STATUS
15342 rm -f conftest.tail
15343 while grep . conftest.defines >/dev/null
15344 do
15345   # Write a limited-size here document to $tmp/defines.sed.
15346   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15347   # Speed up: don't consider the non `#define' lines.
15348   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
15349   # Work around the forget-to-reset-the-flag bug.
15350   echo 't clr' >>$CONFIG_STATUS
15351   echo ': clr' >>$CONFIG_STATUS
15352   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15353   echo 'CEOF
15354   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15355   rm -f $tmp/in
15356   mv $tmp/out $tmp/in
15357 ' >>$CONFIG_STATUS
15358   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15359   rm -f conftest.defines
15360   mv conftest.tail conftest.defines
15361 done
15362 rm -f conftest.defines
15363 echo '  fi # egrep' >>$CONFIG_STATUS
15364 echo >>$CONFIG_STATUS
15365
15366 # Break up conftest.undefs because some shells have a limit on the size
15367 # of here documents, and old seds have small limits too (100 cmds).
15368 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15369 rm -f conftest.tail
15370 while grep . conftest.undefs >/dev/null
15371 do
15372   # Write a limited-size here document to $tmp/undefs.sed.
15373   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15374   # Speed up: don't consider the non `#undef'
15375   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15376   # Work around the forget-to-reset-the-flag bug.
15377   echo 't clr' >>$CONFIG_STATUS
15378   echo ': clr' >>$CONFIG_STATUS
15379   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15380   echo 'CEOF
15381   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15382   rm -f $tmp/in
15383   mv $tmp/out $tmp/in
15384 ' >>$CONFIG_STATUS
15385   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15386   rm -f conftest.undefs
15387   mv conftest.tail conftest.undefs
15388 done
15389 rm -f conftest.undefs
15390
15391 cat >>$CONFIG_STATUS <<\_ACEOF
15392   # Let's still pretend it is `configure' which instantiates (i.e., don't
15393   # use $as_me), people would be surprised to read:
15394   #    /* config.h.  Generated by config.status.  */
15395   if test x"$ac_file" = x-; then
15396     echo "/* Generated by configure.  */" >$tmp/config.h
15397   else
15398     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15399   fi
15400   cat $tmp/in >>$tmp/config.h
15401   rm -f $tmp/in
15402   if test x"$ac_file" != x-; then
15403     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15404       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15405 echo "$as_me: $ac_file is unchanged" >&6;}
15406     else
15407       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15408 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15409          X"$ac_file" : 'X\(//\)[^/]' \| \
15410          X"$ac_file" : 'X\(//\)$' \| \
15411          X"$ac_file" : 'X\(/\)' \| \
15412          .     : '\(.\)' 2>/dev/null ||
15413 echo X"$ac_file" |
15414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15415           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15416           /^X\(\/\/\)$/{ s//\1/; q; }
15417           /^X\(\/\).*/{ s//\1/; q; }
15418           s/.*/./; q'`
15419       { case "$ac_dir" in
15420   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15421   *)                      as_incr_dir=.;;
15422 esac
15423 as_dummy="$ac_dir"
15424 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15425   case $as_mkdir_dir in
15426     # Skip DOS drivespec
15427     ?:) as_incr_dir=$as_mkdir_dir ;;
15428     *)
15429       as_incr_dir=$as_incr_dir/$as_mkdir_dir
15430       test -d "$as_incr_dir" ||
15431         mkdir "$as_incr_dir" ||
15432         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15433 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15434    { (exit 1); exit 1; }; }
15435     ;;
15436   esac
15437 done; }
15438
15439       rm -f $ac_file
15440       mv $tmp/config.h $ac_file
15441     fi
15442   else
15443     cat $tmp/config.h
15444     rm -f $tmp/config.h
15445   fi
15446 done
15447 _ACEOF
15448 cat >>$CONFIG_STATUS <<\_ACEOF
15449
15450 #
15451 # CONFIG_COMMANDS section.
15452 #
15453 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15454   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15455   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15456   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15457 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15458          X"$ac_dest" : 'X\(//\)[^/]' \| \
15459          X"$ac_dest" : 'X\(//\)$' \| \
15460          X"$ac_dest" : 'X\(/\)' \| \
15461          .     : '\(.\)' 2>/dev/null ||
15462 echo X"$ac_dest" |
15463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15464           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15465           /^X\(\/\/\)$/{ s//\1/; q; }
15466           /^X\(\/\).*/{ s//\1/; q; }
15467           s/.*/./; q'`
15468   ac_builddir=.
15469
15470 if test "$ac_dir" != .; then
15471   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15472   # A "../" for each directory in $ac_dir_suffix.
15473   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15474 else
15475   ac_dir_suffix= ac_top_builddir=
15476 fi
15477
15478 case $srcdir in
15479   .)  # No --srcdir option.  We are building in place.
15480     ac_srcdir=.
15481     if test -z "$ac_top_builddir"; then
15482        ac_top_srcdir=.
15483     else
15484        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15485     fi ;;
15486   [\\/]* | ?:[\\/]* )  # Absolute path.
15487     ac_srcdir=$srcdir$ac_dir_suffix;
15488     ac_top_srcdir=$srcdir ;;
15489   *) # Relative path.
15490     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15491     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15492 esac
15493 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15494 # absolute.
15495 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15496 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15497 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15498 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15499
15500
15501   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15502 echo "$as_me: executing $ac_dest commands" >&6;}
15503   case $ac_dest in
15504     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15505 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
15506     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15507 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15508     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15509 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15510     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15511 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15512     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15513 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15514     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15515 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15516     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15517 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15518     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15519 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15520     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15521 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15522     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15523 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15524     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15525 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15526     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15527 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15528     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15529 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15530     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15531 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
15532     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15533 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15534     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15535 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
15536     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15537 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
15538     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15539 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15540     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15541 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15542     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15543 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15544     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15545 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
15546     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15547 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
15548     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15549 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15550     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15551 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15552     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15553 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15554     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15555 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15556     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15557 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15558     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15559 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
15560     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15561 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
15562     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15563 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
15564     programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
15565 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
15566     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15567 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15568     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15569 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15570     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15571 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15572     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15573 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
15574   esac
15575 done
15576 _ACEOF
15577
15578 cat >>$CONFIG_STATUS <<\_ACEOF
15579
15580 { (exit 0); exit 0; }
15581 _ACEOF
15582 chmod +x $CONFIG_STATUS
15583 ac_clean_files=$ac_clean_files_save
15584
15585
15586 # configure is writing to config.log, and then calls config.status.
15587 # config.status does its own redirection, appending to config.log.
15588 # Unfortunately, on DOS this fails, as config.log is still kept open
15589 # by configure, so config.status won't be able to write to it; its
15590 # output is simply discarded.  So we exec the FD to /dev/null,
15591 # effectively closing config.log, so it can be properly (re)opened and
15592 # appended to by config.status.  When coming back to configure, we
15593 # need to make the FD available again.
15594 if test "$no_create" != yes; then
15595   ac_cs_success=:
15596   exec 5>/dev/null
15597   $SHELL $CONFIG_STATUS || ac_cs_success=false
15598   exec 5>>config.log
15599   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15600   # would make configure fail if this is the last instruction.
15601   $ac_cs_success || { (exit 1); exit 1; }
15602 fi
15603
15604
15605 if test "$have_x" = "no"
15606 then
15607   echo
15608   echo "*** Warning: X development files not found. Wine will be built without"
15609   echo "*** X support, which currently does not work, and would probably not be"
15610   echo "*** what you want anyway. You will need to install devel packages of"
15611   echo "*** Xlib/Xfree86 at the very least."
15612 fi
15613
15614 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15615 then
15616   echo
15617   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15618   echo "*** terminal resize support. Consider upgrading ncurses."
15619 fi
15620
15621 if test "$wine_cv_libc_reentrant" = "no"
15622 then
15623   echo
15624   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15625   echo "*** threading support. Consider upgrading libc to a more recent"
15626   echo "*** reentrant version of libc."
15627 fi
15628
15629 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15630 then
15631   echo
15632   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15633   echo "*** applications won't work properly. You should upgrade your X11 library."
15634 fi
15635
15636 if test "$wine_cv_opengl_version_OK" = "no"
15637 then
15638   echo
15639   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
15640   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15641 fi
15642
15643 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
15644 then
15645   echo
15646   echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
15647   echo "*** thread-safety. To prevent crashes, OpenGL support has been disabled."
15648   echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
15649   echo "*** start configure with '--enable-opengl' to force OpenGL support."
15650 fi
15651
15652 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
15653 then
15654   echo
15655   echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
15656   echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
15657   echo "*** support before reporting bugs."
15658 fi
15659
15660 if test "$wine_cv_warn_cups_h" = "yes"
15661 then
15662   echo
15663   echo "*** Note: You have cups runtime libraries, but no development"
15664   echo "*** libraries. Install the cups-devel package or whichever package"
15665   echo "*** contains cups.h to enable CUPS support in Wine."
15666 fi
15667
15668 if test "$wine_cv_msg_freetype" = "yes"
15669 then
15670   echo
15671   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
15672   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15673   echo "*** freetype-devel package (or its equivalent on your distribution) to"
15674   echo "*** enable Wine to use TrueType fonts."
15675 fi
15676
15677 echo
15678 echo "Configure finished.  Do 'make depend && make' to compile Wine."
15679 echo
15680