Initial wineboot implementation; at this stage only wininit.ini
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20021219.
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 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME='Wine'
268 PACKAGE_TARNAME='wine'
269 PACKAGE_VERSION='20021219'
270 PACKAGE_STRING='Wine 20021219'
271 PACKAGE_BUGREPORT=''
272
273 ac_unique_file="server/atom.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures Wine 20021219 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 X features:
834   --x-includes=DIR    X include files are in DIR
835   --x-libraries=DIR   X library files are in DIR
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of Wine 20021219:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-win16         do not include Win16 support
853   --disable-debug         compile out all debugging messages
854   --disable-trace         compile out TRACE messages
855
856 Optional Packages:
857   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859   --without-opengl        do not use OpenGL
860   --without-curses        do not use curses
861   --with-wine-tools=<dir> use Wine tools from directory <dir>
862   --with-x                use the X Window System
863
864 Some influential environment variables:
865   CC          C compiler command
866   CFLAGS      C compiler flags
867   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
868               nonstandard directory <lib dir>
869   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
870               headers in a nonstandard directory <include dir>
871   CPP         C preprocessor
872
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
875
876 _ACEOF
877 fi
878
879 if test "$ac_init_help" = "recursive"; then
880   # If there are subdirs, report their specific --help.
881   ac_popdir=`pwd`
882   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883     test -d $ac_dir || continue
884     ac_builddir=.
885
886 if test "$ac_dir" != .; then
887   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888   # A "../" for each directory in $ac_dir_suffix.
889   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890 else
891   ac_dir_suffix= ac_top_builddir=
892 fi
893
894 case $srcdir in
895   .)  # No --srcdir option.  We are building in place.
896     ac_srcdir=.
897     if test -z "$ac_top_builddir"; then
898        ac_top_srcdir=.
899     else
900        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901     fi ;;
902   [\\/]* | ?:[\\/]* )  # Absolute path.
903     ac_srcdir=$srcdir$ac_dir_suffix;
904     ac_top_srcdir=$srcdir ;;
905   *) # Relative path.
906     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907     ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 esac
909 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910 # absolute.
911 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
912 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
913 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915
916     cd $ac_dir
917     # Check for guested configure; otherwise get Cygnus style configure.
918     if test -f $ac_srcdir/configure.gnu; then
919       echo
920       $SHELL $ac_srcdir/configure.gnu  --help=recursive
921     elif test -f $ac_srcdir/configure; then
922       echo
923       $SHELL $ac_srcdir/configure  --help=recursive
924     elif test -f $ac_srcdir/configure.ac ||
925            test -f $ac_srcdir/configure.in; then
926       echo
927       $ac_configure --help
928     else
929       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930     fi
931     cd $ac_popdir
932   done
933 fi
934
935 test -n "$ac_init_help" && exit 0
936 if $ac_init_version; then
937   cat <<\_ACEOF
938 Wine configure 20021219
939 generated by GNU Autoconf 2.57
940
941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
942 Free Software Foundation, Inc.
943 This configure script is free software; the Free Software Foundation
944 gives unlimited permission to copy, distribute and modify it.
945 _ACEOF
946   exit 0
947 fi
948 exec 5>config.log
949 cat >&5 <<_ACEOF
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
952
953 It was created by Wine $as_me 20021219, which was
954 generated by GNU Autoconf 2.57.  Invocation command line was
955
956   $ $0 $@
957
958 _ACEOF
959 {
960 cat <<_ASUNAME
961 ## --------- ##
962 ## Platform. ##
963 ## --------- ##
964
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
973
974 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
975 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
978 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
979 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
980 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
981
982 _ASUNAME
983
984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985 for as_dir in $PATH
986 do
987   IFS=$as_save_IFS
988   test -z "$as_dir" && as_dir=.
989   echo "PATH: $as_dir"
990 done
991
992 } >&5
993
994 cat >&5 <<_ACEOF
995
996
997 ## ----------- ##
998 ## Core tests. ##
999 ## ----------- ##
1000
1001 _ACEOF
1002
1003
1004 # Keep a trace of the command line.
1005 # Strip out --no-create and --no-recursion so they do not pile up.
1006 # Strip out --silent because we don't want to record it for future runs.
1007 # Also quote any args containing shell meta-characters.
1008 # Make two passes to allow for proper duplicate-argument suppression.
1009 ac_configure_args=
1010 ac_configure_args0=
1011 ac_configure_args1=
1012 ac_sep=
1013 ac_must_keep_next=false
1014 for ac_pass in 1 2
1015 do
1016   for ac_arg
1017   do
1018     case $ac_arg in
1019     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021     | -silent | --silent | --silen | --sile | --sil)
1022       continue ;;
1023     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025     esac
1026     case $ac_pass in
1027     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028     2)
1029       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030       if test $ac_must_keep_next = true; then
1031         ac_must_keep_next=false # Got value, back to normal.
1032       else
1033         case $ac_arg in
1034           *=* | --config-cache | -C | -disable-* | --disable-* \
1035           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037           | -with-* | --with-* | -without-* | --without-* | --x)
1038             case "$ac_configure_args0 " in
1039               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040             esac
1041             ;;
1042           -* ) ac_must_keep_next=true ;;
1043         esac
1044       fi
1045       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046       # Get rid of the leading space.
1047       ac_sep=" "
1048       ;;
1049     esac
1050   done
1051 done
1052 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log.  We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061   # Save into config.log some information that might help in debugging.
1062   {
1063     echo
1064
1065     cat <<\_ASBOX
1066 ## ---------------- ##
1067 ## Cache variables. ##
1068 ## ---------------- ##
1069 _ASBOX
1070     echo
1071     # The following way of writing the cache mishandles newlines in values,
1072 {
1073   (set) 2>&1 |
1074     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075     *ac_space=\ *)
1076       sed -n \
1077         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079       ;;
1080     *)
1081       sed -n \
1082         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083       ;;
1084     esac;
1085 }
1086     echo
1087
1088     cat <<\_ASBOX
1089 ## ----------------- ##
1090 ## Output variables. ##
1091 ## ----------------- ##
1092 _ASBOX
1093     echo
1094     for ac_var in $ac_subst_vars
1095     do
1096       eval ac_val=$`echo $ac_var`
1097       echo "$ac_var='"'"'$ac_val'"'"'"
1098     done | sort
1099     echo
1100
1101     if test -n "$ac_subst_files"; then
1102       cat <<\_ASBOX
1103 ## ------------- ##
1104 ## Output files. ##
1105 ## ------------- ##
1106 _ASBOX
1107       echo
1108       for ac_var in $ac_subst_files
1109       do
1110         eval ac_val=$`echo $ac_var`
1111         echo "$ac_var='"'"'$ac_val'"'"'"
1112       done | sort
1113       echo
1114     fi
1115
1116     if test -s confdefs.h; then
1117       cat <<\_ASBOX
1118 ## ----------- ##
1119 ## confdefs.h. ##
1120 ## ----------- ##
1121 _ASBOX
1122       echo
1123       sed "/^$/d" confdefs.h | sort
1124       echo
1125     fi
1126     test "$ac_signal" != 0 &&
1127       echo "$as_me: caught signal $ac_signal"
1128     echo "$as_me: exit $exit_status"
1129   } >&5
1130   rm -f core core.* *.core &&
1131   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132     exit $exit_status
1133      ' 0
1134 for ac_signal in 1 2 13 15; do
1135   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136 done
1137 ac_signal=0
1138
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142 echo >confdefs.h
1143
1144 # Predefined preprocessor variables.
1145
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_NAME "$PACKAGE_NAME"
1148 _ACEOF
1149
1150
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153 _ACEOF
1154
1155
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1158 _ACEOF
1159
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_STRING "$PACKAGE_STRING"
1163 _ACEOF
1164
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168 _ACEOF
1169
1170
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174   if test "x$prefix" != xNONE; then
1175     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176   else
1177     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178   fi
1179 fi
1180 for ac_site_file in $CONFIG_SITE; do
1181   if test -r "$ac_site_file"; then
1182     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184     sed 's/^/| /' "$ac_site_file" >&5
1185     . "$ac_site_file"
1186   fi
1187 done
1188
1189 if test -r "$cache_file"; then
1190   # Some versions of bash will fail to source /dev/null (special
1191   # files actually), so we avoid doing that.
1192   if test -f "$cache_file"; then
1193     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1195     case $cache_file in
1196       [\\/]* | ?:[\\/]* ) . $cache_file;;
1197       *)                      . ./$cache_file;;
1198     esac
1199   fi
1200 else
1201   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1203   >$cache_file
1204 fi
1205
1206 # Check that the precious variables saved in the cache have kept the same
1207 # value.
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212   eval ac_new_set=\$ac_env_${ac_var}_set
1213   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214   eval ac_new_val="\$ac_env_${ac_var}_value"
1215   case $ac_old_set,$ac_new_set in
1216     set,)
1217       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219       ac_cache_corrupted=: ;;
1220     ,set)
1221       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223       ac_cache_corrupted=: ;;
1224     ,);;
1225     *)
1226       if test "x$ac_old_val" != "x$ac_new_val"; then
1227         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1230 echo "$as_me:   former value:  $ac_old_val" >&2;}
1231         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1232 echo "$as_me:   current value: $ac_new_val" >&2;}
1233         ac_cache_corrupted=:
1234       fi;;
1235   esac
1236   # Pass precious variables to config.status.
1237   if test "$ac_new_set" = set; then
1238     case $ac_new_val in
1239     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241     *) ac_arg=$ac_var=$ac_new_val ;;
1242     esac
1243     case " $ac_configure_args " in
1244       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1245       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1246     esac
1247   fi
1248 done
1249 if $ac_cache_corrupted; then
1250   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254    { (exit 1); exit 1; }; }
1255 fi
1256
1257 ac_ext=c
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290           ac_config_headers="$ac_config_headers include/config.h"
1291
1292 ac_aux_dir=
1293 for ac_dir in tools $srcdir/tools; do
1294   if test -f $ac_dir/install-sh; then
1295     ac_aux_dir=$ac_dir
1296     ac_install_sh="$ac_aux_dir/install-sh -c"
1297     break
1298   elif test -f $ac_dir/install.sh; then
1299     ac_aux_dir=$ac_dir
1300     ac_install_sh="$ac_aux_dir/install.sh -c"
1301     break
1302   elif test -f $ac_dir/shtool; then
1303     ac_aux_dir=$ac_dir
1304     ac_install_sh="$ac_aux_dir/shtool install -c"
1305     break
1306   fi
1307 done
1308 if test -z "$ac_aux_dir"; then
1309   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1310 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1311    { (exit 1); exit 1; }; }
1312 fi
1313 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1316
1317
1318
1319 # Check whether --enable-win16 or --disable-win16 was given.
1320 if test "${enable_win16+set}" = set; then
1321   enableval="$enable_win16"
1322
1323 fi;
1324 # Check whether --enable-debug or --disable-debug was given.
1325 if test "${enable_debug+set}" = set; then
1326   enableval="$enable_debug"
1327
1328 fi;
1329 # Check whether --enable-trace or --disable-trace was given.
1330 if test "${enable_trace+set}" = set; then
1331   enableval="$enable_trace"
1332
1333 fi;
1334
1335
1336 # Check whether --with-opengl or --without-opengl was given.
1337 if test "${with_opengl+set}" = set; then
1338   withval="$with_opengl"
1339
1340 fi;
1341
1342 # Check whether --with-curses or --without-curses was given.
1343 if test "${with_curses+set}" = set; then
1344   withval="$with_curses"
1345
1346 fi;
1347
1348 # Check whether --with-wine-tools or --without-wine-tools was given.
1349 if test "${with_wine_tools+set}" = set; then
1350   withval="$with_wine_tools"
1351
1352 fi;
1353
1354
1355 WIN16_FILES="\$(WIN16_FILES)"
1356
1357 WIN16_INSTALL="\$(WIN16_INSTALL)"
1358
1359 if test "x$enable_win16" = "xno"
1360 then
1361   WIN16_FILES=""
1362   WIN16_INSTALL=""
1363 fi
1364 if test "x$enable_debug" = "xno"
1365 then
1366
1367 cat >>confdefs.h <<\_ACEOF
1368 #define NO_DEBUG_MSGS 1
1369 _ACEOF
1370
1371 fi
1372 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1373 then
1374
1375 cat >>confdefs.h <<\_ACEOF
1376 #define NO_TRACE_MSGS 1
1377 _ACEOF
1378
1379 fi
1380
1381
1382 # Make sure we can run config.sub.
1383 $ac_config_sub sun4 >/dev/null 2>&1 ||
1384   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1385 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1386    { (exit 1); exit 1; }; }
1387
1388 echo "$as_me:$LINENO: checking build system type" >&5
1389 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1390 if test "${ac_cv_build+set}" = set; then
1391   echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393   ac_cv_build_alias=$build_alias
1394 test -z "$ac_cv_build_alias" &&
1395   ac_cv_build_alias=`$ac_config_guess`
1396 test -z "$ac_cv_build_alias" &&
1397   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1398 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1399    { (exit 1); exit 1; }; }
1400 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1401   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1402 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1403    { (exit 1); exit 1; }; }
1404
1405 fi
1406 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1407 echo "${ECHO_T}$ac_cv_build" >&6
1408 build=$ac_cv_build
1409 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
1413
1414 echo "$as_me:$LINENO: checking host system type" >&5
1415 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1416 if test "${ac_cv_host+set}" = set; then
1417   echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419   ac_cv_host_alias=$host_alias
1420 test -z "$ac_cv_host_alias" &&
1421   ac_cv_host_alias=$ac_cv_build_alias
1422 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1423   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1424 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1425    { (exit 1); exit 1; }; }
1426
1427 fi
1428 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1429 echo "${ECHO_T}$ac_cv_host" >&6
1430 host=$ac_cv_host
1431 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
1435
1436 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1437 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1438 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1439 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   cat >conftest.make <<\_ACEOF
1443 all:
1444         @echo 'ac_maketemp="$(MAKE)"'
1445 _ACEOF
1446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1447 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1448 if test -n "$ac_maketemp"; then
1449   eval ac_cv_prog_make_${ac_make}_set=yes
1450 else
1451   eval ac_cv_prog_make_${ac_make}_set=no
1452 fi
1453 rm -f conftest.make
1454 fi
1455 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1456   echo "$as_me:$LINENO: result: yes" >&5
1457 echo "${ECHO_T}yes" >&6
1458   SET_MAKE=
1459 else
1460   echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462   SET_MAKE="MAKE=${MAKE-make}"
1463 fi
1464
1465 ac_ext=c
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476   echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478   if test -n "$CC"; then
1479   ac_cv_prog_CC="$CC" # Let the user override the test.
1480 else
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484   IFS=$as_save_IFS
1485   test -z "$as_dir" && as_dir=.
1486   for ac_exec_ext in '' $ac_executable_extensions; do
1487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490     break 2
1491   fi
1492 done
1493 done
1494
1495 fi
1496 fi
1497 CC=$ac_cv_prog_CC
1498 if test -n "$CC"; then
1499   echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1501 else
1502   echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1504 fi
1505
1506 fi
1507 if test -z "$ac_cv_prog_CC"; then
1508   ac_ct_CC=$CC
1509   # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514   echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516   if test -n "$ac_ct_CC"; then
1517   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 else
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 for as_dir in $PATH
1521 do
1522   IFS=$as_save_IFS
1523   test -z "$as_dir" && as_dir=.
1524   for ac_exec_ext in '' $ac_executable_extensions; do
1525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526     ac_cv_prog_ac_ct_CC="gcc"
1527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528     break 2
1529   fi
1530 done
1531 done
1532
1533 fi
1534 fi
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1539 else
1540   echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1542 fi
1543
1544   CC=$ac_ct_CC
1545 else
1546   CC="$ac_cv_prog_CC"
1547 fi
1548
1549 if test -z "$CC"; then
1550   if test -n "$ac_tool_prefix"; then
1551   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556   echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558   if test -n "$CC"; then
1559   ac_cv_prog_CC="$CC" # Let the user override the test.
1560 else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   for ac_exec_ext in '' $ac_executable_extensions; do
1567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568     ac_cv_prog_CC="${ac_tool_prefix}cc"
1569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570     break 2
1571   fi
1572 done
1573 done
1574
1575 fi
1576 fi
1577 CC=$ac_cv_prog_CC
1578 if test -n "$CC"; then
1579   echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1581 else
1582   echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 fi
1585
1586 fi
1587 if test -z "$ac_cv_prog_CC"; then
1588   ac_ct_CC=$CC
1589   # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594   echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596   if test -n "$ac_ct_CC"; then
1597   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598 else
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602   IFS=$as_save_IFS
1603   test -z "$as_dir" && as_dir=.
1604   for ac_exec_ext in '' $ac_executable_extensions; do
1605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606     ac_cv_prog_ac_ct_CC="cc"
1607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608     break 2
1609   fi
1610 done
1611 done
1612
1613 fi
1614 fi
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1619 else
1620   echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1622 fi
1623
1624   CC=$ac_ct_CC
1625 else
1626   CC="$ac_cv_prog_CC"
1627 fi
1628
1629 fi
1630 if test -z "$CC"; then
1631   # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   if test -n "$CC"; then
1639   ac_cv_prog_CC="$CC" # Let the user override the test.
1640 else
1641   ac_prog_rejected=no
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1644 do
1645   IFS=$as_save_IFS
1646   test -z "$as_dir" && as_dir=.
1647   for ac_exec_ext in '' $ac_executable_extensions; do
1648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650        ac_prog_rejected=yes
1651        continue
1652      fi
1653     ac_cv_prog_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 if test $ac_prog_rejected = yes; then
1661   # We found a bogon in the path, so make sure we never use it.
1662   set dummy $ac_cv_prog_CC
1663   shift
1664   if test $# != 0; then
1665     # We chose a different compiler from the bogus one.
1666     # However, it has the same basename, so the bogon will be chosen
1667     # first if we set CC to just the basename; use the full file name.
1668     shift
1669     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1670   fi
1671 fi
1672 fi
1673 fi
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676   echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679   echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   if test -n "$ac_tool_prefix"; then
1686   for ac_prog in cl
1687   do
1688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   if test -n "$CC"; then
1696   ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703   for ac_exec_ext in '' $ac_executable_extensions; do
1704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707     break 2
1708   fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 CC=$ac_cv_prog_CC
1715 if test -n "$CC"; then
1716   echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1718 else
1719   echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723     test -n "$CC" && break
1724   done
1725 fi
1726 if test -z "$CC"; then
1727   ac_ct_CC=$CC
1728   for ac_prog in cl
1729 do
1730   # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   if test -n "$ac_ct_CC"; then
1738   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   for ac_exec_ext in '' $ac_executable_extensions; do
1746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747     ac_cv_prog_ac_ct_CC="$ac_prog"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750   fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757 if test -n "$ac_ct_CC"; then
1758   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759 echo "${ECHO_T}$ac_ct_CC" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765   test -n "$ac_ct_CC" && break
1766 done
1767
1768   CC=$ac_ct_CC
1769 fi
1770
1771 fi
1772
1773
1774 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775 See \`config.log' for more details." >&5
1776 echo "$as_me: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&2;}
1778    { (exit 1); exit 1; }; }
1779
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782      "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785   (eval $ac_compiler --version </dev/null >&5) 2>&5
1786   ac_status=$?
1787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788   (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790   (eval $ac_compiler -v </dev/null >&5) 2>&5
1791   ac_status=$?
1792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793   (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795   (eval $ac_compiler -V </dev/null >&5) 2>&5
1796   ac_status=$?
1797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798   (exit $ac_status); }
1799
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line $LINENO "configure"
1802 /* confdefs.h.  */
1803 _ACEOF
1804 cat confdefs.h >>conftest.$ac_ext
1805 cat >>conftest.$ac_ext <<_ACEOF
1806 /* end confdefs.h.  */
1807
1808 int
1809 main ()
1810 {
1811
1812   ;
1813   return 0;
1814 }
1815 _ACEOF
1816 ac_clean_files_save=$ac_clean_files
1817 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1818 # Try to create an executable without -o first, disregard a.out.
1819 # It will help us diagnose broken compilers, and finding out an intuition
1820 # of exeext.
1821 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1822 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1823 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1824 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1825   (eval $ac_link_default) 2>&5
1826   ac_status=$?
1827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828   (exit $ac_status); }; then
1829   # Find the output, starting from the most likely.  This scheme is
1830 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1831 # resort.
1832
1833 # Be careful to initialize this variable, since it used to be cached.
1834 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1835 ac_cv_exeext=
1836 # b.out is created by i960 compilers.
1837 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1838 do
1839   test -f "$ac_file" || continue
1840   case $ac_file in
1841     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1842         ;;
1843     conftest.$ac_ext )
1844         # This is the source file.
1845         ;;
1846     [ab].out )
1847         # We found the default executable, but exeext='' is most
1848         # certainly right.
1849         break;;
1850     *.* )
1851         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1852         # FIXME: I believe we export ac_cv_exeext for Libtool,
1853         # but it would be cool to find out if it's true.  Does anybody
1854         # maintain Libtool? --akim.
1855         export ac_cv_exeext
1856         break;;
1857     * )
1858         break;;
1859   esac
1860 done
1861 else
1862   echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: C compiler cannot create executables
1868 See \`config.log' for more details." >&2;}
1869    { (exit 77); exit 77; }; }
1870 fi
1871
1872 ac_exeext=$ac_cv_exeext
1873 echo "$as_me:$LINENO: result: $ac_file" >&5
1874 echo "${ECHO_T}$ac_file" >&6
1875
1876 # Check the compiler produces executables we can run.  If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1879 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1880 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1881 # If not cross compiling, check that we can run a simple program.
1882 if test "$cross_compiling" != yes; then
1883   if { ac_try='./$ac_file'
1884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885   (eval $ac_try) 2>&5
1886   ac_status=$?
1887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888   (exit $ac_status); }; }; then
1889     cross_compiling=no
1890   else
1891     if test "$cross_compiling" = maybe; then
1892         cross_compiling=yes
1893     else
1894         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1895 If you meant to cross compile, use \`--host'.
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&2;}
1900    { (exit 1); exit 1; }; }
1901     fi
1902   fi
1903 fi
1904 echo "$as_me:$LINENO: result: yes" >&5
1905 echo "${ECHO_T}yes" >&6
1906
1907 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1908 ac_clean_files=$ac_clean_files_save
1909 # Check the compiler produces executables we can run.  If not, either
1910 # the compiler is broken, or we cross compile.
1911 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1912 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1913 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1914 echo "${ECHO_T}$cross_compiling" >&6
1915
1916 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1917 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1919   (eval $ac_link) 2>&5
1920   ac_status=$?
1921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922   (exit $ac_status); }; then
1923   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1924 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1925 # work properly (i.e., refer to `conftest.exe'), while it won't with
1926 # `rm'.
1927 for ac_file in conftest.exe conftest conftest.*; do
1928   test -f "$ac_file" || continue
1929   case $ac_file in
1930     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1931     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1932           export ac_cv_exeext
1933           break;;
1934     * ) break;;
1935   esac
1936 done
1937 else
1938   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1941 See \`config.log' for more details." >&2;}
1942    { (exit 1); exit 1; }; }
1943 fi
1944
1945 rm -f conftest$ac_cv_exeext
1946 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1947 echo "${ECHO_T}$ac_cv_exeext" >&6
1948
1949 rm -f conftest.$ac_ext
1950 EXEEXT=$ac_cv_exeext
1951 ac_exeext=$EXEEXT
1952 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1953 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1954 if test "${ac_cv_objext+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 /* confdefs.h.  */
1960 _ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h.  */
1964
1965 int
1966 main ()
1967 {
1968
1969   ;
1970   return 0;
1971 }
1972 _ACEOF
1973 rm -f conftest.o conftest.obj
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975   (eval $ac_compile) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }; then
1979   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1980   case $ac_file in
1981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1982     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983        break;;
1984   esac
1985 done
1986 else
1987   echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&2;}
1994    { (exit 1); exit 1; }; }
1995 fi
1996
1997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998 fi
1999 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000 echo "${ECHO_T}$ac_cv_objext" >&6
2001 OBJEXT=$ac_cv_objext
2002 ac_objext=$OBJEXT
2003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2010 /* confdefs.h.  */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h.  */
2015
2016 int
2017 main ()
2018 {
2019 #ifndef __GNUC__
2020        choke me
2021 #endif
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 rm -f conftest.$ac_objext
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029   (eval $ac_compile) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); } &&
2033          { ac_try='test -s conftest.$ac_objext'
2034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035   (eval $ac_try) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }; }; then
2039   ac_compiler_gnu=yes
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 ac_compiler_gnu=no
2045 fi
2046 rm -f conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2048
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS=${CFLAGS+set}
2054 ac_save_CFLAGS=$CFLAGS
2055 CFLAGS="-g"
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 #line $LINENO "configure"
2063 /* confdefs.h.  */
2064 _ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h.  */
2068
2069 int
2070 main ()
2071 {
2072
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079   (eval $ac_compile) 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); } &&
2083          { ac_try='test -s conftest.$ac_objext'
2084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085   (eval $ac_try) 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }; }; then
2089   ac_cv_prog_cc_g=yes
2090 else
2091   echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2093
2094 ac_cv_prog_cc_g=no
2095 fi
2096 rm -f conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2100 if test "$ac_test_CFLAGS" = set; then
2101   CFLAGS=$ac_save_CFLAGS
2102 elif test $ac_cv_prog_cc_g = yes; then
2103   if test "$GCC" = yes; then
2104     CFLAGS="-g -O2"
2105   else
2106     CFLAGS="-g"
2107   fi
2108 else
2109   if test "$GCC" = yes; then
2110     CFLAGS="-O2"
2111   else
2112     CFLAGS=
2113   fi
2114 fi
2115 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2116 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   ac_cv_prog_cc_stdc=no
2121 ac_save_CC=$CC
2122 cat >conftest.$ac_ext <<_ACEOF
2123 #line $LINENO "configure"
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129 #include <stdarg.h>
2130 #include <stdio.h>
2131 #include <sys/types.h>
2132 #include <sys/stat.h>
2133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2134 struct buf { int x; };
2135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (p, i)
2137      char **p;
2138      int i;
2139 {
2140   return p[i];
2141 }
2142 static char *f (char * (*g) (char **, int), char **p, ...)
2143 {
2144   char *s;
2145   va_list v;
2146   va_start (v,p);
2147   s = g (p, va_arg (v,int));
2148   va_end (v);
2149   return s;
2150 }
2151 int test (int i, double x);
2152 struct s1 {int (*f) (int a);};
2153 struct s2 {int (*f) (double a);};
2154 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2155 int argc;
2156 char **argv;
2157 int
2158 main ()
2159 {
2160 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2161   ;
2162   return 0;
2163 }
2164 _ACEOF
2165 # Don't try gcc -ansi; that turns off useful extensions and
2166 # breaks some systems' header files.
2167 # AIX                   -qlanglvl=ansi
2168 # Ultrix and OSF/1      -std1
2169 # HP-UX 10.20 and later -Ae
2170 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2171 # SVR4                  -Xc -D__EXTENSIONS__
2172 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2173 do
2174   CC="$ac_save_CC $ac_arg"
2175   rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177   (eval $ac_compile) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); } &&
2181          { ac_try='test -s conftest.$ac_objext'
2182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183   (eval $ac_try) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; }; then
2187   ac_cv_prog_cc_stdc=$ac_arg
2188 break
2189 else
2190   echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 fi
2194 rm -f conftest.$ac_objext
2195 done
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2197 CC=$ac_save_CC
2198
2199 fi
2200
2201 case "x$ac_cv_prog_cc_stdc" in
2202   x|xno)
2203     echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2205   *)
2206     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208     CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 esac
2210
2211 # Some people use a C++ compiler to compile C.  Since we use `exit',
2212 # in C++ we need to declare it.  In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #ifndef __cplusplus
2217   choke me
2218 #endif
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222   (eval $ac_compile) 2>&5
2223   ac_status=$?
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); } &&
2226          { ac_try='test -s conftest.$ac_objext'
2227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228   (eval $ac_try) 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }; }; then
2232   for ac_declaration in \
2233    ''\
2234    '#include <stdlib.h>' \
2235    'extern "C" void std::exit (int) throw (); using std::exit;' \
2236    'extern "C" void std::exit (int); using std::exit;' \
2237    'extern "C" void exit (int) throw ();' \
2238    'extern "C" void exit (int);' \
2239    'void exit (int);'
2240 do
2241   cat >conftest.$ac_ext <<_ACEOF
2242 #line $LINENO "configure"
2243 /* confdefs.h.  */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h.  */
2248 #include <stdlib.h>
2249 $ac_declaration
2250 int
2251 main ()
2252 {
2253 exit (42);
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260   (eval $ac_compile) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } &&
2264          { ac_try='test -s conftest.$ac_objext'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; }; then
2270   :
2271 else
2272   echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 continue
2276 fi
2277 rm -f conftest.$ac_objext conftest.$ac_ext
2278   cat >conftest.$ac_ext <<_ACEOF
2279 #line $LINENO "configure"
2280 /* confdefs.h.  */
2281 _ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h.  */
2285 $ac_declaration
2286 int
2287 main ()
2288 {
2289 exit (42);
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296   (eval $ac_compile) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); } &&
2300          { ac_try='test -s conftest.$ac_objext'
2301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302   (eval $ac_try) 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; }; then
2306   break
2307 else
2308   echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2310
2311 fi
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 done
2314 rm -f conftest*
2315 if test -n "$ac_declaration"; then
2316   echo '#ifdef __cplusplus' >>confdefs.h
2317   echo $ac_declaration      >>confdefs.h
2318   echo '#endif'             >>confdefs.h
2319 fi
2320
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 fi
2326 rm -f conftest.$ac_objext conftest.$ac_ext
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332
2333 ac_ext=c
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2339 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2340 # On Suns, sometimes $CPP names a directory.
2341 if test -n "$CPP" && test -d "$CPP"; then
2342   CPP=
2343 fi
2344 if test -z "$CPP"; then
2345   if test "${ac_cv_prog_CPP+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348       # Double quotes because CPP needs to be expanded
2349     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2350     do
2351       ac_preproc_ok=false
2352 for ac_c_preproc_warn_flag in '' yes
2353 do
2354   # Use a header file that comes with gcc, so configuring glibc
2355   # with a fresh cross-compiler works.
2356   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2357   # <limits.h> exists even on freestanding compilers.
2358   # On the NeXT, cc -E runs the code through the compiler's parser,
2359   # not just through cpp. "Syntax error" is here to catch this case.
2360   cat >conftest.$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367 #ifdef __STDC__
2368 # include <limits.h>
2369 #else
2370 # include <assert.h>
2371 #endif
2372                      Syntax error
2373 _ACEOF
2374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2376   ac_status=$?
2377   grep -v '^ *+' conftest.er1 >conftest.err
2378   rm -f conftest.er1
2379   cat conftest.err >&5
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); } >/dev/null; then
2382   if test -s conftest.err; then
2383     ac_cpp_err=$ac_c_preproc_warn_flag
2384   else
2385     ac_cpp_err=
2386   fi
2387 else
2388   ac_cpp_err=yes
2389 fi
2390 if test -z "$ac_cpp_err"; then
2391   :
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396   # Broken: fails on valid input.
2397 continue
2398 fi
2399 rm -f conftest.err conftest.$ac_ext
2400
2401   # OK, works on sane cases.  Now check whether non-existent headers
2402   # can be detected and how.
2403   cat >conftest.$ac_ext <<_ACEOF
2404 #line $LINENO "configure"
2405 /* confdefs.h.  */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h.  */
2410 #include <ac_nonexistent.h>
2411 _ACEOF
2412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } >/dev/null; then
2420   if test -s conftest.err; then
2421     ac_cpp_err=$ac_c_preproc_warn_flag
2422   else
2423     ac_cpp_err=
2424   fi
2425 else
2426   ac_cpp_err=yes
2427 fi
2428 if test -z "$ac_cpp_err"; then
2429   # Broken: success on invalid input.
2430 continue
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435   # Passes both tests.
2436 ac_preproc_ok=:
2437 break
2438 fi
2439 rm -f conftest.err conftest.$ac_ext
2440
2441 done
2442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2443 rm -f conftest.err conftest.$ac_ext
2444 if $ac_preproc_ok; then
2445   break
2446 fi
2447
2448     done
2449     ac_cv_prog_CPP=$CPP
2450
2451 fi
2452   CPP=$ac_cv_prog_CPP
2453 else
2454   ac_cv_prog_CPP=$CPP
2455 fi
2456 echo "$as_me:$LINENO: result: $CPP" >&5
2457 echo "${ECHO_T}$CPP" >&6
2458 ac_preproc_ok=false
2459 for ac_c_preproc_warn_flag in '' yes
2460 do
2461   # Use a header file that comes with gcc, so configuring glibc
2462   # with a fresh cross-compiler works.
2463   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464   # <limits.h> exists even on freestanding compilers.
2465   # On the NeXT, cc -E runs the code through the compiler's parser,
2466   # not just through cpp. "Syntax error" is here to catch this case.
2467   cat >conftest.$ac_ext <<_ACEOF
2468 #line $LINENO "configure"
2469 /* confdefs.h.  */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h.  */
2474 #ifdef __STDC__
2475 # include <limits.h>
2476 #else
2477 # include <assert.h>
2478 #endif
2479                      Syntax error
2480 _ACEOF
2481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2483   ac_status=$?
2484   grep -v '^ *+' conftest.er1 >conftest.err
2485   rm -f conftest.er1
2486   cat conftest.err >&5
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); } >/dev/null; then
2489   if test -s conftest.err; then
2490     ac_cpp_err=$ac_c_preproc_warn_flag
2491   else
2492     ac_cpp_err=
2493   fi
2494 else
2495   ac_cpp_err=yes
2496 fi
2497 if test -z "$ac_cpp_err"; then
2498   :
2499 else
2500   echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2502
2503   # Broken: fails on valid input.
2504 continue
2505 fi
2506 rm -f conftest.err conftest.$ac_ext
2507
2508   # OK, works on sane cases.  Now check whether non-existent headers
2509   # can be detected and how.
2510   cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2512 /* confdefs.h.  */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h.  */
2517 #include <ac_nonexistent.h>
2518 _ACEOF
2519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2521   ac_status=$?
2522   grep -v '^ *+' conftest.er1 >conftest.err
2523   rm -f conftest.er1
2524   cat conftest.err >&5
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } >/dev/null; then
2527   if test -s conftest.err; then
2528     ac_cpp_err=$ac_c_preproc_warn_flag
2529   else
2530     ac_cpp_err=
2531   fi
2532 else
2533   ac_cpp_err=yes
2534 fi
2535 if test -z "$ac_cpp_err"; then
2536   # Broken: success on invalid input.
2537 continue
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542   # Passes both tests.
2543 ac_preproc_ok=:
2544 break
2545 fi
2546 rm -f conftest.err conftest.$ac_ext
2547
2548 done
2549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2550 rm -f conftest.err conftest.$ac_ext
2551 if $ac_preproc_ok; then
2552   :
2553 else
2554   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2557 See \`config.log' for more details." >&2;}
2558    { (exit 1); exit 1; }; }
2559 fi
2560
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2569 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2570 if test "${wine_cv_toolsdir+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   if test -z "$with_wine_tools"; then
2574      if test "$cross_compiling" = "yes"; then
2575        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2576 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2577    { (exit 1); exit 1; }; }
2578      else
2579        wine_cv_toolsdir="\$(TOPOBJDIR)"
2580      fi
2581    elif test -d "$with_wine_tools/tools/winebuild"; then
2582      case $with_wine_tools in
2583        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2584        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2585      esac
2586    else
2587      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2588 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2589    { (exit 1); exit 1; }; }
2590    fi
2591 fi
2592 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2593 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2594 TOOLSDIR=$wine_cv_toolsdir
2595
2596
2597
2598
2599 echo "$as_me:$LINENO: checking for X" >&5
2600 echo $ECHO_N "checking for X... $ECHO_C" >&6
2601
2602
2603 # Check whether --with-x or --without-x was given.
2604 if test "${with_x+set}" = set; then
2605   withval="$with_x"
2606
2607 fi;
2608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2609 if test "x$with_x" = xno; then
2610   # The user explicitly disabled X.
2611   have_x=disabled
2612 else
2613   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2614     # Both variables are already set.
2615     have_x=yes
2616   else
2617     if test "${ac_cv_have_x+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   # One or both of the vars are not set, and there is no cached value.
2621 ac_x_includes=no ac_x_libraries=no
2622 rm -fr conftest.dir
2623 if mkdir conftest.dir; then
2624   cd conftest.dir
2625   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2626   cat >Imakefile <<'_ACEOF'
2627 acfindx:
2628         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2629 _ACEOF
2630   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2631     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2632     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2633     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2634     for ac_extension in a so sl; do
2635       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2636          test -f $ac_im_libdir/libX11.$ac_extension; then
2637         ac_im_usrlibdir=$ac_im_libdir; break
2638       fi
2639     done
2640     # Screen out bogus values from the imake configuration.  They are
2641     # bogus both because they are the default anyway, and because
2642     # using them would break gcc on systems where it needs fixed includes.
2643     case $ac_im_incroot in
2644         /usr/include) ;;
2645         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2646     esac
2647     case $ac_im_usrlibdir in
2648         /usr/lib | /lib) ;;
2649         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2650     esac
2651   fi
2652   cd ..
2653   rm -fr conftest.dir
2654 fi
2655
2656 # Standard set of common directories for X headers.
2657 # Check X11 before X11Rn because it is often a symlink to the current release.
2658 ac_x_header_dirs='
2659 /usr/X11/include
2660 /usr/X11R6/include
2661 /usr/X11R5/include
2662 /usr/X11R4/include
2663
2664 /usr/include/X11
2665 /usr/include/X11R6
2666 /usr/include/X11R5
2667 /usr/include/X11R4
2668
2669 /usr/local/X11/include
2670 /usr/local/X11R6/include
2671 /usr/local/X11R5/include
2672 /usr/local/X11R4/include
2673
2674 /usr/local/include/X11
2675 /usr/local/include/X11R6
2676 /usr/local/include/X11R5
2677 /usr/local/include/X11R4
2678
2679 /usr/X386/include
2680 /usr/x386/include
2681 /usr/XFree86/include/X11
2682
2683 /usr/include
2684 /usr/local/include
2685 /usr/unsupported/include
2686 /usr/athena/include
2687 /usr/local/x11r5/include
2688 /usr/lpp/Xamples/include
2689
2690 /usr/openwin/include
2691 /usr/openwin/share/include'
2692
2693 if test "$ac_x_includes" = no; then
2694   # Guess where to find include files, by looking for Intrinsic.h.
2695   # First, try using that file with no special directory specified.
2696   cat >conftest.$ac_ext <<_ACEOF
2697 #line $LINENO "configure"
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703 #include <X11/Intrinsic.h>
2704 _ACEOF
2705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707   ac_status=$?
2708   grep -v '^ *+' conftest.er1 >conftest.err
2709   rm -f conftest.er1
2710   cat conftest.err >&5
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } >/dev/null; then
2713   if test -s conftest.err; then
2714     ac_cpp_err=$ac_c_preproc_warn_flag
2715   else
2716     ac_cpp_err=
2717   fi
2718 else
2719   ac_cpp_err=yes
2720 fi
2721 if test -z "$ac_cpp_err"; then
2722   # We can compile using X headers with no special include directory.
2723 ac_x_includes=
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728   for ac_dir in $ac_x_header_dirs; do
2729   if test -r "$ac_dir/X11/Intrinsic.h"; then
2730     ac_x_includes=$ac_dir
2731     break
2732   fi
2733 done
2734 fi
2735 rm -f conftest.err conftest.$ac_ext
2736 fi # $ac_x_includes = no
2737
2738 if test "$ac_x_libraries" = no; then
2739   # Check for the libraries.
2740   # See if we find them without any special options.
2741   # Don't add to $LIBS permanently.
2742   ac_save_LIBS=$LIBS
2743   LIBS="-lXt $LIBS"
2744   cat >conftest.$ac_ext <<_ACEOF
2745 #line $LINENO "configure"
2746 /* confdefs.h.  */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h.  */
2751 #include <X11/Intrinsic.h>
2752 int
2753 main ()
2754 {
2755 XtMalloc (0)
2756   ;
2757   return 0;
2758 }
2759 _ACEOF
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762   (eval $ac_link) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } &&
2766          { ac_try='test -s conftest$ac_exeext'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; }; then
2772   LIBS=$ac_save_LIBS
2773 # We can link X programs with no special library path.
2774 ac_x_libraries=
2775 else
2776   echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2778
2779 LIBS=$ac_save_LIBS
2780 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2781 do
2782   # Don't even attempt the hair of trying to link an X program!
2783   for ac_extension in a so sl; do
2784     if test -r $ac_dir/libXt.$ac_extension; then
2785       ac_x_libraries=$ac_dir
2786       break 2
2787     fi
2788   done
2789 done
2790 fi
2791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2792 fi # $ac_x_libraries = no
2793
2794 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2795   # Didn't find X anywhere.  Cache the known absence of X.
2796   ac_cv_have_x="have_x=no"
2797 else
2798   # Record where we found X for the cache.
2799   ac_cv_have_x="have_x=yes \
2800                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2801 fi
2802 fi
2803
2804   fi
2805   eval "$ac_cv_have_x"
2806 fi # $with_x != no
2807
2808 if test "$have_x" != yes; then
2809   echo "$as_me:$LINENO: result: $have_x" >&5
2810 echo "${ECHO_T}$have_x" >&6
2811   no_x=yes
2812 else
2813   # If each of the values was on the command line, it overrides each guess.
2814   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2815   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2816   # Update the cache value to reflect the command line values.
2817   ac_cv_have_x="have_x=yes \
2818                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2819   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2820 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2821 fi
2822
2823 if test "$no_x" = yes; then
2824   # Not all programs may use this symbol, but it does not hurt to define it.
2825
2826 cat >>confdefs.h <<\_ACEOF
2827 #define X_DISPLAY_MISSING 1
2828 _ACEOF
2829
2830   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2831 else
2832   if test -n "$x_includes"; then
2833     X_CFLAGS="$X_CFLAGS -I$x_includes"
2834   fi
2835
2836   # It would also be nice to do this for all -L options, not just this one.
2837   if test -n "$x_libraries"; then
2838     X_LIBS="$X_LIBS -L$x_libraries"
2839     # For Solaris; some versions of Sun CC require a space after -R and
2840     # others require no space.  Words are not sufficient . . . .
2841     case `(uname -sr) 2>/dev/null` in
2842     "SunOS 5"*)
2843       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2844 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2845       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2846       cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853
2854 int
2855 main ()
2856 {
2857
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 rm -f conftest.$ac_objext conftest$ac_exeext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2864   (eval $ac_link) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } &&
2868          { ac_try='test -s conftest$ac_exeext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   ac_R_nospace=yes
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_R_nospace=no
2880 fi
2881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2882       if test $ac_R_nospace = yes; then
2883         echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2885         X_LIBS="$X_LIBS -R$x_libraries"
2886       else
2887         LIBS="$ac_xsave_LIBS -R $x_libraries"
2888         cat >conftest.$ac_ext <<_ACEOF
2889 #line $LINENO "configure"
2890 /* confdefs.h.  */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h.  */
2895
2896 int
2897 main ()
2898 {
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.$ac_objext conftest$ac_exeext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2906   (eval $ac_link) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } &&
2910          { ac_try='test -s conftest$ac_exeext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   ac_R_space=yes
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 ac_R_space=no
2922 fi
2923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2924         if test $ac_R_space = yes; then
2925           echo "$as_me:$LINENO: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2927           X_LIBS="$X_LIBS -R $x_libraries"
2928         else
2929           echo "$as_me:$LINENO: result: neither works" >&5
2930 echo "${ECHO_T}neither works" >&6
2931         fi
2932       fi
2933       LIBS=$ac_xsave_LIBS
2934     esac
2935   fi
2936
2937   # Check for system-dependent libraries X programs must link with.
2938   # Do this before checking for the system-independent R6 libraries
2939   # (-lICE), since we may need -lsocket or whatever for X linking.
2940
2941   if test "$ISC" = yes; then
2942     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2943   else
2944     # Martyn Johnson says this is needed for Ultrix, if the X
2945     # libraries were built with DECnet support.  And Karl Berry says
2946     # the Alpha needs dnet_stub (dnet does not exist).
2947     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2948     cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955
2956 /* Override any gcc2 internal prototype to avoid an error.  */
2957 #ifdef __cplusplus
2958 extern "C"
2959 #endif
2960 /* We use char because int might match the return type of a gcc2
2961    builtin and then its argument prototype would still apply.  */
2962 char XOpenDisplay ();
2963 int
2964 main ()
2965 {
2966 XOpenDisplay ();
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext conftest$ac_exeext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2973   (eval $ac_link) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -s conftest$ac_exeext'
2978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   :
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2989 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2990 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2991   echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993   ac_check_lib_save_LIBS=$LIBS
2994 LIBS="-ldnet  $LIBS"
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002
3003 /* Override any gcc2 internal prototype to avoid an error.  */
3004 #ifdef __cplusplus
3005 extern "C"
3006 #endif
3007 /* We use char because int might match the return type of a gcc2
3008    builtin and then its argument prototype would still apply.  */
3009 char dnet_ntoa ();
3010 int
3011 main ()
3012 {
3013 dnet_ntoa ();
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020   (eval $ac_link) 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); } &&
3024          { ac_try='test -s conftest$ac_exeext'
3025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026   (eval $ac_try) 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; }; then
3030   ac_cv_lib_dnet_dnet_ntoa=yes
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 ac_cv_lib_dnet_dnet_ntoa=no
3036 fi
3037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3038 LIBS=$ac_check_lib_save_LIBS
3039 fi
3040 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3041 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3042 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3043   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3044 fi
3045
3046     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3047       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3048 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3049 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3050   echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052   ac_check_lib_save_LIBS=$LIBS
3053 LIBS="-ldnet_stub  $LIBS"
3054 cat >conftest.$ac_ext <<_ACEOF
3055 #line $LINENO "configure"
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061
3062 /* Override any gcc2 internal prototype to avoid an error.  */
3063 #ifdef __cplusplus
3064 extern "C"
3065 #endif
3066 /* We use char because int might match the return type of a gcc2
3067    builtin and then its argument prototype would still apply.  */
3068 char dnet_ntoa ();
3069 int
3070 main ()
3071 {
3072 dnet_ntoa ();
3073   ;
3074   return 0;
3075 }
3076 _ACEOF
3077 rm -f conftest.$ac_objext conftest$ac_exeext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3079   (eval $ac_link) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -s conftest$ac_exeext'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; }; then
3089   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3090 else
3091   echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 ac_cv_lib_dnet_stub_dnet_ntoa=no
3095 fi
3096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3097 LIBS=$ac_check_lib_save_LIBS
3098 fi
3099 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3100 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3101 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3102   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3103 fi
3104
3105     fi
3106 fi
3107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3108     LIBS="$ac_xsave_LIBS"
3109
3110     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3111     # to get the SysV transport functions.
3112     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3113     # needs -lnsl.
3114     # The nsl library prevents programs from opening the X display
3115     # on Irix 5.2, according to T.E. Dickey.
3116     # The functions gethostbyname, getservbyname, and inet_addr are
3117     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3118     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3119 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3120 if test "${ac_cv_func_gethostbyname+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130 /* System header to define __stub macros and hopefully few prototypes,
3131     which can conflict with char gethostbyname (); below.
3132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3133     <limits.h> exists even on freestanding compilers.  */
3134 #ifdef __STDC__
3135 # include <limits.h>
3136 #else
3137 # include <assert.h>
3138 #endif
3139 /* Override any gcc2 internal prototype to avoid an error.  */
3140 #ifdef __cplusplus
3141 extern "C"
3142 {
3143 #endif
3144 /* We use char because int might match the return type of a gcc2
3145    builtin and then its argument prototype would still apply.  */
3146 char gethostbyname ();
3147 /* The GNU C library defines this for functions which it implements
3148     to always fail with ENOSYS.  Some functions are actually named
3149     something starting with __ and the normal name is an alias.  */
3150 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3151 choke me
3152 #else
3153 char (*f) () = gethostbyname;
3154 #endif
3155 #ifdef __cplusplus
3156 }
3157 #endif
3158
3159 int
3160 main ()
3161 {
3162 return f != gethostbyname;
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.$ac_objext conftest$ac_exeext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169   (eval $ac_link) 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -s conftest$ac_exeext'
3174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175   (eval $ac_try) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; }; then
3179   ac_cv_func_gethostbyname=yes
3180 else
3181   echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 ac_cv_func_gethostbyname=no
3185 fi
3186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3187 fi
3188 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3189 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3190
3191     if test $ac_cv_func_gethostbyname = no; then
3192       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3193 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3194 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   ac_check_lib_save_LIBS=$LIBS
3198 LIBS="-lnsl  $LIBS"
3199 cat >conftest.$ac_ext <<_ACEOF
3200 #line $LINENO "configure"
3201 /* confdefs.h.  */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h.  */
3206
3207 /* Override any gcc2 internal prototype to avoid an error.  */
3208 #ifdef __cplusplus
3209 extern "C"
3210 #endif
3211 /* We use char because int might match the return type of a gcc2
3212    builtin and then its argument prototype would still apply.  */
3213 char gethostbyname ();
3214 int
3215 main ()
3216 {
3217 gethostbyname ();
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.$ac_objext conftest$ac_exeext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3224   (eval $ac_link) 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } &&
3228          { ac_try='test -s conftest$ac_exeext'
3229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230   (eval $ac_try) 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; }; then
3234   ac_cv_lib_nsl_gethostbyname=yes
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 ac_cv_lib_nsl_gethostbyname=no
3240 fi
3241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3242 LIBS=$ac_check_lib_save_LIBS
3243 fi
3244 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3245 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3246 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3247   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3248 fi
3249
3250       if test $ac_cv_lib_nsl_gethostbyname = no; then
3251         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3252 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3253 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   ac_check_lib_save_LIBS=$LIBS
3257 LIBS="-lbsd  $LIBS"
3258 cat >conftest.$ac_ext <<_ACEOF
3259 #line $LINENO "configure"
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265
3266 /* Override any gcc2 internal prototype to avoid an error.  */
3267 #ifdef __cplusplus
3268 extern "C"
3269 #endif
3270 /* We use char because int might match the return type of a gcc2
3271    builtin and then its argument prototype would still apply.  */
3272 char gethostbyname ();
3273 int
3274 main ()
3275 {
3276 gethostbyname ();
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext conftest$ac_exeext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3283   (eval $ac_link) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } &&
3287          { ac_try='test -s conftest$ac_exeext'
3288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289   (eval $ac_try) 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); }; }; then
3293   ac_cv_lib_bsd_gethostbyname=yes
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_cv_lib_bsd_gethostbyname=no
3299 fi
3300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3301 LIBS=$ac_check_lib_save_LIBS
3302 fi
3303 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3304 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3305 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3306   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3307 fi
3308
3309       fi
3310     fi
3311
3312     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3313     # socket/setsockopt and other routines are undefined under SCO ODT
3314     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3315     # on later versions), says Simon Leinen: it contains gethostby*
3316     # variants that don't use the name server (or something).  -lsocket
3317     # must be given before -lnsl if both are needed.  We assume that
3318     # if connect needs -lnsl, so does gethostbyname.
3319     echo "$as_me:$LINENO: checking for connect" >&5
3320 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3321 if test "${ac_cv_func_connect+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324   cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 /* confdefs.h.  */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h.  */
3331 /* System header to define __stub macros and hopefully few prototypes,
3332     which can conflict with char connect (); below.
3333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3334     <limits.h> exists even on freestanding compilers.  */
3335 #ifdef __STDC__
3336 # include <limits.h>
3337 #else
3338 # include <assert.h>
3339 #endif
3340 /* Override any gcc2 internal prototype to avoid an error.  */
3341 #ifdef __cplusplus
3342 extern "C"
3343 {
3344 #endif
3345 /* We use char because int might match the return type of a gcc2
3346    builtin and then its argument prototype would still apply.  */
3347 char connect ();
3348 /* The GNU C library defines this for functions which it implements
3349     to always fail with ENOSYS.  Some functions are actually named
3350     something starting with __ and the normal name is an alias.  */
3351 #if defined (__stub_connect) || defined (__stub___connect)
3352 choke me
3353 #else
3354 char (*f) () = connect;
3355 #endif
3356 #ifdef __cplusplus
3357 }
3358 #endif
3359
3360 int
3361 main ()
3362 {
3363 return f != connect;
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.$ac_objext conftest$ac_exeext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3370   (eval $ac_link) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } &&
3374          { ac_try='test -s conftest$ac_exeext'
3375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376   (eval $ac_try) 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; }; then
3380   ac_cv_func_connect=yes
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 ac_cv_func_connect=no
3386 fi
3387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3388 fi
3389 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3390 echo "${ECHO_T}$ac_cv_func_connect" >&6
3391
3392     if test $ac_cv_func_connect = no; then
3393       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3394 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3395 if test "${ac_cv_lib_socket_connect+set}" = set; then
3396   echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398   ac_check_lib_save_LIBS=$LIBS
3399 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3400 cat >conftest.$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407
3408 /* Override any gcc2 internal prototype to avoid an error.  */
3409 #ifdef __cplusplus
3410 extern "C"
3411 #endif
3412 /* We use char because int might match the return type of a gcc2
3413    builtin and then its argument prototype would still apply.  */
3414 char connect ();
3415 int
3416 main ()
3417 {
3418 connect ();
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.$ac_objext conftest$ac_exeext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3425   (eval $ac_link) 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } &&
3429          { ac_try='test -s conftest$ac_exeext'
3430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431   (eval $ac_try) 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; }; then
3435   ac_cv_lib_socket_connect=yes
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 ac_cv_lib_socket_connect=no
3441 fi
3442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3443 LIBS=$ac_check_lib_save_LIBS
3444 fi
3445 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3446 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3447 if test $ac_cv_lib_socket_connect = yes; then
3448   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3449 fi
3450
3451     fi
3452
3453     # Guillermo Gomez says -lposix is necessary on A/UX.
3454     echo "$as_me:$LINENO: checking for remove" >&5
3455 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3456 if test "${ac_cv_func_remove+set}" = set; then
3457   echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 #line $LINENO "configure"
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466 /* System header to define __stub macros and hopefully few prototypes,
3467     which can conflict with char remove (); below.
3468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469     <limits.h> exists even on freestanding compilers.  */
3470 #ifdef __STDC__
3471 # include <limits.h>
3472 #else
3473 # include <assert.h>
3474 #endif
3475 /* Override any gcc2 internal prototype to avoid an error.  */
3476 #ifdef __cplusplus
3477 extern "C"
3478 {
3479 #endif
3480 /* We use char because int might match the return type of a gcc2
3481    builtin and then its argument prototype would still apply.  */
3482 char remove ();
3483 /* The GNU C library defines this for functions which it implements
3484     to always fail with ENOSYS.  Some functions are actually named
3485     something starting with __ and the normal name is an alias.  */
3486 #if defined (__stub_remove) || defined (__stub___remove)
3487 choke me
3488 #else
3489 char (*f) () = remove;
3490 #endif
3491 #ifdef __cplusplus
3492 }
3493 #endif
3494
3495 int
3496 main ()
3497 {
3498 return f != remove;
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.$ac_objext conftest$ac_exeext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3505   (eval $ac_link) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } &&
3509          { ac_try='test -s conftest$ac_exeext'
3510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511   (eval $ac_try) 2>&5
3512   ac_status=$?
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); }; }; then
3515   ac_cv_func_remove=yes
3516 else
3517   echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 ac_cv_func_remove=no
3521 fi
3522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3523 fi
3524 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3525 echo "${ECHO_T}$ac_cv_func_remove" >&6
3526
3527     if test $ac_cv_func_remove = no; then
3528       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3529 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3530 if test "${ac_cv_lib_posix_remove+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   ac_check_lib_save_LIBS=$LIBS
3534 LIBS="-lposix  $LIBS"
3535 cat >conftest.$ac_ext <<_ACEOF
3536 #line $LINENO "configure"
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 /* Override any gcc2 internal prototype to avoid an error.  */
3544 #ifdef __cplusplus
3545 extern "C"
3546 #endif
3547 /* We use char because int might match the return type of a gcc2
3548    builtin and then its argument prototype would still apply.  */
3549 char remove ();
3550 int
3551 main ()
3552 {
3553 remove ();
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext conftest$ac_exeext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3560   (eval $ac_link) 2>&5
3561   ac_status=$?
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } &&
3564          { ac_try='test -s conftest$ac_exeext'
3565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566   (eval $ac_try) 2>&5
3567   ac_status=$?
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); }; }; then
3570   ac_cv_lib_posix_remove=yes
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ac_cv_lib_posix_remove=no
3576 fi
3577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3578 LIBS=$ac_check_lib_save_LIBS
3579 fi
3580 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3581 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3582 if test $ac_cv_lib_posix_remove = yes; then
3583   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3584 fi
3585
3586     fi
3587
3588     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3589     echo "$as_me:$LINENO: checking for shmat" >&5
3590 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3591 if test "${ac_cv_func_shmat+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   cat >conftest.$ac_ext <<_ACEOF
3595 #line $LINENO "configure"
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601 /* System header to define __stub macros and hopefully few prototypes,
3602     which can conflict with char shmat (); below.
3603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604     <limits.h> exists even on freestanding compilers.  */
3605 #ifdef __STDC__
3606 # include <limits.h>
3607 #else
3608 # include <assert.h>
3609 #endif
3610 /* Override any gcc2 internal prototype to avoid an error.  */
3611 #ifdef __cplusplus
3612 extern "C"
3613 {
3614 #endif
3615 /* We use char because int might match the return type of a gcc2
3616    builtin and then its argument prototype would still apply.  */
3617 char shmat ();
3618 /* The GNU C library defines this for functions which it implements
3619     to always fail with ENOSYS.  Some functions are actually named
3620     something starting with __ and the normal name is an alias.  */
3621 #if defined (__stub_shmat) || defined (__stub___shmat)
3622 choke me
3623 #else
3624 char (*f) () = shmat;
3625 #endif
3626 #ifdef __cplusplus
3627 }
3628 #endif
3629
3630 int
3631 main ()
3632 {
3633 return f != shmat;
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext conftest$ac_exeext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3640   (eval $ac_link) 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); } &&
3644          { ac_try='test -s conftest$ac_exeext'
3645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646   (eval $ac_try) 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; }; then
3650   ac_cv_func_shmat=yes
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655 ac_cv_func_shmat=no
3656 fi
3657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3658 fi
3659 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3660 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3661
3662     if test $ac_cv_func_shmat = no; then
3663       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3664 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3665 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   ac_check_lib_save_LIBS=$LIBS
3669 LIBS="-lipc  $LIBS"
3670 cat >conftest.$ac_ext <<_ACEOF
3671 #line $LINENO "configure"
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677
3678 /* Override any gcc2 internal prototype to avoid an error.  */
3679 #ifdef __cplusplus
3680 extern "C"
3681 #endif
3682 /* We use char because int might match the return type of a gcc2
3683    builtin and then its argument prototype would still apply.  */
3684 char shmat ();
3685 int
3686 main ()
3687 {
3688 shmat ();
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 rm -f conftest.$ac_objext conftest$ac_exeext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3695   (eval $ac_link) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); } &&
3699          { ac_try='test -s conftest$ac_exeext'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; }; then
3705   ac_cv_lib_ipc_shmat=yes
3706 else
3707   echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 ac_cv_lib_ipc_shmat=no
3711 fi
3712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3713 LIBS=$ac_check_lib_save_LIBS
3714 fi
3715 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3716 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3717 if test $ac_cv_lib_ipc_shmat = yes; then
3718   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3719 fi
3720
3721     fi
3722   fi
3723
3724   # Check for libraries that X11R6 Xt/Xaw programs need.
3725   ac_save_LDFLAGS=$LDFLAGS
3726   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3727   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3728   # check for ICE first), but we must link in the order -lSM -lICE or
3729   # we get undefined symbols.  So assume we have SM if we have ICE.
3730   # These have to be linked with before -lX11, unlike the other
3731   # libraries we check for below, so use a different variable.
3732   # John Interrante, Karl Berry
3733   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3734 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3735 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   ac_check_lib_save_LIBS=$LIBS
3739 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3740 cat >conftest.$ac_ext <<_ACEOF
3741 #line $LINENO "configure"
3742 /* confdefs.h.  */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h.  */
3747
3748 /* Override any gcc2 internal prototype to avoid an error.  */
3749 #ifdef __cplusplus
3750 extern "C"
3751 #endif
3752 /* We use char because int might match the return type of a gcc2
3753    builtin and then its argument prototype would still apply.  */
3754 char IceConnectionNumber ();
3755 int
3756 main ()
3757 {
3758 IceConnectionNumber ();
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 rm -f conftest.$ac_objext conftest$ac_exeext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765   (eval $ac_link) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); } &&
3769          { ac_try='test -s conftest$ac_exeext'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; }; then
3775   ac_cv_lib_ICE_IceConnectionNumber=yes
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 ac_cv_lib_ICE_IceConnectionNumber=no
3781 fi
3782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3783 LIBS=$ac_check_lib_save_LIBS
3784 fi
3785 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3786 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3787 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3788   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3789 fi
3790
3791   LDFLAGS=$ac_save_LDFLAGS
3792
3793 fi
3794
3795 for ac_prog in 'bison -y' byacc
3796 do
3797   # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_prog_YACC+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   if test -n "$YACC"; then
3805   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812   for ac_exec_ext in '' $ac_executable_extensions; do
3813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814     ac_cv_prog_YACC="$ac_prog"
3815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816     break 2
3817   fi
3818 done
3819 done
3820
3821 fi
3822 fi
3823 YACC=$ac_cv_prog_YACC
3824 if test -n "$YACC"; then
3825   echo "$as_me:$LINENO: result: $YACC" >&5
3826 echo "${ECHO_T}$YACC" >&6
3827 else
3828   echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3830 fi
3831
3832   test -n "$YACC" && break
3833 done
3834 test -n "$YACC" || YACC="yacc"
3835
3836 for ac_prog in flex lex
3837 do
3838   # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842 if test "${ac_cv_prog_LEX+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   if test -n "$LEX"; then
3846   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853   for ac_exec_ext in '' $ac_executable_extensions; do
3854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855     ac_cv_prog_LEX="$ac_prog"
3856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860 done
3861
3862 fi
3863 fi
3864 LEX=$ac_cv_prog_LEX
3865 if test -n "$LEX"; then
3866   echo "$as_me:$LINENO: result: $LEX" >&5
3867 echo "${ECHO_T}$LEX" >&6
3868 else
3869   echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3871 fi
3872
3873   test -n "$LEX" && break
3874 done
3875 test -n "$LEX" || LEX=":"
3876
3877 if test -z "$LEXLIB"
3878 then
3879   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3880 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3881 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   ac_check_lib_save_LIBS=$LIBS
3885 LIBS="-lfl  $LIBS"
3886 cat >conftest.$ac_ext <<_ACEOF
3887 #line $LINENO "configure"
3888 /* confdefs.h.  */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h.  */
3893
3894 /* Override any gcc2 internal prototype to avoid an error.  */
3895 #ifdef __cplusplus
3896 extern "C"
3897 #endif
3898 /* We use char because int might match the return type of a gcc2
3899    builtin and then its argument prototype would still apply.  */
3900 char yywrap ();
3901 int
3902 main ()
3903 {
3904 yywrap ();
3905   ;
3906   return 0;
3907 }
3908 _ACEOF
3909 rm -f conftest.$ac_objext conftest$ac_exeext
3910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3911   (eval $ac_link) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); } &&
3915          { ac_try='test -s conftest$ac_exeext'
3916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917   (eval $ac_try) 2>&5
3918   ac_status=$?
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); }; }; then
3921   ac_cv_lib_fl_yywrap=yes
3922 else
3923   echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 ac_cv_lib_fl_yywrap=no
3927 fi
3928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3929 LIBS=$ac_check_lib_save_LIBS
3930 fi
3931 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3932 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3933 if test $ac_cv_lib_fl_yywrap = yes; then
3934   LEXLIB="-lfl"
3935 else
3936   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3937 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3938 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   ac_check_lib_save_LIBS=$LIBS
3942 LIBS="-ll  $LIBS"
3943 cat >conftest.$ac_ext <<_ACEOF
3944 #line $LINENO "configure"
3945 /* confdefs.h.  */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h.  */
3950
3951 /* Override any gcc2 internal prototype to avoid an error.  */
3952 #ifdef __cplusplus
3953 extern "C"
3954 #endif
3955 /* We use char because int might match the return type of a gcc2
3956    builtin and then its argument prototype would still apply.  */
3957 char yywrap ();
3958 int
3959 main ()
3960 {
3961 yywrap ();
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.$ac_objext conftest$ac_exeext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968   (eval $ac_link) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } &&
3972          { ac_try='test -s conftest$ac_exeext'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; }; then
3978   ac_cv_lib_l_yywrap=yes
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 ac_cv_lib_l_yywrap=no
3984 fi
3985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3986 LIBS=$ac_check_lib_save_LIBS
3987 fi
3988 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3989 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3990 if test $ac_cv_lib_l_yywrap = yes; then
3991   LEXLIB="-ll"
3992 fi
3993
3994 fi
3995
3996 fi
3997
3998 if test "x$LEX" != "x:"; then
3999   echo "$as_me:$LINENO: checking lex output file root" >&5
4000 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4001 if test "${ac_cv_prog_lex_root+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   # The minimal lex program is just a single line: %%.  But some broken lexes
4005 # (Solaris, I think it was) want two %% lines, so accommodate them.
4006 cat >conftest.l <<_ACEOF
4007 %%
4008 %%
4009 _ACEOF
4010 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4011   (eval $LEX conftest.l) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); }
4015 if test -f lex.yy.c; then
4016   ac_cv_prog_lex_root=lex.yy
4017 elif test -f lexyy.c; then
4018   ac_cv_prog_lex_root=lexyy
4019 else
4020   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4021 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4022    { (exit 1); exit 1; }; }
4023 fi
4024 fi
4025 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4026 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4027 rm -f conftest.l
4028 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4029
4030 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4031 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4032 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   # POSIX says lex can declare yytext either as a pointer or an array; the
4036 # default is implementation-dependent. Figure out which it is, since
4037 # not all implementations provide the %pointer and %array declarations.
4038 ac_cv_prog_lex_yytext_pointer=no
4039 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4040 ac_save_LIBS=$LIBS
4041 LIBS="$LIBS $LEXLIB"
4042 cat >conftest.$ac_ext <<_ACEOF
4043 `cat $LEX_OUTPUT_ROOT.c`
4044 _ACEOF
4045 rm -f conftest.$ac_objext conftest$ac_exeext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4047   (eval $ac_link) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } &&
4051          { ac_try='test -s conftest$ac_exeext'
4052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053   (eval $ac_try) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; }; then
4057   ac_cv_prog_lex_yytext_pointer=yes
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062 fi
4063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4064 LIBS=$ac_save_LIBS
4065 rm -f "${LEX_OUTPUT_ROOT}.c"
4066
4067 fi
4068 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4069 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4070 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4071
4072 cat >>confdefs.h <<\_ACEOF
4073 #define YYTEXT_POINTER 1
4074 _ACEOF
4075
4076 fi
4077
4078 fi
4079
4080 for ac_prog in $YACC bison yacc
4081 do
4082   # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_XYACC+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$XYACC"; then
4090   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_XYACC="$ac_prog"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 XYACC=$ac_cv_prog_XYACC
4109 if test -n "$XYACC"; then
4110   echo "$as_me:$LINENO: result: $XYACC" >&5
4111 echo "${ECHO_T}$XYACC" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117   test -n "$XYACC" && break
4118 done
4119 test -n "$XYACC" || XYACC="none"
4120
4121 if test "$XYACC" = "none"
4122 then
4123   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4124 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4125    { (exit 1); exit 1; }; }
4126 fi
4127 for ac_prog in $LEX flex lex
4128 do
4129   # Extract the first word of "$ac_prog", so it can be a program name with args.
4130 set dummy $ac_prog; ac_word=$2
4131 echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133 if test "${ac_cv_prog_XLEX+set}" = set; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   if test -n "$XLEX"; then
4137   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142   IFS=$as_save_IFS
4143   test -z "$as_dir" && as_dir=.
4144   for ac_exec_ext in '' $ac_executable_extensions; do
4145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146     ac_cv_prog_XLEX="$ac_prog"
4147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148     break 2
4149   fi
4150 done
4151 done
4152
4153 fi
4154 fi
4155 XLEX=$ac_cv_prog_XLEX
4156 if test -n "$XLEX"; then
4157   echo "$as_me:$LINENO: result: $XLEX" >&5
4158 echo "${ECHO_T}$XLEX" >&6
4159 else
4160   echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4162 fi
4163
4164   test -n "$XLEX" && break
4165 done
4166 test -n "$XLEX" || XLEX="none"
4167
4168 if test "$XLEX" = "none"
4169 then
4170   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4171 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4172    { (exit 1); exit 1; }; }
4173 fi
4174
4175 if test -n "$ac_tool_prefix"; then
4176   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}ld; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_LD+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$LD"; then
4184   ac_cv_prog_LD="$LD" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_prog_LD="${ac_tool_prefix}ld"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200 fi
4201 fi
4202 LD=$ac_cv_prog_LD
4203 if test -n "$LD"; then
4204   echo "$as_me:$LINENO: result: $LD" >&5
4205 echo "${ECHO_T}$LD" >&6
4206 else
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 fi
4210
4211 fi
4212 if test -z "$ac_cv_prog_LD"; then
4213   ac_ct_LD=$LD
4214   # Extract the first word of "ld", so it can be a program name with args.
4215 set dummy ld; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$ac_ct_LD"; then
4222   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     ac_cv_prog_ac_ct_LD="ld"
4232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236 done
4237
4238   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4239 fi
4240 fi
4241 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4242 if test -n "$ac_ct_LD"; then
4243   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4244 echo "${ECHO_T}$ac_ct_LD" >&6
4245 else
4246   echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6
4248 fi
4249
4250   LD=$ac_ct_LD
4251 else
4252   LD="$ac_cv_prog_LD"
4253 fi
4254
4255 if test -n "$ac_tool_prefix"; then
4256   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}ar; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_AR+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   if test -n "$AR"; then
4264   ac_cv_prog_AR="$AR" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271   for ac_exec_ext in '' $ac_executable_extensions; do
4272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273     ac_cv_prog_AR="${ac_tool_prefix}ar"
4274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278 done
4279
4280 fi
4281 fi
4282 AR=$ac_cv_prog_AR
4283 if test -n "$AR"; then
4284   echo "$as_me:$LINENO: result: $AR" >&5
4285 echo "${ECHO_T}$AR" >&6
4286 else
4287   echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4289 fi
4290
4291 fi
4292 if test -z "$ac_cv_prog_AR"; then
4293   ac_ct_AR=$AR
4294   # Extract the first word of "ar", so it can be a program name with args.
4295 set dummy ar; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   if test -n "$ac_ct_AR"; then
4302   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_prog_ac_ct_AR="ar"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317
4318   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4319 fi
4320 fi
4321 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4322 if test -n "$ac_ct_AR"; then
4323   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4324 echo "${ECHO_T}$ac_ct_AR" >&6
4325 else
4326   echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4328 fi
4329
4330   AR=$ac_ct_AR
4331 else
4332   AR="$ac_cv_prog_AR"
4333 fi
4334
4335 if test -n "$ac_tool_prefix"; then
4336   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_RANLIB+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   if test -n "$RANLIB"; then
4344   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349   IFS=$as_save_IFS
4350   test -z "$as_dir" && as_dir=.
4351   for ac_exec_ext in '' $ac_executable_extensions; do
4352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355     break 2
4356   fi
4357 done
4358 done
4359
4360 fi
4361 fi
4362 RANLIB=$ac_cv_prog_RANLIB
4363 if test -n "$RANLIB"; then
4364   echo "$as_me:$LINENO: result: $RANLIB" >&5
4365 echo "${ECHO_T}$RANLIB" >&6
4366 else
4367   echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6
4369 fi
4370
4371 fi
4372 if test -z "$ac_cv_prog_RANLIB"; then
4373   ac_ct_RANLIB=$RANLIB
4374   # Extract the first word of "ranlib", so it can be a program name with args.
4375 set dummy ranlib; ac_word=$2
4376 echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4379   echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381   if test -n "$ac_ct_RANLIB"; then
4382   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389   for ac_exec_ext in '' $ac_executable_extensions; do
4390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391     ac_cv_prog_ac_ct_RANLIB="ranlib"
4392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396 done
4397
4398   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4399 fi
4400 fi
4401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4402 if test -n "$ac_ct_RANLIB"; then
4403   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4404 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4405 else
4406   echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4408 fi
4409
4410   RANLIB=$ac_ct_RANLIB
4411 else
4412   RANLIB="$ac_cv_prog_RANLIB"
4413 fi
4414
4415 if test -n "$ac_tool_prefix"; then
4416   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4417 set dummy ${ac_tool_prefix}strip; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_prog_STRIP+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test -n "$STRIP"; then
4424   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   test -z "$as_dir" && as_dir=.
4431   for ac_exec_ext in '' $ac_executable_extensions; do
4432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435     break 2
4436   fi
4437 done
4438 done
4439
4440 fi
4441 fi
4442 STRIP=$ac_cv_prog_STRIP
4443 if test -n "$STRIP"; then
4444   echo "$as_me:$LINENO: result: $STRIP" >&5
4445 echo "${ECHO_T}$STRIP" >&6
4446 else
4447   echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6
4449 fi
4450
4451 fi
4452 if test -z "$ac_cv_prog_STRIP"; then
4453   ac_ct_STRIP=$STRIP
4454   # Extract the first word of "strip", so it can be a program name with args.
4455 set dummy strip; ac_word=$2
4456 echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   if test -n "$ac_ct_STRIP"; then
4462   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469   for ac_exec_ext in '' $ac_executable_extensions; do
4470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471     ac_cv_prog_ac_ct_STRIP="strip"
4472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476 done
4477
4478   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4479 fi
4480 fi
4481 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4482 if test -n "$ac_ct_STRIP"; then
4483   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4484 echo "${ECHO_T}$ac_ct_STRIP" >&6
4485 else
4486   echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4488 fi
4489
4490   STRIP=$ac_ct_STRIP
4491 else
4492   STRIP="$ac_cv_prog_STRIP"
4493 fi
4494
4495 if test -n "$ac_tool_prefix"; then
4496   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4497 set dummy ${ac_tool_prefix}windres; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_WINDRES+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$WINDRES"; then
4504   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519
4520 fi
4521 fi
4522 WINDRES=$ac_cv_prog_WINDRES
4523 if test -n "$WINDRES"; then
4524   echo "$as_me:$LINENO: result: $WINDRES" >&5
4525 echo "${ECHO_T}$WINDRES" >&6
4526 else
4527   echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4529 fi
4530
4531 fi
4532 if test -z "$ac_cv_prog_WINDRES"; then
4533   ac_ct_WINDRES=$WINDRES
4534   # Extract the first word of "windres", so it can be a program name with args.
4535 set dummy windres; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   if test -n "$ac_ct_WINDRES"; then
4542   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549   for ac_exec_ext in '' $ac_executable_extensions; do
4550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551     ac_cv_prog_ac_ct_WINDRES="windres"
4552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556 done
4557
4558   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4559 fi
4560 fi
4561 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4562 if test -n "$ac_ct_WINDRES"; then
4563   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4564 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4565 else
4566   echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4568 fi
4569
4570   WINDRES=$ac_ct_WINDRES
4571 else
4572   WINDRES="$ac_cv_prog_WINDRES"
4573 fi
4574
4575 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4576 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4577 LN_S=$as_ln_s
4578 if test "$LN_S" = "ln -s"; then
4579   echo "$as_me:$LINENO: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6
4581 else
4582   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4583 echo "${ECHO_T}no, using $LN_S" >&6
4584 fi
4585
4586 echo "$as_me:$LINENO: checking whether ln works" >&5
4587 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4588 rm -f conf$$ conf$$.file
4589 echo >conf$$.file
4590 if ln conf$$.file conf$$ 2>/dev/null; then
4591   LN=ln
4592
4593   echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6
4595 else
4596   LN="cp -p"
4597
4598   echo "$as_me:$LINENO: result: no, using $LN" >&5
4599 echo "${ECHO_T}no, using $LN" >&6
4600 fi
4601 rm -f conf$$ conf$$.file
4602 # Extract the first word of "c2man", so it can be a program name with args.
4603 set dummy c2man; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_C2MAN+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   if test -n "$C2MAN"; then
4610   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617   for ac_exec_ext in '' $ac_executable_extensions; do
4618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619     ac_cv_prog_C2MAN="c2man"
4620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625
4626   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4627 fi
4628 fi
4629 C2MAN=$ac_cv_prog_C2MAN
4630 if test -n "$C2MAN"; then
4631   echo "$as_me:$LINENO: result: $C2MAN" >&5
4632 echo "${ECHO_T}$C2MAN" >&6
4633 else
4634   echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636 fi
4637
4638 # Extract the first word of "ldconfig", so it can be a program name with args.
4639 set dummy ldconfig; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   case $LDCONFIG in
4646   [\\/]* | ?:[\\/]*)
4647   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4648   ;;
4649   *)
4650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in /sbin /usr/sbin $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655   for ac_exec_ext in '' $ac_executable_extensions; do
4656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662 done
4663
4664   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4665   ;;
4666 esac
4667 fi
4668 LDCONFIG=$ac_cv_path_LDCONFIG
4669
4670 if test -n "$LDCONFIG"; then
4671   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4672 echo "${ECHO_T}$LDCONFIG" >&6
4673 else
4674   echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4676 fi
4677
4678 # Find a good install program.  We prefer a C program (faster),
4679 # so one script is as good as another.  But avoid the broken or
4680 # incompatible versions:
4681 # SysV /etc/install, /usr/sbin/install
4682 # SunOS /usr/etc/install
4683 # IRIX /sbin/install
4684 # AIX /bin/install
4685 # AmigaOS /C/install, which installs bootblocks on floppy discs
4686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4689 # ./install, which can be erroneously created by make from ./install.sh.
4690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4692 if test -z "$INSTALL"; then
4693 if test "${ac_cv_path_install+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701   # Account for people who put trailing slashes in PATH elements.
4702 case $as_dir/ in
4703   ./ | .// | /cC/* | \
4704   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4705   /usr/ucb/* ) ;;
4706   *)
4707     # OSF1 and SCO ODT 3.0 have their own names for install.
4708     # Don't use installbsd from OSF since it installs stuff as root
4709     # by default.
4710     for ac_prog in ginstall scoinst install; do
4711       for ac_exec_ext in '' $ac_executable_extensions; do
4712         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4713           if test $ac_prog = install &&
4714             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4715             # AIX install.  It has an incompatible calling convention.
4716             :
4717           elif test $ac_prog = install &&
4718             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4719             # program-specific install script used by HP pwplus--don't use.
4720             :
4721           else
4722             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4723             break 3
4724           fi
4725         fi
4726       done
4727     done
4728     ;;
4729 esac
4730 done
4731
4732
4733 fi
4734   if test "${ac_cv_path_install+set}" = set; then
4735     INSTALL=$ac_cv_path_install
4736   else
4737     # As a last resort, use the slow shell script.  We don't cache a
4738     # path for INSTALL within a source directory, because that will
4739     # break other packages using the cache if that directory is
4740     # removed, or if the path is relative.
4741     INSTALL=$ac_install_sh
4742   fi
4743 fi
4744 echo "$as_me:$LINENO: result: $INSTALL" >&5
4745 echo "${ECHO_T}$INSTALL" >&6
4746
4747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4748 # It thinks the first close brace ends the variable substitution.
4749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4750
4751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4752
4753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4754
4755 case "$INSTALL" in
4756   [\\/$]* | ?:[\\/]* ) ;;
4757   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4758 esac
4759
4760 for ac_prog in lclint lint
4761 do
4762   # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4766 if test "${ac_cv_prog_LINT+set}" = set; then
4767   echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769   if test -n "$LINT"; then
4770   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_exec_ext in '' $ac_executable_extensions; do
4778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779     ac_cv_prog_LINT="$ac_prog"
4780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782   fi
4783 done
4784 done
4785
4786 fi
4787 fi
4788 LINT=$ac_cv_prog_LINT
4789 if test -n "$LINT"; then
4790   echo "$as_me:$LINENO: result: $LINT" >&5
4791 echo "${ECHO_T}$LINT" >&6
4792 else
4793   echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6
4795 fi
4796
4797   test -n "$LINT" && break
4798 done
4799
4800 if test "$LINT" = "lint"
4801 then
4802   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4803   fi
4804
4805
4806
4807 for ac_prog in docbook2html db2html
4808 do
4809   # Extract the first word of "$ac_prog", so it can be a program name with args.
4810 set dummy $ac_prog; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   if test -n "$DB2HTML"; then
4817   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824   for ac_exec_ext in '' $ac_executable_extensions; do
4825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826     ac_cv_prog_DB2HTML="$ac_prog"
4827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831 done
4832
4833 fi
4834 fi
4835 DB2HTML=$ac_cv_prog_DB2HTML
4836 if test -n "$DB2HTML"; then
4837   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4838 echo "${ECHO_T}$DB2HTML" >&6
4839 else
4840   echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4842 fi
4843
4844   test -n "$DB2HTML" && break
4845 done
4846 test -n "$DB2HTML" || DB2HTML="false"
4847
4848
4849
4850 for ac_prog in docbook2pdf db2pdf
4851 do
4852   # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4856 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   if test -n "$DB2PDF"; then
4860   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867   for ac_exec_ext in '' $ac_executable_extensions; do
4868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869     ac_cv_prog_DB2PDF="$ac_prog"
4870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874 done
4875
4876 fi
4877 fi
4878 DB2PDF=$ac_cv_prog_DB2PDF
4879 if test -n "$DB2PDF"; then
4880   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4881 echo "${ECHO_T}$DB2PDF" >&6
4882 else
4883   echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6
4885 fi
4886
4887   test -n "$DB2PDF" && break
4888 done
4889 test -n "$DB2PDF" || DB2PDF="false"
4890
4891
4892
4893 for ac_prog in docbook2ps db2ps
4894 do
4895   # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_DB2PS+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if test -n "$DB2PS"; then
4903   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912     ac_cv_prog_DB2PS="$ac_prog"
4913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918
4919 fi
4920 fi
4921 DB2PS=$ac_cv_prog_DB2PS
4922 if test -n "$DB2PS"; then
4923   echo "$as_me:$LINENO: result: $DB2PS" >&5
4924 echo "${ECHO_T}$DB2PS" >&6
4925 else
4926   echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4928 fi
4929
4930   test -n "$DB2PS" && break
4931 done
4932 test -n "$DB2PS" || DB2PS="false"
4933
4934
4935
4936
4937
4938 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4939 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4940 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   ac_check_lib_save_LIBS=$LIBS
4944 LIBS="-lm  $LIBS"
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952
4953 /* Override any gcc2 internal prototype to avoid an error.  */
4954 #ifdef __cplusplus
4955 extern "C"
4956 #endif
4957 /* We use char because int might match the return type of a gcc2
4958    builtin and then its argument prototype would still apply.  */
4959 char sqrt ();
4960 int
4961 main ()
4962 {
4963 sqrt ();
4964   ;
4965   return 0;
4966 }
4967 _ACEOF
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970   (eval $ac_link) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } &&
4974          { ac_try='test -s conftest$ac_exeext'
4975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976   (eval $ac_try) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   ac_cv_lib_m_sqrt=yes
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 ac_cv_lib_m_sqrt=no
4986 fi
4987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4988 LIBS=$ac_check_lib_save_LIBS
4989 fi
4990 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4991 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4992 if test $ac_cv_lib_m_sqrt = yes; then
4993   cat >>confdefs.h <<_ACEOF
4994 #define HAVE_LIBM 1
4995 _ACEOF
4996
4997   LIBS="-lm $LIBS"
4998
4999 fi
5000
5001
5002 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5003 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5004 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-li386  $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016
5017 /* Override any gcc2 internal prototype to avoid an error.  */
5018 #ifdef __cplusplus
5019 extern "C"
5020 #endif
5021 /* We use char because int might match the return type of a gcc2
5022    builtin and then its argument prototype would still apply.  */
5023 char i386_set_ldt ();
5024 int
5025 main ()
5026 {
5027 i386_set_ldt ();
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034   (eval $ac_link) 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } &&
5038          { ac_try='test -s conftest$ac_exeext'
5039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040   (eval $ac_try) 2>&5
5041   ac_status=$?
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); }; }; then
5044   ac_cv_lib_i386_i386_set_ldt=yes
5045 else
5046   echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ac_cv_lib_i386_i386_set_ldt=no
5050 fi
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5055 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5056 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5057   cat >>confdefs.h <<_ACEOF
5058 #define HAVE_LIBI386 1
5059 _ACEOF
5060
5061   LIBS="-li386 $LIBS"
5062
5063 fi
5064
5065
5066 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5067 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5068 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5069   echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071   ac_check_lib_save_LIBS=$LIBS
5072 LIBS="-lossaudio  $LIBS"
5073 cat >conftest.$ac_ext <<_ACEOF
5074 #line $LINENO "configure"
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080
5081 /* Override any gcc2 internal prototype to avoid an error.  */
5082 #ifdef __cplusplus
5083 extern "C"
5084 #endif
5085 /* We use char because int might match the return type of a gcc2
5086    builtin and then its argument prototype would still apply.  */
5087 char _oss_ioctl ();
5088 int
5089 main ()
5090 {
5091 _oss_ioctl ();
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098   (eval $ac_link) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } &&
5102          { ac_try='test -s conftest$ac_exeext'
5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104   (eval $ac_try) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; }; then
5108   ac_cv_lib_ossaudio__oss_ioctl=yes
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 ac_cv_lib_ossaudio__oss_ioctl=no
5114 fi
5115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5116 LIBS=$ac_check_lib_save_LIBS
5117 fi
5118 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5119 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5120 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5121   cat >>confdefs.h <<_ACEOF
5122 #define HAVE_LIBOSSAUDIO 1
5123 _ACEOF
5124
5125   LIBS="-lossaudio $LIBS"
5126
5127 fi
5128
5129
5130 for ac_func in iswalnum
5131 do
5132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5133 echo "$as_me:$LINENO: checking for $ac_func" >&5
5134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5135 if eval "test \"\${$as_ac_var+set}\" = set"; then
5136   echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138   cat >conftest.$ac_ext <<_ACEOF
5139 #line $LINENO "configure"
5140 /* confdefs.h.  */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h.  */
5145 /* System header to define __stub macros and hopefully few prototypes,
5146     which can conflict with char $ac_func (); below.
5147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148     <limits.h> exists even on freestanding compilers.  */
5149 #ifdef __STDC__
5150 # include <limits.h>
5151 #else
5152 # include <assert.h>
5153 #endif
5154 /* Override any gcc2 internal prototype to avoid an error.  */
5155 #ifdef __cplusplus
5156 extern "C"
5157 {
5158 #endif
5159 /* We use char because int might match the return type of a gcc2
5160    builtin and then its argument prototype would still apply.  */
5161 char $ac_func ();
5162 /* The GNU C library defines this for functions which it implements
5163     to always fail with ENOSYS.  Some functions are actually named
5164     something starting with __ and the normal name is an alias.  */
5165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5166 choke me
5167 #else
5168 char (*f) () = $ac_func;
5169 #endif
5170 #ifdef __cplusplus
5171 }
5172 #endif
5173
5174 int
5175 main ()
5176 {
5177 return f != $ac_func;
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184   (eval $ac_link) 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); } &&
5188          { ac_try='test -s conftest$ac_exeext'
5189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190   (eval $ac_try) 2>&5
5191   ac_status=$?
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); }; }; then
5194   eval "$as_ac_var=yes"
5195 else
5196   echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 eval "$as_ac_var=no"
5200 fi
5201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5202 fi
5203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5205 if test `eval echo '${'$as_ac_var'}'` = yes; then
5206   cat >>confdefs.h <<_ACEOF
5207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5208 _ACEOF
5209
5210 else
5211
5212 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5213 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5214 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   ac_check_lib_save_LIBS=$LIBS
5218 LIBS="-lw  $LIBS"
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5221 /* confdefs.h.  */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h.  */
5226
5227 /* Override any gcc2 internal prototype to avoid an error.  */
5228 #ifdef __cplusplus
5229 extern "C"
5230 #endif
5231 /* We use char because int might match the return type of a gcc2
5232    builtin and then its argument prototype would still apply.  */
5233 char iswalnum ();
5234 int
5235 main ()
5236 {
5237 iswalnum ();
5238   ;
5239   return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext conftest$ac_exeext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244   (eval $ac_link) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); } &&
5248          { ac_try='test -s conftest$ac_exeext'
5249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250   (eval $ac_try) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; }; then
5254   ac_cv_lib_w_iswalnum=yes
5255 else
5256   echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 ac_cv_lib_w_iswalnum=no
5260 fi
5261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5263 fi
5264 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5265 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5266 if test $ac_cv_lib_w_iswalnum = yes; then
5267   cat >>confdefs.h <<_ACEOF
5268 #define HAVE_LIBW 1
5269 _ACEOF
5270
5271   LIBS="-lw $LIBS"
5272
5273 fi
5274
5275 fi
5276 done
5277
5278
5279 for ac_func in gethostbyname
5280 do
5281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5282 echo "$as_me:$LINENO: checking for $ac_func" >&5
5283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5284 if eval "test \"\${$as_ac_var+set}\" = set"; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 /* confdefs.h.  */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h.  */
5294 /* System header to define __stub macros and hopefully few prototypes,
5295     which can conflict with char $ac_func (); below.
5296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5297     <limits.h> exists even on freestanding compilers.  */
5298 #ifdef __STDC__
5299 # include <limits.h>
5300 #else
5301 # include <assert.h>
5302 #endif
5303 /* Override any gcc2 internal prototype to avoid an error.  */
5304 #ifdef __cplusplus
5305 extern "C"
5306 {
5307 #endif
5308 /* We use char because int might match the return type of a gcc2
5309    builtin and then its argument prototype would still apply.  */
5310 char $ac_func ();
5311 /* The GNU C library defines this for functions which it implements
5312     to always fail with ENOSYS.  Some functions are actually named
5313     something starting with __ and the normal name is an alias.  */
5314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5315 choke me
5316 #else
5317 char (*f) () = $ac_func;
5318 #endif
5319 #ifdef __cplusplus
5320 }
5321 #endif
5322
5323 int
5324 main ()
5325 {
5326 return f != $ac_func;
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext conftest$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333   (eval $ac_link) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } &&
5337          { ac_try='test -s conftest$ac_exeext'
5338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339   (eval $ac_try) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }; }; then
5343   eval "$as_ac_var=yes"
5344 else
5345   echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 eval "$as_ac_var=no"
5349 fi
5350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5351 fi
5352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5354 if test `eval echo '${'$as_ac_var'}'` = yes; then
5355   cat >>confdefs.h <<_ACEOF
5356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5357 _ACEOF
5358
5359 else
5360
5361 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5362 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5363 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   ac_check_lib_save_LIBS=$LIBS
5367 LIBS="-lnsl  $LIBS"
5368 cat >conftest.$ac_ext <<_ACEOF
5369 #line $LINENO "configure"
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375
5376 /* Override any gcc2 internal prototype to avoid an error.  */
5377 #ifdef __cplusplus
5378 extern "C"
5379 #endif
5380 /* We use char because int might match the return type of a gcc2
5381    builtin and then its argument prototype would still apply.  */
5382 char gethostbyname ();
5383 int
5384 main ()
5385 {
5386 gethostbyname ();
5387   ;
5388   return 0;
5389 }
5390 _ACEOF
5391 rm -f conftest.$ac_objext conftest$ac_exeext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5393   (eval $ac_link) 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } &&
5397          { ac_try='test -s conftest$ac_exeext'
5398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399   (eval $ac_try) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; }; then
5403   ac_cv_lib_nsl_gethostbyname=yes
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 ac_cv_lib_nsl_gethostbyname=no
5409 fi
5410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5412 fi
5413 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5414 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5415 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5416   cat >>confdefs.h <<_ACEOF
5417 #define HAVE_LIBNSL 1
5418 _ACEOF
5419
5420   LIBS="-lnsl $LIBS"
5421
5422 fi
5423
5424 fi
5425 done
5426
5427
5428 for ac_func in connect
5429 do
5430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5431 echo "$as_me:$LINENO: checking for $ac_func" >&5
5432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5433 if eval "test \"\${$as_ac_var+set}\" = set"; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436   cat >conftest.$ac_ext <<_ACEOF
5437 #line $LINENO "configure"
5438 /* confdefs.h.  */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h.  */
5443 /* System header to define __stub macros and hopefully few prototypes,
5444     which can conflict with char $ac_func (); below.
5445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446     <limits.h> exists even on freestanding compilers.  */
5447 #ifdef __STDC__
5448 # include <limits.h>
5449 #else
5450 # include <assert.h>
5451 #endif
5452 /* Override any gcc2 internal prototype to avoid an error.  */
5453 #ifdef __cplusplus
5454 extern "C"
5455 {
5456 #endif
5457 /* We use char because int might match the return type of a gcc2
5458    builtin and then its argument prototype would still apply.  */
5459 char $ac_func ();
5460 /* The GNU C library defines this for functions which it implements
5461     to always fail with ENOSYS.  Some functions are actually named
5462     something starting with __ and the normal name is an alias.  */
5463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5464 choke me
5465 #else
5466 char (*f) () = $ac_func;
5467 #endif
5468 #ifdef __cplusplus
5469 }
5470 #endif
5471
5472 int
5473 main ()
5474 {
5475 return f != $ac_func;
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
5480 rm -f conftest.$ac_objext conftest$ac_exeext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482   (eval $ac_link) 2>&5
5483   ac_status=$?
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); } &&
5486          { ac_try='test -s conftest$ac_exeext'
5487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488   (eval $ac_try) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); }; }; then
5492   eval "$as_ac_var=yes"
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497 eval "$as_ac_var=no"
5498 fi
5499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500 fi
5501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5503 if test `eval echo '${'$as_ac_var'}'` = yes; then
5504   cat >>confdefs.h <<_ACEOF
5505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5506 _ACEOF
5507
5508 else
5509
5510 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5511 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5512 if test "${ac_cv_lib_socket_connect+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   ac_check_lib_save_LIBS=$LIBS
5516 LIBS="-lsocket  $LIBS"
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524
5525 /* Override any gcc2 internal prototype to avoid an error.  */
5526 #ifdef __cplusplus
5527 extern "C"
5528 #endif
5529 /* We use char because int might match the return type of a gcc2
5530    builtin and then its argument prototype would still apply.  */
5531 char connect ();
5532 int
5533 main ()
5534 {
5535 connect ();
5536   ;
5537   return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542   (eval $ac_link) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } &&
5546          { ac_try='test -s conftest$ac_exeext'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552   ac_cv_lib_socket_connect=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557 ac_cv_lib_socket_connect=no
5558 fi
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5561 fi
5562 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5563 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5564 if test $ac_cv_lib_socket_connect = yes; then
5565   cat >>confdefs.h <<_ACEOF
5566 #define HAVE_LIBSOCKET 1
5567 _ACEOF
5568
5569   LIBS="-lsocket $LIBS"
5570
5571 fi
5572
5573 fi
5574 done
5575
5576
5577 for ac_func in inet_aton
5578 do
5579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5580 echo "$as_me:$LINENO: checking for $ac_func" >&5
5581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5582 if eval "test \"\${$as_ac_var+set}\" = set"; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   cat >conftest.$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5587 /* confdefs.h.  */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h.  */
5592 /* System header to define __stub macros and hopefully few prototypes,
5593     which can conflict with char $ac_func (); below.
5594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5595     <limits.h> exists even on freestanding compilers.  */
5596 #ifdef __STDC__
5597 # include <limits.h>
5598 #else
5599 # include <assert.h>
5600 #endif
5601 /* Override any gcc2 internal prototype to avoid an error.  */
5602 #ifdef __cplusplus
5603 extern "C"
5604 {
5605 #endif
5606 /* We use char because int might match the return type of a gcc2
5607    builtin and then its argument prototype would still apply.  */
5608 char $ac_func ();
5609 /* The GNU C library defines this for functions which it implements
5610     to always fail with ENOSYS.  Some functions are actually named
5611     something starting with __ and the normal name is an alias.  */
5612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5613 choke me
5614 #else
5615 char (*f) () = $ac_func;
5616 #endif
5617 #ifdef __cplusplus
5618 }
5619 #endif
5620
5621 int
5622 main ()
5623 {
5624 return f != $ac_func;
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext conftest$ac_exeext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631   (eval $ac_link) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } &&
5635          { ac_try='test -s conftest$ac_exeext'
5636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637   (eval $ac_try) 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }; }; then
5641   eval "$as_ac_var=yes"
5642 else
5643   echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646 eval "$as_ac_var=no"
5647 fi
5648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5649 fi
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5652 if test `eval echo '${'$as_ac_var'}'` = yes; then
5653   cat >>confdefs.h <<_ACEOF
5654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5655 _ACEOF
5656
5657 else
5658
5659 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5660 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5661 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   ac_check_lib_save_LIBS=$LIBS
5665 LIBS="-lresolv  $LIBS"
5666 cat >conftest.$ac_ext <<_ACEOF
5667 #line $LINENO "configure"
5668 /* confdefs.h.  */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h.  */
5673
5674 /* Override any gcc2 internal prototype to avoid an error.  */
5675 #ifdef __cplusplus
5676 extern "C"
5677 #endif
5678 /* We use char because int might match the return type of a gcc2
5679    builtin and then its argument prototype would still apply.  */
5680 char inet_aton ();
5681 int
5682 main ()
5683 {
5684 inet_aton ();
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext conftest$ac_exeext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691   (eval $ac_link) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } &&
5695          { ac_try='test -s conftest$ac_exeext'
5696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697   (eval $ac_try) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; }; then
5701   ac_cv_lib_resolv_inet_aton=yes
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706 ac_cv_lib_resolv_inet_aton=no
5707 fi
5708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5709 LIBS=$ac_check_lib_save_LIBS
5710 fi
5711 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5712 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5713 if test $ac_cv_lib_resolv_inet_aton = yes; then
5714   cat >>confdefs.h <<_ACEOF
5715 #define HAVE_LIBRESOLV 1
5716 _ACEOF
5717
5718   LIBS="-lresolv $LIBS"
5719
5720 fi
5721
5722 fi
5723 done
5724
5725
5726 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5727 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5728 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   ac_check_lib_save_LIBS=$LIBS
5732 LIBS="-lxpg4  $LIBS"
5733 cat >conftest.$ac_ext <<_ACEOF
5734 #line $LINENO "configure"
5735 /* confdefs.h.  */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h.  */
5740
5741 /* Override any gcc2 internal prototype to avoid an error.  */
5742 #ifdef __cplusplus
5743 extern "C"
5744 #endif
5745 /* We use char because int might match the return type of a gcc2
5746    builtin and then its argument prototype would still apply.  */
5747 char _xpg4_setrunelocale ();
5748 int
5749 main ()
5750 {
5751 _xpg4_setrunelocale ();
5752   ;
5753   return 0;
5754 }
5755 _ACEOF
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5758   (eval $ac_link) 2>&5
5759   ac_status=$?
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } &&
5762          { ac_try='test -s conftest$ac_exeext'
5763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764   (eval $ac_try) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; }; then
5768   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5774 fi
5775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776 LIBS=$ac_check_lib_save_LIBS
5777 fi
5778 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5779 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5780 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5781   cat >>confdefs.h <<_ACEOF
5782 #define HAVE_LIBXPG4 1
5783 _ACEOF
5784
5785   LIBS="-lxpg4 $LIBS"
5786
5787 fi
5788
5789
5790 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5791 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5792 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   ac_check_lib_save_LIBS=$LIBS
5796 LIBS="-lmmap  $LIBS"
5797 cat >conftest.$ac_ext <<_ACEOF
5798 #line $LINENO "configure"
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804
5805 /* Override any gcc2 internal prototype to avoid an error.  */
5806 #ifdef __cplusplus
5807 extern "C"
5808 #endif
5809 /* We use char because int might match the return type of a gcc2
5810    builtin and then its argument prototype would still apply.  */
5811 char mmap ();
5812 int
5813 main ()
5814 {
5815 mmap ();
5816   ;
5817   return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext conftest$ac_exeext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5822   (eval $ac_link) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } &&
5826          { ac_try='test -s conftest$ac_exeext'
5827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828   (eval $ac_try) 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; }; then
5832   ac_cv_lib_mmap_mmap=yes
5833 else
5834   echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 ac_cv_lib_mmap_mmap=no
5838 fi
5839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5840 LIBS=$ac_check_lib_save_LIBS
5841 fi
5842 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5843 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5844 if test $ac_cv_lib_mmap_mmap = yes; then
5845   cat >>confdefs.h <<_ACEOF
5846 #define HAVE_LIBMMAP 1
5847 _ACEOF
5848
5849   LIBS="-lmmap $LIBS"
5850
5851 fi
5852
5853
5854 JPEGLIB=""
5855
5856 echo "$as_me:$LINENO: checking for egrep" >&5
5857 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5858 if test "${ac_cv_prog_egrep+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5862     then ac_cv_prog_egrep='grep -E'
5863     else ac_cv_prog_egrep='egrep'
5864     fi
5865 fi
5866 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5867 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5868  EGREP=$ac_cv_prog_egrep
5869
5870
5871 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5872 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5873 if test "${ac_cv_header_stdc+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   cat >conftest.$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883 #include <stdlib.h>
5884 #include <stdarg.h>
5885 #include <string.h>
5886 #include <float.h>
5887
5888 int
5889 main ()
5890 {
5891
5892   ;
5893   return 0;
5894 }
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898   (eval $ac_compile) 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); } &&
5902          { ac_try='test -s conftest.$ac_objext'
5903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904   (eval $ac_try) 2>&5
5905   ac_status=$?
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); }; }; then
5908   ac_cv_header_stdc=yes
5909 else
5910   echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 ac_cv_header_stdc=no
5914 fi
5915 rm -f conftest.$ac_objext conftest.$ac_ext
5916
5917 if test $ac_cv_header_stdc = yes; then
5918   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5919   cat >conftest.$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5921 /* confdefs.h.  */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h.  */
5926 #include <string.h>
5927
5928 _ACEOF
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930   $EGREP "memchr" >/dev/null 2>&1; then
5931   :
5932 else
5933   ac_cv_header_stdc=no
5934 fi
5935 rm -f conftest*
5936
5937 fi
5938
5939 if test $ac_cv_header_stdc = yes; then
5940   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5941   cat >conftest.$ac_ext <<_ACEOF
5942 #line $LINENO "configure"
5943 /* confdefs.h.  */
5944 _ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h.  */
5948 #include <stdlib.h>
5949
5950 _ACEOF
5951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5952   $EGREP "free" >/dev/null 2>&1; then
5953   :
5954 else
5955   ac_cv_header_stdc=no
5956 fi
5957 rm -f conftest*
5958
5959 fi
5960
5961 if test $ac_cv_header_stdc = yes; then
5962   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5963   if test "$cross_compiling" = yes; then
5964   :
5965 else
5966   cat >conftest.$ac_ext <<_ACEOF
5967 #line $LINENO "configure"
5968 /* confdefs.h.  */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h.  */
5973 #include <ctype.h>
5974 #if ((' ' & 0x0FF) == 0x020)
5975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5977 #else
5978 # define ISLOWER(c) \
5979                    (('a' <= (c) && (c) <= 'i') \
5980                      || ('j' <= (c) && (c) <= 'r') \
5981                      || ('s' <= (c) && (c) <= 'z'))
5982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5983 #endif
5984
5985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5986 int
5987 main ()
5988 {
5989   int i;
5990   for (i = 0; i < 256; i++)
5991     if (XOR (islower (i), ISLOWER (i))
5992         || toupper (i) != TOUPPER (i))
5993       exit(2);
5994   exit (0);
5995 }
5996 _ACEOF
5997 rm -f conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   :
6009 else
6010   echo "$as_me: program exited with status $ac_status" >&5
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ( exit $ac_status )
6015 ac_cv_header_stdc=no
6016 fi
6017 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6018 fi
6019 fi
6020 fi
6021 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6022 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6023 if test $ac_cv_header_stdc = yes; then
6024
6025 cat >>confdefs.h <<\_ACEOF
6026 #define STDC_HEADERS 1
6027 _ACEOF
6028
6029 fi
6030
6031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6042                   inttypes.h stdint.h unistd.h
6043 do
6044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6045 echo "$as_me:$LINENO: checking for $ac_header" >&5
6046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   cat >conftest.$ac_ext <<_ACEOF
6051 #line $LINENO "configure"
6052 /* confdefs.h.  */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h.  */
6057 $ac_includes_default
6058
6059 #include <$ac_header>
6060 _ACEOF
6061 rm -f conftest.$ac_objext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063   (eval $ac_compile) 2>&5
6064   ac_status=$?
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); } &&
6067          { ac_try='test -s conftest.$ac_objext'
6068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069   (eval $ac_try) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); }; }; then
6073   eval "$as_ac_Header=yes"
6074 else
6075   echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078 eval "$as_ac_Header=no"
6079 fi
6080 rm -f conftest.$ac_objext conftest.$ac_ext
6081 fi
6082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6085   cat >>confdefs.h <<_ACEOF
6086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6087 _ACEOF
6088
6089 fi
6090
6091 done
6092
6093
6094
6095 for ac_header in jpeglib.h
6096 do
6097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099   echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 fi
6104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6106 else
6107   # Is the header compilable?
6108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6110 cat >conftest.$ac_ext <<_ACEOF
6111 #line $LINENO "configure"
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117 $ac_includes_default
6118 #include <$ac_header>
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122   (eval $ac_compile) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } &&
6126          { ac_try='test -s conftest.$ac_objext'
6127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128   (eval $ac_try) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; }; then
6132   ac_header_compiler=yes
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 ac_header_compiler=no
6138 fi
6139 rm -f conftest.$ac_objext conftest.$ac_ext
6140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6141 echo "${ECHO_T}$ac_header_compiler" >&6
6142
6143 # Is the header present?
6144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6146 cat >conftest.$ac_ext <<_ACEOF
6147 #line $LINENO "configure"
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153 #include <$ac_header>
6154 _ACEOF
6155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } >/dev/null; then
6163   if test -s conftest.err; then
6164     ac_cpp_err=$ac_c_preproc_warn_flag
6165   else
6166     ac_cpp_err=
6167   fi
6168 else
6169   ac_cpp_err=yes
6170 fi
6171 if test -z "$ac_cpp_err"; then
6172   ac_header_preproc=yes
6173 else
6174   echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177   ac_header_preproc=no
6178 fi
6179 rm -f conftest.err conftest.$ac_ext
6180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6181 echo "${ECHO_T}$ac_header_preproc" >&6
6182
6183 # So?  What about this header?
6184 case $ac_header_compiler:$ac_header_preproc in
6185   yes:no )
6186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6190     (
6191       cat <<\_ASBOX
6192 ## ------------------------------------ ##
6193 ## Report this to bug-autoconf@gnu.org. ##
6194 ## ------------------------------------ ##
6195 _ASBOX
6196     ) |
6197       sed "s/^/$as_me: WARNING:     /" >&2
6198     ;;
6199   no:yes )
6200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6202     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6206     (
6207       cat <<\_ASBOX
6208 ## ------------------------------------ ##
6209 ## Report this to bug-autoconf@gnu.org. ##
6210 ## ------------------------------------ ##
6211 _ASBOX
6212     ) |
6213       sed "s/^/$as_me: WARNING:     /" >&2
6214     ;;
6215 esac
6216 echo "$as_me:$LINENO: checking for $ac_header" >&5
6217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   eval "$as_ac_Header=$ac_header_preproc"
6222 fi
6223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6225
6226 fi
6227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6228   cat >>confdefs.h <<_ACEOF
6229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6230 _ACEOF
6231  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6232 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6233 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   ac_check_lib_save_LIBS=$LIBS
6237 LIBS="-ljpeg  $LIBS"
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245
6246 /* Override any gcc2 internal prototype to avoid an error.  */
6247 #ifdef __cplusplus
6248 extern "C"
6249 #endif
6250 /* We use char because int might match the return type of a gcc2
6251    builtin and then its argument prototype would still apply.  */
6252 char jpeg_start_decompress ();
6253 int
6254 main ()
6255 {
6256 jpeg_start_decompress ();
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263   (eval $ac_link) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -s conftest$ac_exeext'
6268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269   (eval $ac_try) 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; }; then
6273   ac_cv_lib_jpeg_jpeg_start_decompress=yes
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 ac_cv_lib_jpeg_jpeg_start_decompress=no
6279 fi
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281 LIBS=$ac_check_lib_save_LIBS
6282 fi
6283 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6284 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6285 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6286
6287 cat >>confdefs.h <<\_ACEOF
6288 #define HAVE_LIBJPEG 1
6289 _ACEOF
6290
6291         JPEGLIB="-ljpeg"
6292
6293 fi
6294
6295
6296 fi
6297
6298 done
6299
6300
6301
6302
6303
6304 XFILES=""
6305
6306 OPENGLFILES=""
6307
6308 GLU32FILES=""
6309
6310 OPENGL_LIBS=""
6311 if test "$have_x" = "yes"
6312 then
6313     XLIB="-lXext -lX11"
6314     ac_save_CPPFLAGS="$CPPFLAGS"
6315     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6316
6317
6318 for ac_header in X11/Xlib.h
6319 do
6320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6322   echo "$as_me:$LINENO: checking for $ac_header" >&5
6323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 fi
6327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6329 else
6330   # Is the header compilable?
6331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6333 cat >conftest.$ac_ext <<_ACEOF
6334 #line $LINENO "configure"
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340 $ac_includes_default
6341 #include <$ac_header>
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345   (eval $ac_compile) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); } &&
6349          { ac_try='test -s conftest.$ac_objext'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; }; then
6355   ac_header_compiler=yes
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 ac_header_compiler=no
6361 fi
6362 rm -f conftest.$ac_objext conftest.$ac_ext
6363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6
6365
6366 # Is the header present?
6367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6370 #line $LINENO "configure"
6371 /* confdefs.h.  */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h.  */
6376 #include <$ac_header>
6377 _ACEOF
6378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6380   ac_status=$?
6381   grep -v '^ *+' conftest.er1 >conftest.err
6382   rm -f conftest.er1
6383   cat conftest.err >&5
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); } >/dev/null; then
6386   if test -s conftest.err; then
6387     ac_cpp_err=$ac_c_preproc_warn_flag
6388   else
6389     ac_cpp_err=
6390   fi
6391 else
6392   ac_cpp_err=yes
6393 fi
6394 if test -z "$ac_cpp_err"; then
6395   ac_header_preproc=yes
6396 else
6397   echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400   ac_header_preproc=no
6401 fi
6402 rm -f conftest.err conftest.$ac_ext
6403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6404 echo "${ECHO_T}$ac_header_preproc" >&6
6405
6406 # So?  What about this header?
6407 case $ac_header_compiler:$ac_header_preproc in
6408   yes:no )
6409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6413     (
6414       cat <<\_ASBOX
6415 ## ------------------------------------ ##
6416 ## Report this to bug-autoconf@gnu.org. ##
6417 ## ------------------------------------ ##
6418 _ASBOX
6419     ) |
6420       sed "s/^/$as_me: WARNING:     /" >&2
6421     ;;
6422   no:yes )
6423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6425     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6429     (
6430       cat <<\_ASBOX
6431 ## ------------------------------------ ##
6432 ## Report this to bug-autoconf@gnu.org. ##
6433 ## ------------------------------------ ##
6434 _ASBOX
6435     ) |
6436       sed "s/^/$as_me: WARNING:     /" >&2
6437     ;;
6438 esac
6439 echo "$as_me:$LINENO: checking for $ac_header" >&5
6440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444   eval "$as_ac_Header=$ac_header_preproc"
6445 fi
6446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6448
6449 fi
6450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451   cat >>confdefs.h <<_ACEOF
6452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6453 _ACEOF
6454
6455
6456 for ac_header in X11/XKBlib.h
6457 do
6458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 /* confdefs.h.  */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h.  */
6471 #include <X11/Xlib.h>
6472
6473 #include <$ac_header>
6474 _ACEOF
6475 rm -f conftest.$ac_objext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477   (eval $ac_compile) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } &&
6481          { ac_try='test -s conftest.$ac_objext'
6482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483   (eval $ac_try) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; }; then
6487   eval "$as_ac_Header=yes"
6488 else
6489   echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 eval "$as_ac_Header=no"
6493 fi
6494 rm -f conftest.$ac_objext conftest.$ac_ext
6495 fi
6496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499   cat >>confdefs.h <<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6502                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6503 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6504 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   ac_check_lib_save_LIBS=$LIBS
6508 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6509 cat >conftest.$ac_ext <<_ACEOF
6510 #line $LINENO "configure"
6511 /* confdefs.h.  */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h.  */
6516
6517 /* Override any gcc2 internal prototype to avoid an error.  */
6518 #ifdef __cplusplus
6519 extern "C"
6520 #endif
6521 /* We use char because int might match the return type of a gcc2
6522    builtin and then its argument prototype would still apply.  */
6523 char XkbQueryExtension ();
6524 int
6525 main ()
6526 {
6527 XkbQueryExtension ();
6528   ;
6529   return 0;
6530 }
6531 _ACEOF
6532 rm -f conftest.$ac_objext conftest$ac_exeext
6533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534   (eval $ac_link) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -s conftest$ac_exeext'
6539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540   (eval $ac_try) 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); }; }; then
6544   ac_cv_lib_X11_XkbQueryExtension=yes
6545 else
6546   echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 ac_cv_lib_X11_XkbQueryExtension=no
6550 fi
6551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6552 LIBS=$ac_check_lib_save_LIBS
6553 fi
6554 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6555 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6556 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6557
6558 cat >>confdefs.h <<\_ACEOF
6559 #define HAVE_XKB 1
6560 _ACEOF
6561
6562 fi
6563
6564
6565 else
6566   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6567 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6568 fi
6569
6570 done
6571
6572
6573
6574 for ac_header in X11/extensions/XShm.h
6575 do
6576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6577 echo "$as_me:$LINENO: checking for $ac_header" >&5
6578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589 #include <X11/Xlib.h>
6590
6591 #include <$ac_header>
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595   (eval $ac_compile) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } &&
6599          { ac_try='test -s conftest.$ac_objext'
6600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601   (eval $ac_try) 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); }; }; then
6605   eval "$as_ac_Header=yes"
6606 else
6607   echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6609
6610 eval "$as_ac_Header=no"
6611 fi
6612 rm -f conftest.$ac_objext conftest.$ac_ext
6613 fi
6614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6617   cat >>confdefs.h <<_ACEOF
6618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6619 _ACEOF
6620                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6621 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6622 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625   ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6627 cat >conftest.$ac_ext <<_ACEOF
6628 #line $LINENO "configure"
6629 /* confdefs.h.  */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h.  */
6634
6635 /* Override any gcc2 internal prototype to avoid an error.  */
6636 #ifdef __cplusplus
6637 extern "C"
6638 #endif
6639 /* We use char because int might match the return type of a gcc2
6640    builtin and then its argument prototype would still apply.  */
6641 char XShmQueryExtension ();
6642 int
6643 main ()
6644 {
6645 XShmQueryExtension ();
6646   ;
6647   return 0;
6648 }
6649 _ACEOF
6650 rm -f conftest.$ac_objext conftest$ac_exeext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652   (eval $ac_link) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); } &&
6656          { ac_try='test -s conftest$ac_exeext'
6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658   (eval $ac_try) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; }; then
6662   ac_cv_lib_Xext_XShmQueryExtension=yes
6663 else
6664   echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_cv_lib_Xext_XShmQueryExtension=no
6668 fi
6669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6670 LIBS=$ac_check_lib_save_LIBS
6671 fi
6672 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6673 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6674 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6675
6676 cat >>confdefs.h <<\_ACEOF
6677 #define HAVE_LIBXXSHM 1
6678 _ACEOF
6679
6680 fi
6681
6682
6683 else
6684   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6685 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6686 fi
6687
6688 done
6689
6690
6691
6692 for ac_header in X11/Xutil.h
6693 do
6694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6695 echo "$as_me:$LINENO: checking for $ac_header" >&5
6696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   cat >conftest.$ac_ext <<_ACEOF
6701 #line $LINENO "configure"
6702 /* confdefs.h.  */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h.  */
6707 #include <X11/Xlib.h>
6708
6709 #include <$ac_header>
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713   (eval $ac_compile) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } &&
6717          { ac_try='test -s conftest.$ac_objext'
6718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719   (eval $ac_try) 2>&5
6720   ac_status=$?
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); }; }; then
6723   eval "$as_ac_Header=yes"
6724 else
6725   echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 eval "$as_ac_Header=no"
6729 fi
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6731 fi
6732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6735   cat >>confdefs.h <<_ACEOF
6736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6737 _ACEOF
6738
6739 fi
6740
6741 done
6742
6743
6744
6745 for ac_header in X11/extensions/shape.h
6746 do
6747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6748 echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   cat >conftest.$ac_ext <<_ACEOF
6754 #line $LINENO "configure"
6755 /* confdefs.h.  */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h.  */
6760 #include <X11/Xlib.h>
6761              #ifdef HAVE_X11_XUTIL_H
6762              # include <X11/Xutil.h>
6763              #endif
6764
6765 #include <$ac_header>
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769   (eval $ac_compile) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } &&
6773          { ac_try='test -s conftest.$ac_objext'
6774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775   (eval $ac_try) 2>&5
6776   ac_status=$?
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); }; }; then
6779   eval "$as_ac_Header=yes"
6780 else
6781   echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 eval "$as_ac_Header=no"
6785 fi
6786 rm -f conftest.$ac_objext conftest.$ac_ext
6787 fi
6788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6791   cat >>confdefs.h <<_ACEOF
6792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6793 _ACEOF
6794                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6795 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6796 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   ac_check_lib_save_LIBS=$LIBS
6800 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6801 cat >conftest.$ac_ext <<_ACEOF
6802 #line $LINENO "configure"
6803 /* confdefs.h.  */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h.  */
6808
6809 /* Override any gcc2 internal prototype to avoid an error.  */
6810 #ifdef __cplusplus
6811 extern "C"
6812 #endif
6813 /* We use char because int might match the return type of a gcc2
6814    builtin and then its argument prototype would still apply.  */
6815 char XShapeQueryExtension ();
6816 int
6817 main ()
6818 {
6819 XShapeQueryExtension ();
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826   (eval $ac_link) 2>&5
6827   ac_status=$?
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); } &&
6830          { ac_try='test -s conftest$ac_exeext'
6831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832   (eval $ac_try) 2>&5
6833   ac_status=$?
6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835   (exit $ac_status); }; }; then
6836   ac_cv_lib_Xext_XShapeQueryExtension=yes
6837 else
6838   echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 ac_cv_lib_Xext_XShapeQueryExtension=no
6842 fi
6843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6844 LIBS=$ac_check_lib_save_LIBS
6845 fi
6846 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6847 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6848 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6849
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_LIBXSHAPE 1
6852 _ACEOF
6853
6854 fi
6855
6856
6857 else
6858   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6859 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6860 fi
6861
6862 done
6863
6864
6865
6866 for ac_header in X11/extensions/xf86dga.h
6867 do
6868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6869 echo "$as_me:$LINENO: checking for $ac_header" >&5
6870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6872   echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874   cat >conftest.$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6876 /* confdefs.h.  */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h.  */
6881 #include <X11/Xlib.h>
6882
6883 #include <$ac_header>
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887   (eval $ac_compile) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); } &&
6891          { ac_try='test -s conftest.$ac_objext'
6892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893   (eval $ac_try) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; }; then
6897   eval "$as_ac_Header=yes"
6898 else
6899   echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 eval "$as_ac_Header=no"
6903 fi
6904 rm -f conftest.$ac_objext conftest.$ac_ext
6905 fi
6906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6909   cat >>confdefs.h <<_ACEOF
6910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6911 _ACEOF
6912                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6913 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6914 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   ac_check_lib_save_LIBS=$LIBS
6918 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6919                $LIBS"
6920 cat >conftest.$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927
6928 /* Override any gcc2 internal prototype to avoid an error.  */
6929 #ifdef __cplusplus
6930 extern "C"
6931 #endif
6932 /* We use char because int might match the return type of a gcc2
6933    builtin and then its argument prototype would still apply.  */
6934 char XDGAQueryExtension ();
6935 int
6936 main ()
6937 {
6938 XDGAQueryExtension ();
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945   (eval $ac_link) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); } &&
6949          { ac_try='test -s conftest$ac_exeext'
6950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951   (eval $ac_try) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; }; then
6955   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6956 else
6957   echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6961 fi
6962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6963 LIBS=$ac_check_lib_save_LIBS
6964 fi
6965 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6966 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6967 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6968
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_LIBXXF86DGA2 1
6971 _ACEOF
6972
6973                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6974
6975 else
6976                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6977 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6978 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   ac_check_lib_save_LIBS=$LIBS
6982 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6983                    $LIBS"
6984 cat >conftest.$ac_ext <<_ACEOF
6985 #line $LINENO "configure"
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991
6992 /* Override any gcc2 internal prototype to avoid an error.  */
6993 #ifdef __cplusplus
6994 extern "C"
6995 #endif
6996 /* We use char because int might match the return type of a gcc2
6997    builtin and then its argument prototype would still apply.  */
6998 char XF86DGAQueryExtension ();
6999 int
7000 main ()
7001 {
7002 XF86DGAQueryExtension ();
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009   (eval $ac_link) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } &&
7013          { ac_try='test -s conftest$ac_exeext'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7025 fi
7026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7027 LIBS=$ac_check_lib_save_LIBS
7028 fi
7029 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7030 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7031 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7032
7033 cat >>confdefs.h <<\_ACEOF
7034 #define HAVE_LIBXXF86DGA 1
7035 _ACEOF
7036
7037                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7038
7039 fi
7040
7041
7042 fi
7043
7044
7045 else
7046   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
7047 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
7048 fi
7049
7050 done
7051
7052
7053
7054 for ac_header in X11/extensions/xf86vmode.h
7055 do
7056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7057 echo "$as_me:$LINENO: checking for $ac_header" >&5
7058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   cat >conftest.$ac_ext <<_ACEOF
7063 #line $LINENO "configure"
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 #include <X11/Xlib.h>
7070
7071 #include <$ac_header>
7072 _ACEOF
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075   (eval $ac_compile) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); } &&
7079          { ac_try='test -s conftest.$ac_objext'
7080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081   (eval $ac_try) 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); }; }; then
7085   eval "$as_ac_Header=yes"
7086 else
7087   echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090 eval "$as_ac_Header=no"
7091 fi
7092 rm -f conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7097   cat >>confdefs.h <<_ACEOF
7098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7099 _ACEOF
7100                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7101 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7102 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   ac_check_lib_save_LIBS=$LIBS
7106 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7107                  $LIBS"
7108 cat >conftest.$ac_ext <<_ACEOF
7109 #line $LINENO "configure"
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115
7116 /* Override any gcc2 internal prototype to avoid an error.  */
7117 #ifdef __cplusplus
7118 extern "C"
7119 #endif
7120 /* We use char because int might match the return type of a gcc2
7121    builtin and then its argument prototype would still apply.  */
7122 char XF86VidModeQueryExtension ();
7123 int
7124 main ()
7125 {
7126 XF86VidModeQueryExtension ();
7127   ;
7128   return 0;
7129 }
7130 _ACEOF
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133   (eval $ac_link) 2>&5
7134   ac_status=$?
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); } &&
7137          { ac_try='test -s conftest$ac_exeext'
7138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139   (eval $ac_try) 2>&5
7140   ac_status=$?
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); }; }; then
7143   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7144 else
7145   echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7149 fi
7150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7151 LIBS=$ac_check_lib_save_LIBS
7152 fi
7153 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7154 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7155 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7156
7157 cat >>confdefs.h <<\_ACEOF
7158 #define HAVE_LIBXXF86VM 1
7159 _ACEOF
7160
7161                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7162
7163 fi
7164
7165
7166 else
7167   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7168 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
7169 fi
7170
7171 done
7172
7173
7174
7175 for ac_header in X11/extensions/Xvlib.h
7176 do
7177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178 echo "$as_me:$LINENO: checking for $ac_header" >&5
7179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181   echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183   cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190 #include <X11/Xlib.h>
7191
7192 #include <$ac_header>
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196   (eval $ac_compile) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); } &&
7200          { ac_try='test -s conftest.$ac_objext'
7201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202   (eval $ac_try) 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; }; then
7206   eval "$as_ac_Header=yes"
7207 else
7208   echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7210
7211 eval "$as_ac_Header=no"
7212 fi
7213 rm -f conftest.$ac_objext conftest.$ac_ext
7214 fi
7215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7218   cat >>confdefs.h <<_ACEOF
7219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7220 _ACEOF
7221                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7222 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7223 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   ac_check_lib_save_LIBS=$LIBS
7227 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7228                  $LIBS"
7229 cat >conftest.$ac_ext <<_ACEOF
7230 #line $LINENO "configure"
7231 /* confdefs.h.  */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h.  */
7236
7237 /* Override any gcc2 internal prototype to avoid an error.  */
7238 #ifdef __cplusplus
7239 extern "C"
7240 #endif
7241 /* We use char because int might match the return type of a gcc2
7242    builtin and then its argument prototype would still apply.  */
7243 char XvShmCreateImage ();
7244 int
7245 main ()
7246 {
7247 XvShmCreateImage ();
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext conftest$ac_exeext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7254   (eval $ac_link) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); } &&
7258          { ac_try='test -s conftest$ac_exeext'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; }; then
7264   ac_cv_lib_Xv_XvShmCreateImage=yes
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_cv_lib_Xv_XvShmCreateImage=no
7270 fi
7271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7272 LIBS=$ac_check_lib_save_LIBS
7273 fi
7274 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7275 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7276 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7277
7278 cat >>confdefs.h <<\_ACEOF
7279 #define HAVE_XVIDEO 1
7280 _ACEOF
7281
7282                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7283
7284 fi
7285
7286
7287 else
7288   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7289 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
7290 fi
7291
7292 done
7293
7294
7295
7296 for ac_header in X11/extensions/Xrender.h
7297 do
7298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7299 echo "$as_me:$LINENO: checking for $ac_header" >&5
7300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7302   echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304   cat >conftest.$ac_ext <<_ACEOF
7305 #line $LINENO "configure"
7306 /* confdefs.h.  */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h.  */
7311 #include <X11/Xlib.h>
7312
7313 #include <$ac_header>
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317   (eval $ac_compile) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } &&
7321          { ac_try='test -s conftest.$ac_objext'
7322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323   (eval $ac_try) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); }; }; then
7327   eval "$as_ac_Header=yes"
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7331
7332 eval "$as_ac_Header=no"
7333 fi
7334 rm -f conftest.$ac_objext conftest.$ac_ext
7335 fi
7336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7339   cat >>confdefs.h <<_ACEOF
7340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7341 _ACEOF
7342
7343 fi
7344
7345 done
7346
7347
7348
7349 fi
7350
7351 done
7352
7353         if test "x$with_opengl" != "xno"
7354     then
7355         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7356         then
7357             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7358 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7359 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7360 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7361    { (exit 1); exit 1; }; }
7362         fi
7363
7364
7365
7366 for ac_header in GL/gl.h GL/glx.h
7367 do
7368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7370   echo "$as_me:$LINENO: checking for $ac_header" >&5
7371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 fi
7375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7377 else
7378   # Is the header compilable?
7379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388 $ac_includes_default
7389 #include <$ac_header>
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393   (eval $ac_compile) 2>&5
7394   ac_status=$?
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); } &&
7397          { ac_try='test -s conftest.$ac_objext'
7398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399   (eval $ac_try) 2>&5
7400   ac_status=$?
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); }; }; then
7403   ac_header_compiler=yes
7404 else
7405   echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7407
7408 ac_header_compiler=no
7409 fi
7410 rm -f conftest.$ac_objext conftest.$ac_ext
7411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7412 echo "${ECHO_T}$ac_header_compiler" >&6
7413
7414 # Is the header present?
7415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7418 #line $LINENO "configure"
7419 /* confdefs.h.  */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h.  */
7424 #include <$ac_header>
7425 _ACEOF
7426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7428   ac_status=$?
7429   grep -v '^ *+' conftest.er1 >conftest.err
7430   rm -f conftest.er1
7431   cat conftest.err >&5
7432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433   (exit $ac_status); } >/dev/null; then
7434   if test -s conftest.err; then
7435     ac_cpp_err=$ac_c_preproc_warn_flag
7436   else
7437     ac_cpp_err=
7438   fi
7439 else
7440   ac_cpp_err=yes
7441 fi
7442 if test -z "$ac_cpp_err"; then
7443   ac_header_preproc=yes
7444 else
7445   echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7447
7448   ac_header_preproc=no
7449 fi
7450 rm -f conftest.err conftest.$ac_ext
7451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7452 echo "${ECHO_T}$ac_header_preproc" >&6
7453
7454 # So?  What about this header?
7455 case $ac_header_compiler:$ac_header_preproc in
7456   yes:no )
7457     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7461     (
7462       cat <<\_ASBOX
7463 ## ------------------------------------ ##
7464 ## Report this to bug-autoconf@gnu.org. ##
7465 ## ------------------------------------ ##
7466 _ASBOX
7467     ) |
7468       sed "s/^/$as_me: WARNING:     /" >&2
7469     ;;
7470   no:yes )
7471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7473     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7477     (
7478       cat <<\_ASBOX
7479 ## ------------------------------------ ##
7480 ## Report this to bug-autoconf@gnu.org. ##
7481 ## ------------------------------------ ##
7482 _ASBOX
7483     ) |
7484       sed "s/^/$as_me: WARNING:     /" >&2
7485     ;;
7486 esac
7487 echo "$as_me:$LINENO: checking for $ac_header" >&5
7488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7490   echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492   eval "$as_ac_Header=$ac_header_preproc"
7493 fi
7494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7496
7497 fi
7498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499   cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7501 _ACEOF
7502
7503 fi
7504
7505 done
7506
7507         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7508         then
7509
7510 for ac_header in GL/glext.h
7511 do
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 echo "$as_me:$LINENO: checking for $ac_header" >&5
7514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   cat >conftest.$ac_ext <<_ACEOF
7519 #line $LINENO "configure"
7520 /* confdefs.h.  */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h.  */
7525 #include <GL/glx.h>
7526
7527 #include <$ac_header>
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7531   (eval $ac_compile) 2>&5
7532   ac_status=$?
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); } &&
7535          { ac_try='test -s conftest.$ac_objext'
7536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537   (eval $ac_try) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); }; }; then
7541   eval "$as_ac_Header=yes"
7542 else
7543   echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 eval "$as_ac_Header=no"
7547 fi
7548 rm -f conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553   cat >>confdefs.h <<_ACEOF
7554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7555 _ACEOF
7556
7557 fi
7558
7559 done
7560
7561                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7562 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7563 if test "${wine_cv_opengl_version_OK+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566   cat >conftest.$ac_ext <<_ACEOF
7567 #line $LINENO "configure"
7568 /* confdefs.h.  */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h.  */
7573 #include <GL/gl.h>
7574 int
7575 main ()
7576 {
7577 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7578   ;
7579   return 0;
7580 }
7581 _ACEOF
7582 rm -f conftest.$ac_objext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7584   (eval $ac_compile) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); } &&
7588          { ac_try='test -s conftest.$ac_objext'
7589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590   (eval $ac_try) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }; }; then
7594   wine_cv_opengl_version_OK="yes"
7595 else
7596   echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 wine_cv_opengl_version_OK="no"
7600
7601 fi
7602 rm -f conftest.$ac_objext conftest.$ac_ext
7603
7604 fi
7605 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7606 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7607
7608             if test "$wine_cv_opengl_version_OK" = "yes"
7609             then
7610                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7611 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7612 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   ac_check_lib_save_LIBS=$LIBS
7616 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7619 /* confdefs.h.  */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h.  */
7624
7625 /* Override any gcc2 internal prototype to avoid an error.  */
7626 #ifdef __cplusplus
7627 extern "C"
7628 #endif
7629 /* We use char because int might match the return type of a gcc2
7630    builtin and then its argument prototype would still apply.  */
7631 char glXCreateContext ();
7632 int
7633 main ()
7634 {
7635 glXCreateContext ();
7636   ;
7637   return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642   (eval $ac_link) 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); } &&
7646          { ac_try='test -s conftest$ac_exeext'
7647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648   (eval $ac_try) 2>&5
7649   ac_status=$?
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); }; }; then
7652   ac_cv_lib_GL_glXCreateContext=yes
7653 else
7654   echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 ac_cv_lib_GL_glXCreateContext=no
7658 fi
7659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7660 LIBS=$ac_check_lib_save_LIBS
7661 fi
7662 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7663 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7664 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7665   OPENGL_LIBS="-lGL"
7666
7667 fi
7668
7669
7670                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7671                 then
7672                         OPENGLFILES='$(OPENGLFILES)'
7673
7674 cat >>confdefs.h <<\_ACEOF
7675 #define HAVE_OPENGL 1
7676 _ACEOF
7677
7678
7679                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7680 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7681 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   ac_check_lib_save_LIBS=$LIBS
7685 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7686 cat >conftest.$ac_ext <<_ACEOF
7687 #line $LINENO "configure"
7688 /* confdefs.h.  */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h.  */
7693
7694 /* Override any gcc2 internal prototype to avoid an error.  */
7695 #ifdef __cplusplus
7696 extern "C"
7697 #endif
7698 /* We use char because int might match the return type of a gcc2
7699    builtin and then its argument prototype would still apply.  */
7700 char glXGetProcAddressARB ();
7701 int
7702 main ()
7703 {
7704 glXGetProcAddressARB ();
7705   ;
7706   return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest.$ac_objext conftest$ac_exeext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711   (eval $ac_link) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); } &&
7715          { ac_try='test -s conftest$ac_exeext'
7716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717   (eval $ac_try) 2>&5
7718   ac_status=$?
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); }; }; then
7721   ac_cv_lib_GL_glXGetProcAddressARB=yes
7722 else
7723   echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7725
7726 ac_cv_lib_GL_glXGetProcAddressARB=no
7727 fi
7728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7729 LIBS=$ac_check_lib_save_LIBS
7730 fi
7731 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7732 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7733 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7734
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_GLX_GETPROCADDRESS 1
7737 _ACEOF
7738
7739 fi
7740
7741
7742                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7743                         then
7744                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7745 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7746 if test "${wine_cv_extension_prototypes+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7751 /* confdefs.h.  */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h.  */
7756 #include <GL/gl.h>
7757                                                   #ifdef HAVE_GL_GLEXT_H
7758                                                   # include <GL/glext.h>
7759                                                   #endif
7760
7761 int
7762 main ()
7763 {
7764 PFNGLCOLORTABLEEXTPROC test_proc;
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771   (eval $ac_compile) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); } &&
7775          { ac_try='test -s conftest.$ac_objext'
7776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777   (eval $ac_try) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; }; then
7781   wine_cv_extension_prototypes="yes"
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 wine_cv_extension_prototypes="no"
7787
7788 fi
7789 rm -f conftest.$ac_objext conftest.$ac_ext
7790
7791 fi
7792 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7793 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7794                                 if test "$wine_cv_extension_prototypes" = "yes"
7795                                 then
7796
7797 cat >>confdefs.h <<\_ACEOF
7798 #define HAVE_GLEXT_PROTOTYPES 1
7799 _ACEOF
7800
7801                                 fi
7802                         fi
7803
7804                 fi
7805                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7806 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7807 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   ac_check_lib_save_LIBS=$LIBS
7811 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7812                  $LIBS"
7813 cat >conftest.$ac_ext <<_ACEOF
7814 #line $LINENO "configure"
7815 /* confdefs.h.  */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h.  */
7820
7821 /* Override any gcc2 internal prototype to avoid an error.  */
7822 #ifdef __cplusplus
7823 extern "C"
7824 #endif
7825 /* We use char because int might match the return type of a gcc2
7826    builtin and then its argument prototype would still apply.  */
7827 char gluLookAt ();
7828 int
7829 main ()
7830 {
7831 gluLookAt ();
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838   (eval $ac_link) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -s conftest$ac_exeext'
7843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844   (eval $ac_try) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   ac_cv_lib_GLU_gluLookAt=yes
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_cv_lib_GLU_gluLookAt=no
7854 fi
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856 LIBS=$ac_check_lib_save_LIBS
7857 fi
7858 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7859 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7860 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7861   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7862                              GLU32FILES='$(GLU32FILES)'
7863
7864 fi
7865
7866              fi
7867          fi
7868     fi
7869
7870         NASLIBS=""
7871
7872
7873 for ac_header in audio/audiolib.h
7874 do
7875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7877   echo "$as_me:$LINENO: checking for $ac_header" >&5
7878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 fi
7882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7884 else
7885   # Is the header compilable?
7886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7888 cat >conftest.$ac_ext <<_ACEOF
7889 #line $LINENO "configure"
7890 /* confdefs.h.  */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h.  */
7895 $ac_includes_default
7896 #include <$ac_header>
7897 _ACEOF
7898 rm -f conftest.$ac_objext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900   (eval $ac_compile) 2>&5
7901   ac_status=$?
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); } &&
7904          { ac_try='test -s conftest.$ac_objext'
7905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906   (eval $ac_try) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); }; }; then
7910   ac_header_compiler=yes
7911 else
7912   echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7914
7915 ac_header_compiler=no
7916 fi
7917 rm -f conftest.$ac_objext conftest.$ac_ext
7918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7919 echo "${ECHO_T}$ac_header_compiler" >&6
7920
7921 # Is the header present?
7922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7926 /* confdefs.h.  */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h.  */
7931 #include <$ac_header>
7932 _ACEOF
7933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7935   ac_status=$?
7936   grep -v '^ *+' conftest.er1 >conftest.err
7937   rm -f conftest.er1
7938   cat conftest.err >&5
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } >/dev/null; then
7941   if test -s conftest.err; then
7942     ac_cpp_err=$ac_c_preproc_warn_flag
7943   else
7944     ac_cpp_err=
7945   fi
7946 else
7947   ac_cpp_err=yes
7948 fi
7949 if test -z "$ac_cpp_err"; then
7950   ac_header_preproc=yes
7951 else
7952   echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955   ac_header_preproc=no
7956 fi
7957 rm -f conftest.err conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7959 echo "${ECHO_T}$ac_header_preproc" >&6
7960
7961 # So?  What about this header?
7962 case $ac_header_compiler:$ac_header_preproc in
7963   yes:no )
7964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7968     (
7969       cat <<\_ASBOX
7970 ## ------------------------------------ ##
7971 ## Report this to bug-autoconf@gnu.org. ##
7972 ## ------------------------------------ ##
7973 _ASBOX
7974     ) |
7975       sed "s/^/$as_me: WARNING:     /" >&2
7976     ;;
7977   no:yes )
7978     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7980     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7984     (
7985       cat <<\_ASBOX
7986 ## ------------------------------------ ##
7987 ## Report this to bug-autoconf@gnu.org. ##
7988 ## ------------------------------------ ##
7989 _ASBOX
7990     ) |
7991       sed "s/^/$as_me: WARNING:     /" >&2
7992     ;;
7993 esac
7994 echo "$as_me:$LINENO: checking for $ac_header" >&5
7995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   eval "$as_ac_Header=$ac_header_preproc"
8000 fi
8001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8003
8004 fi
8005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8006   cat >>confdefs.h <<_ACEOF
8007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8008 _ACEOF
8009
8010 for ac_header in audio/soundlib.h
8011 do
8012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8013 echo "$as_me:$LINENO: checking for $ac_header" >&5
8014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 #include <audio/audiolib.h>
8026
8027 #include <$ac_header>
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031   (eval $ac_compile) 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } &&
8035          { ac_try='test -s conftest.$ac_objext'
8036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037   (eval $ac_try) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); }; }; then
8041   eval "$as_ac_Header=yes"
8042 else
8043   echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046 eval "$as_ac_Header=no"
8047 fi
8048 rm -f conftest.$ac_objext conftest.$ac_ext
8049 fi
8050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8053   cat >>confdefs.h <<_ACEOF
8054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8055 _ACEOF
8056
8057 fi
8058
8059 done
8060
8061           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8062 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8063 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8064   echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066   ac_check_lib_save_LIBS=$LIBS
8067 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8068 cat >conftest.$ac_ext <<_ACEOF
8069 #line $LINENO "configure"
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075
8076 /* Override any gcc2 internal prototype to avoid an error.  */
8077 #ifdef __cplusplus
8078 extern "C"
8079 #endif
8080 /* We use char because int might match the return type of a gcc2
8081    builtin and then its argument prototype would still apply.  */
8082 char AuCreateFlow ();
8083 int
8084 main ()
8085 {
8086 AuCreateFlow ();
8087   ;
8088   return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext conftest$ac_exeext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8093   (eval $ac_link) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); } &&
8097          { ac_try='test -s conftest$ac_exeext'
8098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099   (eval $ac_try) 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); }; }; then
8103   ac_cv_lib_audio_AuCreateFlow=yes
8104 else
8105   echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8107
8108 ac_cv_lib_audio_AuCreateFlow=no
8109 fi
8110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8111 LIBS=$ac_check_lib_save_LIBS
8112 fi
8113 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8114 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8115 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8116
8117 cat >>confdefs.h <<\_ACEOF
8118 #define HAVE_NAS 1
8119 _ACEOF
8120
8121                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8122 fi
8123
8124 fi
8125
8126 done
8127
8128
8129     CPPFLAGS="$ac_save_CPPFLAGS"
8130     XFILES='$(XFILES)'
8131 else
8132     XLIB=""
8133     X_CFLAGS=""
8134     X_LIBS=""
8135 fi
8136
8137 CURSESLIBS=""
8138 if test "x$with_curses" != "xno"
8139 then
8140
8141 for ac_header in ncurses.h
8142 do
8143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8145   echo "$as_me:$LINENO: checking for $ac_header" >&5
8146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8148   echo $ECHO_N "(cached) $ECHO_C" >&6
8149 fi
8150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8152 else
8153   # Is the header compilable?
8154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8156 cat >conftest.$ac_ext <<_ACEOF
8157 #line $LINENO "configure"
8158 /* confdefs.h.  */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h.  */
8163 $ac_includes_default
8164 #include <$ac_header>
8165 _ACEOF
8166 rm -f conftest.$ac_objext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168   (eval $ac_compile) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } &&
8172          { ac_try='test -s conftest.$ac_objext'
8173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174   (eval $ac_try) 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); }; }; then
8178   ac_header_compiler=yes
8179 else
8180   echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8182
8183 ac_header_compiler=no
8184 fi
8185 rm -f conftest.$ac_objext conftest.$ac_ext
8186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8187 echo "${ECHO_T}$ac_header_compiler" >&6
8188
8189 # Is the header present?
8190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8192 cat >conftest.$ac_ext <<_ACEOF
8193 #line $LINENO "configure"
8194 /* confdefs.h.  */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h.  */
8199 #include <$ac_header>
8200 _ACEOF
8201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8203   ac_status=$?
8204   grep -v '^ *+' conftest.er1 >conftest.err
8205   rm -f conftest.er1
8206   cat conftest.err >&5
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); } >/dev/null; then
8209   if test -s conftest.err; then
8210     ac_cpp_err=$ac_c_preproc_warn_flag
8211   else
8212     ac_cpp_err=
8213   fi
8214 else
8215   ac_cpp_err=yes
8216 fi
8217 if test -z "$ac_cpp_err"; then
8218   ac_header_preproc=yes
8219 else
8220   echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8222
8223   ac_header_preproc=no
8224 fi
8225 rm -f conftest.err conftest.$ac_ext
8226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8227 echo "${ECHO_T}$ac_header_preproc" >&6
8228
8229 # So?  What about this header?
8230 case $ac_header_compiler:$ac_header_preproc in
8231   yes:no )
8232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8236     (
8237       cat <<\_ASBOX
8238 ## ------------------------------------ ##
8239 ## Report this to bug-autoconf@gnu.org. ##
8240 ## ------------------------------------ ##
8241 _ASBOX
8242     ) |
8243       sed "s/^/$as_me: WARNING:     /" >&2
8244     ;;
8245   no:yes )
8246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8248     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8252     (
8253       cat <<\_ASBOX
8254 ## ------------------------------------ ##
8255 ## Report this to bug-autoconf@gnu.org. ##
8256 ## ------------------------------------ ##
8257 _ASBOX
8258     ) |
8259       sed "s/^/$as_me: WARNING:     /" >&2
8260     ;;
8261 esac
8262 echo "$as_me:$LINENO: checking for $ac_header" >&5
8263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   eval "$as_ac_Header=$ac_header_preproc"
8268 fi
8269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8271
8272 fi
8273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8274   cat >>confdefs.h <<_ACEOF
8275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8276 _ACEOF
8277  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8278 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8279 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   ac_check_lib_save_LIBS=$LIBS
8283 LIBS="-lncurses  $LIBS"
8284 cat >conftest.$ac_ext <<_ACEOF
8285 #line $LINENO "configure"
8286 /* confdefs.h.  */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h.  */
8291
8292 /* Override any gcc2 internal prototype to avoid an error.  */
8293 #ifdef __cplusplus
8294 extern "C"
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297    builtin and then its argument prototype would still apply.  */
8298 char waddch ();
8299 int
8300 main ()
8301 {
8302 waddch ();
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309   (eval $ac_link) 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } &&
8313          { ac_try='test -s conftest$ac_exeext'
8314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315   (eval $ac_try) 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; }; then
8319   ac_cv_lib_ncurses_waddch=yes
8320 else
8321   echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 ac_cv_lib_ncurses_waddch=no
8325 fi
8326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8327 LIBS=$ac_check_lib_save_LIBS
8328 fi
8329 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8330 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8331 if test $ac_cv_lib_ncurses_waddch = yes; then
8332
8333 cat >>confdefs.h <<\_ACEOF
8334 #define HAVE_LIBNCURSES 1
8335 _ACEOF
8336
8337              CURSESLIBS="-lncurses"
8338 else
8339
8340 for ac_header in curses.h
8341 do
8342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8344   echo "$as_me:$LINENO: checking for $ac_header" >&5
8345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 fi
8349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8351 else
8352   # Is the header compilable?
8353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362 $ac_includes_default
8363 #include <$ac_header>
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367   (eval $ac_compile) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } &&
8371          { ac_try='test -s conftest.$ac_objext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_header_compiler=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_header_compiler=no
8383 fi
8384 rm -f conftest.$ac_objext conftest.$ac_ext
8385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8386 echo "${ECHO_T}$ac_header_compiler" >&6
8387
8388 # Is the header present?
8389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8391 cat >conftest.$ac_ext <<_ACEOF
8392 #line $LINENO "configure"
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398 #include <$ac_header>
8399 _ACEOF
8400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8402   ac_status=$?
8403   grep -v '^ *+' conftest.er1 >conftest.err
8404   rm -f conftest.er1
8405   cat conftest.err >&5
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); } >/dev/null; then
8408   if test -s conftest.err; then
8409     ac_cpp_err=$ac_c_preproc_warn_flag
8410   else
8411     ac_cpp_err=
8412   fi
8413 else
8414   ac_cpp_err=yes
8415 fi
8416 if test -z "$ac_cpp_err"; then
8417   ac_header_preproc=yes
8418 else
8419   echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8421
8422   ac_header_preproc=no
8423 fi
8424 rm -f conftest.err conftest.$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8426 echo "${ECHO_T}$ac_header_preproc" >&6
8427
8428 # So?  What about this header?
8429 case $ac_header_compiler:$ac_header_preproc in
8430   yes:no )
8431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8435     (
8436       cat <<\_ASBOX
8437 ## ------------------------------------ ##
8438 ## Report this to bug-autoconf@gnu.org. ##
8439 ## ------------------------------------ ##
8440 _ASBOX
8441     ) |
8442       sed "s/^/$as_me: WARNING:     /" >&2
8443     ;;
8444   no:yes )
8445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8451     (
8452       cat <<\_ASBOX
8453 ## ------------------------------------ ##
8454 ## Report this to bug-autoconf@gnu.org. ##
8455 ## ------------------------------------ ##
8456 _ASBOX
8457     ) |
8458       sed "s/^/$as_me: WARNING:     /" >&2
8459     ;;
8460 esac
8461 echo "$as_me:$LINENO: checking for $ac_header" >&5
8462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   eval "$as_ac_Header=$ac_header_preproc"
8467 fi
8468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8470
8471 fi
8472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8473   cat >>confdefs.h <<_ACEOF
8474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8475 _ACEOF
8476  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8477 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8478 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481   ac_check_lib_save_LIBS=$LIBS
8482 LIBS="-lcurses  $LIBS"
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490
8491 /* Override any gcc2 internal prototype to avoid an error.  */
8492 #ifdef __cplusplus
8493 extern "C"
8494 #endif
8495 /* We use char because int might match the return type of a gcc2
8496    builtin and then its argument prototype would still apply.  */
8497 char waddch ();
8498 int
8499 main ()
8500 {
8501 waddch ();
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 rm -f conftest.$ac_objext conftest$ac_exeext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8508   (eval $ac_link) 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); } &&
8512          { ac_try='test -s conftest$ac_exeext'
8513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514   (eval $ac_try) 2>&5
8515   ac_status=$?
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); }; }; then
8518   ac_cv_lib_curses_waddch=yes
8519 else
8520   echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8522
8523 ac_cv_lib_curses_waddch=no
8524 fi
8525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8526 LIBS=$ac_check_lib_save_LIBS
8527 fi
8528 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8529 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8530 if test $ac_cv_lib_curses_waddch = yes; then
8531
8532 cat >>confdefs.h <<\_ACEOF
8533 #define HAVE_LIBCURSES 1
8534 _ACEOF
8535
8536                       CURSESLIBS="-lcurses"
8537 fi
8538
8539 fi
8540
8541 done
8542
8543 fi
8544
8545 fi
8546
8547 done
8548
8549     saved_libs="$LIBS"
8550     LIBS="$CURSESLIBS $LIBS"
8551
8552
8553 for ac_func in getbkgd resizeterm
8554 do
8555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8556 echo "$as_me:$LINENO: checking for $ac_func" >&5
8557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8558 if eval "test \"\${$as_ac_var+set}\" = set"; then
8559   echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561   cat >conftest.$ac_ext <<_ACEOF
8562 #line $LINENO "configure"
8563 /* confdefs.h.  */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h.  */
8568 /* System header to define __stub macros and hopefully few prototypes,
8569     which can conflict with char $ac_func (); below.
8570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8571     <limits.h> exists even on freestanding compilers.  */
8572 #ifdef __STDC__
8573 # include <limits.h>
8574 #else
8575 # include <assert.h>
8576 #endif
8577 /* Override any gcc2 internal prototype to avoid an error.  */
8578 #ifdef __cplusplus
8579 extern "C"
8580 {
8581 #endif
8582 /* We use char because int might match the return type of a gcc2
8583    builtin and then its argument prototype would still apply.  */
8584 char $ac_func ();
8585 /* The GNU C library defines this for functions which it implements
8586     to always fail with ENOSYS.  Some functions are actually named
8587     something starting with __ and the normal name is an alias.  */
8588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8589 choke me
8590 #else
8591 char (*f) () = $ac_func;
8592 #endif
8593 #ifdef __cplusplus
8594 }
8595 #endif
8596
8597 int
8598 main ()
8599 {
8600 return f != $ac_func;
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 rm -f conftest.$ac_objext conftest$ac_exeext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8607   (eval $ac_link) 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -s conftest$ac_exeext'
8612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613   (eval $ac_try) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; }; then
8617   eval "$as_ac_var=yes"
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 eval "$as_ac_var=no"
8623 fi
8624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8625 fi
8626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8628 if test `eval echo '${'$as_ac_var'}'` = yes; then
8629   cat >>confdefs.h <<_ACEOF
8630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8631 _ACEOF
8632
8633 fi
8634 done
8635
8636     LIBS="$saved_libs"
8637 fi
8638
8639
8640 # Extract the first word of "sane-config", so it can be a program name with args.
8641 set dummy sane-config; ac_word=$2
8642 echo "$as_me:$LINENO: checking for $ac_word" >&5
8643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8644 if test "${ac_cv_prog_sane_devel+set}" = set; then
8645   echo $ECHO_N "(cached) $ECHO_C" >&6
8646 else
8647   if test -n "$sane_devel"; then
8648   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8649 else
8650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 for as_dir in $PATH
8652 do
8653   IFS=$as_save_IFS
8654   test -z "$as_dir" && as_dir=.
8655   for ac_exec_ext in '' $ac_executable_extensions; do
8656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8657     ac_cv_prog_sane_devel="sane-config"
8658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8659     break 2
8660   fi
8661 done
8662 done
8663
8664   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8665 fi
8666 fi
8667 sane_devel=$ac_cv_prog_sane_devel
8668 if test -n "$sane_devel"; then
8669   echo "$as_me:$LINENO: result: $sane_devel" >&5
8670 echo "${ECHO_T}$sane_devel" >&6
8671 else
8672   echo "$as_me:$LINENO: result: no" >&5
8673 echo "${ECHO_T}no" >&6
8674 fi
8675
8676 if test "$sane_devel" = "no"
8677 then
8678     SANELIBS=""
8679     SANEINCL=""
8680 else
8681     SANELIBS="`$sane_devel --libs`"
8682     SANEINCL="`$sane_devel --cflags`"
8683     ac_save_CPPFLAGS="$CPPFLAGS"
8684     ac_save_LIBS="$LIBS"
8685     CPPFLAGS="$CPPFLAGS $SANEINCL"
8686     LIBS="$LIBS $SANELIBS"
8687     if test "${ac_cv_header_sane_sane_h+set}" = set; then
8688   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8689 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8690 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8691   echo $ECHO_N "(cached) $ECHO_C" >&6
8692 fi
8693 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8694 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8695 else
8696   # Is the header compilable?
8697 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8698 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8699 cat >conftest.$ac_ext <<_ACEOF
8700 #line $LINENO "configure"
8701 /* confdefs.h.  */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h.  */
8706 $ac_includes_default
8707 #include <sane/sane.h>
8708 _ACEOF
8709 rm -f conftest.$ac_objext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711   (eval $ac_compile) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); } &&
8715          { ac_try='test -s conftest.$ac_objext'
8716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717   (eval $ac_try) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); }; }; then
8721   ac_header_compiler=yes
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726 ac_header_compiler=no
8727 fi
8728 rm -f conftest.$ac_objext conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8730 echo "${ECHO_T}$ac_header_compiler" >&6
8731
8732 # Is the header present?
8733 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8734 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8735 cat >conftest.$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8737 /* confdefs.h.  */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h.  */
8742 #include <sane/sane.h>
8743 _ACEOF
8744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8746   ac_status=$?
8747   grep -v '^ *+' conftest.er1 >conftest.err
8748   rm -f conftest.er1
8749   cat conftest.err >&5
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); } >/dev/null; then
8752   if test -s conftest.err; then
8753     ac_cpp_err=$ac_c_preproc_warn_flag
8754   else
8755     ac_cpp_err=
8756   fi
8757 else
8758   ac_cpp_err=yes
8759 fi
8760 if test -z "$ac_cpp_err"; then
8761   ac_header_preproc=yes
8762 else
8763   echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766   ac_header_preproc=no
8767 fi
8768 rm -f conftest.err conftest.$ac_ext
8769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8770 echo "${ECHO_T}$ac_header_preproc" >&6
8771
8772 # So?  What about this header?
8773 case $ac_header_compiler:$ac_header_preproc in
8774   yes:no )
8775     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8776 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8777     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8778 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8779     (
8780       cat <<\_ASBOX
8781 ## ------------------------------------ ##
8782 ## Report this to bug-autoconf@gnu.org. ##
8783 ## ------------------------------------ ##
8784 _ASBOX
8785     ) |
8786       sed "s/^/$as_me: WARNING:     /" >&2
8787     ;;
8788   no:yes )
8789     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8790 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8791     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8792 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8793     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8794 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8795     (
8796       cat <<\_ASBOX
8797 ## ------------------------------------ ##
8798 ## Report this to bug-autoconf@gnu.org. ##
8799 ## ------------------------------------ ##
8800 _ASBOX
8801     ) |
8802       sed "s/^/$as_me: WARNING:     /" >&2
8803     ;;
8804 esac
8805 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8806 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8807 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8808   echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810   ac_cv_header_sane_sane_h=$ac_header_preproc
8811 fi
8812 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8813 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8814
8815 fi
8816 if test $ac_cv_header_sane_sane_h = yes; then
8817   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8818 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8819 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   ac_check_lib_save_LIBS=$LIBS
8823 LIBS="-lsane  $LIBS"
8824 cat >conftest.$ac_ext <<_ACEOF
8825 #line $LINENO "configure"
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831
8832 /* Override any gcc2 internal prototype to avoid an error.  */
8833 #ifdef __cplusplus
8834 extern "C"
8835 #endif
8836 /* We use char because int might match the return type of a gcc2
8837    builtin and then its argument prototype would still apply.  */
8838 char sane_open ();
8839 int
8840 main ()
8841 {
8842 sane_open ();
8843   ;
8844   return 0;
8845 }
8846 _ACEOF
8847 rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8849   (eval $ac_link) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); } &&
8853          { ac_try='test -s conftest$ac_exeext'
8854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855   (eval $ac_try) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; }; then
8859   ac_cv_lib_sane_sane_open=yes
8860 else
8861   echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864 ac_cv_lib_sane_sane_open=no
8865 fi
8866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8867 LIBS=$ac_check_lib_save_LIBS
8868 fi
8869 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8870 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8871 if test $ac_cv_lib_sane_sane_open = yes; then
8872
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_SANE 1
8875 _ACEOF
8876
8877 else
8878   SANELIBS=""
8879                                   SANEINCL=""
8880 fi
8881
8882 else
8883   SANELIBS=""
8884                     SANEINCL=""
8885 fi
8886
8887
8888     LIBS="$ac_save_LIBS"
8889     CPPFLAGS="$ac_save_CPPFLAGS"
8890 fi
8891
8892
8893
8894 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8895 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8896 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899   ac_check_lib_save_LIBS=$LIBS
8900 LIBS="-lfreetype $X_LIBS $LIBS"
8901 cat >conftest.$ac_ext <<_ACEOF
8902 #line $LINENO "configure"
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908
8909 /* Override any gcc2 internal prototype to avoid an error.  */
8910 #ifdef __cplusplus
8911 extern "C"
8912 #endif
8913 /* We use char because int might match the return type of a gcc2
8914    builtin and then its argument prototype would still apply.  */
8915 char FT_Init_FreeType ();
8916 int
8917 main ()
8918 {
8919 FT_Init_FreeType ();
8920   ;
8921   return 0;
8922 }
8923 _ACEOF
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926   (eval $ac_link) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -s conftest$ac_exeext'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   ac_cv_lib_freetype_FT_Init_FreeType=yes
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 ac_cv_lib_freetype_FT_Init_FreeType=no
8942 fi
8943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8944 LIBS=$ac_check_lib_save_LIBS
8945 fi
8946 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8947 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8948 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8949   ft_lib=yes
8950 else
8951   ft_lib=no
8952 fi
8953
8954 if test "$ft_lib" = "no"
8955 then
8956     FREETYPEINCL=""
8957     wine_cv_msg_freetype=no
8958 else
8959     # Extract the first word of "freetype-config", so it can be a program name with args.
8960 set dummy freetype-config; ac_word=$2
8961 echo "$as_me:$LINENO: checking for $ac_word" >&5
8962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963 if test "${ac_cv_prog_ft_devel+set}" = set; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   if test -n "$ft_devel"; then
8967   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8968 else
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970 for as_dir in $PATH
8971 do
8972   IFS=$as_save_IFS
8973   test -z "$as_dir" && as_dir=.
8974   for ac_exec_ext in '' $ac_executable_extensions; do
8975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976     ac_cv_prog_ft_devel="freetype-config"
8977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978     break 2
8979   fi
8980 done
8981 done
8982
8983   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8984 fi
8985 fi
8986 ft_devel=$ac_cv_prog_ft_devel
8987 if test -n "$ft_devel"; then
8988   echo "$as_me:$LINENO: result: $ft_devel" >&5
8989 echo "${ECHO_T}$ft_devel" >&6
8990 else
8991   echo "$as_me:$LINENO: result: no" >&5
8992 echo "${ECHO_T}no" >&6
8993 fi
8994
8995     if test "$ft_devel" = "no"
8996     then
8997         # Extract the first word of "freetype2-config", so it can be a program name with args.
8998 set dummy freetype2-config; ac_word=$2
8999 echo "$as_me:$LINENO: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   if test -n "$ft_devel2"; then
9005   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010   IFS=$as_save_IFS
9011   test -z "$as_dir" && as_dir=.
9012   for ac_exec_ext in '' $ac_executable_extensions; do
9013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014     ac_cv_prog_ft_devel2="freetype2-config"
9015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016     break 2
9017   fi
9018 done
9019 done
9020
9021   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9022 fi
9023 fi
9024 ft_devel2=$ac_cv_prog_ft_devel2
9025 if test -n "$ft_devel2"; then
9026   echo "$as_me:$LINENO: result: $ft_devel2" >&5
9027 echo "${ECHO_T}$ft_devel2" >&6
9028 else
9029   echo "$as_me:$LINENO: result: no" >&5
9030 echo "${ECHO_T}no" >&6
9031 fi
9032
9033         if test "$ft_devel2" = "freetype2-config"
9034         then
9035                 ft_devel=$ft_devel2
9036         fi
9037     fi
9038     if test "$ft_devel" = "no"
9039     then
9040         FREETYPEINCL=""
9041         wine_cv_msg_freetype=yes
9042     else
9043         FREETYPEINCL=`$ft_devel --cflags`
9044         ac_save_CPPFLAGS="$CPPFLAGS"
9045         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9046
9047
9048
9049
9050
9051
9052
9053
9054 for ac_header in freetype/freetype.h \
9055                          freetype/ftglyph.h \
9056                          freetype/tttables.h \
9057                          freetype/ftnames.h \
9058                          freetype/ftsnames.h \
9059                          freetype/ttnameid.h \
9060                          freetype/ftoutln.h \
9061                          freetype/internal/sfnt.h
9062 do
9063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9065   echo "$as_me:$LINENO: checking for $ac_header" >&5
9066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 fi
9070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9072 else
9073   # Is the header compilable?
9074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9076 cat >conftest.$ac_ext <<_ACEOF
9077 #line $LINENO "configure"
9078 /* confdefs.h.  */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h.  */
9083 $ac_includes_default
9084 #include <$ac_header>
9085 _ACEOF
9086 rm -f conftest.$ac_objext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088   (eval $ac_compile) 2>&5
9089   ac_status=$?
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); } &&
9092          { ac_try='test -s conftest.$ac_objext'
9093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094   (eval $ac_try) 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); }; }; then
9098   ac_header_compiler=yes
9099 else
9100   echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9102
9103 ac_header_compiler=no
9104 fi
9105 rm -f conftest.$ac_objext conftest.$ac_ext
9106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9107 echo "${ECHO_T}$ac_header_compiler" >&6
9108
9109 # Is the header present?
9110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9112 cat >conftest.$ac_ext <<_ACEOF
9113 #line $LINENO "configure"
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 #include <$ac_header>
9120 _ACEOF
9121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9123   ac_status=$?
9124   grep -v '^ *+' conftest.er1 >conftest.err
9125   rm -f conftest.er1
9126   cat conftest.err >&5
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); } >/dev/null; then
9129   if test -s conftest.err; then
9130     ac_cpp_err=$ac_c_preproc_warn_flag
9131   else
9132     ac_cpp_err=
9133   fi
9134 else
9135   ac_cpp_err=yes
9136 fi
9137 if test -z "$ac_cpp_err"; then
9138   ac_header_preproc=yes
9139 else
9140   echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9142
9143   ac_header_preproc=no
9144 fi
9145 rm -f conftest.err conftest.$ac_ext
9146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9147 echo "${ECHO_T}$ac_header_preproc" >&6
9148
9149 # So?  What about this header?
9150 case $ac_header_compiler:$ac_header_preproc in
9151   yes:no )
9152     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9156     (
9157       cat <<\_ASBOX
9158 ## ------------------------------------ ##
9159 ## Report this to bug-autoconf@gnu.org. ##
9160 ## ------------------------------------ ##
9161 _ASBOX
9162     ) |
9163       sed "s/^/$as_me: WARNING:     /" >&2
9164     ;;
9165   no:yes )
9166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9168     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9172     (
9173       cat <<\_ASBOX
9174 ## ------------------------------------ ##
9175 ## Report this to bug-autoconf@gnu.org. ##
9176 ## ------------------------------------ ##
9177 _ASBOX
9178     ) |
9179       sed "s/^/$as_me: WARNING:     /" >&2
9180     ;;
9181 esac
9182 echo "$as_me:$LINENO: checking for $ac_header" >&5
9183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187   eval "$as_ac_Header=$ac_header_preproc"
9188 fi
9189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9191
9192 fi
9193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9194   cat >>confdefs.h <<_ACEOF
9195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9196 _ACEOF
9197
9198 fi
9199
9200 done
9201
9202         cat >conftest.$ac_ext <<_ACEOF
9203 #line $LINENO "configure"
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209 #include <ft2build.h>
9210                     #include <freetype/fttrigon.h>
9211 _ACEOF
9212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } >/dev/null; then
9220   if test -s conftest.err; then
9221     ac_cpp_err=$ac_c_preproc_warn_flag
9222   else
9223     ac_cpp_err=
9224   fi
9225 else
9226   ac_cpp_err=yes
9227 fi
9228 if test -z "$ac_cpp_err"; then
9229
9230 cat >>confdefs.h <<\_ACEOF
9231 #define HAVE_FREETYPE_FTTRIGON_H 1
9232 _ACEOF
9233
9234                     wine_cv_fttrigon=yes
9235 else
9236   echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239   wine_cv_fttrigon=no
9240 fi
9241 rm -f conftest.err conftest.$ac_ext
9242         CPPFLAGS="$ac_save_CPPFLAGS"
9243                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9244         then
9245
9246 cat >>confdefs.h <<\_ACEOF
9247 #define HAVE_FREETYPE 1
9248 _ACEOF
9249
9250             wine_cv_msg_freetype=no
9251         else
9252             FREETYPEINCL=""
9253             wine_cv_msg_freetype=yes
9254         fi
9255     fi
9256 fi
9257
9258
9259 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9260 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9261 if test "${ac_cv_c_ppdev+set}" = set; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264   cat >conftest.$ac_ext <<_ACEOF
9265 #line $LINENO "configure"
9266 /* confdefs.h.  */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h.  */
9271 #include <linux/ppdev.h>
9272 int
9273 main ()
9274 {
9275 ioctl (1,PPCLAIM,0)
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282   (eval $ac_compile) 2>&5
9283   ac_status=$?
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); } &&
9286          { ac_try='test -s conftest.$ac_objext'
9287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288   (eval $ac_try) 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); }; }; then
9292   ac_cv_c_ppdev="yes"
9293 else
9294   echo "$as_me: failed program was:" >&5
9295 sed 's/^/| /' conftest.$ac_ext >&5
9296
9297 ac_cv_c_ppdev="no"
9298 fi
9299 rm -f conftest.$ac_objext conftest.$ac_ext
9300
9301 fi
9302 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9303 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9304 if test "$ac_cv_c_ppdev" = "yes"
9305 then
9306
9307 cat >>confdefs.h <<\_ACEOF
9308 #define HAVE_PPDEV 1
9309 _ACEOF
9310
9311 fi
9312
9313 echo "$as_me:$LINENO: checking for va_copy" >&5
9314 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9315 if test "${ac_cv_c_va_copy+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   cat >conftest.$ac_ext <<_ACEOF
9319 #line $LINENO "configure"
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325 #include <stdarg.h>
9326 int
9327 main ()
9328 {
9329 va_list ap1, ap2;
9330     va_copy(ap1,ap2);
9331
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338   (eval $ac_link) 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); } &&
9342          { ac_try='test -s conftest$ac_exeext'
9343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344   (eval $ac_try) 2>&5
9345   ac_status=$?
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); }; }; then
9348   ac_cv_c_va_copy="yes"
9349 else
9350   echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9352
9353 ac_cv_c_va_copy="no"
9354 fi
9355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9356
9357 fi
9358 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9359 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9360 if test "$ac_cv_c_va_copy" = "yes"
9361 then
9362
9363 cat >>confdefs.h <<\_ACEOF
9364 #define HAVE_VA_COPY 1
9365 _ACEOF
9366
9367 fi
9368 echo "$as_me:$LINENO: checking for __va_copy" >&5
9369 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9370 if test "${ac_cv_c___va_copy+set}" = set; then
9371   echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373   cat >conftest.$ac_ext <<_ACEOF
9374 #line $LINENO "configure"
9375 /* confdefs.h.  */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h.  */
9380 #include <stdarg.h>
9381 int
9382 main ()
9383 {
9384 va_list ap1, ap2;
9385     __va_copy(ap1,ap2);
9386
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393   (eval $ac_link) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } &&
9397          { ac_try='test -s conftest$ac_exeext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   ac_cv_c___va_copy="yes"
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_c___va_copy="no"
9409 fi
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9411
9412 fi
9413 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9414 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9415 if test "$ac_cv_c___va_copy" = "yes"
9416 then
9417
9418 cat >>confdefs.h <<\_ACEOF
9419 #define HAVE___VA_COPY 1
9420 _ACEOF
9421
9422 fi
9423
9424 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
9425 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
9426 if test "${ac_cv_c_ipx_gnu+set}" = set; then
9427   echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429   cat >conftest.$ac_ext <<_ACEOF
9430 #line $LINENO "configure"
9431 /* confdefs.h.  */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h.  */
9436 #include <sys/types.h>
9437     #ifdef HAVE_SYS_SOCKET_H
9438     # include <sys/socket.h>
9439     #endif
9440     #include <netipx/ipx.h>
9441 int
9442 main ()
9443 {
9444 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
9445   ;
9446   return 0;
9447 }
9448 _ACEOF
9449 rm -f conftest.$ac_objext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451   (eval $ac_compile) 2>&5
9452   ac_status=$?
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); } &&
9455          { ac_try='test -s conftest.$ac_objext'
9456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457   (eval $ac_try) 2>&5
9458   ac_status=$?
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); }; }; then
9461   ac_cv_c_ipx_gnu="yes"
9462 else
9463   echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9465
9466 ac_cv_c_ipx_gnu="no"
9467 fi
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9469
9470 fi
9471 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
9472 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
9473 if test "$ac_cv_c_ipx_gnu" = "yes"
9474 then
9475
9476 cat >>confdefs.h <<\_ACEOF
9477 #define HAVE_IPX_GNU 1
9478 _ACEOF
9479
9480 fi
9481
9482 if test "$ac_cv_c_ipx_gnu" = "no"
9483 then
9484  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
9485 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
9486 if test "${ac_cv_c_ipx_linux+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   cat >conftest.$ac_ext <<_ACEOF
9490 #line $LINENO "configure"
9491 /* confdefs.h.  */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h.  */
9496 #include <sys/types.h>
9497      #ifdef HAVE_SYS_SOCKET_H
9498      # include <sys/socket.h>
9499      #endif
9500      #include <asm/types.h>
9501      #include <linux/ipx.h>
9502 int
9503 main ()
9504 {
9505 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
9506   ;
9507   return 0;
9508 }
9509 _ACEOF
9510 rm -f conftest.$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512   (eval $ac_compile) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); } &&
9516          { ac_try='test -s conftest.$ac_objext'
9517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518   (eval $ac_try) 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); }; }; then
9522   ac_cv_c_ipx_linux="yes"
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527 ac_cv_c_ipx_linux="no"
9528 fi
9529 rm -f conftest.$ac_objext conftest.$ac_ext
9530
9531 fi
9532 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
9533 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
9534   if test "$ac_cv_c_ipx_linux" = "yes"
9535   then
9536
9537 cat >>confdefs.h <<\_ACEOF
9538 #define HAVE_IPX_LINUX 1
9539 _ACEOF
9540
9541   fi
9542 fi
9543
9544
9545
9546
9547 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9548 do
9549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9551   echo "$as_me:$LINENO: checking for $ac_header" >&5
9552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 fi
9556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9558 else
9559   # Is the header compilable?
9560 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9562 cat >conftest.$ac_ext <<_ACEOF
9563 #line $LINENO "configure"
9564 /* confdefs.h.  */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h.  */
9569 $ac_includes_default
9570 #include <$ac_header>
9571 _ACEOF
9572 rm -f conftest.$ac_objext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574   (eval $ac_compile) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); } &&
9578          { ac_try='test -s conftest.$ac_objext'
9579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; }; then
9584   ac_header_compiler=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ac_header_compiler=no
9590 fi
9591 rm -f conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9593 echo "${ECHO_T}$ac_header_compiler" >&6
9594
9595 # Is the header present?
9596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605 #include <$ac_header>
9606 _ACEOF
9607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } >/dev/null; then
9615   if test -s conftest.err; then
9616     ac_cpp_err=$ac_c_preproc_warn_flag
9617   else
9618     ac_cpp_err=
9619   fi
9620 else
9621   ac_cpp_err=yes
9622 fi
9623 if test -z "$ac_cpp_err"; then
9624   ac_header_preproc=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629   ac_header_preproc=no
9630 fi
9631 rm -f conftest.err conftest.$ac_ext
9632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633 echo "${ECHO_T}$ac_header_preproc" >&6
9634
9635 # So?  What about this header?
9636 case $ac_header_compiler:$ac_header_preproc in
9637   yes:no )
9638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9642     (
9643       cat <<\_ASBOX
9644 ## ------------------------------------ ##
9645 ## Report this to bug-autoconf@gnu.org. ##
9646 ## ------------------------------------ ##
9647 _ASBOX
9648     ) |
9649       sed "s/^/$as_me: WARNING:     /" >&2
9650     ;;
9651   no:yes )
9652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9654     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9658     (
9659       cat <<\_ASBOX
9660 ## ------------------------------------ ##
9661 ## Report this to bug-autoconf@gnu.org. ##
9662 ## ------------------------------------ ##
9663 _ASBOX
9664     ) |
9665       sed "s/^/$as_me: WARNING:     /" >&2
9666     ;;
9667 esac
9668 echo "$as_me:$LINENO: checking for $ac_header" >&5
9669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9671   echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673   eval "$as_ac_Header=$ac_header_preproc"
9674 fi
9675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9677
9678 fi
9679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9680   cat >>confdefs.h <<_ACEOF
9681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9682 _ACEOF
9683  break
9684 fi
9685
9686 done
9687
9688
9689 echo "$as_me:$LINENO: checking for Open Sound System" >&5
9690 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9691 if test "${ac_cv_c_opensoundsystem+set}" = set; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694   cat >conftest.$ac_ext <<_ACEOF
9695 #line $LINENO "configure"
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701
9702         #if defined(HAVE_SYS_SOUNDCARD_H)
9703                 #include <sys/soundcard.h>
9704         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9705                 #include <machine/soundcard.h>
9706         #elif defined(HAVE_SOUNDCARD_H)
9707                 #include <soundcard.h>
9708         #endif
9709
9710 int
9711 main ()
9712 {
9713
9714
9715 /* check for one of the Open Sound System specific SNDCTL_ defines */
9716 #if !defined(SNDCTL_DSP_STEREO)
9717 #error No open sound system
9718 #endif
9719
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726   (eval $ac_compile) 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } &&
9730          { ac_try='test -s conftest.$ac_objext'
9731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732   (eval $ac_try) 2>&5
9733   ac_status=$?
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); }; }; then
9736   ac_cv_c_opensoundsystem="yes"
9737 else
9738   echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9740
9741 ac_cv_c_opensoundsystem="no"
9742 fi
9743 rm -f conftest.$ac_objext conftest.$ac_ext
9744 fi
9745 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
9746 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
9747
9748 if test "$ac_cv_c_opensoundsystem" = "yes"
9749 then
9750
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_OSS 1
9753 _ACEOF
9754
9755 fi
9756
9757 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
9758 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9759 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9760   echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762   cat >conftest.$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769
9770         #if defined(HAVE_SYS_SOUNDCARD_H)
9771                 #include <sys/soundcard.h>
9772         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9773                 #include <machine/soundcard.h>
9774         #elif defined(HAVE_SOUNDCARD_H)
9775                 #include <soundcard.h>
9776         #endif
9777
9778 int
9779 main ()
9780 {
9781
9782
9783 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9784 #if !defined(SNDCTL_SEQ_SYNC)
9785 #error No open sound system MIDI interface
9786 #endif
9787
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794   (eval $ac_compile) 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); } &&
9798          { ac_try='test -s conftest.$ac_objext'
9799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; }; then
9804   ac_cv_c_opensoundsystem_midi="yes"
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 ac_cv_c_opensoundsystem_midi="no"
9810 fi
9811 rm -f conftest.$ac_objext conftest.$ac_ext
9812 fi
9813 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9814 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9815
9816 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9817 then
9818
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_OSS_MIDI 1
9821 _ACEOF
9822
9823 fi
9824
9825 # Extract the first word of "artsc-config", so it can be a program name with args.
9826 set dummy artsc-config; ac_word=$2
9827 echo "$as_me:$LINENO: checking for $ac_word" >&5
9828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832   case $ARTSCCONFIG in
9833   [\\/]* | ?:[\\/]*)
9834   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9835   ;;
9836   *)
9837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9839 do
9840   IFS=$as_save_IFS
9841   test -z "$as_dir" && as_dir=.
9842   for ac_exec_ext in '' $ac_executable_extensions; do
9843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9846     break 2
9847   fi
9848 done
9849 done
9850
9851   ;;
9852 esac
9853 fi
9854 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9855
9856 if test -n "$ARTSCCONFIG"; then
9857   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9858 echo "${ECHO_T}$ARTSCCONFIG" >&6
9859 else
9860   echo "$as_me:$LINENO: result: no" >&5
9861 echo "${ECHO_T}no" >&6
9862 fi
9863
9864 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9865 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9866 if test "${ac_cv_c_artsserver+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9870         then
9871             ac_cv_c_artsserver=no
9872         else
9873             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9874             ARTSC_LIBS=`$ARTSCCONFIG --libs`
9875             ac_cv_c_artsserver=no
9876             save_CFLAGS="$CFLAGS"
9877             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9878             cat >conftest.$ac_ext <<_ACEOF
9879 #line $LINENO "configure"
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885
9886              #include <artsc.h>
9887
9888 int
9889 main ()
9890 {
9891
9892              arts_stream_t stream;
9893
9894   ;
9895   return 0;
9896 }
9897 _ACEOF
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900   (eval $ac_compile) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } &&
9904          { ac_try='test -s conftest.$ac_objext'
9905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906   (eval $ac_try) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; }; then
9910
9911             ac_cv_c_artsserver=yes
9912
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 fi
9918 rm -f conftest.$ac_objext conftest.$ac_ext
9919             CFLAGS="$save_CFLAGS"
9920         fi
9921 fi
9922 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9923 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9924
9925 if test "$ac_cv_c_artsserver" = "yes"
9926 then
9927     ARTSLIBS=$ARTSC_LIBS
9928
9929     ARTSINCL=$ARTSC_CFLAGS
9930
9931
9932
9933 cat >>confdefs.h <<\_ACEOF
9934 #define HAVE_ARTS 1
9935 _ACEOF
9936
9937 fi
9938
9939 ALSALIBS=""
9940
9941
9942
9943 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9944 do
9945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947   echo "$as_me:$LINENO: checking for $ac_header" >&5
9948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950   echo $ECHO_N "(cached) $ECHO_C" >&6
9951 fi
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9954 else
9955   # Is the header compilable?
9956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9958 cat >conftest.$ac_ext <<_ACEOF
9959 #line $LINENO "configure"
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965 $ac_includes_default
9966 #include <$ac_header>
9967 _ACEOF
9968 rm -f conftest.$ac_objext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9970   (eval $ac_compile) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } &&
9974          { ac_try='test -s conftest.$ac_objext'
9975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976   (eval $ac_try) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; }; then
9980   ac_header_compiler=yes
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_header_compiler=no
9986 fi
9987 rm -f conftest.$ac_objext conftest.$ac_ext
9988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989 echo "${ECHO_T}$ac_header_compiler" >&6
9990
9991 # Is the header present?
9992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9994 cat >conftest.$ac_ext <<_ACEOF
9995 #line $LINENO "configure"
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001 #include <$ac_header>
10002 _ACEOF
10003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10005   ac_status=$?
10006   grep -v '^ *+' conftest.er1 >conftest.err
10007   rm -f conftest.er1
10008   cat conftest.err >&5
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); } >/dev/null; then
10011   if test -s conftest.err; then
10012     ac_cpp_err=$ac_c_preproc_warn_flag
10013   else
10014     ac_cpp_err=
10015   fi
10016 else
10017   ac_cpp_err=yes
10018 fi
10019 if test -z "$ac_cpp_err"; then
10020   ac_header_preproc=yes
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025   ac_header_preproc=no
10026 fi
10027 rm -f conftest.err conftest.$ac_ext
10028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10029 echo "${ECHO_T}$ac_header_preproc" >&6
10030
10031 # So?  What about this header?
10032 case $ac_header_compiler:$ac_header_preproc in
10033   yes:no )
10034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10038     (
10039       cat <<\_ASBOX
10040 ## ------------------------------------ ##
10041 ## Report this to bug-autoconf@gnu.org. ##
10042 ## ------------------------------------ ##
10043 _ASBOX
10044     ) |
10045       sed "s/^/$as_me: WARNING:     /" >&2
10046     ;;
10047   no:yes )
10048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10050     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10054     (
10055       cat <<\_ASBOX
10056 ## ------------------------------------ ##
10057 ## Report this to bug-autoconf@gnu.org. ##
10058 ## ------------------------------------ ##
10059 _ASBOX
10060     ) |
10061       sed "s/^/$as_me: WARNING:     /" >&2
10062     ;;
10063 esac
10064 echo "$as_me:$LINENO: checking for $ac_header" >&5
10065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10067   echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069   eval "$as_ac_Header=$ac_header_preproc"
10070 fi
10071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10073
10074 fi
10075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10076   cat >>confdefs.h <<_ACEOF
10077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10078 _ACEOF
10079  break
10080 fi
10081
10082 done
10083
10084 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10085 then
10086     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10087 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10088 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10089   echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091   ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-lasound  $LIBS"
10093 cat >conftest.$ac_ext <<_ACEOF
10094 #line $LINENO "configure"
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100
10101 /* Override any gcc2 internal prototype to avoid an error.  */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 /* We use char because int might match the return type of a gcc2
10106    builtin and then its argument prototype would still apply.  */
10107 char snd_pcm_open ();
10108 int
10109 main ()
10110 {
10111 snd_pcm_open ();
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118   (eval $ac_link) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } &&
10122          { ac_try='test -s conftest$ac_exeext'
10123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124   (eval $ac_try) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128   ac_cv_lib_asound_snd_pcm_open=yes
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133 ac_cv_lib_asound_snd_pcm_open=no
10134 fi
10135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10137 fi
10138 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10139 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10140 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10141
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_ALSA 1
10144 _ACEOF
10145
10146         ALSALIBS="-lasound"
10147 fi
10148
10149 fi
10150
10151
10152 AUDIOIOLIBS=""
10153
10154
10155 for ac_header in libaudioio.h
10156 do
10157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10159   echo "$as_me:$LINENO: checking for $ac_header" >&5
10160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 fi
10164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10166 else
10167   # Is the header compilable?
10168 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10170 cat >conftest.$ac_ext <<_ACEOF
10171 #line $LINENO "configure"
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177 $ac_includes_default
10178 #include <$ac_header>
10179 _ACEOF
10180 rm -f conftest.$ac_objext
10181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182   (eval $ac_compile) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); } &&
10186          { ac_try='test -s conftest.$ac_objext'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }; then
10192   ac_header_compiler=yes
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 ac_header_compiler=no
10198 fi
10199 rm -f conftest.$ac_objext conftest.$ac_ext
10200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10201 echo "${ECHO_T}$ac_header_compiler" >&6
10202
10203 # Is the header present?
10204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10206 cat >conftest.$ac_ext <<_ACEOF
10207 #line $LINENO "configure"
10208 /* confdefs.h.  */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h.  */
10213 #include <$ac_header>
10214 _ACEOF
10215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10217   ac_status=$?
10218   grep -v '^ *+' conftest.er1 >conftest.err
10219   rm -f conftest.er1
10220   cat conftest.err >&5
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } >/dev/null; then
10223   if test -s conftest.err; then
10224     ac_cpp_err=$ac_c_preproc_warn_flag
10225   else
10226     ac_cpp_err=
10227   fi
10228 else
10229   ac_cpp_err=yes
10230 fi
10231 if test -z "$ac_cpp_err"; then
10232   ac_header_preproc=yes
10233 else
10234   echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237   ac_header_preproc=no
10238 fi
10239 rm -f conftest.err conftest.$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10241 echo "${ECHO_T}$ac_header_preproc" >&6
10242
10243 # So?  What about this header?
10244 case $ac_header_compiler:$ac_header_preproc in
10245   yes:no )
10246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10250     (
10251       cat <<\_ASBOX
10252 ## ------------------------------------ ##
10253 ## Report this to bug-autoconf@gnu.org. ##
10254 ## ------------------------------------ ##
10255 _ASBOX
10256     ) |
10257       sed "s/^/$as_me: WARNING:     /" >&2
10258     ;;
10259   no:yes )
10260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10262     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10266     (
10267       cat <<\_ASBOX
10268 ## ------------------------------------ ##
10269 ## Report this to bug-autoconf@gnu.org. ##
10270 ## ------------------------------------ ##
10271 _ASBOX
10272     ) |
10273       sed "s/^/$as_me: WARNING:     /" >&2
10274     ;;
10275 esac
10276 echo "$as_me:$LINENO: checking for $ac_header" >&5
10277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10279   echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281   eval "$as_ac_Header=$ac_header_preproc"
10282 fi
10283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10285
10286 fi
10287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10288   cat >>confdefs.h <<_ACEOF
10289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10290 _ACEOF
10291  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10292 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10293 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296   ac_check_lib_save_LIBS=$LIBS
10297 LIBS="-laudioio  $LIBS"
10298 cat >conftest.$ac_ext <<_ACEOF
10299 #line $LINENO "configure"
10300 /* confdefs.h.  */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h.  */
10305
10306 /* Override any gcc2 internal prototype to avoid an error.  */
10307 #ifdef __cplusplus
10308 extern "C"
10309 #endif
10310 /* We use char because int might match the return type of a gcc2
10311    builtin and then its argument prototype would still apply.  */
10312 char AudioIOGetVersion ();
10313 int
10314 main ()
10315 {
10316 AudioIOGetVersion ();
10317   ;
10318   return 0;
10319 }
10320 _ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323   (eval $ac_link) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } &&
10327          { ac_try='test -s conftest$ac_exeext'
10328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329   (eval $ac_try) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); }; }; then
10333   ac_cv_lib_audioio_AudioIOGetVersion=yes
10334 else
10335   echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 ac_cv_lib_audioio_AudioIOGetVersion=no
10339 fi
10340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10341 LIBS=$ac_check_lib_save_LIBS
10342 fi
10343 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10344 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10345 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10346   AUDIOIOLIBS="-laudioio"
10347
10348 cat >>confdefs.h <<\_ACEOF
10349 #define HAVE_LIBAUDIOIO 1
10350 _ACEOF
10351
10352 fi
10353
10354 fi
10355
10356 done
10357
10358
10359
10360 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10361 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10362 if test "${ac_cv_mmap64_works+set}" = set; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365   if test "$cross_compiling" = yes; then
10366   ac_cv_mmap64_works="no"
10367 else
10368   cat >conftest.$ac_ext <<_ACEOF
10369 #line $LINENO "configure"
10370 /* confdefs.h.  */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h.  */
10375
10376                 #define _FILE_OFFSET_BITS 64
10377                 #include <stdio.h>
10378                 #include <unistd.h>
10379                 #include <fcntl.h>
10380                 #include <sys/mman.h>
10381                 #include <errno.h>
10382
10383                 int main(int argc,char **argv) {
10384                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10385                         if (fd == -1) exit(1);
10386
10387                         unlink("conftest.map");
10388
10389                         write(fd,"test",4);
10390
10391                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10392                             (errno == EINVAL)
10393                         ) {
10394                                 exit(1);
10395                         }
10396                         close(fd);
10397                         fprintf(stderr,"success!\n");
10398                         exit(0);
10399                 }
10400
10401
10402 _ACEOF
10403 rm -f conftest$ac_exeext
10404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405   (eval $ac_link) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410   (eval $ac_try) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; }; then
10414   ac_cv_mmap64_works="yes"
10415 else
10416   echo "$as_me: program exited with status $ac_status" >&5
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 ( exit $ac_status )
10421 ac_cv_mmap64_works="no"
10422 fi
10423 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10424 fi
10425 fi
10426 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
10427 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
10428
10429 if test "$ac_cv_mmap64_works" = "yes"
10430 then
10431
10432 cat >>confdefs.h <<\_ACEOF
10433 #define _FILE_OFFSET_BITS 64
10434 _ACEOF
10435
10436 fi
10437
10438
10439 if test "x${GCC}" = "xyes"
10440 then
10441   CFLAGS="$CFLAGS -Wall"
10442   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10443 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10444 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10445   echo $ECHO_N "(cached) $ECHO_C" >&6
10446 else
10447   if test "$cross_compiling" = yes; then
10448   ac_cv_c_gcc_strength_bug="yes"
10449 else
10450   cat >conftest.$ac_ext <<_ACEOF
10451 #line $LINENO "configure"
10452 /* confdefs.h.  */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h.  */
10457
10458 int     L[4] = {0,1,2,3};
10459 int main(void) {
10460   static int Array[3];
10461   unsigned int B = 3;
10462   int i;
10463   for(i=0; i<B; i++) Array[i] = i - 3;
10464   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10465   L[i] = 4;
10466
10467   exit( Array[1] != -2 || L[2] != 3);
10468 }
10469 _ACEOF
10470 rm -f conftest$ac_exeext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472   (eval $ac_link) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477   (eval $ac_try) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; }; then
10481   ac_cv_c_gcc_strength_bug="no"
10482 else
10483   echo "$as_me: program exited with status $ac_status" >&5
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ( exit $ac_status )
10488 ac_cv_c_gcc_strength_bug="yes"
10489 fi
10490 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10491 fi
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10494 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10495   if test "$ac_cv_c_gcc_strength_bug" = "yes"
10496   then
10497     CFLAGS="$CFLAGS -fno-strength-reduce"
10498   fi
10499
10500     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
10501 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10502 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505   ac_wine_try_cflags_saved=$CFLAGS
10506 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10507 cat >conftest.$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514
10515 int
10516 main ()
10517 {
10518
10519   ;
10520   return 0;
10521 }
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525   (eval $ac_link) 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } &&
10529          { ac_try='test -s conftest$ac_exeext'
10530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531   (eval $ac_try) 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); }; }; then
10535   ac_cv_c_gcc_stack_boundary="yes"
10536 else
10537   echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 ac_cv_c_gcc_stack_boundary="no"
10541 fi
10542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10543 CFLAGS=$ac_wine_try_cflags_saved
10544 fi
10545 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
10546 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
10547   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10548   then
10549     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10550   fi
10551 fi
10552
10553
10554 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
10555 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
10556 if test "${ac_cv_asm_func_def+set}" = set; then
10557   echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559   cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10561 /* confdefs.h.  */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h.  */
10566 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"); }
10567
10568 int
10569 main ()
10570 {
10571
10572   ;
10573   return 0;
10574 }
10575 _ACEOF
10576 rm -f conftest.$ac_objext conftest$ac_exeext
10577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10578   (eval $ac_link) 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); } &&
10582          { ac_try='test -s conftest$ac_exeext'
10583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584   (eval $ac_try) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; }; then
10588   ac_cv_asm_func_def=".def"
10589 else
10590   echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 cat >conftest.$ac_ext <<_ACEOF
10594 #line $LINENO "configure"
10595 /* confdefs.h.  */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h.  */
10600 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
10601
10602 int
10603 main ()
10604 {
10605
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612   (eval $ac_link) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } &&
10616          { ac_try='test -s conftest$ac_exeext'
10617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618   (eval $ac_try) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }; }; then
10622   ac_cv_asm_func_def=".type @function"
10623 else
10624   echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627 cat >conftest.$ac_ext <<_ACEOF
10628 #line $LINENO "configure"
10629 /* confdefs.h.  */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h.  */
10634 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
10635
10636 int
10637 main ()
10638 {
10639
10640   ;
10641   return 0;
10642 }
10643 _ACEOF
10644 rm -f conftest.$ac_objext conftest$ac_exeext
10645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10646   (eval $ac_link) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); } &&
10650          { ac_try='test -s conftest$ac_exeext'
10651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652   (eval $ac_try) 2>&5
10653   ac_status=$?
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); }; }; then
10656   ac_cv_asm_func_def=".type 2"
10657 else
10658   echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ac_cv_asm_func_def="unknown"
10662 fi
10663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10664 fi
10665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10666 fi
10667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10668 fi
10669 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
10670 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
10671
10672
10673
10674 case "$ac_cv_asm_func_def" in
10675   ".def")
10676      cat >>confdefs.h <<\_ACEOF
10677 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
10678 _ACEOF
10679  ;;
10680   ".type @function")
10681      cat >>confdefs.h <<\_ACEOF
10682 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
10683 _ACEOF
10684  ;;
10685   ".type 2")
10686      cat >>confdefs.h <<\_ACEOF
10687 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
10688 _ACEOF
10689  ;;
10690   *)
10691      cat >>confdefs.h <<\_ACEOF
10692 #define __ASM_FUNC(name) ""
10693 _ACEOF
10694  ;;
10695 esac
10696
10697
10698 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
10699 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10700 if test "${ac_cv_c_extern_prefix+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   cat >conftest.$ac_ext <<_ACEOF
10704 #line $LINENO "configure"
10705 /* confdefs.h.  */
10706 _ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h.  */
10710 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
10711 extern int ac_test;
10712 int
10713 main ()
10714 {
10715 if (ac_test) return 1
10716   ;
10717   return 0;
10718 }
10719 _ACEOF
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722   (eval $ac_link) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -s conftest$ac_exeext'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; }; then
10732   ac_cv_c_extern_prefix="yes"
10733 else
10734   echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10736
10737 ac_cv_c_extern_prefix="no"
10738 fi
10739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10740 fi
10741 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
10742 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
10743
10744
10745
10746 if test "$ac_cv_c_extern_prefix" = "yes"
10747 then
10748   cat >>confdefs.h <<\_ACEOF
10749 #define __ASM_NAME(name) "_" name
10750 _ACEOF
10751
10752 else
10753   cat >>confdefs.h <<\_ACEOF
10754 #define __ASM_NAME(name) name
10755 _ACEOF
10756
10757 fi
10758
10759
10760 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
10761 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
10762 if test "${ac_cv_c_asm_string+set}" = set; then
10763   echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765   cat >conftest.$ac_ext <<_ACEOF
10766 #line $LINENO "configure"
10767 /* confdefs.h.  */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h.  */
10772 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
10773
10774 int
10775 main ()
10776 {
10777
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784   (eval $ac_link) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -s conftest$ac_exeext'
10789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790   (eval $ac_try) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }; }; then
10794   ac_cv_c_asm_string="yes"
10795 else
10796   echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799 ac_cv_c_asm_string="no"
10800 fi
10801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10802 fi
10803 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
10804 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
10805 if test "$ac_cv_c_asm_string" = "yes"
10806 then
10807
10808 cat >>confdefs.h <<\_ACEOF
10809 #define HAVE_ASM_STRING 1
10810 _ACEOF
10811
10812 fi
10813
10814
10815 DLLEXT=""
10816
10817 DLLFLAGS=""
10818
10819 DLLIBS=""
10820
10821 LDDLLFLAGS=""
10822
10823 LDSHARED=""
10824
10825 LIBEXT="so"
10826
10827 IMPLIBEXT="def"
10828
10829
10830 case $host_os in
10831   cygwin*|mingw32*)
10832     if test -n "$ac_tool_prefix"; then
10833   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10834 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10835 echo "$as_me:$LINENO: checking for $ac_word" >&5
10836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10837 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10838   echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840   if test -n "$DLLTOOL"; then
10841   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10842 else
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10845 do
10846   IFS=$as_save_IFS
10847   test -z "$as_dir" && as_dir=.
10848   for ac_exec_ext in '' $ac_executable_extensions; do
10849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10852     break 2
10853   fi
10854 done
10855 done
10856
10857 fi
10858 fi
10859 DLLTOOL=$ac_cv_prog_DLLTOOL
10860 if test -n "$DLLTOOL"; then
10861   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10862 echo "${ECHO_T}$DLLTOOL" >&6
10863 else
10864   echo "$as_me:$LINENO: result: no" >&5
10865 echo "${ECHO_T}no" >&6
10866 fi
10867
10868 fi
10869 if test -z "$ac_cv_prog_DLLTOOL"; then
10870   ac_ct_DLLTOOL=$DLLTOOL
10871   # Extract the first word of "dlltool", so it can be a program name with args.
10872 set dummy dlltool; ac_word=$2
10873 echo "$as_me:$LINENO: checking for $ac_word" >&5
10874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10875 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
10876   echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878   if test -n "$ac_ct_DLLTOOL"; then
10879   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10880 else
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10883 do
10884   IFS=$as_save_IFS
10885   test -z "$as_dir" && as_dir=.
10886   for ac_exec_ext in '' $ac_executable_extensions; do
10887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10888     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10890     break 2
10891   fi
10892 done
10893 done
10894
10895   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
10896 fi
10897 fi
10898 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10899 if test -n "$ac_ct_DLLTOOL"; then
10900   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
10901 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
10902 else
10903   echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6
10905 fi
10906
10907   DLLTOOL=$ac_ct_DLLTOOL
10908 else
10909   DLLTOOL="$ac_cv_prog_DLLTOOL"
10910 fi
10911
10912     if test -n "$ac_tool_prefix"; then
10913   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
10914 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
10915 echo "$as_me:$LINENO: checking for $ac_word" >&5
10916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10917 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
10918   echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920   if test -n "$DLLWRAP"; then
10921   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
10922 else
10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924 for as_dir in $PATH
10925 do
10926   IFS=$as_save_IFS
10927   test -z "$as_dir" && as_dir=.
10928   for ac_exec_ext in '' $ac_executable_extensions; do
10929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
10931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10932     break 2
10933   fi
10934 done
10935 done
10936
10937 fi
10938 fi
10939 DLLWRAP=$ac_cv_prog_DLLWRAP
10940 if test -n "$DLLWRAP"; then
10941   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10942 echo "${ECHO_T}$DLLWRAP" >&6
10943 else
10944   echo "$as_me:$LINENO: result: no" >&5
10945 echo "${ECHO_T}no" >&6
10946 fi
10947
10948 fi
10949 if test -z "$ac_cv_prog_DLLWRAP"; then
10950   ac_ct_DLLWRAP=$DLLWRAP
10951   # Extract the first word of "dllwrap", so it can be a program name with args.
10952 set dummy dllwrap; ac_word=$2
10953 echo "$as_me:$LINENO: checking for $ac_word" >&5
10954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10955 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
10956   echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958   if test -n "$ac_ct_DLLWRAP"; then
10959   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
10960 else
10961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH
10963 do
10964   IFS=$as_save_IFS
10965   test -z "$as_dir" && as_dir=.
10966   for ac_exec_ext in '' $ac_executable_extensions; do
10967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10968     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
10969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10970     break 2
10971   fi
10972 done
10973 done
10974
10975   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10976 fi
10977 fi
10978 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10979 if test -n "$ac_ct_DLLWRAP"; then
10980   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10981 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10982 else
10983   echo "$as_me:$LINENO: result: no" >&5
10984 echo "${ECHO_T}no" >&6
10985 fi
10986
10987   DLLWRAP=$ac_ct_DLLWRAP
10988 else
10989   DLLWRAP="$ac_cv_prog_DLLWRAP"
10990 fi
10991
10992     if test "$DLLWRAP" = "false"; then
10993       LIBEXT="a"
10994     else
10995             LIBEXT="dll"
10996     fi
10997     IMPLIBEXT="a"
10998     ;;
10999   *)
11000
11001 for ac_header in dlfcn.h
11002 do
11003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11005   echo "$as_me:$LINENO: checking for $ac_header" >&5
11006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11008   echo $ECHO_N "(cached) $ECHO_C" >&6
11009 fi
11010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11012 else
11013   # Is the header compilable?
11014 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11016 cat >conftest.$ac_ext <<_ACEOF
11017 #line $LINENO "configure"
11018 /* confdefs.h.  */
11019 _ACEOF
11020 cat confdefs.h >>conftest.$ac_ext
11021 cat >>conftest.$ac_ext <<_ACEOF
11022 /* end confdefs.h.  */
11023 $ac_includes_default
11024 #include <$ac_header>
11025 _ACEOF
11026 rm -f conftest.$ac_objext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028   (eval $ac_compile) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); } &&
11032          { ac_try='test -s conftest.$ac_objext'
11033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034   (eval $ac_try) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; }; then
11038   ac_header_compiler=yes
11039 else
11040   echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 ac_header_compiler=no
11044 fi
11045 rm -f conftest.$ac_objext conftest.$ac_ext
11046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11047 echo "${ECHO_T}$ac_header_compiler" >&6
11048
11049 # Is the header present?
11050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11052 cat >conftest.$ac_ext <<_ACEOF
11053 #line $LINENO "configure"
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059 #include <$ac_header>
11060 _ACEOF
11061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } >/dev/null; then
11069   if test -s conftest.err; then
11070     ac_cpp_err=$ac_c_preproc_warn_flag
11071   else
11072     ac_cpp_err=
11073   fi
11074 else
11075   ac_cpp_err=yes
11076 fi
11077 if test -z "$ac_cpp_err"; then
11078   ac_header_preproc=yes
11079 else
11080   echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083   ac_header_preproc=no
11084 fi
11085 rm -f conftest.err conftest.$ac_ext
11086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11087 echo "${ECHO_T}$ac_header_preproc" >&6
11088
11089 # So?  What about this header?
11090 case $ac_header_compiler:$ac_header_preproc in
11091   yes:no )
11092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096     (
11097       cat <<\_ASBOX
11098 ## ------------------------------------ ##
11099 ## Report this to bug-autoconf@gnu.org. ##
11100 ## ------------------------------------ ##
11101 _ASBOX
11102     ) |
11103       sed "s/^/$as_me: WARNING:     /" >&2
11104     ;;
11105   no:yes )
11106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11108     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11112     (
11113       cat <<\_ASBOX
11114 ## ------------------------------------ ##
11115 ## Report this to bug-autoconf@gnu.org. ##
11116 ## ------------------------------------ ##
11117 _ASBOX
11118     ) |
11119       sed "s/^/$as_me: WARNING:     /" >&2
11120     ;;
11121 esac
11122 echo "$as_me:$LINENO: checking for $ac_header" >&5
11123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   eval "$as_ac_Header=$ac_header_preproc"
11128 fi
11129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11131
11132 fi
11133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11134   cat >>confdefs.h <<_ACEOF
11135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11136 _ACEOF
11137
11138 for ac_func in dlopen
11139 do
11140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11141 echo "$as_me:$LINENO: checking for $ac_func" >&5
11142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11143 if eval "test \"\${$as_ac_var+set}\" = set"; then
11144   echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146   cat >conftest.$ac_ext <<_ACEOF
11147 #line $LINENO "configure"
11148 /* confdefs.h.  */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h.  */
11153 /* System header to define __stub macros and hopefully few prototypes,
11154     which can conflict with char $ac_func (); below.
11155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156     <limits.h> exists even on freestanding compilers.  */
11157 #ifdef __STDC__
11158 # include <limits.h>
11159 #else
11160 # include <assert.h>
11161 #endif
11162 /* Override any gcc2 internal prototype to avoid an error.  */
11163 #ifdef __cplusplus
11164 extern "C"
11165 {
11166 #endif
11167 /* We use char because int might match the return type of a gcc2
11168    builtin and then its argument prototype would still apply.  */
11169 char $ac_func ();
11170 /* The GNU C library defines this for functions which it implements
11171     to always fail with ENOSYS.  Some functions are actually named
11172     something starting with __ and the normal name is an alias.  */
11173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11174 choke me
11175 #else
11176 char (*f) () = $ac_func;
11177 #endif
11178 #ifdef __cplusplus
11179 }
11180 #endif
11181
11182 int
11183 main ()
11184 {
11185 return f != $ac_func;
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext conftest$ac_exeext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192   (eval $ac_link) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } &&
11196          { ac_try='test -s conftest$ac_exeext'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; }; then
11202   eval "$as_ac_var=yes"
11203 else
11204   echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11206
11207 eval "$as_ac_var=no"
11208 fi
11209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11210 fi
11211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11213 if test `eval echo '${'$as_ac_var'}'` = yes; then
11214   cat >>confdefs.h <<_ACEOF
11215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11216 _ACEOF
11217
11218 else
11219   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11220 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11221 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11222   echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224   ac_check_lib_save_LIBS=$LIBS
11225 LIBS="-ldl  $LIBS"
11226 cat >conftest.$ac_ext <<_ACEOF
11227 #line $LINENO "configure"
11228 /* confdefs.h.  */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h.  */
11233
11234 /* Override any gcc2 internal prototype to avoid an error.  */
11235 #ifdef __cplusplus
11236 extern "C"
11237 #endif
11238 /* We use char because int might match the return type of a gcc2
11239    builtin and then its argument prototype would still apply.  */
11240 char dlopen ();
11241 int
11242 main ()
11243 {
11244 dlopen ();
11245   ;
11246   return 0;
11247 }
11248 _ACEOF
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251   (eval $ac_link) 2>&5
11252   ac_status=$?
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } &&
11255          { ac_try='test -s conftest$ac_exeext'
11256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257   (eval $ac_try) 2>&5
11258   ac_status=$?
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); }; }; then
11261   ac_cv_lib_dl_dlopen=yes
11262 else
11263   echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266 ac_cv_lib_dl_dlopen=no
11267 fi
11268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_lib_save_LIBS
11270 fi
11271 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11272 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11273 if test $ac_cv_lib_dl_dlopen = yes; then
11274
11275 cat >>confdefs.h <<\_ACEOF
11276 #define HAVE_DLOPEN 1
11277 _ACEOF
11278
11279                           DLLIBS="-ldl"
11280 else
11281   LIBEXT="a"
11282 fi
11283
11284 fi
11285 done
11286
11287 else
11288   LIBEXT="a"
11289 fi
11290
11291 done
11292
11293
11294     if test "$LIBEXT" = "so"
11295     then
11296       DLLFLAGS="-fPIC"
11297       DLLEXT=".so"
11298       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
11299 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11300 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303   ac_wine_try_cflags_saved=$CFLAGS
11304 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11305 cat >conftest.$ac_ext <<_ACEOF
11306 #line $LINENO "configure"
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312
11313 int
11314 main ()
11315 {
11316
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323   (eval $ac_link) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); } &&
11327          { ac_try='test -s conftest$ac_exeext'
11328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329   (eval $ac_try) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; }; then
11333   ac_cv_c_dll_gnuelf="yes"
11334 else
11335   echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11337
11338 ac_cv_c_dll_gnuelf="no"
11339 fi
11340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11341 CFLAGS=$ac_wine_try_cflags_saved
11342 fi
11343 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
11344 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
11345       if test "$ac_cv_c_dll_gnuelf" = "yes"
11346       then
11347         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11348         LDDLLFLAGS="-Wl,-Bsymbolic"
11349         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11350 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11351 if test "${ac_cv_c_dll_zdefs+set}" = set; then
11352   echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354   ac_wine_try_cflags_saved=$CFLAGS
11355 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11356 cat >conftest.$ac_ext <<_ACEOF
11357 #line $LINENO "configure"
11358 /* confdefs.h.  */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h.  */
11363
11364 int
11365 main ()
11366 {
11367
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374   (eval $ac_link) 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); } &&
11378          { ac_try='test -s conftest$ac_exeext'
11379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380   (eval $ac_try) 2>&5
11381   ac_status=$?
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); }; }; then
11384   ac_cv_c_dll_zdefs="yes"
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389 ac_cv_c_dll_zdefs="no"
11390 fi
11391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11392 CFLAGS=$ac_wine_try_cflags_saved
11393 fi
11394 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11395 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11396         if test "$ac_cv_c_dll_zdefs" = "yes"
11397         then
11398           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
11399         fi
11400       else
11401         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
11402 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
11403 if test "${ac_cv_c_dll_unixware+set}" = set; then
11404   echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406   ac_wine_try_cflags_saved=$CFLAGS
11407 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
11408 cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 /* confdefs.h.  */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h.  */
11415
11416 int
11417 main ()
11418 {
11419
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426   (eval $ac_link) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); } &&
11430          { ac_try='test -s conftest$ac_exeext'
11431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432   (eval $ac_try) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; }; then
11436   ac_cv_c_dll_unixware="yes"
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 ac_cv_c_dll_unixware="no"
11442 fi
11443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11444 CFLAGS=$ac_wine_try_cflags_saved
11445 fi
11446 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
11447 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
11448         if test "$ac_cv_c_dll_unixware" = "yes"
11449         then
11450           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
11451           LDDLLFLAGS="-Wl,-B,symbolic"
11452         fi
11453       fi
11454     fi
11455
11456         CROSSTEST=""
11457
11458     if test "$cross_compiling" = "no"
11459     then
11460       for ac_prog in i586-mingw32msvc-gcc
11461 do
11462   # Extract the first word of "$ac_prog", so it can be a program name with args.
11463 set dummy $ac_prog; ac_word=$2
11464 echo "$as_me:$LINENO: checking for $ac_word" >&5
11465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11466 if test "${ac_cv_prog_CROSSCC+set}" = set; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   if test -n "$CROSSCC"; then
11470   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
11471 else
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11474 do
11475   IFS=$as_save_IFS
11476   test -z "$as_dir" && as_dir=.
11477   for ac_exec_ext in '' $ac_executable_extensions; do
11478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479     ac_cv_prog_CROSSCC="$ac_prog"
11480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11481     break 2
11482   fi
11483 done
11484 done
11485
11486 fi
11487 fi
11488 CROSSCC=$ac_cv_prog_CROSSCC
11489 if test -n "$CROSSCC"; then
11490   echo "$as_me:$LINENO: result: $CROSSCC" >&5
11491 echo "${ECHO_T}$CROSSCC" >&6
11492 else
11493   echo "$as_me:$LINENO: result: no" >&5
11494 echo "${ECHO_T}no" >&6
11495 fi
11496
11497   test -n "$CROSSCC" && break
11498 done
11499 test -n "$CROSSCC" || CROSSCC="false"
11500
11501       for ac_prog in i586-mingw32msvc-dlltool
11502 do
11503   # Extract the first word of "$ac_prog", so it can be a program name with args.
11504 set dummy $ac_prog; ac_word=$2
11505 echo "$as_me:$LINENO: checking for $ac_word" >&5
11506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11507 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11508   echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510   if test -n "$DLLTOOL"; then
11511   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11512 else
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11515 do
11516   IFS=$as_save_IFS
11517   test -z "$as_dir" && as_dir=.
11518   for ac_exec_ext in '' $ac_executable_extensions; do
11519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11520     ac_cv_prog_DLLTOOL="$ac_prog"
11521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11522     break 2
11523   fi
11524 done
11525 done
11526
11527 fi
11528 fi
11529 DLLTOOL=$ac_cv_prog_DLLTOOL
11530 if test -n "$DLLTOOL"; then
11531   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11532 echo "${ECHO_T}$DLLTOOL" >&6
11533 else
11534   echo "$as_me:$LINENO: result: no" >&5
11535 echo "${ECHO_T}no" >&6
11536 fi
11537
11538   test -n "$DLLTOOL" && break
11539 done
11540 test -n "$DLLTOOL" || DLLTOOL="false"
11541
11542       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
11543     fi
11544     ;;
11545 esac
11546
11547 if test "$LIBEXT" = "a"; then
11548   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
11549 It is currently not possible to build Wine without shared library
11550 (.so) support to allow transparent switch between .so and .dll files.
11551 If you are using Linux, you will need a newer binutils.
11552 " >&5
11553 echo "$as_me: error: could not find a way to build shared libraries.
11554 It is currently not possible to build Wine without shared library
11555 (.so) support to allow transparent switch between .so and .dll files.
11556 If you are using Linux, you will need a newer binutils.
11557 " >&2;}
11558    { (exit 1); exit 1; }; }
11559 fi
11560
11561 case $build_os in
11562   cygwin*|mingw32*)
11563     LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
11564  ;;
11565   *)
11566     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
11567  ;;
11568 esac
11569
11570 CRTLIBS=""
11571
11572 case $host_os in
11573   mingw32*)
11574     CRTLIBS="-lmsvcrt" ;;
11575 esac
11576
11577
11578 if test "$LIBEXT" = "so"
11579 then
11580   # Extract the first word of "ldd", so it can be a program name with args.
11581 set dummy ldd; ac_word=$2
11582 echo "$as_me:$LINENO: checking for $ac_word" >&5
11583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11584 if test "${ac_cv_path_LDD+set}" = set; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587   case $LDD in
11588   [\\/]* | ?:[\\/]*)
11589   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
11590   ;;
11591   *)
11592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 as_dummy="/sbin:/usr/sbin:$PATH"
11594 for as_dir in $as_dummy
11595 do
11596   IFS=$as_save_IFS
11597   test -z "$as_dir" && as_dir=.
11598   for ac_exec_ext in '' $ac_executable_extensions; do
11599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11600     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
11601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11602     break 2
11603   fi
11604 done
11605 done
11606
11607   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
11608   ;;
11609 esac
11610 fi
11611 LDD=$ac_cv_path_LDD
11612
11613 if test -n "$LDD"; then
11614   echo "$as_me:$LINENO: result: $LDD" >&5
11615 echo "${ECHO_T}$LDD" >&6
11616 else
11617   echo "$as_me:$LINENO: result: no" >&5
11618 echo "${ECHO_T}no" >&6
11619 fi
11620
11621
11622 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
11623 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
11624 if test "${ac_cv_lib_soname_X11+set}" = set; then
11625   echo $ECHO_N "(cached) $ECHO_C" >&6
11626 else
11627   ac_get_soname_save_LIBS=$LIBS
11628 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
11629   cat >conftest.$ac_ext <<_ACEOF
11630 #line $LINENO "configure"
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636
11637 /* Override any gcc2 internal prototype to avoid an error.  */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 /* We use char because int might match the return type of a gcc2
11642    builtin and then its argument prototype would still apply.  */
11643 char XCreateWindow ();
11644 int
11645 main ()
11646 {
11647 XCreateWindow ();
11648   ;
11649   return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654   (eval $ac_link) 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); } &&
11658          { ac_try='test -s conftest$ac_exeext'
11659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660   (eval $ac_try) 2>&5
11661   ac_status=$?
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); }; }; then
11664   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11665   if test "x$ac_cv_lib_soname_X11" = "x"
11666   then
11667      ac_cv_lib_soname_X11="libX11.so"
11668   fi
11669 else
11670   echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 ac_cv_lib_soname_X11="libX11.so"
11674 fi
11675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11676   LIBS=$ac_get_soname_save_LIBS
11677 fi
11678 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
11679 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
11680 if test "x$ac_cv_lib_soname_X11" != xNONE
11681 then
11682 cat >>confdefs.h <<_ACEOF
11683 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
11684 _ACEOF
11685 fi
11686
11687 echo "$as_me:$LINENO: checking for -lXext soname" >&5
11688 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
11689 if test "${ac_cv_lib_soname_Xext+set}" = set; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692   ac_get_soname_save_LIBS=$LIBS
11693 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
11694   cat >conftest.$ac_ext <<_ACEOF
11695 #line $LINENO "configure"
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701
11702 /* Override any gcc2 internal prototype to avoid an error.  */
11703 #ifdef __cplusplus
11704 extern "C"
11705 #endif
11706 /* We use char because int might match the return type of a gcc2
11707    builtin and then its argument prototype would still apply.  */
11708 char XextCreateExtension ();
11709 int
11710 main ()
11711 {
11712 XextCreateExtension ();
11713   ;
11714   return 0;
11715 }
11716 _ACEOF
11717 rm -f conftest.$ac_objext conftest$ac_exeext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719   (eval $ac_link) 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } &&
11723          { ac_try='test -s conftest$ac_exeext'
11724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725   (eval $ac_try) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; }; then
11729   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11730   if test "x$ac_cv_lib_soname_Xext" = "x"
11731   then
11732      ac_cv_lib_soname_Xext="libXext.so"
11733   fi
11734 else
11735   echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11737
11738 ac_cv_lib_soname_Xext="libXext.so"
11739 fi
11740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11741   LIBS=$ac_get_soname_save_LIBS
11742 fi
11743 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
11744 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
11745 if test "x$ac_cv_lib_soname_Xext" != xNONE
11746 then
11747 cat >>confdefs.h <<_ACEOF
11748 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
11749 _ACEOF
11750 fi
11751
11752 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
11753 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
11754 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
11755   echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757   ac_get_soname_save_LIBS=$LIBS
11758 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
11759   cat >conftest.$ac_ext <<_ACEOF
11760 #line $LINENO "configure"
11761 /* confdefs.h.  */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h.  */
11766
11767 /* Override any gcc2 internal prototype to avoid an error.  */
11768 #ifdef __cplusplus
11769 extern "C"
11770 #endif
11771 /* We use char because int might match the return type of a gcc2
11772    builtin and then its argument prototype would still apply.  */
11773 char XRenderQueryExtension ();
11774 int
11775 main ()
11776 {
11777 XRenderQueryExtension ();
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11784   (eval $ac_link) 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); } &&
11788          { ac_try='test -s conftest$ac_exeext'
11789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790   (eval $ac_try) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; }; then
11794   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11795   if test "x$ac_cv_lib_soname_Xrender" = "x"
11796   then
11797      ac_cv_lib_soname_Xrender="libXrender.so"
11798   fi
11799 else
11800   echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11802
11803 ac_cv_lib_soname_Xrender="libXrender.so"
11804 fi
11805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11806   LIBS=$ac_get_soname_save_LIBS
11807 fi
11808 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
11809 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
11810 if test "x$ac_cv_lib_soname_Xrender" != xNONE
11811 then
11812 cat >>confdefs.h <<_ACEOF
11813 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
11814 _ACEOF
11815 fi
11816
11817 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
11818 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
11819 if test "${ac_cv_lib_soname_freetype+set}" = set; then
11820   echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822   ac_get_soname_save_LIBS=$LIBS
11823 LIBS="-lfreetype $X_LIBS $LIBS"
11824   cat >conftest.$ac_ext <<_ACEOF
11825 #line $LINENO "configure"
11826 /* confdefs.h.  */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h.  */
11831
11832 /* Override any gcc2 internal prototype to avoid an error.  */
11833 #ifdef __cplusplus
11834 extern "C"
11835 #endif
11836 /* We use char because int might match the return type of a gcc2
11837    builtin and then its argument prototype would still apply.  */
11838 char FT_Init_FreeType ();
11839 int
11840 main ()
11841 {
11842 FT_Init_FreeType ();
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11849   (eval $ac_link) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); } &&
11853          { ac_try='test -s conftest$ac_exeext'
11854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855   (eval $ac_try) 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; }; then
11859   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11860   if test "x$ac_cv_lib_soname_freetype" = "x"
11861   then
11862      ac_cv_lib_soname_freetype="libfreetype.so"
11863   fi
11864 else
11865   echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11867
11868 ac_cv_lib_soname_freetype="libfreetype.so"
11869 fi
11870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11871   LIBS=$ac_get_soname_save_LIBS
11872 fi
11873 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
11874 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
11875 if test "x$ac_cv_lib_soname_freetype" != xNONE
11876 then
11877 cat >>confdefs.h <<_ACEOF
11878 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11879 _ACEOF
11880 fi
11881
11882 echo "$as_me:$LINENO: checking for -lGL soname" >&5
11883 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
11884 if test "${ac_cv_lib_soname_GL+set}" = set; then
11885   echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887   ac_get_soname_save_LIBS=$LIBS
11888 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
11889   cat >conftest.$ac_ext <<_ACEOF
11890 #line $LINENO "configure"
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896
11897 /* Override any gcc2 internal prototype to avoid an error.  */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 /* We use char because int might match the return type of a gcc2
11902    builtin and then its argument prototype would still apply.  */
11903 char glXQueryExtension ();
11904 int
11905 main ()
11906 {
11907 glXQueryExtension ();
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914   (eval $ac_link) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -s conftest$ac_exeext'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; }; then
11924   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[         ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11925   if test "x$ac_cv_lib_soname_GL" = "x"
11926   then
11927      ac_cv_lib_soname_GL="libGL.so"
11928   fi
11929 else
11930   echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 ac_cv_lib_soname_GL="libGL.so"
11934 fi
11935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11936   LIBS=$ac_get_soname_save_LIBS
11937 fi
11938 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
11939 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
11940 if test "x$ac_cv_lib_soname_GL" != xNONE
11941 then
11942 cat >>confdefs.h <<_ACEOF
11943 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
11944 _ACEOF
11945 fi
11946
11947 echo "$as_me:$LINENO: checking for -lcups soname" >&5
11948 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
11949 if test "${ac_cv_lib_soname_cups+set}" = set; then
11950   echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952   ac_get_soname_save_LIBS=$LIBS
11953 LIBS="-lcups  $LIBS"
11954   cat >conftest.$ac_ext <<_ACEOF
11955 #line $LINENO "configure"
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961
11962 /* Override any gcc2 internal prototype to avoid an error.  */
11963 #ifdef __cplusplus
11964 extern "C"
11965 #endif
11966 /* We use char because int might match the return type of a gcc2
11967    builtin and then its argument prototype would still apply.  */
11968 char cupsGetDefault ();
11969 int
11970 main ()
11971 {
11972 cupsGetDefault ();
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979   (eval $ac_link) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); } &&
11983          { ac_try='test -s conftest$ac_exeext'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11990   if test "x$ac_cv_lib_soname_cups" = "x"
11991   then
11992      ac_cv_lib_soname_cups="libcups.so"
11993   fi
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 ac_cv_lib_soname_cups="libcups.so"
11999 fi
12000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12001   LIBS=$ac_get_soname_save_LIBS
12002 fi
12003 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12004 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12005 if test "x$ac_cv_lib_soname_cups" != xNONE
12006 then
12007 cat >>confdefs.h <<_ACEOF
12008 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12009 _ACEOF
12010 fi
12011
12012 echo "$as_me:$LINENO: checking for -ljack soname" >&5
12013 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12014 if test "${ac_cv_lib_soname_jack+set}" = set; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017   ac_get_soname_save_LIBS=$LIBS
12018 LIBS="-ljack  $LIBS"
12019   cat >conftest.$ac_ext <<_ACEOF
12020 #line $LINENO "configure"
12021 /* confdefs.h.  */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h.  */
12026
12027 /* Override any gcc2 internal prototype to avoid an error.  */
12028 #ifdef __cplusplus
12029 extern "C"
12030 #endif
12031 /* We use char because int might match the return type of a gcc2
12032    builtin and then its argument prototype would still apply.  */
12033 char jack_client_new ();
12034 int
12035 main ()
12036 {
12037 jack_client_new ();
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044   (eval $ac_link) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); } &&
12048          { ac_try='test -s conftest$ac_exeext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12055   if test "x$ac_cv_lib_soname_jack" = "x"
12056   then
12057      ac_cv_lib_soname_jack="libjack.so"
12058   fi
12059 else
12060   echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12062
12063 ac_cv_lib_soname_jack="libjack.so"
12064 fi
12065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12066   LIBS=$ac_get_soname_save_LIBS
12067 fi
12068 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12069 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12070 if test "x$ac_cv_lib_soname_jack" != xNONE
12071 then
12072 cat >>confdefs.h <<_ACEOF
12073 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12074 _ACEOF
12075 fi
12076 fi
12077
12078
12079
12080 wine_cv_libc_reentrant=no
12081 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
12082 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
12083 if test "${wine_cv_libc_r___errno_location+set}" = set; then
12084   echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086   if test "$cross_compiling" = yes; then
12087   wine_cv_libc_r___errno_location=yes
12088 else
12089   cat >conftest.$ac_ext <<_ACEOF
12090 #line $LINENO "configure"
12091 /* confdefs.h.  */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h.  */
12096 int myerrno = 0;
12097 int *__errno_location(){return &myerrno;}
12098 main(){close(333); close(333); exit(!myerrno);}
12099 _ACEOF
12100 rm -f conftest$ac_exeext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102   (eval $ac_link) 2>&5
12103   ac_status=$?
12104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   wine_cv_libc_r___errno_location=yes
12112 else
12113   echo "$as_me: program exited with status $ac_status" >&5
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12116
12117 ( exit $ac_status )
12118 wine_cv_libc_r___errno_location=no
12119 fi
12120 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12121 fi
12122 fi
12123 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
12124 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
12125 if test "$wine_cv_libc_r___errno_location" = "yes"; then
12126   wine_cv_libc_reentrant=__errno_location
12127 else
12128     echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
12129 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
12130 if test "${wine_cv_libc_r___error+set}" = set; then
12131   echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133   if test "$cross_compiling" = yes; then
12134   wine_cv_libc_r___error=yes
12135 else
12136   cat >conftest.$ac_ext <<_ACEOF
12137 #line $LINENO "configure"
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 int myerrno = 0;
12144 int *__error(){return &myerrno;}
12145 main(){close(333); close(333); exit(!myerrno);}
12146 _ACEOF
12147 rm -f conftest$ac_exeext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12149   (eval $ac_link) 2>&5
12150   ac_status=$?
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154   (eval $ac_try) 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); }; }; then
12158   wine_cv_libc_r___error=yes
12159 else
12160   echo "$as_me: program exited with status $ac_status" >&5
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164 ( exit $ac_status )
12165 wine_cv_libc_r___error=no
12166 fi
12167 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12168 fi
12169 fi
12170 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
12171 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
12172 if test "$wine_cv_libc_r___error" = "yes"; then
12173   wine_cv_libc_reentrant=__error
12174 else
12175       echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
12176 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
12177 if test "${wine_cv_libc_r____errno+set}" = set; then
12178   echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180   if test "$cross_compiling" = yes; then
12181   wine_cv_libc_r____errno=yes
12182 else
12183   cat >conftest.$ac_ext <<_ACEOF
12184 #line $LINENO "configure"
12185 /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190 int myerrno = 0;
12191 int *___errno(){return &myerrno;}
12192 main(){close(333); close(333); exit(!myerrno);}
12193 _ACEOF
12194 rm -f conftest$ac_exeext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196   (eval $ac_link) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; }; then
12205   wine_cv_libc_r____errno=yes
12206 else
12207   echo "$as_me: program exited with status $ac_status" >&5
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 ( exit $ac_status )
12212 wine_cv_libc_r____errno=no
12213 fi
12214 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12215 fi
12216 fi
12217 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
12218 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
12219 if test "$wine_cv_libc_r____errno" = "yes"; then
12220   wine_cv_libc_reentrant=___errno
12221 else
12222         echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
12223 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
12224 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   if test "$cross_compiling" = yes; then
12228   wine_cv_libc_r___thr_errno=yes
12229 else
12230   cat >conftest.$ac_ext <<_ACEOF
12231 #line $LINENO "configure"
12232 /* confdefs.h.  */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h.  */
12237 int myerrno = 0;
12238 int *__thr_errno(){return &myerrno;}
12239 main(){close(333); close(333); exit(!myerrno);}
12240 _ACEOF
12241 rm -f conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243   (eval $ac_link) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248   (eval $ac_try) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); }; }; then
12252   wine_cv_libc_r___thr_errno=yes
12253 else
12254   echo "$as_me: program exited with status $ac_status" >&5
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258 ( exit $ac_status )
12259 wine_cv_libc_r___thr_errno=no
12260 fi
12261 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12262 fi
12263 fi
12264 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
12265 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
12266 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
12267   wine_cv_libc_reentrant=__thr_errno
12268 else
12269           echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
12270 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
12271 if test "${wine_cv_libc_r___errno+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274   if test "$cross_compiling" = yes; then
12275   wine_cv_libc_r___errno=yes
12276 else
12277   cat >conftest.$ac_ext <<_ACEOF
12278 #line $LINENO "configure"
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12284 int myerrno = 0;
12285 int *__errno(){return &myerrno;}
12286 main(){close(333); close(333); exit(!myerrno);}
12287 _ACEOF
12288 rm -f conftest$ac_exeext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290   (eval $ac_link) 2>&5
12291   ac_status=$?
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; }; then
12299   wine_cv_libc_r___errno=yes
12300 else
12301   echo "$as_me: program exited with status $ac_status" >&5
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 ( exit $ac_status )
12306 wine_cv_libc_r___errno=no
12307 fi
12308 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12309 fi
12310 fi
12311 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
12312 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
12313 if test "$wine_cv_libc_r___errno" = "yes"; then
12314   wine_cv_libc_reentrant=__errno
12315 fi
12316
12317
12318 fi
12319
12320 fi
12321
12322 fi
12323
12324 fi
12325
12326
12327 if test "$wine_cv_libc_reentrant" != "no"
12328 then
12329
12330 cat >>confdefs.h <<_ACEOF
12331 #define ERRNO_LOCATION $wine_cv_libc_reentrant
12332 _ACEOF
12333
12334 fi
12335
12336
12337 if test "$have_x" = "yes"
12338 then
12339 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
12340 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
12341 if test "${wine_cv_x_reentrant+set}" = set; then
12342   echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344   libX11_check=none
12345     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
12346         if test -r $dir/libX11.so; then
12347             libX11_check="-D $dir/libX11.so"
12348             break
12349         fi
12350         if test -r $dir/libX11.a; then
12351             libX11_check="$dir/libX11.a"
12352             break
12353         fi
12354     done
12355     if test "$libX11_check" != "none"; then
12356         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
12357         then
12358             wine_cv_x_reentrant=yes
12359         else
12360             wine_cv_x_reentrant=no
12361         fi
12362     else
12363         wine_cv_x_reentrant=unknown
12364     fi
12365 fi
12366 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
12367 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
12368 fi
12369
12370
12371 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12372 # for constant arguments.  Useless!
12373 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12374 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12375 if test "${ac_cv_working_alloca_h+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   cat >conftest.$ac_ext <<_ACEOF
12379 #line $LINENO "configure"
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385 #include <alloca.h>
12386 int
12387 main ()
12388 {
12389 char *p = (char *) alloca (2 * sizeof (int));
12390   ;
12391   return 0;
12392 }
12393 _ACEOF
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396   (eval $ac_link) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); } &&
12400          { ac_try='test -s conftest$ac_exeext'
12401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402   (eval $ac_try) 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; }; then
12406   ac_cv_working_alloca_h=yes
12407 else
12408   echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12410
12411 ac_cv_working_alloca_h=no
12412 fi
12413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12414 fi
12415 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12416 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12417 if test $ac_cv_working_alloca_h = yes; then
12418
12419 cat >>confdefs.h <<\_ACEOF
12420 #define HAVE_ALLOCA_H 1
12421 _ACEOF
12422
12423 fi
12424
12425 echo "$as_me:$LINENO: checking for alloca" >&5
12426 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12427 if test "${ac_cv_func_alloca_works+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   cat >conftest.$ac_ext <<_ACEOF
12431 #line $LINENO "configure"
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437 #ifdef __GNUC__
12438 # define alloca __builtin_alloca
12439 #else
12440 # ifdef _MSC_VER
12441 #  include <malloc.h>
12442 #  define alloca _alloca
12443 # else
12444 #  if HAVE_ALLOCA_H
12445 #   include <alloca.h>
12446 #  else
12447 #   ifdef _AIX
12448  #pragma alloca
12449 #   else
12450 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12451 char *alloca ();
12452 #    endif
12453 #   endif
12454 #  endif
12455 # endif
12456 #endif
12457
12458 int
12459 main ()
12460 {
12461 char *p = (char *) alloca (1);
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468   (eval $ac_link) 2>&5
12469   ac_status=$?
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); } &&
12472          { ac_try='test -s conftest$ac_exeext'
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_func_alloca_works=yes
12479 else
12480   echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 ac_cv_func_alloca_works=no
12484 fi
12485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12486 fi
12487 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12488 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12489
12490 if test $ac_cv_func_alloca_works = yes; then
12491
12492 cat >>confdefs.h <<\_ACEOF
12493 #define HAVE_ALLOCA 1
12494 _ACEOF
12495
12496 else
12497   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12498 # that cause trouble.  Some versions do not even contain alloca or
12499 # contain a buggy version.  If you still want to use their alloca,
12500 # use ar to extract alloca.o from them instead of compiling alloca.c.
12501
12502 ALLOCA=alloca.$ac_objext
12503
12504 cat >>confdefs.h <<\_ACEOF
12505 #define C_ALLOCA 1
12506 _ACEOF
12507
12508
12509 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12510 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12511 if test "${ac_cv_os_cray+set}" = set; then
12512   echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514   cat >conftest.$ac_ext <<_ACEOF
12515 #line $LINENO "configure"
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521 #if defined(CRAY) && ! defined(CRAY2)
12522 webecray
12523 #else
12524 wenotbecray
12525 #endif
12526
12527 _ACEOF
12528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12529   $EGREP "webecray" >/dev/null 2>&1; then
12530   ac_cv_os_cray=yes
12531 else
12532   ac_cv_os_cray=no
12533 fi
12534 rm -f conftest*
12535
12536 fi
12537 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12538 echo "${ECHO_T}$ac_cv_os_cray" >&6
12539 if test $ac_cv_os_cray = yes; then
12540   for ac_func in _getb67 GETB67 getb67; do
12541     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12542 echo "$as_me:$LINENO: checking for $ac_func" >&5
12543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12544 if eval "test \"\${$as_ac_var+set}\" = set"; then
12545   echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547   cat >conftest.$ac_ext <<_ACEOF
12548 #line $LINENO "configure"
12549 /* confdefs.h.  */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h.  */
12554 /* System header to define __stub macros and hopefully few prototypes,
12555     which can conflict with char $ac_func (); below.
12556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12557     <limits.h> exists even on freestanding compilers.  */
12558 #ifdef __STDC__
12559 # include <limits.h>
12560 #else
12561 # include <assert.h>
12562 #endif
12563 /* Override any gcc2 internal prototype to avoid an error.  */
12564 #ifdef __cplusplus
12565 extern "C"
12566 {
12567 #endif
12568 /* We use char because int might match the return type of a gcc2
12569    builtin and then its argument prototype would still apply.  */
12570 char $ac_func ();
12571 /* The GNU C library defines this for functions which it implements
12572     to always fail with ENOSYS.  Some functions are actually named
12573     something starting with __ and the normal name is an alias.  */
12574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12575 choke me
12576 #else
12577 char (*f) () = $ac_func;
12578 #endif
12579 #ifdef __cplusplus
12580 }
12581 #endif
12582
12583 int
12584 main ()
12585 {
12586 return f != $ac_func;
12587   ;
12588   return 0;
12589 }
12590 _ACEOF
12591 rm -f conftest.$ac_objext conftest$ac_exeext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12593   (eval $ac_link) 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } &&
12597          { ac_try='test -s conftest$ac_exeext'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; }; then
12603   eval "$as_ac_var=yes"
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608 eval "$as_ac_var=no"
12609 fi
12610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12611 fi
12612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12614 if test `eval echo '${'$as_ac_var'}'` = yes; then
12615
12616 cat >>confdefs.h <<_ACEOF
12617 #define CRAY_STACKSEG_END $ac_func
12618 _ACEOF
12619
12620     break
12621 fi
12622
12623   done
12624 fi
12625
12626 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12627 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12628 if test "${ac_cv_c_stack_direction+set}" = set; then
12629   echo $ECHO_N "(cached) $ECHO_C" >&6
12630 else
12631   if test "$cross_compiling" = yes; then
12632   ac_cv_c_stack_direction=0
12633 else
12634   cat >conftest.$ac_ext <<_ACEOF
12635 #line $LINENO "configure"
12636 /* confdefs.h.  */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h.  */
12641 int
12642 find_stack_direction ()
12643 {
12644   static char *addr = 0;
12645   auto char dummy;
12646   if (addr == 0)
12647     {
12648       addr = &dummy;
12649       return find_stack_direction ();
12650     }
12651   else
12652     return (&dummy > addr) ? 1 : -1;
12653 }
12654
12655 int
12656 main ()
12657 {
12658   exit (find_stack_direction () < 0);
12659 }
12660 _ACEOF
12661 rm -f conftest$ac_exeext
12662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12663   (eval $ac_link) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668   (eval $ac_try) 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; }; then
12672   ac_cv_c_stack_direction=1
12673 else
12674   echo "$as_me: program exited with status $ac_status" >&5
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12677
12678 ( exit $ac_status )
12679 ac_cv_c_stack_direction=-1
12680 fi
12681 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12682 fi
12683 fi
12684 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12685 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12686
12687 cat >>confdefs.h <<_ACEOF
12688 #define STACK_DIRECTION $ac_cv_c_stack_direction
12689 _ACEOF
12690
12691
12692 fi
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749 for ac_func in \
12750         _lwp_create \
12751         _pclose \
12752         _popen \
12753         _snprintf \
12754         _stricmp \
12755         _strnicmp \
12756         chsize \
12757         clone \
12758         ecvt \
12759         fcvt \
12760         finite \
12761         fpclass \
12762         ftruncate \
12763         ftruncate64 \
12764         gcvt \
12765         getnetbyaddr \
12766         getnetbyname \
12767         getopt_long \
12768         getpagesize \
12769         getprotobyname \
12770         getprotobynumber \
12771         getpwuid \
12772         getservbyport \
12773         getsockopt \
12774         inet_network \
12775         lseek64 \
12776         lstat \
12777         memmove \
12778         mkstemp \
12779         mmap \
12780         pclose \
12781         popen \
12782         pread \
12783         pthread_getspecific \
12784         pthread_key_create \
12785         pthread_mutex_lock \
12786         pthread_mutex_unlock \
12787         pthread_setspecific \
12788         pwrite \
12789         rfork \
12790         select \
12791         sendmsg \
12792         settimeofday \
12793         sigaltstack \
12794         snprintf \
12795         statfs \
12796         strcasecmp \
12797         strerror \
12798         strncasecmp \
12799         tcgetattr \
12800         timegm \
12801         usleep \
12802         vfscanf \
12803         wait4 \
12804         waitpid \
12805
12806 do
12807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12808 echo "$as_me:$LINENO: checking for $ac_func" >&5
12809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12810 if eval "test \"\${$as_ac_var+set}\" = set"; then
12811   echo $ECHO_N "(cached) $ECHO_C" >&6
12812 else
12813   cat >conftest.$ac_ext <<_ACEOF
12814 #line $LINENO "configure"
12815 /* confdefs.h.  */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h.  */
12820 /* System header to define __stub macros and hopefully few prototypes,
12821     which can conflict with char $ac_func (); below.
12822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12823     <limits.h> exists even on freestanding compilers.  */
12824 #ifdef __STDC__
12825 # include <limits.h>
12826 #else
12827 # include <assert.h>
12828 #endif
12829 /* Override any gcc2 internal prototype to avoid an error.  */
12830 #ifdef __cplusplus
12831 extern "C"
12832 {
12833 #endif
12834 /* We use char because int might match the return type of a gcc2
12835    builtin and then its argument prototype would still apply.  */
12836 char $ac_func ();
12837 /* The GNU C library defines this for functions which it implements
12838     to always fail with ENOSYS.  Some functions are actually named
12839     something starting with __ and the normal name is an alias.  */
12840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12841 choke me
12842 #else
12843 char (*f) () = $ac_func;
12844 #endif
12845 #ifdef __cplusplus
12846 }
12847 #endif
12848
12849 int
12850 main ()
12851 {
12852 return f != $ac_func;
12853   ;
12854   return 0;
12855 }
12856 _ACEOF
12857 rm -f conftest.$ac_objext conftest$ac_exeext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12859   (eval $ac_link) 2>&5
12860   ac_status=$?
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); } &&
12863          { ac_try='test -s conftest$ac_exeext'
12864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865   (eval $ac_try) 2>&5
12866   ac_status=$?
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; }; then
12869   eval "$as_ac_var=yes"
12870 else
12871   echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12873
12874 eval "$as_ac_var=no"
12875 fi
12876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12877 fi
12878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12880 if test `eval echo '${'$as_ac_var'}'` = yes; then
12881   cat >>confdefs.h <<_ACEOF
12882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12883 _ACEOF
12884
12885 fi
12886 done
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959 for ac_header in \
12960         arpa/inet.h \
12961         arpa/nameser.h \
12962         cups/cups.h \
12963         direct.h \
12964         elf.h \
12965         float.h \
12966         getopt.h \
12967         ieeefp.h \
12968         io.h \
12969         jack/jack.h \
12970         libio.h \
12971         libutil.h \
12972         link.h \
12973         linux/cdrom.h \
12974         linux/hdreg.h \
12975         linux/input.h \
12976         linux/joystick.h \
12977         linux/major.h \
12978         linux/param.h \
12979         linux/serial.h \
12980         linux/ucdrom.h \
12981         netdb.h \
12982         netinet/in.h \
12983         netinet/in_systm.h \
12984         netinet/tcp.h \
12985         pty.h \
12986         pwd.h \
12987         sched.h \
12988         scsi/sg.h \
12989         socket.h \
12990         stdint.h \
12991         strings.h \
12992         sys/cdio.h \
12993         sys/errno.h \
12994         sys/file.h \
12995         sys/filio.h \
12996         sys/inttypes.h \
12997         sys/ioctl.h \
12998         sys/ipc.h \
12999         sys/link.h \
13000         sys/lwp.h \
13001         sys/mman.h \
13002         sys/modem.h \
13003         sys/msg.h \
13004         sys/param.h \
13005         sys/poll.h \
13006         sys/ptrace.h \
13007         sys/reg.h \
13008         sys/shm.h \
13009         sys/signal.h \
13010         sys/socket.h \
13011         sys/sockio.h \
13012         sys/statfs.h \
13013         sys/strtio.h \
13014         sys/syscall.h \
13015         sys/sysctl.h \
13016         sys/time.h \
13017         sys/times.h \
13018         sys/uio.h \
13019         sys/un.h \
13020         sys/v86.h \
13021         sys/v86intr.h \
13022         sys/vfs.h \
13023         sys/vm86.h \
13024         sys/wait.h \
13025         syscall.h \
13026         termios.h \
13027         unistd.h \
13028         utime.h \
13029
13030 do
13031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13033   echo "$as_me:$LINENO: checking for $ac_header" >&5
13034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13036   echo $ECHO_N "(cached) $ECHO_C" >&6
13037 fi
13038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13040 else
13041   # Is the header compilable?
13042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13044 cat >conftest.$ac_ext <<_ACEOF
13045 #line $LINENO "configure"
13046 /* confdefs.h.  */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h.  */
13051 $ac_includes_default
13052 #include <$ac_header>
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056   (eval $ac_compile) 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); } &&
13060          { ac_try='test -s conftest.$ac_objext'
13061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062   (eval $ac_try) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; }; then
13066   ac_header_compiler=yes
13067 else
13068   echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13070
13071 ac_header_compiler=no
13072 fi
13073 rm -f conftest.$ac_objext conftest.$ac_ext
13074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13075 echo "${ECHO_T}$ac_header_compiler" >&6
13076
13077 # Is the header present?
13078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13080 cat >conftest.$ac_ext <<_ACEOF
13081 #line $LINENO "configure"
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 #include <$ac_header>
13088 _ACEOF
13089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13091   ac_status=$?
13092   grep -v '^ *+' conftest.er1 >conftest.err
13093   rm -f conftest.er1
13094   cat conftest.err >&5
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); } >/dev/null; then
13097   if test -s conftest.err; then
13098     ac_cpp_err=$ac_c_preproc_warn_flag
13099   else
13100     ac_cpp_err=
13101   fi
13102 else
13103   ac_cpp_err=yes
13104 fi
13105 if test -z "$ac_cpp_err"; then
13106   ac_header_preproc=yes
13107 else
13108   echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111   ac_header_preproc=no
13112 fi
13113 rm -f conftest.err conftest.$ac_ext
13114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13115 echo "${ECHO_T}$ac_header_preproc" >&6
13116
13117 # So?  What about this header?
13118 case $ac_header_compiler:$ac_header_preproc in
13119   yes:no )
13120     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13124     (
13125       cat <<\_ASBOX
13126 ## ------------------------------------ ##
13127 ## Report this to bug-autoconf@gnu.org. ##
13128 ## ------------------------------------ ##
13129 _ASBOX
13130     ) |
13131       sed "s/^/$as_me: WARNING:     /" >&2
13132     ;;
13133   no:yes )
13134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13136     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13140     (
13141       cat <<\_ASBOX
13142 ## ------------------------------------ ##
13143 ## Report this to bug-autoconf@gnu.org. ##
13144 ## ------------------------------------ ##
13145 _ASBOX
13146     ) |
13147       sed "s/^/$as_me: WARNING:     /" >&2
13148     ;;
13149 esac
13150 echo "$as_me:$LINENO: checking for $ac_header" >&5
13151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13153   echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155   eval "$as_ac_Header=$ac_header_preproc"
13156 fi
13157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13159
13160 fi
13161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13162   cat >>confdefs.h <<_ACEOF
13163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13164 _ACEOF
13165
13166 fi
13167
13168 done
13169
13170 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13171 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13172 if test "${ac_cv_header_stat_broken+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175   cat >conftest.$ac_ext <<_ACEOF
13176 #line $LINENO "configure"
13177 /* confdefs.h.  */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h.  */
13182 #include <sys/types.h>
13183 #include <sys/stat.h>
13184
13185 #if defined(S_ISBLK) && defined(S_IFDIR)
13186 # if S_ISBLK (S_IFDIR)
13187 You lose.
13188 # endif
13189 #endif
13190
13191 #if defined(S_ISBLK) && defined(S_IFCHR)
13192 # if S_ISBLK (S_IFCHR)
13193 You lose.
13194 # endif
13195 #endif
13196
13197 #if defined(S_ISLNK) && defined(S_IFREG)
13198 # if S_ISLNK (S_IFREG)
13199 You lose.
13200 # endif
13201 #endif
13202
13203 #if defined(S_ISSOCK) && defined(S_IFREG)
13204 # if S_ISSOCK (S_IFREG)
13205 You lose.
13206 # endif
13207 #endif
13208
13209 _ACEOF
13210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13211   $EGREP "You lose" >/dev/null 2>&1; then
13212   ac_cv_header_stat_broken=yes
13213 else
13214   ac_cv_header_stat_broken=no
13215 fi
13216 rm -f conftest*
13217
13218 fi
13219 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13220 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13221 if test $ac_cv_header_stat_broken = yes; then
13222
13223 cat >>confdefs.h <<\_ACEOF
13224 #define STAT_MACROS_BROKEN 1
13225 _ACEOF
13226
13227 fi
13228
13229
13230
13231
13232
13233 for ac_header in sys/mount.h sys/user.h
13234 do
13235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13236 echo "$as_me:$LINENO: checking for $ac_header" >&5
13237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241   cat >conftest.$ac_ext <<_ACEOF
13242 #line $LINENO "configure"
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248 #include <sys/types.h>
13249      #if HAVE_SYS_PARAM_H
13250      # include <sys/param.h>
13251      #endif
13252
13253 #include <$ac_header>
13254 _ACEOF
13255 rm -f conftest.$ac_objext
13256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13257   (eval $ac_compile) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); } &&
13261          { ac_try='test -s conftest.$ac_objext'
13262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263   (eval $ac_try) 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; }; then
13267   eval "$as_ac_Header=yes"
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 eval "$as_ac_Header=no"
13273 fi
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13275 fi
13276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13279   cat >>confdefs.h <<_ACEOF
13280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13281 _ACEOF
13282
13283 fi
13284
13285 done
13286
13287
13288
13289 for ac_header in net/if.h
13290 do
13291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13292 echo "$as_me:$LINENO: checking for $ac_header" >&5
13293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13295   echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297   cat >conftest.$ac_ext <<_ACEOF
13298 #line $LINENO "configure"
13299 /* confdefs.h.  */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h.  */
13304 #include <sys/types.h>
13305      #if HAVE_SYS_SOCKET_H
13306      # include <sys/socket.h>
13307      #endif
13308
13309 #include <$ac_header>
13310 _ACEOF
13311 rm -f conftest.$ac_objext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313   (eval $ac_compile) 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); } &&
13317          { ac_try='test -s conftest.$ac_objext'
13318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319   (eval $ac_try) 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; }; then
13323   eval "$as_ac_Header=yes"
13324 else
13325   echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13327
13328 eval "$as_ac_Header=no"
13329 fi
13330 rm -f conftest.$ac_objext conftest.$ac_ext
13331 fi
13332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13335   cat >>confdefs.h <<_ACEOF
13336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13337 _ACEOF
13338
13339 fi
13340
13341 done
13342
13343
13344
13345 for ac_header in netinet/ip.h
13346 do
13347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13348 echo "$as_me:$LINENO: checking for $ac_header" >&5
13349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353   cat >conftest.$ac_ext <<_ACEOF
13354 #line $LINENO "configure"
13355 /* confdefs.h.  */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h.  */
13360 #include <sys/types.h>
13361      #if HAVE_SYS_SOCKET_H
13362      # include <sys/socket.h>
13363      #endif
13364      #if HAVE_NETINET_IN_SYSTM_H
13365      # include <netinet/in_systm.h>
13366      #endif
13367
13368 #include <$ac_header>
13369 _ACEOF
13370 rm -f conftest.$ac_objext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372   (eval $ac_compile) 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } &&
13376          { ac_try='test -s conftest.$ac_objext'
13377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378   (eval $ac_try) 2>&5
13379   ac_status=$?
13380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); }; }; then
13382   eval "$as_ac_Header=yes"
13383 else
13384   echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13386
13387 eval "$as_ac_Header=no"
13388 fi
13389 rm -f conftest.$ac_objext conftest.$ac_ext
13390 fi
13391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13394   cat >>confdefs.h <<_ACEOF
13395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13396 _ACEOF
13397
13398 fi
13399
13400 done
13401
13402
13403
13404 for ac_header in resolv.h
13405 do
13406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13407 echo "$as_me:$LINENO: checking for $ac_header" >&5
13408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13410   echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412   cat >conftest.$ac_ext <<_ACEOF
13413 #line $LINENO "configure"
13414 /* confdefs.h.  */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h.  */
13419 #include <sys/types.h>
13420      #if HAVE_SYS_SOCKET_H
13421      # include <sys/socket.h>
13422      #endif
13423
13424 #include <$ac_header>
13425 _ACEOF
13426 rm -f conftest.$ac_objext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428   (eval $ac_compile) 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } &&
13432          { ac_try='test -s conftest.$ac_objext'
13433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434   (eval $ac_try) 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; }; then
13438   eval "$as_ac_Header=yes"
13439 else
13440   echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443 eval "$as_ac_Header=no"
13444 fi
13445 rm -f conftest.$ac_objext conftest.$ac_ext
13446 fi
13447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13450   cat >>confdefs.h <<_ACEOF
13451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13452 _ACEOF
13453
13454 fi
13455
13456 done
13457
13458
13459
13460 for ac_header in ucontext.h
13461 do
13462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13463 echo "$as_me:$LINENO: checking for $ac_header" >&5
13464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468   cat >conftest.$ac_ext <<_ACEOF
13469 #line $LINENO "configure"
13470 /* confdefs.h.  */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h.  */
13475 #include <signal.h>
13476
13477 #include <$ac_header>
13478 _ACEOF
13479 rm -f conftest.$ac_objext
13480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13481   (eval $ac_compile) 2>&5
13482   ac_status=$?
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); } &&
13485          { ac_try='test -s conftest.$ac_objext'
13486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487   (eval $ac_try) 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; }; then
13491   eval "$as_ac_Header=yes"
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 eval "$as_ac_Header=no"
13497 fi
13498 rm -f conftest.$ac_objext conftest.$ac_ext
13499 fi
13500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13503   cat >>confdefs.h <<_ACEOF
13504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13505 _ACEOF
13506
13507 fi
13508
13509 done
13510
13511
13512
13513 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13514 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13515 if test "${ac_cv_c_const+set}" = set; then
13516   echo $ECHO_N "(cached) $ECHO_C" >&6
13517 else
13518   cat >conftest.$ac_ext <<_ACEOF
13519 #line $LINENO "configure"
13520 /* confdefs.h.  */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h.  */
13525
13526 int
13527 main ()
13528 {
13529 /* FIXME: Include the comments suggested by Paul. */
13530 #ifndef __cplusplus
13531   /* Ultrix mips cc rejects this.  */
13532   typedef int charset[2];
13533   const charset x;
13534   /* SunOS 4.1.1 cc rejects this.  */
13535   char const *const *ccp;
13536   char **p;
13537   /* NEC SVR4.0.2 mips cc rejects this.  */
13538   struct point {int x, y;};
13539   static struct point const zero = {0,0};
13540   /* AIX XL C 1.02.0.0 rejects this.
13541      It does not let you subtract one const X* pointer from another in
13542      an arm of an if-expression whose if-part is not a constant
13543      expression */
13544   const char *g = "string";
13545   ccp = &g + (g ? g-g : 0);
13546   /* HPUX 7.0 cc rejects these. */
13547   ++ccp;
13548   p = (char**) ccp;
13549   ccp = (char const *const *) p;
13550   { /* SCO 3.2v4 cc rejects this.  */
13551     char *t;
13552     char const *s = 0 ? (char *) 0 : (char const *) 0;
13553
13554     *t++ = 0;
13555   }
13556   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13557     int x[] = {25, 17};
13558     const int *foo = &x[0];
13559     ++foo;
13560   }
13561   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13562     typedef const int *iptr;
13563     iptr p = 0;
13564     ++p;
13565   }
13566   { /* AIX XL C 1.02.0.0 rejects this saying
13567        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13568     struct s { int j; const int *ap[3]; };
13569     struct s *b; b->j = 5;
13570   }
13571   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13572     const int foo = 10;
13573   }
13574 #endif
13575
13576   ;
13577   return 0;
13578 }
13579 _ACEOF
13580 rm -f conftest.$ac_objext
13581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582   (eval $ac_compile) 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); } &&
13586          { ac_try='test -s conftest.$ac_objext'
13587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588   (eval $ac_try) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); }; }; then
13592   ac_cv_c_const=yes
13593 else
13594   echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597 ac_cv_c_const=no
13598 fi
13599 rm -f conftest.$ac_objext conftest.$ac_ext
13600 fi
13601 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13602 echo "${ECHO_T}$ac_cv_c_const" >&6
13603 if test $ac_cv_c_const = no; then
13604
13605 cat >>confdefs.h <<\_ACEOF
13606 #define const
13607 _ACEOF
13608
13609 fi
13610
13611 echo "$as_me:$LINENO: checking for inline" >&5
13612 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13613 if test "${ac_cv_c_inline+set}" = set; then
13614   echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616   ac_cv_c_inline=no
13617 for ac_kw in inline __inline__ __inline; do
13618   cat >conftest.$ac_ext <<_ACEOF
13619 #line $LINENO "configure"
13620 /* confdefs.h.  */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h.  */
13625 #ifndef __cplusplus
13626 typedef int foo_t;
13627 static $ac_kw foo_t static_foo () {return 0; }
13628 $ac_kw foo_t foo () {return 0; }
13629 #endif
13630
13631 _ACEOF
13632 rm -f conftest.$ac_objext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634   (eval $ac_compile) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); } &&
13638          { ac_try='test -s conftest.$ac_objext'
13639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640   (eval $ac_try) 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); }; }; then
13644   ac_cv_c_inline=$ac_kw; break
13645 else
13646   echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13648
13649 fi
13650 rm -f conftest.$ac_objext conftest.$ac_ext
13651 done
13652
13653 fi
13654 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13655 echo "${ECHO_T}$ac_cv_c_inline" >&6
13656 case $ac_cv_c_inline in
13657   inline | yes) ;;
13658   no)
13659 cat >>confdefs.h <<\_ACEOF
13660 #define inline
13661 _ACEOF
13662  ;;
13663   *)  cat >>confdefs.h <<_ACEOF
13664 #define inline $ac_cv_c_inline
13665 _ACEOF
13666  ;;
13667 esac
13668
13669 echo "$as_me:$LINENO: checking for mode_t" >&5
13670 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13671 if test "${ac_cv_type_mode_t+set}" = set; then
13672   echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674   cat >conftest.$ac_ext <<_ACEOF
13675 #line $LINENO "configure"
13676 /* confdefs.h.  */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h.  */
13681 $ac_includes_default
13682 int
13683 main ()
13684 {
13685 if ((mode_t *) 0)
13686   return 0;
13687 if (sizeof (mode_t))
13688   return 0;
13689   ;
13690   return 0;
13691 }
13692 _ACEOF
13693 rm -f conftest.$ac_objext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13695   (eval $ac_compile) 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); } &&
13699          { ac_try='test -s conftest.$ac_objext'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; }; then
13705   ac_cv_type_mode_t=yes
13706 else
13707   echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13709
13710 ac_cv_type_mode_t=no
13711 fi
13712 rm -f conftest.$ac_objext conftest.$ac_ext
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13715 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13716 if test $ac_cv_type_mode_t = yes; then
13717
13718 cat >>confdefs.h <<_ACEOF
13719 #define HAVE_MODE_T 1
13720 _ACEOF
13721
13722
13723 fi
13724 echo "$as_me:$LINENO: checking for off_t" >&5
13725 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13726 if test "${ac_cv_type_off_t+set}" = set; then
13727   echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729   cat >conftest.$ac_ext <<_ACEOF
13730 #line $LINENO "configure"
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736 $ac_includes_default
13737 int
13738 main ()
13739 {
13740 if ((off_t *) 0)
13741   return 0;
13742 if (sizeof (off_t))
13743   return 0;
13744   ;
13745   return 0;
13746 }
13747 _ACEOF
13748 rm -f conftest.$ac_objext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13750   (eval $ac_compile) 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } &&
13754          { ac_try='test -s conftest.$ac_objext'
13755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756   (eval $ac_try) 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; }; then
13760   ac_cv_type_off_t=yes
13761 else
13762   echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13764
13765 ac_cv_type_off_t=no
13766 fi
13767 rm -f conftest.$ac_objext conftest.$ac_ext
13768 fi
13769 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13770 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13771 if test $ac_cv_type_off_t = yes; then
13772
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_OFF_T 1
13775 _ACEOF
13776
13777
13778 fi
13779 echo "$as_me:$LINENO: checking for pid_t" >&5
13780 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13781 if test "${ac_cv_type_pid_t+set}" = set; then
13782   echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784   cat >conftest.$ac_ext <<_ACEOF
13785 #line $LINENO "configure"
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791 $ac_includes_default
13792 int
13793 main ()
13794 {
13795 if ((pid_t *) 0)
13796   return 0;
13797 if (sizeof (pid_t))
13798   return 0;
13799   ;
13800   return 0;
13801 }
13802 _ACEOF
13803 rm -f conftest.$ac_objext
13804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13805   (eval $ac_compile) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); } &&
13809          { ac_try='test -s conftest.$ac_objext'
13810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811   (eval $ac_try) 2>&5
13812   ac_status=$?
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }; }; then
13815   ac_cv_type_pid_t=yes
13816 else
13817   echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 ac_cv_type_pid_t=no
13821 fi
13822 rm -f conftest.$ac_objext conftest.$ac_ext
13823 fi
13824 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13825 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13826 if test $ac_cv_type_pid_t = yes; then
13827
13828 cat >>confdefs.h <<_ACEOF
13829 #define HAVE_PID_T 1
13830 _ACEOF
13831
13832
13833 fi
13834 echo "$as_me:$LINENO: checking for size_t" >&5
13835 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13836 if test "${ac_cv_type_size_t+set}" = set; then
13837   echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839   cat >conftest.$ac_ext <<_ACEOF
13840 #line $LINENO "configure"
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846 $ac_includes_default
13847 int
13848 main ()
13849 {
13850 if ((size_t *) 0)
13851   return 0;
13852 if (sizeof (size_t))
13853   return 0;
13854   ;
13855   return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860   (eval $ac_compile) 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); } &&
13864          { ac_try='test -s conftest.$ac_objext'
13865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866   (eval $ac_try) 2>&5
13867   ac_status=$?
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); }; }; then
13870   ac_cv_type_size_t=yes
13871 else
13872   echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13874
13875 ac_cv_type_size_t=no
13876 fi
13877 rm -f conftest.$ac_objext conftest.$ac_ext
13878 fi
13879 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13880 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13881 if test $ac_cv_type_size_t = yes; then
13882
13883 cat >>confdefs.h <<_ACEOF
13884 #define HAVE_SIZE_T 1
13885 _ACEOF
13886
13887
13888 fi
13889 echo "$as_me:$LINENO: checking for ssize_t" >&5
13890 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13891 if test "${ac_cv_type_ssize_t+set}" = set; then
13892   echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894   cat >conftest.$ac_ext <<_ACEOF
13895 #line $LINENO "configure"
13896 /* confdefs.h.  */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h.  */
13901 $ac_includes_default
13902 int
13903 main ()
13904 {
13905 if ((ssize_t *) 0)
13906   return 0;
13907 if (sizeof (ssize_t))
13908   return 0;
13909   ;
13910   return 0;
13911 }
13912 _ACEOF
13913 rm -f conftest.$ac_objext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13915   (eval $ac_compile) 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); } &&
13919          { ac_try='test -s conftest.$ac_objext'
13920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921   (eval $ac_try) 2>&5
13922   ac_status=$?
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); }; }; then
13925   ac_cv_type_ssize_t=yes
13926 else
13927   echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13929
13930 ac_cv_type_ssize_t=no
13931 fi
13932 rm -f conftest.$ac_objext conftest.$ac_ext
13933 fi
13934 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13935 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13936 if test $ac_cv_type_ssize_t = yes; then
13937
13938 cat >>confdefs.h <<_ACEOF
13939 #define HAVE_SSIZE_T 1
13940 _ACEOF
13941
13942
13943 fi
13944
13945 echo "$as_me:$LINENO: checking for long long" >&5
13946 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13947 if test "${ac_cv_type_long_long+set}" = set; then
13948   echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950   cat >conftest.$ac_ext <<_ACEOF
13951 #line $LINENO "configure"
13952 /* confdefs.h.  */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h.  */
13957 $ac_includes_default
13958 int
13959 main ()
13960 {
13961 if ((long long *) 0)
13962   return 0;
13963 if (sizeof (long long))
13964   return 0;
13965   ;
13966   return 0;
13967 }
13968 _ACEOF
13969 rm -f conftest.$ac_objext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13971   (eval $ac_compile) 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); } &&
13975          { ac_try='test -s conftest.$ac_objext'
13976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977   (eval $ac_try) 2>&5
13978   ac_status=$?
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); }; }; then
13981   ac_cv_type_long_long=yes
13982 else
13983   echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13985
13986 ac_cv_type_long_long=no
13987 fi
13988 rm -f conftest.$ac_objext conftest.$ac_ext
13989 fi
13990 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13991 echo "${ECHO_T}$ac_cv_type_long_long" >&6
13992
13993 echo "$as_me:$LINENO: checking size of long long" >&5
13994 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
13995 if test "${ac_cv_sizeof_long_long+set}" = set; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   if test "$ac_cv_type_long_long" = yes; then
13999   # The cast to unsigned long works around a bug in the HP C Compiler
14000   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14001   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14002   # This bug is HP SR number 8606223364.
14003   if test "$cross_compiling" = yes; then
14004   # Depending upon the size, compute the lo and hi bounds.
14005 cat >conftest.$ac_ext <<_ACEOF
14006 #line $LINENO "configure"
14007 /* confdefs.h.  */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h.  */
14012 $ac_includes_default
14013 int
14014 main ()
14015 {
14016 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14017 test_array [0] = 0
14018
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025   (eval $ac_compile) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } &&
14029          { ac_try='test -s conftest.$ac_objext'
14030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031   (eval $ac_try) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; }; then
14035   ac_lo=0 ac_mid=0
14036   while :; do
14037     cat >conftest.$ac_ext <<_ACEOF
14038 #line $LINENO "configure"
14039 /* confdefs.h.  */
14040 _ACEOF
14041 cat confdefs.h >>conftest.$ac_ext
14042 cat >>conftest.$ac_ext <<_ACEOF
14043 /* end confdefs.h.  */
14044 $ac_includes_default
14045 int
14046 main ()
14047 {
14048 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14049 test_array [0] = 0
14050
14051   ;
14052   return 0;
14053 }
14054 _ACEOF
14055 rm -f conftest.$ac_objext
14056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14057   (eval $ac_compile) 2>&5
14058   ac_status=$?
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); } &&
14061          { ac_try='test -s conftest.$ac_objext'
14062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063   (eval $ac_try) 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); }; }; then
14067   ac_hi=$ac_mid; break
14068 else
14069   echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072 ac_lo=`expr $ac_mid + 1`
14073                     if test $ac_lo -le $ac_mid; then
14074                       ac_lo= ac_hi=
14075                       break
14076                     fi
14077                     ac_mid=`expr 2 '*' $ac_mid + 1`
14078 fi
14079 rm -f conftest.$ac_objext conftest.$ac_ext
14080   done
14081 else
14082   echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085 cat >conftest.$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14087 /* confdefs.h.  */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h.  */
14092 $ac_includes_default
14093 int
14094 main ()
14095 {
14096 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14097 test_array [0] = 0
14098
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 rm -f conftest.$ac_objext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14105   (eval $ac_compile) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); } &&
14109          { ac_try='test -s conftest.$ac_objext'
14110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111   (eval $ac_try) 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); }; }; then
14115   ac_hi=-1 ac_mid=-1
14116   while :; do
14117     cat >conftest.$ac_ext <<_ACEOF
14118 #line $LINENO "configure"
14119 /* confdefs.h.  */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h.  */
14124 $ac_includes_default
14125 int
14126 main ()
14127 {
14128 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14129 test_array [0] = 0
14130
14131   ;
14132   return 0;
14133 }
14134 _ACEOF
14135 rm -f conftest.$ac_objext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137   (eval $ac_compile) 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } &&
14141          { ac_try='test -s conftest.$ac_objext'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; }; then
14147   ac_lo=$ac_mid; break
14148 else
14149   echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14151
14152 ac_hi=`expr '(' $ac_mid ')' - 1`
14153                        if test $ac_mid -le $ac_hi; then
14154                          ac_lo= ac_hi=
14155                          break
14156                        fi
14157                        ac_mid=`expr 2 '*' $ac_mid`
14158 fi
14159 rm -f conftest.$ac_objext conftest.$ac_ext
14160   done
14161 else
14162   echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14164
14165 ac_lo= ac_hi=
14166 fi
14167 rm -f conftest.$ac_objext conftest.$ac_ext
14168 fi
14169 rm -f conftest.$ac_objext conftest.$ac_ext
14170 # Binary search between lo and hi bounds.
14171 while test "x$ac_lo" != "x$ac_hi"; do
14172   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14173   cat >conftest.$ac_ext <<_ACEOF
14174 #line $LINENO "configure"
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180 $ac_includes_default
14181 int
14182 main ()
14183 {
14184 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14185 test_array [0] = 0
14186
14187   ;
14188   return 0;
14189 }
14190 _ACEOF
14191 rm -f conftest.$ac_objext
14192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193   (eval $ac_compile) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); } &&
14197          { ac_try='test -s conftest.$ac_objext'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203   ac_hi=$ac_mid
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 ac_lo=`expr '(' $ac_mid ')' + 1`
14209 fi
14210 rm -f conftest.$ac_objext conftest.$ac_ext
14211 done
14212 case $ac_lo in
14213 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14214 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14215 See \`config.log' for more details." >&5
14216 echo "$as_me: error: cannot compute sizeof (long long), 77
14217 See \`config.log' for more details." >&2;}
14218    { (exit 1); exit 1; }; } ;;
14219 esac
14220 else
14221   if test "$cross_compiling" = yes; then
14222   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14223 See \`config.log' for more details." >&5
14224 echo "$as_me: error: cannot run test program while cross compiling
14225 See \`config.log' for more details." >&2;}
14226    { (exit 1); exit 1; }; }
14227 else
14228   cat >conftest.$ac_ext <<_ACEOF
14229 #line $LINENO "configure"
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235 $ac_includes_default
14236 long longval () { return (long) (sizeof (long long)); }
14237 unsigned long ulongval () { return (long) (sizeof (long long)); }
14238 #include <stdio.h>
14239 #include <stdlib.h>
14240 int
14241 main ()
14242 {
14243
14244   FILE *f = fopen ("conftest.val", "w");
14245   if (! f)
14246     exit (1);
14247   if (((long) (sizeof (long long))) < 0)
14248     {
14249       long i = longval ();
14250       if (i != ((long) (sizeof (long long))))
14251         exit (1);
14252       fprintf (f, "%ld\n", i);
14253     }
14254   else
14255     {
14256       unsigned long i = ulongval ();
14257       if (i != ((long) (sizeof (long long))))
14258         exit (1);
14259       fprintf (f, "%lu\n", i);
14260     }
14261   exit (ferror (f) || fclose (f) != 0);
14262
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest$ac_exeext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269   (eval $ac_link) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274   (eval $ac_try) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; }; then
14278   ac_cv_sizeof_long_long=`cat conftest.val`
14279 else
14280   echo "$as_me: program exited with status $ac_status" >&5
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 ( exit $ac_status )
14285 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14286 See \`config.log' for more details." >&5
14287 echo "$as_me: error: cannot compute sizeof (long long), 77
14288 See \`config.log' for more details." >&2;}
14289    { (exit 1); exit 1; }; }
14290 fi
14291 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14292 fi
14293 fi
14294 rm -f conftest.val
14295 else
14296   ac_cv_sizeof_long_long=0
14297 fi
14298 fi
14299 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14300 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14301 cat >>confdefs.h <<_ACEOF
14302 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14303 _ACEOF
14304
14305
14306
14307 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
14308 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14309 if test "${wine_cv_linux_input_h+set}" = set; then
14310   echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312   cat >conftest.$ac_ext <<_ACEOF
14313 #line $LINENO "configure"
14314 /* confdefs.h.  */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h.  */
14319
14320             #include <linux/input.h>
14321
14322 int
14323 main ()
14324 {
14325
14326             int foo = EVIOCGBIT(EV_ABS,42);
14327             int bar = BTN_PINKIE;
14328             int fortytwo = 42;
14329
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext
14335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14336   (eval $ac_compile) 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); } &&
14340          { ac_try='test -s conftest.$ac_objext'
14341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342   (eval $ac_try) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }; }; then
14346   wine_cv_linux_input_h=yes
14347 else
14348   echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351 wine_cv_linux_input_h=no
14352 fi
14353 rm -f conftest.$ac_objext conftest.$ac_ext
14354
14355 fi
14356 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
14357 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
14358     if test "$wine_cv_linux_input_h" = "yes"
14359     then
14360
14361 cat >>confdefs.h <<\_ACEOF
14362 #define HAVE_CORRECT_LINUXINPUT_H 1
14363 _ACEOF
14364
14365     fi
14366
14367
14368 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14369 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14370 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14371   echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373   cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 /* confdefs.h.  */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h.  */
14380
14381 #include <netdb.h>
14382
14383 int
14384 main ()
14385 {
14386
14387     char *name=NULL;
14388     struct hostent he;
14389     struct hostent *result;
14390     char *buf=NULL;
14391     int bufsize=0;
14392     int res,errnr;
14393     char *addr=NULL;
14394     int addrlen=0;
14395     int addrtype=0;
14396     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14397     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14398
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 rm -f conftest.$ac_objext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14405   (eval $ac_compile) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); } &&
14409          { ac_try='test -s conftest.$ac_objext'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; }; then
14415   wine_cv_linux_gethostbyname_r_6=yes
14416 else
14417   echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14419
14420 wine_cv_linux_gethostbyname_r_6=no
14421
14422 fi
14423 rm -f conftest.$ac_objext conftest.$ac_ext
14424
14425 fi
14426 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
14427 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
14428    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14429    then
14430
14431 cat >>confdefs.h <<\_ACEOF
14432 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
14433 _ACEOF
14434
14435    fi
14436
14437 if test "$ac_cv_header_linux_joystick_h" = "yes"
14438 then
14439    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14440 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
14441 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
14442   echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444   cat >conftest.$ac_ext <<_ACEOF
14445 #line $LINENO "configure"
14446 /* confdefs.h.  */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h.  */
14451
14452         #include <sys/ioctl.h>
14453         #include <linux/joystick.h>
14454
14455         struct js_event blub;
14456         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14457         #error "no 2.2 header"
14458         #endif
14459
14460 int
14461 main ()
14462 {
14463 /*empty*/
14464   ;
14465   return 0;
14466 }
14467 _ACEOF
14468 rm -f conftest.$ac_objext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14470   (eval $ac_compile) 2>&5
14471   ac_status=$?
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } &&
14474          { ac_try='test -s conftest.$ac_objext'
14475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476   (eval $ac_try) 2>&5
14477   ac_status=$?
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); }; }; then
14480   wine_cv_linux_joystick_22_api=yes
14481 else
14482   echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14484
14485 wine_cv_linux_joystick_22_api=no
14486 fi
14487 rm -f conftest.$ac_objext conftest.$ac_ext
14488
14489 fi
14490 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
14491 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
14492    if test "$wine_cv_linux_joystick_22_api" = "yes"
14493    then
14494
14495 cat >>confdefs.h <<\_ACEOF
14496 #define HAVE_LINUX_22_JOYSTICK_API 1
14497 _ACEOF
14498
14499    fi
14500 fi
14501
14502
14503 if test "$ac_cv_header_sys_vfs_h" = "yes"
14504 then
14505     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
14506 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
14507 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
14508   echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510   cat >conftest.$ac_ext <<_ACEOF
14511 #line $LINENO "configure"
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517
14518         #include <sys/types.h>
14519         #ifdef HAVE_SYS_PARAM_H
14520         # include <sys/param.h>
14521         #endif
14522         #include <sys/vfs.h>
14523
14524 int
14525 main ()
14526 {
14527
14528                 struct statfs stfs;
14529
14530                 memset(&stfs,0,sizeof(stfs));
14531
14532   ;
14533   return 0;
14534 }
14535 _ACEOF
14536 rm -f conftest.$ac_objext
14537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14538   (eval $ac_compile) 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } &&
14542          { ac_try='test -s conftest.$ac_objext'
14543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544   (eval $ac_try) 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); }; }; then
14548   wine_cv_sys_vfs_has_statfs=yes
14549 else
14550   echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14552
14553 wine_cv_sys_vfs_has_statfs=no
14554
14555 fi
14556 rm -f conftest.$ac_objext conftest.$ac_ext
14557
14558 fi
14559 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
14560 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
14561     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
14562     then
14563
14564 cat >>confdefs.h <<\_ACEOF
14565 #define STATFS_DEFINED_BY_SYS_VFS 1
14566 _ACEOF
14567
14568     fi
14569 fi
14570
14571 if test "$ac_cv_header_sys_statfs_h" = "yes"
14572 then
14573     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
14574 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
14575 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
14576   echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578   cat >conftest.$ac_ext <<_ACEOF
14579 #line $LINENO "configure"
14580 /* confdefs.h.  */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h.  */
14585
14586         #include <sys/types.h>
14587         #ifdef HAVE_SYS_PARAM_H
14588         # include <sys/param.h>
14589         #endif
14590         #include <sys/statfs.h>
14591
14592 int
14593 main ()
14594 {
14595
14596                 struct statfs stfs;
14597
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602 rm -f conftest.$ac_objext
14603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14604   (eval $ac_compile) 2>&5
14605   ac_status=$?
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -s conftest.$ac_objext'
14609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610   (eval $ac_try) 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); }; }; then
14614   wine_cv_sys_statfs_has_statfs=yes
14615 else
14616   echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14618
14619 wine_cv_sys_statfs_has_statfs=no
14620
14621 fi
14622 rm -f conftest.$ac_objext conftest.$ac_ext
14623
14624 fi
14625 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
14626 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
14627     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
14628     then
14629
14630 cat >>confdefs.h <<\_ACEOF
14631 #define STATFS_DEFINED_BY_SYS_STATFS 1
14632 _ACEOF
14633
14634     fi
14635 fi
14636
14637 if test "$ac_cv_header_sys_mount_h" = "yes"
14638 then
14639     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
14640 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
14641 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
14642   echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644   cat >conftest.$ac_ext <<_ACEOF
14645 #line $LINENO "configure"
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651
14652         #include <sys/types.h>
14653         #ifdef HAVE_SYS_PARAM_H
14654         # include <sys/param.h>
14655         #endif
14656         #include <sys/mount.h>
14657
14658 int
14659 main ()
14660 {
14661
14662                 struct statfs stfs;
14663
14664   ;
14665   return 0;
14666 }
14667 _ACEOF
14668 rm -f conftest.$ac_objext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14670   (eval $ac_compile) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); } &&
14674          { ac_try='test -s conftest.$ac_objext'
14675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676   (eval $ac_try) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; }; then
14680   wine_cv_sys_mount_has_statfs=yes
14681 else
14682   echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685 wine_cv_sys_mount_has_statfs=no
14686
14687 fi
14688 rm -f conftest.$ac_objext conftest.$ac_ext
14689
14690 fi
14691 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
14692 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
14693     if test "$wine_cv_sys_mount_has_statfs" = "yes"
14694     then
14695
14696 cat >>confdefs.h <<\_ACEOF
14697 #define STATFS_DEFINED_BY_SYS_MOUNT 1
14698 _ACEOF
14699
14700     fi
14701 fi
14702
14703
14704 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
14705 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
14706 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
14707   echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709   cat >conftest.$ac_ext <<_ACEOF
14710 #line $LINENO "configure"
14711 /* confdefs.h.  */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h.  */
14716 #include <sys/types.h>
14717 #ifdef HAVE_SYS_PARAM_H
14718 # include <sys/param.h>
14719 #endif
14720 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
14721 # include <sys/mount.h>
14722 #else
14723 # ifdef STATFS_DEFINED_BY_SYS_VFS
14724 #  include <sys/vfs.h>
14725 # else
14726 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
14727 #   include <sys/statfs.h>
14728 #  endif
14729 # endif
14730 #endif
14731 int
14732 main ()
14733 {
14734 struct statfs s; s.f_bfree = 0
14735   ;
14736   return 0;
14737 }
14738 _ACEOF
14739 rm -f conftest.$ac_objext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741   (eval $ac_compile) 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } &&
14745          { ac_try='test -s conftest.$ac_objext'
14746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747   (eval $ac_try) 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }; }; then
14751   ac_cv_c_statfs_f_bfree="yes"
14752 else
14753   echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14755
14756 ac_cv_c_statfs_f_bfree="no"
14757 fi
14758 rm -f conftest.$ac_objext conftest.$ac_ext
14759 fi
14760 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
14761 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
14762 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
14763
14764 cat >>confdefs.h <<\_ACEOF
14765 #define STATFS_HAS_BFREE 1
14766 _ACEOF
14767
14768 fi
14769
14770
14771
14772 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
14773 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
14774 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
14775   echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777   cat >conftest.$ac_ext <<_ACEOF
14778 #line $LINENO "configure"
14779 /* confdefs.h.  */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h.  */
14784 #include <sys/types.h>
14785 #ifdef HAVE_SYS_PARAM_H
14786 # include <sys/param.h>
14787 #endif
14788 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
14789 # include <sys/mount.h>
14790 #else
14791 # ifdef STATFS_DEFINED_BY_SYS_VFS
14792 #  include <sys/vfs.h>
14793 # else
14794 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
14795 #   include <sys/statfs.h>
14796 #  endif
14797 # endif
14798 #endif
14799 int
14800 main ()
14801 {
14802 struct statfs s; s.f_bavail = 0
14803   ;
14804   return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14809   (eval $ac_compile) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); } &&
14813          { ac_try='test -s conftest.$ac_objext'
14814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815   (eval $ac_try) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }; }; then
14819   ac_cv_c_statfs_f_bavail="yes"
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824 ac_cv_c_statfs_f_bavail="no"
14825 fi
14826 rm -f conftest.$ac_objext conftest.$ac_ext
14827 fi
14828 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
14829 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
14830 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
14831
14832 cat >>confdefs.h <<\_ACEOF
14833 #define STATFS_HAS_BAVAIL 1
14834 _ACEOF
14835
14836 fi
14837
14838
14839
14840 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
14841 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
14842 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
14843   echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14845   cat >conftest.$ac_ext <<_ACEOF
14846 #line $LINENO "configure"
14847 /* confdefs.h.  */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h.  */
14852 #include <sys/types.h>
14853 #ifdef HAVE_SYS_SOCKET_H
14854 # include <sys/socket.h>
14855 #endif
14856 int
14857 main ()
14858 {
14859 struct msghdr s; s.msg_accrights = 0
14860   ;
14861   return 0;
14862 }
14863 _ACEOF
14864 rm -f conftest.$ac_objext
14865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14866   (eval $ac_compile) 2>&5
14867   ac_status=$?
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); } &&
14870          { ac_try='test -s conftest.$ac_objext'
14871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872   (eval $ac_try) 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); }; }; then
14876   ac_cv_c_msghdr_msg_accrights="yes"
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 ac_cv_c_msghdr_msg_accrights="no"
14882 fi
14883 rm -f conftest.$ac_objext conftest.$ac_ext
14884 fi
14885 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
14886 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
14887 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
14888
14889 cat >>confdefs.h <<\_ACEOF
14890 #define HAVE_MSGHDR_ACCRIGHTS 1
14891 _ACEOF
14892
14893 fi
14894
14895
14896
14897 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
14898 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
14899 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
14900   echo $ECHO_N "(cached) $ECHO_C" >&6
14901 else
14902   cat >conftest.$ac_ext <<_ACEOF
14903 #line $LINENO "configure"
14904 /* confdefs.h.  */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h.  */
14909 #include <sys/types.h>
14910 #ifdef HAVE_SYS_SOCKET_H
14911 # include <sys/socket.h>
14912 #endif
14913 int
14914 main ()
14915 {
14916 struct sockaddr s; s.sa_len = 0
14917   ;
14918   return 0;
14919 }
14920 _ACEOF
14921 rm -f conftest.$ac_objext
14922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14923   (eval $ac_compile) 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); } &&
14927          { ac_try='test -s conftest.$ac_objext'
14928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929   (eval $ac_try) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; }; then
14933   ac_cv_c_sockaddr_sa_len="yes"
14934 else
14935   echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14937
14938 ac_cv_c_sockaddr_sa_len="no"
14939 fi
14940 rm -f conftest.$ac_objext conftest.$ac_ext
14941 fi
14942 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
14943 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
14944 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
14945
14946 cat >>confdefs.h <<\_ACEOF
14947 #define HAVE_SOCKADDR_SA_LEN 1
14948 _ACEOF
14949
14950 fi
14951
14952
14953
14954 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
14955 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
14956 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
14957   echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14959   cat >conftest.$ac_ext <<_ACEOF
14960 #line $LINENO "configure"
14961 /* confdefs.h.  */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h.  */
14966 #include <sys/types.h>
14967 #ifdef HAVE_SYS_SOCKET_H
14968 # include <sys/socket.h>
14969 #endif
14970 #ifdef HAVE_SYS_UN_H
14971 # include <sys/un.h>
14972 #endif
14973 int
14974 main ()
14975 {
14976 struct sockaddr_un s; s.sun_len = 0
14977   ;
14978   return 0;
14979 }
14980 _ACEOF
14981 rm -f conftest.$ac_objext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983   (eval $ac_compile) 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); } &&
14987          { ac_try='test -s conftest.$ac_objext'
14988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989   (eval $ac_try) 2>&5
14990   ac_status=$?
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); }; }; then
14993   ac_cv_c_sockaddr_un_sun_len="yes"
14994 else
14995   echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 ac_cv_c_sockaddr_un_sun_len="no"
14999 fi
15000 rm -f conftest.$ac_objext conftest.$ac_ext
15001 fi
15002 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
15003 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
15004 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
15005
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_SOCKADDR_SUN_LEN 1
15008 _ACEOF
15009
15010 fi
15011
15012
15013
15014
15015 case $host_cpu in
15016   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
15017 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
15018 if test "${ac_cv_cpp_def___i386__+set}" = set; then
15019   echo $ECHO_N "(cached) $ECHO_C" >&6
15020 else
15021   cat >conftest.$ac_ext <<_ACEOF
15022 #line $LINENO "configure"
15023 /* confdefs.h.  */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h.  */
15028 #ifndef __i386__
15029 yes
15030 #endif
15031 _ACEOF
15032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15033   $EGREP "yes" >/dev/null 2>&1; then
15034   ac_cv_cpp_def___i386__=yes
15035 else
15036   ac_cv_cpp_def___i386__=no
15037 fi
15038 rm -f conftest*
15039
15040 fi
15041 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
15042 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
15043 if test $ac_cv_cpp_def___i386__ = yes; then
15044   CFLAGS="$CFLAGS -D__i386__"
15045   LINTFLAGS="$LINTFLAGS -D__i386__"
15046 fi
15047  ;;
15048   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
15049 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
15050 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
15051   echo $ECHO_N "(cached) $ECHO_C" >&6
15052 else
15053   cat >conftest.$ac_ext <<_ACEOF
15054 #line $LINENO "configure"
15055 /* confdefs.h.  */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h.  */
15060 #ifndef __ALPHA__
15061 yes
15062 #endif
15063 _ACEOF
15064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15065   $EGREP "yes" >/dev/null 2>&1; then
15066   ac_cv_cpp_def___ALPHA__=yes
15067 else
15068   ac_cv_cpp_def___ALPHA__=no
15069 fi
15070 rm -f conftest*
15071
15072 fi
15073 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
15074 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
15075 if test $ac_cv_cpp_def___ALPHA__ = yes; then
15076   CFLAGS="$CFLAGS -D__ALPHA__"
15077   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
15078 fi
15079  ;;
15080   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
15081 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
15082 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
15083   echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085   cat >conftest.$ac_ext <<_ACEOF
15086 #line $LINENO "configure"
15087 /* confdefs.h.  */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h.  */
15092 #ifndef __sparc__
15093 yes
15094 #endif
15095 _ACEOF
15096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15097   $EGREP "yes" >/dev/null 2>&1; then
15098   ac_cv_cpp_def___sparc__=yes
15099 else
15100   ac_cv_cpp_def___sparc__=no
15101 fi
15102 rm -f conftest*
15103
15104 fi
15105 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
15106 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
15107 if test $ac_cv_cpp_def___sparc__ = yes; then
15108   CFLAGS="$CFLAGS -D__sparc__"
15109   LINTFLAGS="$LINTFLAGS -D__sparc__"
15110 fi
15111  ;;
15112 esac
15113
15114 case $host_vendor in
15115   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
15116 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
15117 if test "${ac_cv_cpp_def___sun__+set}" = set; then
15118   echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120   cat >conftest.$ac_ext <<_ACEOF
15121 #line $LINENO "configure"
15122 /* confdefs.h.  */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h.  */
15127 #ifndef __sun__
15128 yes
15129 #endif
15130 _ACEOF
15131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15132   $EGREP "yes" >/dev/null 2>&1; then
15133   ac_cv_cpp_def___sun__=yes
15134 else
15135   ac_cv_cpp_def___sun__=no
15136 fi
15137 rm -f conftest*
15138
15139 fi
15140 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
15141 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
15142 if test $ac_cv_cpp_def___sun__ = yes; then
15143   CFLAGS="$CFLAGS -D__sun__"
15144   LINTFLAGS="$LINTFLAGS -D__sun__"
15145 fi
15146  ;;
15147 esac
15148
15149
15150
15151
15152
15153           ac_config_commands="$ac_config_commands controls"
15154
15155           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
15156
15157           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
15158
15159           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
15160
15161           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
15162
15163           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
15164
15165           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
15166
15167           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
15168
15169           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
15170
15171           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
15172
15173           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
15174
15175           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
15176
15177           ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
15178
15179           ac_config_commands="$ac_config_commands dlls/kernel/messages"
15180
15181           ac_config_commands="$ac_config_commands dlls/user/dde"
15182
15183           ac_config_commands="$ac_config_commands dlls/user/resources"
15184
15185           ac_config_commands="$ac_config_commands dlls/wineps/data"
15186
15187           ac_config_commands="$ac_config_commands files"
15188
15189           ac_config_commands="$ac_config_commands graphics"
15190
15191           ac_config_commands="$ac_config_commands graphics/x11drv"
15192
15193           ac_config_commands="$ac_config_commands if1632"
15194
15195           ac_config_commands="$ac_config_commands include/wine"
15196
15197           ac_config_commands="$ac_config_commands loader"
15198
15199           ac_config_commands="$ac_config_commands loader/ne"
15200
15201           ac_config_commands="$ac_config_commands memory"
15202
15203           ac_config_commands="$ac_config_commands misc"
15204
15205           ac_config_commands="$ac_config_commands msdos"
15206
15207           ac_config_commands="$ac_config_commands objects"
15208
15209           ac_config_commands="$ac_config_commands programs/regapi/tests"
15210
15211           ac_config_commands="$ac_config_commands programs/regedit/tests"
15212
15213           ac_config_commands="$ac_config_commands relay32"
15214
15215           ac_config_commands="$ac_config_commands scheduler"
15216
15217           ac_config_commands="$ac_config_commands win32"
15218
15219           ac_config_commands="$ac_config_commands windows"
15220
15221
15222 MAKE_RULES=Make.rules
15223
15224
15225 MAKE_DLL_RULES=dlls/Makedll.rules
15226
15227
15228 MAKE_TEST_RULES=dlls/Maketest.rules
15229
15230
15231 MAKE_PROG_RULES=programs/Makeprog.rules
15232
15233
15234                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dx8/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/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/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/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/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/rpcrt4/tests/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/urlmon/tests/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/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintab32/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/rpcss/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/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 unicode/Makefile"
15235
15236
15237 cat >confcache <<\_ACEOF
15238 # This file is a shell script that caches the results of configure
15239 # tests run on this system so they can be shared between configure
15240 # scripts and configure runs, see configure's option --config-cache.
15241 # It is not useful on other systems.  If it contains results you don't
15242 # want to keep, you may remove or edit it.
15243 #
15244 # config.status only pays attention to the cache file if you give it
15245 # the --recheck option to rerun configure.
15246 #
15247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15249 # following values.
15250
15251 _ACEOF
15252
15253 # The following way of writing the cache mishandles newlines in values,
15254 # but we know of no workaround that is simple, portable, and efficient.
15255 # So, don't put newlines in cache variables' values.
15256 # Ultrix sh set writes to stderr and can't be redirected directly,
15257 # and sets the high bit in the cache file unless we assign to the vars.
15258 {
15259   (set) 2>&1 |
15260     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15261     *ac_space=\ *)
15262       # `set' does not quote correctly, so add quotes (double-quote
15263       # substitution turns \\\\ into \\, and sed turns \\ into \).
15264       sed -n \
15265         "s/'/'\\\\''/g;
15266           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15267       ;;
15268     *)
15269       # `set' quotes correctly as required by POSIX, so do not add quotes.
15270       sed -n \
15271         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15272       ;;
15273     esac;
15274 } |
15275   sed '
15276      t clear
15277      : clear
15278      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15279      t end
15280      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15281      : end' >>confcache
15282 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15283   if test -w $cache_file; then
15284     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15285     cat confcache >$cache_file
15286   else
15287     echo "not updating unwritable cache $cache_file"
15288   fi
15289 fi
15290 rm -f confcache
15291
15292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15293 # Let make expand exec_prefix.
15294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15295
15296 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15297 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15298 # trailing colons and then remove the whole line if VPATH becomes empty
15299 # (actually we leave an empty line to preserve line numbers).
15300 if test "x$srcdir" = x.; then
15301   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15302 s/:*\$(srcdir):*/:/;
15303 s/:*\${srcdir}:*/:/;
15304 s/:*@srcdir@:*/:/;
15305 s/^\([^=]*=[    ]*\):*/\1/;
15306 s/:*$//;
15307 s/^[^=]*=[      ]*$//;
15308 }'
15309 fi
15310
15311 DEFS=-DHAVE_CONFIG_H
15312
15313 ac_libobjs=
15314 ac_ltlibobjs=
15315 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15316   # 1. Remove the extension, and $U if already installed.
15317   ac_i=`echo "$ac_i" |
15318          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15319   # 2. Add them.
15320   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15321   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15322 done
15323 LIBOBJS=$ac_libobjs
15324
15325 LTLIBOBJS=$ac_ltlibobjs
15326
15327
15328
15329 : ${CONFIG_STATUS=./config.status}
15330 ac_clean_files_save=$ac_clean_files
15331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15332 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15333 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15334 cat >$CONFIG_STATUS <<_ACEOF
15335 #! $SHELL
15336 # Generated by $as_me.
15337 # Run this file to recreate the current configuration.
15338 # Compiler output produced by configure, useful for debugging
15339 # configure, is in config.log if it exists.
15340
15341 debug=false
15342 ac_cs_recheck=false
15343 ac_cs_silent=false
15344 SHELL=\${CONFIG_SHELL-$SHELL}
15345 _ACEOF
15346
15347 cat >>$CONFIG_STATUS <<\_ACEOF
15348 ## --------------------- ##
15349 ## M4sh Initialization.  ##
15350 ## --------------------- ##
15351
15352 # Be Bourne compatible
15353 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15354   emulate sh
15355   NULLCMD=:
15356   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15357   # is contrary to our usage.  Disable this feature.
15358   alias -g '${1+"$@"}'='"$@"'
15359 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15360   set -o posix
15361 fi
15362
15363 # Support unset when possible.
15364 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15365   as_unset=unset
15366 else
15367   as_unset=false
15368 fi
15369
15370
15371 # Work around bugs in pre-3.0 UWIN ksh.
15372 $as_unset ENV MAIL MAILPATH
15373 PS1='$ '
15374 PS2='> '
15375 PS4='+ '
15376
15377 # NLS nuisances.
15378 for as_var in \
15379   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15380   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15381   LC_TELEPHONE LC_TIME
15382 do
15383   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15384     eval $as_var=C; export $as_var
15385   else
15386     $as_unset $as_var
15387   fi
15388 done
15389
15390 # Required to use basename.
15391 if expr a : '\(a\)' >/dev/null 2>&1; then
15392   as_expr=expr
15393 else
15394   as_expr=false
15395 fi
15396
15397 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15398   as_basename=basename
15399 else
15400   as_basename=false
15401 fi
15402
15403
15404 # Name of the executable.
15405 as_me=`$as_basename "$0" ||
15406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15407          X"$0" : 'X\(//\)$' \| \
15408          X"$0" : 'X\(/\)$' \| \
15409          .     : '\(.\)' 2>/dev/null ||
15410 echo X/"$0" |
15411     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15412           /^X\/\(\/\/\)$/{ s//\1/; q; }
15413           /^X\/\(\/\).*/{ s//\1/; q; }
15414           s/.*/./; q'`
15415
15416
15417 # PATH needs CR, and LINENO needs CR and PATH.
15418 # Avoid depending upon Character Ranges.
15419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15422 as_cr_digits='0123456789'
15423 as_cr_alnum=$as_cr_Letters$as_cr_digits
15424
15425 # The user is always right.
15426 if test "${PATH_SEPARATOR+set}" != set; then
15427   echo "#! /bin/sh" >conf$$.sh
15428   echo  "exit 0"   >>conf$$.sh
15429   chmod +x conf$$.sh
15430   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15431     PATH_SEPARATOR=';'
15432   else
15433     PATH_SEPARATOR=:
15434   fi
15435   rm -f conf$$.sh
15436 fi
15437
15438
15439   as_lineno_1=$LINENO
15440   as_lineno_2=$LINENO
15441   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15442   test "x$as_lineno_1" != "x$as_lineno_2" &&
15443   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15444   # Find who we are.  Look in the path if we contain no path at all
15445   # relative or not.
15446   case $0 in
15447     *[\\/]* ) as_myself=$0 ;;
15448     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15449 for as_dir in $PATH
15450 do
15451   IFS=$as_save_IFS
15452   test -z "$as_dir" && as_dir=.
15453   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15454 done
15455
15456        ;;
15457   esac
15458   # We did not find ourselves, most probably we were run as `sh COMMAND'
15459   # in which case we are not to be found in the path.
15460   if test "x$as_myself" = x; then
15461     as_myself=$0
15462   fi
15463   if test ! -f "$as_myself"; then
15464     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15465 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15466    { (exit 1); exit 1; }; }
15467   fi
15468   case $CONFIG_SHELL in
15469   '')
15470     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15471 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15472 do
15473   IFS=$as_save_IFS
15474   test -z "$as_dir" && as_dir=.
15475   for as_base in sh bash ksh sh5; do
15476          case $as_dir in
15477          /*)
15478            if ("$as_dir/$as_base" -c '
15479   as_lineno_1=$LINENO
15480   as_lineno_2=$LINENO
15481   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15482   test "x$as_lineno_1" != "x$as_lineno_2" &&
15483   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15484              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15485              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15486              CONFIG_SHELL=$as_dir/$as_base
15487              export CONFIG_SHELL
15488              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15489            fi;;
15490          esac
15491        done
15492 done
15493 ;;
15494   esac
15495
15496   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15497   # uniformly replaced by the line number.  The first 'sed' inserts a
15498   # line-number line before each line; the second 'sed' does the real
15499   # work.  The second script uses 'N' to pair each line-number line
15500   # with the numbered line, and appends trailing '-' during
15501   # substitution so that $LINENO is not a special case at line end.
15502   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15503   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15504   sed '=' <$as_myself |
15505     sed '
15506       N
15507       s,$,-,
15508       : loop
15509       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15510       t loop
15511       s,-$,,
15512       s,^['$as_cr_digits']*\n,,
15513     ' >$as_me.lineno &&
15514   chmod +x $as_me.lineno ||
15515     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15516 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15517    { (exit 1); exit 1; }; }
15518
15519   # Don't try to exec as it changes $[0], causing all sort of problems
15520   # (the dirname of $[0] is not the place where we might find the
15521   # original and so on.  Autoconf is especially sensible to this).
15522   . ./$as_me.lineno
15523   # Exit status is that of the last command.
15524   exit
15525 }
15526
15527
15528 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15529   *c*,-n*) ECHO_N= ECHO_C='
15530 ' ECHO_T='      ' ;;
15531   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15532   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15533 esac
15534
15535 if expr a : '\(a\)' >/dev/null 2>&1; then
15536   as_expr=expr
15537 else
15538   as_expr=false
15539 fi
15540
15541 rm -f conf$$ conf$$.exe conf$$.file
15542 echo >conf$$.file
15543 if ln -s conf$$.file conf$$ 2>/dev/null; then
15544   # We could just check for DJGPP; but this test a) works b) is more generic
15545   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15546   if test -f conf$$.exe; then
15547     # Don't use ln at all; we don't have any links
15548     as_ln_s='cp -p'
15549   else
15550     as_ln_s='ln -s'
15551   fi
15552 elif ln conf$$.file conf$$ 2>/dev/null; then
15553   as_ln_s=ln
15554 else
15555   as_ln_s='cp -p'
15556 fi
15557 rm -f conf$$ conf$$.exe conf$$.file
15558
15559 if mkdir -p . 2>/dev/null; then
15560   as_mkdir_p=:
15561 else
15562   as_mkdir_p=false
15563 fi
15564
15565 as_executable_p="test -f"
15566
15567 # Sed expression to map a string onto a valid CPP name.
15568 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15569
15570 # Sed expression to map a string onto a valid variable name.
15571 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15572
15573
15574 # IFS
15575 # We need space, tab and new line, in precisely that order.
15576 as_nl='
15577 '
15578 IFS="   $as_nl"
15579
15580 # CDPATH.
15581 $as_unset CDPATH
15582
15583 exec 6>&1
15584
15585 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15586 # report actual input values of CONFIG_FILES etc. instead of their
15587 # values after options handling.  Logging --version etc. is OK.
15588 exec 5>>config.log
15589 {
15590   echo
15591   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15592 ## Running $as_me. ##
15593 _ASBOX
15594 } >&5
15595 cat >&5 <<_CSEOF
15596
15597 This file was extended by Wine $as_me 20021219, which was
15598 generated by GNU Autoconf 2.57.  Invocation command line was
15599
15600   CONFIG_FILES    = $CONFIG_FILES
15601   CONFIG_HEADERS  = $CONFIG_HEADERS
15602   CONFIG_LINKS    = $CONFIG_LINKS
15603   CONFIG_COMMANDS = $CONFIG_COMMANDS
15604   $ $0 $@
15605
15606 _CSEOF
15607 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15608 echo >&5
15609 _ACEOF
15610
15611 # Files that config.status was made for.
15612 if test -n "$ac_config_files"; then
15613   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15614 fi
15615
15616 if test -n "$ac_config_headers"; then
15617   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15618 fi
15619
15620 if test -n "$ac_config_links"; then
15621   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15622 fi
15623
15624 if test -n "$ac_config_commands"; then
15625   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15626 fi
15627
15628 cat >>$CONFIG_STATUS <<\_ACEOF
15629
15630 ac_cs_usage="\
15631 \`$as_me' instantiates files from templates according to the
15632 current configuration.
15633
15634 Usage: $0 [OPTIONS] [FILE]...
15635
15636   -h, --help       print this help, then exit
15637   -V, --version    print version number, then exit
15638   -q, --quiet      do not print progress messages
15639   -d, --debug      don't remove temporary files
15640       --recheck    update $as_me by reconfiguring in the same conditions
15641   --file=FILE[:TEMPLATE]
15642                    instantiate the configuration file FILE
15643   --header=FILE[:TEMPLATE]
15644                    instantiate the configuration header FILE
15645
15646 Configuration files:
15647 $config_files
15648
15649 Configuration headers:
15650 $config_headers
15651
15652 Configuration commands:
15653 $config_commands
15654
15655 Report bugs to <bug-autoconf@gnu.org>."
15656 _ACEOF
15657
15658 cat >>$CONFIG_STATUS <<_ACEOF
15659 ac_cs_version="\\
15660 Wine config.status 20021219
15661 configured by $0, generated by GNU Autoconf 2.57,
15662   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15663
15664 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15665 Free Software Foundation, Inc.
15666 This config.status script is free software; the Free Software Foundation
15667 gives unlimited permission to copy, distribute and modify it."
15668 srcdir=$srcdir
15669 INSTALL="$INSTALL"
15670 _ACEOF
15671
15672 cat >>$CONFIG_STATUS <<\_ACEOF
15673 # If no file are specified by the user, then we need to provide default
15674 # value.  By we need to know if files were specified by the user.
15675 ac_need_defaults=:
15676 while test $# != 0
15677 do
15678   case $1 in
15679   --*=*)
15680     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15681     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15682     ac_shift=:
15683     ;;
15684   -*)
15685     ac_option=$1
15686     ac_optarg=$2
15687     ac_shift=shift
15688     ;;
15689   *) # This is not an option, so the user has probably given explicit
15690      # arguments.
15691      ac_option=$1
15692      ac_need_defaults=false;;
15693   esac
15694
15695   case $ac_option in
15696   # Handling of the options.
15697 _ACEOF
15698 cat >>$CONFIG_STATUS <<\_ACEOF
15699   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15700     ac_cs_recheck=: ;;
15701   --version | --vers* | -V )
15702     echo "$ac_cs_version"; exit 0 ;;
15703   --he | --h)
15704     # Conflict between --help and --header
15705     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15706 Try \`$0 --help' for more information." >&5
15707 echo "$as_me: error: ambiguous option: $1
15708 Try \`$0 --help' for more information." >&2;}
15709    { (exit 1); exit 1; }; };;
15710   --help | --hel | -h )
15711     echo "$ac_cs_usage"; exit 0 ;;
15712   --debug | --d* | -d )
15713     debug=: ;;
15714   --file | --fil | --fi | --f )
15715     $ac_shift
15716     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15717     ac_need_defaults=false;;
15718   --header | --heade | --head | --hea )
15719     $ac_shift
15720     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15721     ac_need_defaults=false;;
15722   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15723   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15724     ac_cs_silent=: ;;
15725
15726   # This is an error.
15727   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15728 Try \`$0 --help' for more information." >&5
15729 echo "$as_me: error: unrecognized option: $1
15730 Try \`$0 --help' for more information." >&2;}
15731    { (exit 1); exit 1; }; } ;;
15732
15733   *) ac_config_targets="$ac_config_targets $1" ;;
15734
15735   esac
15736   shift
15737 done
15738
15739 ac_configure_extra_args=
15740
15741 if $ac_cs_silent; then
15742   exec 6>/dev/null
15743   ac_configure_extra_args="$ac_configure_extra_args --silent"
15744 fi
15745
15746 _ACEOF
15747 cat >>$CONFIG_STATUS <<_ACEOF
15748 if \$ac_cs_recheck; then
15749   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15750   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15751 fi
15752
15753 _ACEOF
15754
15755
15756
15757
15758
15759 cat >>$CONFIG_STATUS <<\_ACEOF
15760 for ac_config_target in $ac_config_targets
15761 do
15762   case "$ac_config_target" in
15763   # Handling of arguments.
15764   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15765   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15766   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
15767   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15768   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15769   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
15770   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
15771   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
15772   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
15773   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
15774   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
15775   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
15776   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
15777   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
15778   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
15779   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
15780   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
15781   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
15782   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
15783   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
15784   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
15785   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
15786   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
15787   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
15788   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
15789   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
15790   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
15791   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
15792   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
15793   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
15794   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
15795   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
15796   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
15797   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
15798   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
15799   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
15800   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
15801   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
15802   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
15803   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
15804   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
15805   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
15806   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
15807   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
15808   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
15809   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
15810   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
15811   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
15812   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
15813   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
15814   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
15815   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
15816   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
15817   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
15818   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
15819   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
15820   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
15821   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
15822   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
15823   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
15824   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
15825   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
15826   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
15827   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
15828   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
15829   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
15830   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
15831   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
15832   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
15833   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
15834   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
15835   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
15836   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
15837   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
15838   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
15839   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
15840   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
15841   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
15842   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
15843   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
15844   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
15845   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
15846   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
15847   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
15848   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
15849   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
15850   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
15851   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
15852   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
15853   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
15854   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
15855   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
15856   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
15857   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
15858   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
15859   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
15860   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
15861   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
15862   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
15863   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
15864   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
15865   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
15866   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
15867   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
15868   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
15869   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
15870   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
15871   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
15872   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
15873   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
15874   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
15875   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
15876   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
15877   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
15878   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
15879   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
15880   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
15881   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
15882   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
15883   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
15884   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
15885   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
15886   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
15887   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
15888   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15889   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
15890   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
15891   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
15892   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
15893   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
15894   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
15895   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
15896   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
15897   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
15898   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
15899   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
15900   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
15901   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
15902   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
15903   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
15904   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
15905   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
15906   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
15907   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
15908   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
15909   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
15910   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
15911   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
15912   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
15913   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
15914   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
15915   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
15916   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
15917   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
15918   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
15919   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15920   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
15921   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
15922   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
15923   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
15924   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
15925   "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
15926   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
15927   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
15928   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
15929   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
15930   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
15931   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
15932   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
15933   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
15934   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
15935   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
15936   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
15937   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
15938   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
15939   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
15940   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
15941   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
15942   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
15943   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
15944   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
15945   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
15946   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
15947   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
15948   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
15949   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15950   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
15951   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
15952   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
15953   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
15954   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
15955   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
15956   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
15957   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
15958   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
15959   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
15960   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
15961   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
15962   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15963   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15964 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15965    { (exit 1); exit 1; }; };;
15966   esac
15967 done
15968
15969 # If the user did not use the arguments to specify the items to instantiate,
15970 # then the envvar interface is used.  Set only those that are not.
15971 # We use the long form for the default assignment because of an extremely
15972 # bizarre bug on SunOS 4.1.3.
15973 if $ac_need_defaults; then
15974   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15975   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15976   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15977 fi
15978
15979 # Have a temporary directory for convenience.  Make it in the build tree
15980 # simply because there is no reason to put it here, and in addition,
15981 # creating and moving files from /tmp can sometimes cause problems.
15982 # Create a temporary directory, and hook for its removal unless debugging.
15983 $debug ||
15984 {
15985   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15986   trap '{ (exit 1); exit 1; }' 1 2 13 15
15987 }
15988
15989 # Create a (secure) tmp directory for tmp files.
15990
15991 {
15992   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15993   test -n "$tmp" && test -d "$tmp"
15994 }  ||
15995 {
15996   tmp=./confstat$$-$RANDOM
15997   (umask 077 && mkdir $tmp)
15998 } ||
15999 {
16000    echo "$me: cannot create a temporary directory in ." >&2
16001    { (exit 1); exit 1; }
16002 }
16003
16004 _ACEOF
16005
16006 cat >>$CONFIG_STATUS <<_ACEOF
16007
16008 #
16009 # CONFIG_FILES section.
16010 #
16011
16012 # No need to generate the scripts if there are no CONFIG_FILES.
16013 # This happens for instance when ./config.status config.h
16014 if test -n "\$CONFIG_FILES"; then
16015   # Protect against being on the right side of a sed subst in config.status.
16016   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16017    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16018 s,@SHELL@,$SHELL,;t t
16019 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16020 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16021 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16022 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16023 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16024 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16025 s,@exec_prefix@,$exec_prefix,;t t
16026 s,@prefix@,$prefix,;t t
16027 s,@program_transform_name@,$program_transform_name,;t t
16028 s,@bindir@,$bindir,;t t
16029 s,@sbindir@,$sbindir,;t t
16030 s,@libexecdir@,$libexecdir,;t t
16031 s,@datadir@,$datadir,;t t
16032 s,@sysconfdir@,$sysconfdir,;t t
16033 s,@sharedstatedir@,$sharedstatedir,;t t
16034 s,@localstatedir@,$localstatedir,;t t
16035 s,@libdir@,$libdir,;t t
16036 s,@includedir@,$includedir,;t t
16037 s,@oldincludedir@,$oldincludedir,;t t
16038 s,@infodir@,$infodir,;t t
16039 s,@mandir@,$mandir,;t t
16040 s,@build_alias@,$build_alias,;t t
16041 s,@host_alias@,$host_alias,;t t
16042 s,@target_alias@,$target_alias,;t t
16043 s,@DEFS@,$DEFS,;t t
16044 s,@ECHO_C@,$ECHO_C,;t t
16045 s,@ECHO_N@,$ECHO_N,;t t
16046 s,@ECHO_T@,$ECHO_T,;t t
16047 s,@LIBS@,$LIBS,;t t
16048 s,@OPTIONS@,$OPTIONS,;t t
16049 s,@WIN16_FILES@,$WIN16_FILES,;t t
16050 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
16051 s,@build@,$build,;t t
16052 s,@build_cpu@,$build_cpu,;t t
16053 s,@build_vendor@,$build_vendor,;t t
16054 s,@build_os@,$build_os,;t t
16055 s,@host@,$host,;t t
16056 s,@host_cpu@,$host_cpu,;t t
16057 s,@host_vendor@,$host_vendor,;t t
16058 s,@host_os@,$host_os,;t t
16059 s,@SET_MAKE@,$SET_MAKE,;t t
16060 s,@CC@,$CC,;t t
16061 s,@CFLAGS@,$CFLAGS,;t t
16062 s,@LDFLAGS@,$LDFLAGS,;t t
16063 s,@CPPFLAGS@,$CPPFLAGS,;t t
16064 s,@ac_ct_CC@,$ac_ct_CC,;t t
16065 s,@EXEEXT@,$EXEEXT,;t t
16066 s,@OBJEXT@,$OBJEXT,;t t
16067 s,@CPP@,$CPP,;t t
16068 s,@TOOLSDIR@,$TOOLSDIR,;t t
16069 s,@X_CFLAGS@,$X_CFLAGS,;t t
16070 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16071 s,@X_LIBS@,$X_LIBS,;t t
16072 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16073 s,@YACC@,$YACC,;t t
16074 s,@LEX@,$LEX,;t t
16075 s,@LEXLIB@,$LEXLIB,;t t
16076 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16077 s,@XYACC@,$XYACC,;t t
16078 s,@XLEX@,$XLEX,;t t
16079 s,@LD@,$LD,;t t
16080 s,@ac_ct_LD@,$ac_ct_LD,;t t
16081 s,@AR@,$AR,;t t
16082 s,@ac_ct_AR@,$ac_ct_AR,;t t
16083 s,@RANLIB@,$RANLIB,;t t
16084 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16085 s,@STRIP@,$STRIP,;t t
16086 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16087 s,@WINDRES@,$WINDRES,;t t
16088 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
16089 s,@LN_S@,$LN_S,;t t
16090 s,@LN@,$LN,;t t
16091 s,@C2MAN@,$C2MAN,;t t
16092 s,@LDCONFIG@,$LDCONFIG,;t t
16093 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16094 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16095 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16096 s,@LINT@,$LINT,;t t
16097 s,@LINTFLAGS@,$LINTFLAGS,;t t
16098 s,@DB2HTML@,$DB2HTML,;t t
16099 s,@DB2PDF@,$DB2PDF,;t t
16100 s,@DB2PS@,$DB2PS,;t t
16101 s,@JPEGLIB@,$JPEGLIB,;t t
16102 s,@EGREP@,$EGREP,;t t
16103 s,@XLIB@,$XLIB,;t t
16104 s,@XFILES@,$XFILES,;t t
16105 s,@OPENGLFILES@,$OPENGLFILES,;t t
16106 s,@GLU32FILES@,$GLU32FILES,;t t
16107 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
16108 s,@NASLIBS@,$NASLIBS,;t t
16109 s,@CURSESLIBS@,$CURSESLIBS,;t t
16110 s,@sane_devel@,$sane_devel,;t t
16111 s,@SANELIBS@,$SANELIBS,;t t
16112 s,@SANEINCL@,$SANEINCL,;t t
16113 s,@ft_devel@,$ft_devel,;t t
16114 s,@ft_devel2@,$ft_devel2,;t t
16115 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
16116 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
16117 s,@ARTSLIBS@,$ARTSLIBS,;t t
16118 s,@ARTSINCL@,$ARTSINCL,;t t
16119 s,@ALSALIBS@,$ALSALIBS,;t t
16120 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
16121 s,@DLLEXT@,$DLLEXT,;t t
16122 s,@DLLFLAGS@,$DLLFLAGS,;t t
16123 s,@DLLIBS@,$DLLIBS,;t t
16124 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
16125 s,@LDSHARED@,$LDSHARED,;t t
16126 s,@LIBEXT@,$LIBEXT,;t t
16127 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
16128 s,@DLLTOOL@,$DLLTOOL,;t t
16129 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
16130 s,@DLLWRAP@,$DLLWRAP,;t t
16131 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
16132 s,@CROSSTEST@,$CROSSTEST,;t t
16133 s,@CROSSCC@,$CROSSCC,;t t
16134 s,@LDPATH@,$LDPATH,;t t
16135 s,@CRTLIBS@,$CRTLIBS,;t t
16136 s,@LDD@,$LDD,;t t
16137 s,@ALLOCA@,$ALLOCA,;t t
16138 s,@LIBOBJS@,$LIBOBJS,;t t
16139 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16140 /@MAKE_RULES@/r $MAKE_RULES
16141 s,@MAKE_RULES@,,;t t
16142 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
16143 s,@MAKE_DLL_RULES@,,;t t
16144 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
16145 s,@MAKE_TEST_RULES@,,;t t
16146 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
16147 s,@MAKE_PROG_RULES@,,;t t
16148 CEOF
16149
16150 _ACEOF
16151
16152   cat >>$CONFIG_STATUS <<\_ACEOF
16153   # Split the substitutions into bite-sized pieces for seds with
16154   # small command number limits, like on Digital OSF/1 and HP-UX.
16155   ac_max_sed_lines=48
16156   ac_sed_frag=1 # Number of current file.
16157   ac_beg=1 # First line for current file.
16158   ac_end=$ac_max_sed_lines # Line after last line for current file.
16159   ac_more_lines=:
16160   ac_sed_cmds=
16161   while $ac_more_lines; do
16162     if test $ac_beg -gt 1; then
16163       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16164     else
16165       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16166     fi
16167     if test ! -s $tmp/subs.frag; then
16168       ac_more_lines=false
16169     else
16170       # The purpose of the label and of the branching condition is to
16171       # speed up the sed processing (if there are no `@' at all, there
16172       # is no need to browse any of the substitutions).
16173       # These are the two extra sed commands mentioned above.
16174       (echo ':t
16175   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16176       if test -z "$ac_sed_cmds"; then
16177         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16178       else
16179         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16180       fi
16181       ac_sed_frag=`expr $ac_sed_frag + 1`
16182       ac_beg=$ac_end
16183       ac_end=`expr $ac_end + $ac_max_sed_lines`
16184     fi
16185   done
16186   if test -z "$ac_sed_cmds"; then
16187     ac_sed_cmds=cat
16188   fi
16189 fi # test -n "$CONFIG_FILES"
16190
16191 _ACEOF
16192 cat >>$CONFIG_STATUS <<\_ACEOF
16193 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16194   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16195   case $ac_file in
16196   - | *:- | *:-:* ) # input from stdin
16197         cat >$tmp/stdin
16198         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16199         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16200   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16201         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16202   * )   ac_file_in=$ac_file.in ;;
16203   esac
16204
16205   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16206   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16208          X"$ac_file" : 'X\(//\)[^/]' \| \
16209          X"$ac_file" : 'X\(//\)$' \| \
16210          X"$ac_file" : 'X\(/\)' \| \
16211          .     : '\(.\)' 2>/dev/null ||
16212 echo X"$ac_file" |
16213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16214           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16215           /^X\(\/\/\)$/{ s//\1/; q; }
16216           /^X\(\/\).*/{ s//\1/; q; }
16217           s/.*/./; q'`
16218   { if $as_mkdir_p; then
16219     mkdir -p "$ac_dir"
16220   else
16221     as_dir="$ac_dir"
16222     as_dirs=
16223     while test ! -d "$as_dir"; do
16224       as_dirs="$as_dir $as_dirs"
16225       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16227          X"$as_dir" : 'X\(//\)[^/]' \| \
16228          X"$as_dir" : 'X\(//\)$' \| \
16229          X"$as_dir" : 'X\(/\)' \| \
16230          .     : '\(.\)' 2>/dev/null ||
16231 echo X"$as_dir" |
16232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16233           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16234           /^X\(\/\/\)$/{ s//\1/; q; }
16235           /^X\(\/\).*/{ s//\1/; q; }
16236           s/.*/./; q'`
16237     done
16238     test ! -n "$as_dirs" || mkdir $as_dirs
16239   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16240 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16241    { (exit 1); exit 1; }; }; }
16242
16243   ac_builddir=.
16244
16245 if test "$ac_dir" != .; then
16246   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16247   # A "../" for each directory in $ac_dir_suffix.
16248   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16249 else
16250   ac_dir_suffix= ac_top_builddir=
16251 fi
16252
16253 case $srcdir in
16254   .)  # No --srcdir option.  We are building in place.
16255     ac_srcdir=.
16256     if test -z "$ac_top_builddir"; then
16257        ac_top_srcdir=.
16258     else
16259        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16260     fi ;;
16261   [\\/]* | ?:[\\/]* )  # Absolute path.
16262     ac_srcdir=$srcdir$ac_dir_suffix;
16263     ac_top_srcdir=$srcdir ;;
16264   *) # Relative path.
16265     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16266     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16267 esac
16268 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16269 # absolute.
16270 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16271 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16272 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16273 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16274
16275
16276   case $INSTALL in
16277   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16278   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16279   esac
16280
16281   if test x"$ac_file" != x-; then
16282     { echo "$as_me:$LINENO: creating $ac_file" >&5
16283 echo "$as_me: creating $ac_file" >&6;}
16284     rm -f "$ac_file"
16285   fi
16286   # Let's still pretend it is `configure' which instantiates (i.e., don't
16287   # use $as_me), people would be surprised to read:
16288   #    /* config.h.  Generated by config.status.  */
16289   if test x"$ac_file" = x-; then
16290     configure_input=
16291   else
16292     configure_input="$ac_file.  "
16293   fi
16294   configure_input=$configure_input"Generated from `echo $ac_file_in |
16295                                      sed 's,.*/,,'` by configure."
16296
16297   # First look for the input files in the build tree, otherwise in the
16298   # src tree.
16299   ac_file_inputs=`IFS=:
16300     for f in $ac_file_in; do
16301       case $f in
16302       -) echo $tmp/stdin ;;
16303       [\\/$]*)
16304          # Absolute (can't be DOS-style, as IFS=:)
16305          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16306 echo "$as_me: error: cannot find input file: $f" >&2;}
16307    { (exit 1); exit 1; }; }
16308          echo $f;;
16309       *) # Relative
16310          if test -f "$f"; then
16311            # Build tree
16312            echo $f
16313          elif test -f "$srcdir/$f"; then
16314            # Source tree
16315            echo $srcdir/$f
16316          else
16317            # /dev/null tree
16318            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16319 echo "$as_me: error: cannot find input file: $f" >&2;}
16320    { (exit 1); exit 1; }; }
16321          fi;;
16322       esac
16323     done` || { (exit 1); exit 1; }
16324 _ACEOF
16325 cat >>$CONFIG_STATUS <<_ACEOF
16326   sed "$ac_vpsub
16327 $extrasub
16328 _ACEOF
16329 cat >>$CONFIG_STATUS <<\_ACEOF
16330 :t
16331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16332 s,@configure_input@,$configure_input,;t t
16333 s,@srcdir@,$ac_srcdir,;t t
16334 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16335 s,@top_srcdir@,$ac_top_srcdir,;t t
16336 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16337 s,@builddir@,$ac_builddir,;t t
16338 s,@abs_builddir@,$ac_abs_builddir,;t t
16339 s,@top_builddir@,$ac_top_builddir,;t t
16340 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16341 s,@INSTALL@,$ac_INSTALL,;t t
16342 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16343   rm -f $tmp/stdin
16344   if test x"$ac_file" != x-; then
16345     mv $tmp/out $ac_file
16346   else
16347     cat $tmp/out
16348     rm -f $tmp/out
16349   fi
16350
16351 done
16352 _ACEOF
16353 cat >>$CONFIG_STATUS <<\_ACEOF
16354
16355 #
16356 # CONFIG_HEADER section.
16357 #
16358
16359 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16360 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16361 #
16362 # ac_d sets the value in "#define NAME VALUE" lines.
16363 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16364 ac_dB='[        ].*$,\1#\2'
16365 ac_dC=' '
16366 ac_dD=',;t'
16367 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16368 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16369 ac_uB='$,\1#\2define\3'
16370 ac_uC=' '
16371 ac_uD=',;t'
16372
16373 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16374   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16375   case $ac_file in
16376   - | *:- | *:-:* ) # input from stdin
16377         cat >$tmp/stdin
16378         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16379         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16380   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16381         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16382   * )   ac_file_in=$ac_file.in ;;
16383   esac
16384
16385   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16386 echo "$as_me: creating $ac_file" >&6;}
16387
16388   # First look for the input files in the build tree, otherwise in the
16389   # src tree.
16390   ac_file_inputs=`IFS=:
16391     for f in $ac_file_in; do
16392       case $f in
16393       -) echo $tmp/stdin ;;
16394       [\\/$]*)
16395          # Absolute (can't be DOS-style, as IFS=:)
16396          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16397 echo "$as_me: error: cannot find input file: $f" >&2;}
16398    { (exit 1); exit 1; }; }
16399          echo $f;;
16400       *) # Relative
16401          if test -f "$f"; then
16402            # Build tree
16403            echo $f
16404          elif test -f "$srcdir/$f"; then
16405            # Source tree
16406            echo $srcdir/$f
16407          else
16408            # /dev/null tree
16409            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16410 echo "$as_me: error: cannot find input file: $f" >&2;}
16411    { (exit 1); exit 1; }; }
16412          fi;;
16413       esac
16414     done` || { (exit 1); exit 1; }
16415   # Remove the trailing spaces.
16416   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16417
16418 _ACEOF
16419
16420 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16421 # `conftest.undefs', that substitutes the proper values into
16422 # config.h.in to produce config.h.  The first handles `#define'
16423 # templates, and the second `#undef' templates.
16424 # And first: Protect against being on the right side of a sed subst in
16425 # config.status.  Protect against being in an unquoted here document
16426 # in config.status.
16427 rm -f conftest.defines conftest.undefs
16428 # Using a here document instead of a string reduces the quoting nightmare.
16429 # Putting comments in sed scripts is not portable.
16430 #
16431 # `end' is used to avoid that the second main sed command (meant for
16432 # 0-ary CPP macros) applies to n-ary macro definitions.
16433 # See the Autoconf documentation for `clear'.
16434 cat >confdef2sed.sed <<\_ACEOF
16435 s/[\\&,]/\\&/g
16436 s,[\\$`],\\&,g
16437 t clear
16438 : clear
16439 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16440 t end
16441 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16442 : end
16443 _ACEOF
16444 # If some macros were called several times there might be several times
16445 # the same #defines, which is useless.  Nevertheless, we may not want to
16446 # sort them, since we want the *last* AC-DEFINE to be honored.
16447 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16448 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16449 rm -f confdef2sed.sed
16450
16451 # This sed command replaces #undef with comments.  This is necessary, for
16452 # example, in the case of _POSIX_SOURCE, which is predefined and required
16453 # on some systems where configure will not decide to define it.
16454 cat >>conftest.undefs <<\_ACEOF
16455 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16456 _ACEOF
16457
16458 # Break up conftest.defines because some shells have a limit on the size
16459 # of here documents, and old seds have small limits too (100 cmds).
16460 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16461 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16462 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16463 echo '  :' >>$CONFIG_STATUS
16464 rm -f conftest.tail
16465 while grep . conftest.defines >/dev/null
16466 do
16467   # Write a limited-size here document to $tmp/defines.sed.
16468   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16469   # Speed up: don't consider the non `#define' lines.
16470   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16471   # Work around the forget-to-reset-the-flag bug.
16472   echo 't clr' >>$CONFIG_STATUS
16473   echo ': clr' >>$CONFIG_STATUS
16474   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16475   echo 'CEOF
16476   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16477   rm -f $tmp/in
16478   mv $tmp/out $tmp/in
16479 ' >>$CONFIG_STATUS
16480   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16481   rm -f conftest.defines
16482   mv conftest.tail conftest.defines
16483 done
16484 rm -f conftest.defines
16485 echo '  fi # grep' >>$CONFIG_STATUS
16486 echo >>$CONFIG_STATUS
16487
16488 # Break up conftest.undefs because some shells have a limit on the size
16489 # of here documents, and old seds have small limits too (100 cmds).
16490 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16491 rm -f conftest.tail
16492 while grep . conftest.undefs >/dev/null
16493 do
16494   # Write a limited-size here document to $tmp/undefs.sed.
16495   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16496   # Speed up: don't consider the non `#undef'
16497   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16498   # Work around the forget-to-reset-the-flag bug.
16499   echo 't clr' >>$CONFIG_STATUS
16500   echo ': clr' >>$CONFIG_STATUS
16501   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16502   echo 'CEOF
16503   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16504   rm -f $tmp/in
16505   mv $tmp/out $tmp/in
16506 ' >>$CONFIG_STATUS
16507   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16508   rm -f conftest.undefs
16509   mv conftest.tail conftest.undefs
16510 done
16511 rm -f conftest.undefs
16512
16513 cat >>$CONFIG_STATUS <<\_ACEOF
16514   # Let's still pretend it is `configure' which instantiates (i.e., don't
16515   # use $as_me), people would be surprised to read:
16516   #    /* config.h.  Generated by config.status.  */
16517   if test x"$ac_file" = x-; then
16518     echo "/* Generated by configure.  */" >$tmp/config.h
16519   else
16520     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16521   fi
16522   cat $tmp/in >>$tmp/config.h
16523   rm -f $tmp/in
16524   if test x"$ac_file" != x-; then
16525     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16526       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16527 echo "$as_me: $ac_file is unchanged" >&6;}
16528     else
16529       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16530 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16531          X"$ac_file" : 'X\(//\)[^/]' \| \
16532          X"$ac_file" : 'X\(//\)$' \| \
16533          X"$ac_file" : 'X\(/\)' \| \
16534          .     : '\(.\)' 2>/dev/null ||
16535 echo X"$ac_file" |
16536     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16537           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16538           /^X\(\/\/\)$/{ s//\1/; q; }
16539           /^X\(\/\).*/{ s//\1/; q; }
16540           s/.*/./; q'`
16541       { if $as_mkdir_p; then
16542     mkdir -p "$ac_dir"
16543   else
16544     as_dir="$ac_dir"
16545     as_dirs=
16546     while test ! -d "$as_dir"; do
16547       as_dirs="$as_dir $as_dirs"
16548       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16550          X"$as_dir" : 'X\(//\)[^/]' \| \
16551          X"$as_dir" : 'X\(//\)$' \| \
16552          X"$as_dir" : 'X\(/\)' \| \
16553          .     : '\(.\)' 2>/dev/null ||
16554 echo X"$as_dir" |
16555     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16556           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16557           /^X\(\/\/\)$/{ s//\1/; q; }
16558           /^X\(\/\).*/{ s//\1/; q; }
16559           s/.*/./; q'`
16560     done
16561     test ! -n "$as_dirs" || mkdir $as_dirs
16562   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16563 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16564    { (exit 1); exit 1; }; }; }
16565
16566       rm -f $ac_file
16567       mv $tmp/config.h $ac_file
16568     fi
16569   else
16570     cat $tmp/config.h
16571     rm -f $tmp/config.h
16572   fi
16573 done
16574 _ACEOF
16575 cat >>$CONFIG_STATUS <<\_ACEOF
16576
16577 #
16578 # CONFIG_COMMANDS section.
16579 #
16580 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16581   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16582   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16583   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16584 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16585          X"$ac_dest" : 'X\(//\)[^/]' \| \
16586          X"$ac_dest" : 'X\(//\)$' \| \
16587          X"$ac_dest" : 'X\(/\)' \| \
16588          .     : '\(.\)' 2>/dev/null ||
16589 echo X"$ac_dest" |
16590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16591           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16592           /^X\(\/\/\)$/{ s//\1/; q; }
16593           /^X\(\/\).*/{ s//\1/; q; }
16594           s/.*/./; q'`
16595   ac_builddir=.
16596
16597 if test "$ac_dir" != .; then
16598   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16599   # A "../" for each directory in $ac_dir_suffix.
16600   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16601 else
16602   ac_dir_suffix= ac_top_builddir=
16603 fi
16604
16605 case $srcdir in
16606   .)  # No --srcdir option.  We are building in place.
16607     ac_srcdir=.
16608     if test -z "$ac_top_builddir"; then
16609        ac_top_srcdir=.
16610     else
16611        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16612     fi ;;
16613   [\\/]* | ?:[\\/]* )  # Absolute path.
16614     ac_srcdir=$srcdir$ac_dir_suffix;
16615     ac_top_srcdir=$srcdir ;;
16616   *) # Relative path.
16617     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16618     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16619 esac
16620 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16621 # absolute.
16622 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16623 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16624 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16625 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16626
16627
16628   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16629 echo "$as_me: executing $ac_dest commands" >&6;}
16630   case $ac_dest in
16631     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
16632 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
16633     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
16634 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
16635     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
16636 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
16637     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
16638 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
16639     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
16640 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
16641     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
16642 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
16643     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
16644 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
16645     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
16646 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
16647     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
16648 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
16649     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
16650 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
16651     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
16652 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
16653     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
16654 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
16655     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
16656 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
16657     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
16658 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
16659     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
16660 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
16661     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
16662 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
16663     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
16664 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
16665     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
16666 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
16667     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
16668 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
16669     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
16670 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
16671     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
16672 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
16673     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
16674 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
16675     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
16676 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
16677     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
16678 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
16679     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
16680 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
16681     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
16682 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
16683     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
16684 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
16685     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
16686 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
16687     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
16688 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
16689     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
16690 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
16691     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
16692 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
16693     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
16694 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
16695     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
16696 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
16697     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
16698 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
16699   esac
16700 done
16701 _ACEOF
16702
16703 cat >>$CONFIG_STATUS <<\_ACEOF
16704
16705 { (exit 0); exit 0; }
16706 _ACEOF
16707 chmod +x $CONFIG_STATUS
16708 ac_clean_files=$ac_clean_files_save
16709
16710
16711 # configure is writing to config.log, and then calls config.status.
16712 # config.status does its own redirection, appending to config.log.
16713 # Unfortunately, on DOS this fails, as config.log is still kept open
16714 # by configure, so config.status won't be able to write to it; its
16715 # output is simply discarded.  So we exec the FD to /dev/null,
16716 # effectively closing config.log, so it can be properly (re)opened and
16717 # appended to by config.status.  When coming back to configure, we
16718 # need to make the FD available again.
16719 if test "$no_create" != yes; then
16720   ac_cs_success=:
16721   ac_config_status_args=
16722   test "$silent" = yes &&
16723     ac_config_status_args="$ac_config_status_args --quiet"
16724   exec 5>/dev/null
16725   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16726   exec 5>>config.log
16727   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16728   # would make configure fail if this is the last instruction.
16729   $ac_cs_success || { (exit 1); exit 1; }
16730 fi
16731
16732
16733 if test "$have_x" = "no"
16734 then
16735   echo
16736   echo "*** Warning: X development files not found. Wine will be built without"
16737   echo "*** X support, which currently does not work, and would probably not be"
16738   echo "*** what you want anyway. You will need to install devel packages of"
16739   echo "*** Xlib/Xfree86 at the very least."
16740 fi
16741
16742 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
16743 then
16744   echo
16745   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
16746   echo "*** terminal resize support. Consider upgrading ncurses."
16747 fi
16748
16749 if test "$wine_cv_libc_reentrant" = "no"
16750 then
16751   echo
16752   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
16753   echo "*** threading support. Consider upgrading libc to a more recent"
16754   echo "*** reentrant version of libc."
16755 fi
16756
16757 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
16758 then
16759   echo
16760   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
16761   echo "*** applications won't work properly. You should upgrade your X11 library."
16762 fi
16763
16764 if test "$wine_cv_opengl_version_OK" = "no"
16765 then
16766   echo
16767   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
16768   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
16769 fi
16770
16771 if test "$wine_cv_msg_freetype" = "yes"
16772 then
16773   echo
16774   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
16775   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
16776   echo "*** freetype-devel package (or its equivalent on your distribution) to"
16777   echo "*** enable Wine to use TrueType fonts."
16778 fi
16779
16780 echo
16781 echo "Configure finished.  Do 'make depend && make' to compile Wine."
16782 echo
16783