Use a new DLLDEFS variable in configure/Makefiles to actually remove
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040914.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='Wine'
271 PACKAGE_TARNAME='wine'
272 PACKAGE_VERSION='20040914'
273 PACKAGE_STRING='Wine 20040914'
274 PACKAGE_BUGREPORT='wine-devel@winehq.org'
275
276 ac_unique_file="server/atom.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 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 WIN16_FILES WIN16_INSTALL DLLDEFS 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 CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
783
784 #
785 # Report the --help message.
786 #
787 if test "$ac_init_help" = "long"; then
788   # Omit some internal or obsolete options to make the list less imposing.
789   # This message is too long to be a string in the A/UX 3.1 sh.
790   cat <<_ACEOF
791 \`configure' configures Wine 20040914 to adapt to many kinds of systems.
792
793 Usage: $0 [OPTION]... [VAR=VALUE]...
794
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798 Defaults for the options are specified in brackets.
799
800 Configuration:
801   -h, --help              display this help and exit
802       --help=short        display options specific to this package
803       --help=recursive    display the short help of all the included packages
804   -V, --version           display version information and exit
805   -q, --quiet, --silent   do not print \`checking...' messages
806       --cache-file=FILE   cache test results in FILE [disabled]
807   -C, --config-cache      alias for \`--cache-file=config.cache'
808   -n, --no-create         do not create output files
809       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811 _ACEOF
812
813   cat <<_ACEOF
814 Installation directories:
815   --prefix=PREFIX         install architecture-independent files in PREFIX
816                           [$ac_default_prefix]
817   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                           [PREFIX]
819
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
824
825 For better control, use the options below.
826
827 Fine tuning of the installation directories:
828   --bindir=DIR           user executables [EPREFIX/bin]
829   --sbindir=DIR          system admin executables [EPREFIX/sbin]
830   --libexecdir=DIR       program executables [EPREFIX/libexec]
831   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835   --libdir=DIR           object code libraries [EPREFIX/lib]
836   --includedir=DIR       C header files [PREFIX/include]
837   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838   --infodir=DIR          info documentation [PREFIX/info]
839   --mandir=DIR           man documentation [PREFIX/man]
840 _ACEOF
841
842   cat <<\_ACEOF
843
844 X features:
845   --x-includes=DIR    X include files are in DIR
846   --x-libraries=DIR   X library files are in DIR
847
848 System types:
849   --build=BUILD     configure for building on BUILD [guessed]
850   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855   case $ac_init_help in
856      short | recursive ) echo "Configuration of Wine 20040914:";;
857    esac
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --disable-win16         do not include Win16 support
864   --disable-debug         compile out all debugging messages
865   --disable-trace         compile out TRACE messages
866   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
867                           binaries)
868
869 Optional Packages:
870   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
871   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
872   --without-opengl        do not use OpenGL
873   --without-curses        do not use curses
874   --with-wine-tools=<dir> use Wine tools from directory <dir>
875   --with-x                use the X Window System
876
877 Some influential environment variables:
878   CC          C compiler command
879   CFLAGS      C compiler flags
880   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
881               nonstandard directory <lib dir>
882   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
883               headers in a nonstandard directory <include dir>
884   CXX         C++ compiler command
885   CXXFLAGS    C++ compiler flags
886   CPP         C preprocessor
887
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
890
891 Report bugs to <wine-devel@winehq.org>.
892 _ACEOF
893 fi
894
895 if test "$ac_init_help" = "recursive"; then
896   # If there are subdirs, report their specific --help.
897   ac_popdir=`pwd`
898   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899     test -d $ac_dir || continue
900     ac_builddir=.
901
902 if test "$ac_dir" != .; then
903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904   # A "../" for each directory in $ac_dir_suffix.
905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907   ac_dir_suffix= ac_top_builddir=
908 fi
909
910 case $srcdir in
911   .)  # No --srcdir option.  We are building in place.
912     ac_srcdir=.
913     if test -z "$ac_top_builddir"; then
914        ac_top_srcdir=.
915     else
916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917     fi ;;
918   [\\/]* | ?:[\\/]* )  # Absolute path.
919     ac_srcdir=$srcdir$ac_dir_suffix;
920     ac_top_srcdir=$srcdir ;;
921   *) # Relative path.
922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
925
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
930 *)
931   case "$ac_dir" in
932   .) ac_abs_builddir=`pwd`;;
933   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934   *) ac_abs_builddir=`pwd`/"$ac_dir";;
935   esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *)
940   case ${ac_top_builddir}. in
941   .) ac_abs_top_builddir=$ac_abs_builddir;;
942   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944   esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
948 *)
949   case $ac_srcdir in
950   .) ac_abs_srcdir=$ac_abs_builddir;;
951   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953   esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *)
958   case $ac_top_srcdir in
959   .) ac_abs_top_srcdir=$ac_abs_builddir;;
960   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962   esac;;
963 esac
964
965     cd $ac_dir
966     # Check for guested configure; otherwise get Cygnus style configure.
967     if test -f $ac_srcdir/configure.gnu; then
968       echo
969       $SHELL $ac_srcdir/configure.gnu  --help=recursive
970     elif test -f $ac_srcdir/configure; then
971       echo
972       $SHELL $ac_srcdir/configure  --help=recursive
973     elif test -f $ac_srcdir/configure.ac ||
974            test -f $ac_srcdir/configure.in; then
975       echo
976       $ac_configure --help
977     else
978       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979     fi
980     cd "$ac_popdir"
981   done
982 fi
983
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986   cat <<\_ACEOF
987 Wine configure 20040914
988 generated by GNU Autoconf 2.59
989
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by Wine $as_me 20040914, which was
1002 generated by GNU Autoconf 2.59.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338           ac_config_headers="$ac_config_headers include/config.h"
1339
1340 ac_aux_dir=
1341 for ac_dir in tools $srcdir/tools; do
1342   if test -f $ac_dir/install-sh; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/install-sh -c"
1345     break
1346   elif test -f $ac_dir/install.sh; then
1347     ac_aux_dir=$ac_dir
1348     ac_install_sh="$ac_aux_dir/install.sh -c"
1349     break
1350   elif test -f $ac_dir/shtool; then
1351     ac_aux_dir=$ac_dir
1352     ac_install_sh="$ac_aux_dir/shtool install -c"
1353     break
1354   fi
1355 done
1356 if test -z "$ac_aux_dir"; then
1357   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1359    { (exit 1); exit 1; }; }
1360 fi
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1364
1365
1366
1367 # Check whether --enable-win16 or --disable-win16 was given.
1368 if test "${enable_win16+set}" = set; then
1369   enableval="$enable_win16"
1370
1371 fi;
1372 # Check whether --enable-debug or --disable-debug was given.
1373 if test "${enable_debug+set}" = set; then
1374   enableval="$enable_debug"
1375
1376 fi;
1377 # Check whether --enable-trace or --disable-trace was given.
1378 if test "${enable_trace+set}" = set; then
1379   enableval="$enable_trace"
1380
1381 fi;
1382 # Check whether --enable-win64 or --disable-win64 was given.
1383 if test "${enable_win64+set}" = set; then
1384   enableval="$enable_win64"
1385
1386 fi;
1387
1388
1389 # Check whether --with-opengl or --without-opengl was given.
1390 if test "${with_opengl+set}" = set; then
1391   withval="$with_opengl"
1392
1393 fi;
1394
1395 # Check whether --with-curses or --without-curses was given.
1396 if test "${with_curses+set}" = set; then
1397   withval="$with_curses"
1398
1399 fi;
1400
1401 # Check whether --with-wine-tools or --without-wine-tools was given.
1402 if test "${with_wine_tools+set}" = set; then
1403   withval="$with_wine_tools"
1404
1405 fi;
1406
1407 WIN16_FILES="\$(WIN16_FILES)"
1408
1409 WIN16_INSTALL="\$(WIN16_INSTALL)"
1410
1411 if test "x$enable_win16" = "xno"
1412 then
1413   WIN16_FILES=""
1414   WIN16_INSTALL=""
1415 fi
1416
1417 DLLDEFS=""
1418
1419 if test "x$enable_debug" = "xno"
1420 then
1421   DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
1422 fi
1423 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1424 then
1425   DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
1426 fi
1427
1428
1429 # Make sure we can run config.sub.
1430 $ac_config_sub sun4 >/dev/null 2>&1 ||
1431   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1432 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1433    { (exit 1); exit 1; }; }
1434
1435 echo "$as_me:$LINENO: checking build system type" >&5
1436 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1437 if test "${ac_cv_build+set}" = set; then
1438   echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440   ac_cv_build_alias=$build_alias
1441 test -z "$ac_cv_build_alias" &&
1442   ac_cv_build_alias=`$ac_config_guess`
1443 test -z "$ac_cv_build_alias" &&
1444   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1445 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1446    { (exit 1); exit 1; }; }
1447 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1448   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1449 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1450    { (exit 1); exit 1; }; }
1451
1452 fi
1453 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1454 echo "${ECHO_T}$ac_cv_build" >&6
1455 build=$ac_cv_build
1456 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1457 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1458 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459
1460
1461 echo "$as_me:$LINENO: checking host system type" >&5
1462 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1463 if test "${ac_cv_host+set}" = set; then
1464   echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466   ac_cv_host_alias=$host_alias
1467 test -z "$ac_cv_host_alias" &&
1468   ac_cv_host_alias=$ac_cv_build_alias
1469 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1470   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1471 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1472    { (exit 1); exit 1; }; }
1473
1474 fi
1475 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1476 echo "${ECHO_T}$ac_cv_host" >&6
1477 host=$ac_cv_host
1478 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1479 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1480 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481
1482
1483 case $host in
1484   x86_64*linux*)
1485     if test "x$enable_win64" != "xyes"
1486     then
1487       test -n "$CC" || CC="gcc -m32"
1488       test -n "$LD" || LD="ld -m elf_i386"
1489       test -n "$AS" || AS="as --32"
1490     fi
1491     ;;
1492 esac
1493
1494 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1495 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1496 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1497 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1498   echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500   cat >conftest.make <<\_ACEOF
1501 all:
1502         @echo 'ac_maketemp="$(MAKE)"'
1503 _ACEOF
1504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1505 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1506 if test -n "$ac_maketemp"; then
1507   eval ac_cv_prog_make_${ac_make}_set=yes
1508 else
1509   eval ac_cv_prog_make_${ac_make}_set=no
1510 fi
1511 rm -f conftest.make
1512 fi
1513 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1514   echo "$as_me:$LINENO: result: yes" >&5
1515 echo "${ECHO_T}yes" >&6
1516   SET_MAKE=
1517 else
1518   echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520   SET_MAKE="MAKE=${MAKE-make}"
1521 fi
1522
1523 ac_ext=c
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$CC"; then
1537   ac_cv_prog_CC="$CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 CC=$ac_cv_prog_CC
1556 if test -n "$CC"; then
1557   echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564 fi
1565 if test -z "$ac_cv_prog_CC"; then
1566   ac_ct_CC=$CC
1567   # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   if test -n "$ac_ct_CC"; then
1575   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   for ac_exec_ext in '' $ac_executable_extensions; do
1583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584     ac_cv_prog_ac_ct_CC="gcc"
1585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586     break 2
1587   fi
1588 done
1589 done
1590
1591 fi
1592 fi
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602   CC=$ac_ct_CC
1603 else
1604   CC="$ac_cv_prog_CC"
1605 fi
1606
1607 if test -z "$CC"; then
1608   if test -n "$ac_tool_prefix"; then
1609   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   if test -n "$CC"; then
1617   ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622   IFS=$as_save_IFS
1623   test -z "$as_dir" && as_dir=.
1624   for ac_exec_ext in '' $ac_executable_extensions; do
1625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626     ac_cv_prog_CC="${ac_tool_prefix}cc"
1627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628     break 2
1629   fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637   echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640   echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 fi
1645 if test -z "$ac_cv_prog_CC"; then
1646   ac_ct_CC=$CC
1647   # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$ac_ct_CC"; then
1655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   for ac_exec_ext in '' $ac_executable_extensions; do
1663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664     ac_cv_prog_ac_ct_CC="cc"
1665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666     break 2
1667   fi
1668 done
1669 done
1670
1671 fi
1672 fi
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682   CC=$ac_ct_CC
1683 else
1684   CC="$ac_cv_prog_CC"
1685 fi
1686
1687 fi
1688 if test -z "$CC"; then
1689   # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$CC"; then
1697   ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699   ac_prog_rejected=no
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708        ac_prog_rejected=yes
1709        continue
1710      fi
1711     ac_cv_prog_CC="cc"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 if test $ac_prog_rejected = yes; then
1719   # We found a bogon in the path, so make sure we never use it.
1720   set dummy $ac_cv_prog_CC
1721   shift
1722   if test $# != 0; then
1723     # We chose a different compiler from the bogus one.
1724     # However, it has the same basename, so the bogon will be chosen
1725     # first if we set CC to just the basename; use the full file name.
1726     shift
1727     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728   fi
1729 fi
1730 fi
1731 fi
1732 CC=$ac_cv_prog_CC
1733 if test -n "$CC"; then
1734   echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1736 else
1737   echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 fi
1740
1741 fi
1742 if test -z "$CC"; then
1743   if test -n "$ac_tool_prefix"; then
1744   for ac_prog in cl
1745   do
1746     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$CC"; then
1754   ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 CC=$ac_cv_prog_CC
1773 if test -n "$CC"; then
1774   echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781     test -n "$CC" && break
1782   done
1783 fi
1784 if test -z "$CC"; then
1785   ac_ct_CC=$CC
1786   for ac_prog in cl
1787 do
1788   # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$ac_ct_CC"; then
1796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_ac_ct_CC="$ac_prog"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823   test -n "$ac_ct_CC" && break
1824 done
1825
1826   CC=$ac_ct_CC
1827 fi
1828
1829 fi
1830
1831
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836    { (exit 1); exit 1; }; }
1837
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840      "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843   (eval $ac_compiler --version </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848   (eval $ac_compiler -v </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853   (eval $ac_compiler -V </dev/null >&5) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }
1857
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h.  */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h.  */
1864
1865 int
1866 main ()
1867 {
1868
1869   ;
1870   return 0;
1871 }
1872 _ACEOF
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1877 # of exeext.
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882   (eval $ac_link_default) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; then
1886   # Find the output, starting from the most likely.  This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # resort.
1889
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892 ac_cv_exeext=
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1895 do
1896   test -f "$ac_file" || continue
1897   case $ac_file in
1898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899         ;;
1900     conftest.$ac_ext )
1901         # This is the source file.
1902         ;;
1903     [ab].out )
1904         # We found the default executable, but exeext='' is most
1905         # certainly right.
1906         break;;
1907     *.* )
1908         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909         # FIXME: I believe we export ac_cv_exeext for Libtool,
1910         # but it would be cool to find out if it's true.  Does anybody
1911         # maintain Libtool? --akim.
1912         export ac_cv_exeext
1913         break;;
1914     * )
1915         break;;
1916   esac
1917 done
1918 else
1919   echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926    { (exit 77); exit 77; }; }
1927 fi
1928
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1932
1933 # Check the compiler produces executables we can run.  If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940   if { ac_try='./$ac_file'
1941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942   (eval $ac_try) 2>&5
1943   ac_status=$?
1944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945   (exit $ac_status); }; }; then
1946     cross_compiling=no
1947   else
1948     if test "$cross_compiling" = maybe; then
1949         cross_compiling=yes
1950     else
1951         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957    { (exit 1); exit 1; }; }
1958     fi
1959   fi
1960 fi
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1963
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run.  If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1972
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976   (eval $ac_link) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }; then
1980   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 # `rm'.
1984 for ac_file in conftest.exe conftest conftest.*; do
1985   test -f "$ac_file" || continue
1986   case $ac_file in
1987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989           export ac_cv_exeext
1990           break;;
1991     * ) break;;
1992   esac
1993 done
1994 else
1995   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2005
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2008 ac_exeext=$EXEEXT
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h.  */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h.  */
2020
2021 int
2022 main ()
2023 {
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031   (eval $ac_compile) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }; then
2035   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036   case $ac_file in
2037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039        break;;
2040   esac
2041 done
2042 else
2043   echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050    { (exit 1); exit 1; }; }
2051 fi
2052
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2054 fi
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2058 ac_objext=$OBJEXT
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 /* confdefs.h.  */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h.  */
2070
2071 int
2072 main ()
2073 {
2074 #ifndef __GNUC__
2075        choke me
2076 #endif
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084   (eval $ac_compile) 2>conftest.er1
2085   ac_status=$?
2086   grep -v '^ *+' conftest.er1 >conftest.err
2087   rm -f conftest.er1
2088   cat conftest.err >&5
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); } &&
2091          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093   (eval $ac_try) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }; } &&
2097          { ac_try='test -s conftest.$ac_objext'
2098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099   (eval $ac_try) 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }; }; then
2103   ac_compiler_gnu=yes
2104 else
2105   echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2107
2108 ac_compiler_gnu=no
2109 fi
2110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2112
2113 fi
2114 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2115 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2116 GCC=`test $ac_compiler_gnu = yes && echo yes`
2117 ac_test_CFLAGS=${CFLAGS+set}
2118 ac_save_CFLAGS=$CFLAGS
2119 CFLAGS="-g"
2120 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2122 if test "${ac_cv_prog_cc_g+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131
2132 int
2133 main ()
2134 {
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>conftest.er1
2143   ac_status=$?
2144   grep -v '^ *+' conftest.er1 >conftest.err
2145   rm -f conftest.er1
2146   cat conftest.err >&5
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); } &&
2149          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151   (eval $ac_try) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; } &&
2155          { ac_try='test -s conftest.$ac_objext'
2156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157   (eval $ac_try) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; }; then
2161   ac_cv_prog_cc_g=yes
2162 else
2163   echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166 ac_cv_prog_cc_g=no
2167 fi
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169 fi
2170 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 if test "$ac_test_CFLAGS" = set; then
2173   CFLAGS=$ac_save_CFLAGS
2174 elif test $ac_cv_prog_cc_g = yes; then
2175   if test "$GCC" = yes; then
2176     CFLAGS="-g -O2"
2177   else
2178     CFLAGS="-g"
2179   fi
2180 else
2181   if test "$GCC" = yes; then
2182     CFLAGS="-O2"
2183   else
2184     CFLAGS=
2185   fi
2186 fi
2187 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   ac_cv_prog_cc_stdc=no
2193 ac_save_CC=$CC
2194 cat >conftest.$ac_ext <<_ACEOF
2195 /* confdefs.h.  */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h.  */
2200 #include <stdarg.h>
2201 #include <stdio.h>
2202 #include <sys/types.h>
2203 #include <sys/stat.h>
2204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2205 struct buf { int x; };
2206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207 static char *e (p, i)
2208      char **p;
2209      int i;
2210 {
2211   return p[i];
2212 }
2213 static char *f (char * (*g) (char **, int), char **p, ...)
2214 {
2215   char *s;
2216   va_list v;
2217   va_start (v,p);
2218   s = g (p, va_arg (v,int));
2219   va_end (v);
2220   return s;
2221 }
2222
2223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2224    function prototypes and stuff, but not '\xHH' hex character constants.
2225    These don't provoke an error unfortunately, instead are silently treated
2226    as 'x'.  The following induces an error, until -std1 is added to get
2227    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2228    array size at least.  It's necessary to write '\x00'==0 to get something
2229    that's true only with -std1.  */
2230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2231
2232 int test (int i, double x);
2233 struct s1 {int (*f) (int a);};
2234 struct s2 {int (*f) (double a);};
2235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 int argc;
2237 char **argv;
2238 int
2239 main ()
2240 {
2241 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 # Don't try gcc -ansi; that turns off useful extensions and
2247 # breaks some systems' header files.
2248 # AIX                   -qlanglvl=ansi
2249 # Ultrix and OSF/1      -std1
2250 # HP-UX 10.20 and later -Ae
2251 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2252 # SVR4                  -Xc -D__EXTENSIONS__
2253 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2254 do
2255   CC="$ac_save_CC $ac_arg"
2256   rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258   (eval $ac_compile) 2>conftest.er1
2259   ac_status=$?
2260   grep -v '^ *+' conftest.er1 >conftest.err
2261   rm -f conftest.er1
2262   cat conftest.err >&5
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); } &&
2265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267   (eval $ac_try) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   ac_cv_prog_cc_stdc=$ac_arg
2278 break
2279 else
2280   echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 fi
2284 rm -f conftest.err conftest.$ac_objext
2285 done
2286 rm -f conftest.$ac_ext conftest.$ac_objext
2287 CC=$ac_save_CC
2288
2289 fi
2290
2291 case "x$ac_cv_prog_cc_stdc" in
2292   x|xno)
2293     echo "$as_me:$LINENO: result: none needed" >&5
2294 echo "${ECHO_T}none needed" >&6 ;;
2295   *)
2296     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2298     CC="$CC $ac_cv_prog_cc_stdc" ;;
2299 esac
2300
2301 # Some people use a C++ compiler to compile C.  Since we use `exit',
2302 # in C++ we need to declare it.  In case someone uses the same compiler
2303 # for both compiling C and C++ we need to have the C++ compiler decide
2304 # the declaration of exit, since it's the most demanding environment.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #ifndef __cplusplus
2307   choke me
2308 #endif
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312   (eval $ac_compile) 2>conftest.er1
2313   ac_status=$?
2314   grep -v '^ *+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } &&
2319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; } &&
2325          { ac_try='test -s conftest.$ac_objext'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331   for ac_declaration in \
2332    '' \
2333    'extern "C" void std::exit (int) throw (); using std::exit;' \
2334    'extern "C" void std::exit (int); using std::exit;' \
2335    'extern "C" void exit (int) throw ();' \
2336    'extern "C" void exit (int);' \
2337    'void exit (int);'
2338 do
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345 $ac_declaration
2346 #include <stdlib.h>
2347 int
2348 main ()
2349 {
2350 exit (42);
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357   (eval $ac_compile) 2>conftest.er1
2358   ac_status=$?
2359   grep -v '^ *+' conftest.er1 >conftest.err
2360   rm -f conftest.er1
2361   cat conftest.err >&5
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; } &&
2370          { ac_try='test -s conftest.$ac_objext'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; }; then
2376   :
2377 else
2378   echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 continue
2382 fi
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384   cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h.  */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h.  */
2390 $ac_declaration
2391 int
2392 main ()
2393 {
2394 exit (42);
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401   (eval $ac_compile) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; } &&
2414          { ac_try='test -s conftest.$ac_objext'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   break
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 fi
2426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427 done
2428 rm -f conftest*
2429 if test -n "$ac_declaration"; then
2430   echo '#ifdef __cplusplus' >>confdefs.h
2431   echo $ac_declaration      >>confdefs.h
2432   echo '#endif'             >>confdefs.h
2433 fi
2434
2435 else
2436   echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 fi
2440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441 ac_ext=c
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446
2447 ac_ext=cc
2448 ac_cpp='$CXXCPP $CPPFLAGS'
2449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2452 if test -n "$ac_tool_prefix"; then
2453   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2454   do
2455     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2457 echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2459 if test "${ac_cv_prog_CXX+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   if test -n "$CXX"; then
2463   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468   IFS=$as_save_IFS
2469   test -z "$as_dir" && as_dir=.
2470   for ac_exec_ext in '' $ac_executable_extensions; do
2471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474     break 2
2475   fi
2476 done
2477 done
2478
2479 fi
2480 fi
2481 CXX=$ac_cv_prog_CXX
2482 if test -n "$CXX"; then
2483   echo "$as_me:$LINENO: result: $CXX" >&5
2484 echo "${ECHO_T}$CXX" >&6
2485 else
2486   echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2488 fi
2489
2490     test -n "$CXX" && break
2491   done
2492 fi
2493 if test -z "$CXX"; then
2494   ac_ct_CXX=$CXX
2495   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2496 do
2497   # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   if test -n "$ac_ct_CXX"; then
2505   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510   IFS=$as_save_IFS
2511   test -z "$as_dir" && as_dir=.
2512   for ac_exec_ext in '' $ac_executable_extensions; do
2513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514     ac_cv_prog_ac_ct_CXX="$ac_prog"
2515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516     break 2
2517   fi
2518 done
2519 done
2520
2521 fi
2522 fi
2523 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2524 if test -n "$ac_ct_CXX"; then
2525   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2526 echo "${ECHO_T}$ac_ct_CXX" >&6
2527 else
2528   echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2530 fi
2531
2532   test -n "$ac_ct_CXX" && break
2533 done
2534 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2535
2536   CXX=$ac_ct_CXX
2537 fi
2538
2539
2540 # Provide some information about the compiler.
2541 echo "$as_me:$LINENO:" \
2542      "checking for C++ compiler version" >&5
2543 ac_compiler=`set X $ac_compile; echo $2`
2544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2545   (eval $ac_compiler --version </dev/null >&5) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }
2549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2550   (eval $ac_compiler -v </dev/null >&5) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }
2554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2555   (eval $ac_compiler -V </dev/null >&5) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }
2559
2560 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2561 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2562 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 int
2573 main ()
2574 {
2575 #ifndef __GNUC__
2576        choke me
2577 #endif
2578
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585   (eval $ac_compile) 2>conftest.er1
2586   ac_status=$?
2587   grep -v '^ *+' conftest.er1 >conftest.err
2588   rm -f conftest.er1
2589   cat conftest.err >&5
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); } &&
2592          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604   ac_compiler_gnu=yes
2605 else
2606   echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 ac_compiler_gnu=no
2610 fi
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2613
2614 fi
2615 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2616 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2617 GXX=`test $ac_compiler_gnu = yes && echo yes`
2618 ac_test_CXXFLAGS=${CXXFLAGS+set}
2619 ac_save_CXXFLAGS=$CXXFLAGS
2620 CXXFLAGS="-g"
2621 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cxx_g+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h.  */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h.  */
2632
2633 int
2634 main ()
2635 {
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>conftest.er1
2644   ac_status=$?
2645   grep -v '^ *+' conftest.er1 >conftest.err
2646   rm -f conftest.er1
2647   cat conftest.err >&5
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; } &&
2656          { ac_try='test -s conftest.$ac_objext'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; }; then
2662   ac_cv_prog_cxx_g=yes
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 ac_cv_prog_cxx_g=no
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 fi
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2673 if test "$ac_test_CXXFLAGS" = set; then
2674   CXXFLAGS=$ac_save_CXXFLAGS
2675 elif test $ac_cv_prog_cxx_g = yes; then
2676   if test "$GXX" = yes; then
2677     CXXFLAGS="-g -O2"
2678   else
2679     CXXFLAGS="-g"
2680   fi
2681 else
2682   if test "$GXX" = yes; then
2683     CXXFLAGS="-O2"
2684   else
2685     CXXFLAGS=
2686   fi
2687 fi
2688 for ac_declaration in \
2689    '' \
2690    'extern "C" void std::exit (int) throw (); using std::exit;' \
2691    'extern "C" void std::exit (int); using std::exit;' \
2692    'extern "C" void exit (int) throw ();' \
2693    'extern "C" void exit (int);' \
2694    'void exit (int);'
2695 do
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702 $ac_declaration
2703 #include <stdlib.h>
2704 int
2705 main ()
2706 {
2707 exit (42);
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714   (eval $ac_compile) 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   :
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 continue
2739 fi
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741   cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747 $ac_declaration
2748 int
2749 main ()
2750 {
2751 exit (42);
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758   (eval $ac_compile) 2>conftest.er1
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
2762   cat conftest.err >&5
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; } &&
2771          { ac_try='test -s conftest.$ac_objext'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   break
2778 else
2779   echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 fi
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 done
2785 rm -f conftest*
2786 if test -n "$ac_declaration"; then
2787   echo '#ifdef __cplusplus' >>confdefs.h
2788   echo $ac_declaration      >>confdefs.h
2789   echo '#endif'             >>confdefs.h
2790 fi
2791
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798 if test -n "$ac_tool_prefix"; then
2799   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   if test -n "$CPPBIN"; then
2807   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814   for ac_exec_ext in '' $ac_executable_extensions; do
2815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821 done
2822
2823 fi
2824 fi
2825 CPPBIN=$ac_cv_prog_CPPBIN
2826 if test -n "$CPPBIN"; then
2827   echo "$as_me:$LINENO: result: $CPPBIN" >&5
2828 echo "${ECHO_T}$CPPBIN" >&6
2829 else
2830   echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832 fi
2833
2834 fi
2835 if test -z "$ac_cv_prog_CPPBIN"; then
2836   ac_ct_CPPBIN=$CPPBIN
2837   # Extract the first word of "cpp", so it can be a program name with args.
2838 set dummy cpp; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   if test -n "$ac_ct_CPPBIN"; then
2845   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852   for ac_exec_ext in '' $ac_executable_extensions; do
2853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854     ac_cv_prog_ac_ct_CPPBIN="cpp"
2855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859 done
2860
2861   test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2862 fi
2863 fi
2864 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2865 if test -n "$ac_ct_CPPBIN"; then
2866   echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2867 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2868 else
2869   echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2871 fi
2872
2873   CPPBIN=$ac_ct_CPPBIN
2874 else
2875   CPPBIN="$ac_cv_prog_CPPBIN"
2876 fi
2877
2878
2879 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2880 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2881 if test "${wine_cv_toolsdir+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   if test -z "$with_wine_tools"; then
2885      if test "$cross_compiling" = "yes"; then
2886        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2887 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2888    { (exit 1); exit 1; }; }
2889      else
2890        wine_cv_toolsdir="\$(TOPOBJDIR)"
2891      fi
2892    elif test -d "$with_wine_tools/tools/winebuild"; then
2893      case $with_wine_tools in
2894        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2895        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2896      esac
2897    else
2898      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2899 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2900    { (exit 1); exit 1; }; }
2901    fi
2902 fi
2903 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2904 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2905 TOOLSDIR=$wine_cv_toolsdir
2906
2907
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2918   CPP=
2919 fi
2920 if test -z "$CPP"; then
2921   if test "${ac_cv_prog_CPP+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924       # Double quotes because CPP needs to be expanded
2925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926     do
2927       ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2929 do
2930   # Use a header file that comes with gcc, so configuring glibc
2931   # with a fresh cross-compiler works.
2932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933   # <limits.h> exists even on freestanding compilers.
2934   # On the NeXT, cc -E runs the code through the compiler's parser,
2935   # not just through cpp. "Syntax error" is here to catch this case.
2936   cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947                      Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null; then
2957   if test -s conftest.err; then
2958     ac_cpp_err=$ac_c_preproc_warn_flag
2959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960   else
2961     ac_cpp_err=
2962   fi
2963 else
2964   ac_cpp_err=yes
2965 fi
2966 if test -z "$ac_cpp_err"; then
2967   :
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972   # Broken: fails on valid input.
2973 continue
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976
2977   # OK, works on sane cases.  Now check whether non-existent headers
2978   # can be detected and how.
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } >/dev/null; then
2995   if test -s conftest.err; then
2996     ac_cpp_err=$ac_c_preproc_warn_flag
2997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998   else
2999     ac_cpp_err=
3000   fi
3001 else
3002   ac_cpp_err=yes
3003 fi
3004 if test -z "$ac_cpp_err"; then
3005   # Broken: success on invalid input.
3006 continue
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011   # Passes both tests.
3012 ac_preproc_ok=:
3013 break
3014 fi
3015 rm -f conftest.err conftest.$ac_ext
3016
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3021   break
3022 fi
3023
3024     done
3025     ac_cv_prog_CPP=$CPP
3026
3027 fi
3028   CPP=$ac_cv_prog_CPP
3029 else
3030   ac_cv_prog_CPP=$CPP
3031 fi
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3034 ac_preproc_ok=false
3035 for ac_c_preproc_warn_flag in '' yes
3036 do
3037   # Use a header file that comes with gcc, so configuring glibc
3038   # with a fresh cross-compiler works.
3039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040   # <limits.h> exists even on freestanding compilers.
3041   # On the NeXT, cc -E runs the code through the compiler's parser,
3042   # not just through cpp. "Syntax error" is here to catch this case.
3043   cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054                      Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } >/dev/null; then
3064   if test -s conftest.err; then
3065     ac_cpp_err=$ac_c_preproc_warn_flag
3066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067   else
3068     ac_cpp_err=
3069   fi
3070 else
3071   ac_cpp_err=yes
3072 fi
3073 if test -z "$ac_cpp_err"; then
3074   :
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Broken: fails on valid input.
3080 continue
3081 fi
3082 rm -f conftest.err conftest.$ac_ext
3083
3084   # OK, works on sane cases.  Now check whether non-existent headers
3085   # can be detected and how.
3086   cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096   ac_status=$?
3097   grep -v '^ *+' conftest.er1 >conftest.err
3098   rm -f conftest.er1
3099   cat conftest.err >&5
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); } >/dev/null; then
3102   if test -s conftest.err; then
3103     ac_cpp_err=$ac_c_preproc_warn_flag
3104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105   else
3106     ac_cpp_err=
3107   fi
3108 else
3109   ac_cpp_err=yes
3110 fi
3111 if test -z "$ac_cpp_err"; then
3112   # Broken: success on invalid input.
3113 continue
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118   # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3121 fi
3122 rm -f conftest.err conftest.$ac_ext
3123
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3128   :
3129 else
3130   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134    { (exit 1); exit 1; }; }
3135 fi
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144
3145 if test "x$ac_path_x_has_been_run" != xyes; then
3146   echo "$as_me:$LINENO: checking for X" >&5
3147 echo $ECHO_N "checking for X... $ECHO_C" >&6
3148
3149 ac_path_x_has_been_run=yes
3150
3151 # Check whether --with-x or --without-x was given.
3152 if test "${with_x+set}" = set; then
3153   withval="$with_x"
3154
3155 fi;
3156 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3157 if test "x$with_x" = xno; then
3158   # The user explicitly disabled X.
3159   have_x=disabled
3160 else
3161   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3162     # Both variables are already set.
3163     have_x=yes
3164   else
3165     if test "${ac_cv_have_x+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   # One or both of the vars are not set, and there is no cached value.
3169 ac_x_includes=no ac_x_libraries=no
3170 rm -fr conftest.dir
3171 if mkdir conftest.dir; then
3172   cd conftest.dir
3173   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3174   cat >Imakefile <<'_ACEOF'
3175 acfindx:
3176         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3177 _ACEOF
3178   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3179     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3180     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3181     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3182     for ac_extension in a so sl; do
3183       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3184          test -f $ac_im_libdir/libX11.$ac_extension; then
3185         ac_im_usrlibdir=$ac_im_libdir; break
3186       fi
3187     done
3188     # Screen out bogus values from the imake configuration.  They are
3189     # bogus both because they are the default anyway, and because
3190     # using them would break gcc on systems where it needs fixed includes.
3191     case $ac_im_incroot in
3192         /usr/include) ;;
3193         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3194     esac
3195     case $ac_im_usrlibdir in
3196         /usr/lib | /lib) ;;
3197         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3198     esac
3199   fi
3200   cd ..
3201   rm -fr conftest.dir
3202 fi
3203
3204 # Standard set of common directories for X headers.
3205 # Check X11 before X11Rn because it is often a symlink to the current release.
3206 ac_x_header_dirs='
3207 /usr/X11/include
3208 /usr/X11R6/include
3209 /usr/X11R5/include
3210 /usr/X11R4/include
3211
3212 /usr/include/X11
3213 /usr/include/X11R6
3214 /usr/include/X11R5
3215 /usr/include/X11R4
3216
3217 /usr/local/X11/include
3218 /usr/local/X11R6/include
3219 /usr/local/X11R5/include
3220 /usr/local/X11R4/include
3221
3222 /usr/local/include/X11
3223 /usr/local/include/X11R6
3224 /usr/local/include/X11R5
3225 /usr/local/include/X11R4
3226
3227 /usr/X386/include
3228 /usr/x386/include
3229 /usr/XFree86/include/X11
3230
3231 /usr/include
3232 /usr/local/include
3233 /usr/unsupported/include
3234 /usr/athena/include
3235 /usr/local/x11r5/include
3236 /usr/lpp/Xamples/include
3237
3238 /usr/openwin/include
3239 /usr/openwin/share/include'
3240
3241 if test "$ac_x_includes" = no; then
3242   # Guess where to find include files, by looking for a specified header file.
3243   # First, try using that file with no special directory specified.
3244   cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h.  */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h.  */
3250 #include <X11/Intrinsic.h>
3251 _ACEOF
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } >/dev/null; then
3260   if test -s conftest.err; then
3261     ac_cpp_err=$ac_c_preproc_warn_flag
3262     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263   else
3264     ac_cpp_err=
3265   fi
3266 else
3267   ac_cpp_err=yes
3268 fi
3269 if test -z "$ac_cpp_err"; then
3270   # We can compile using X headers with no special include directory.
3271 ac_x_includes=
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276   for ac_dir in $ac_x_header_dirs; do
3277   if test -r "$ac_dir/X11/Intrinsic.h"; then
3278     ac_x_includes=$ac_dir
3279     break
3280   fi
3281 done
3282 fi
3283 rm -f conftest.err conftest.$ac_ext
3284 fi # $ac_x_includes = no
3285
3286 if test "$ac_x_libraries" = no; then
3287   # Check for the libraries.
3288   # See if we find them without any special options.
3289   # Don't add to $LIBS permanently.
3290   ac_save_LIBS=$LIBS
3291   LIBS="-lXt $LIBS"
3292   cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 #include <X11/Intrinsic.h>
3299 int
3300 main ()
3301 {
3302 XtMalloc (0)
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309   (eval $ac_link) 2>conftest.er1
3310   ac_status=$?
3311   grep -v '^ *+' conftest.er1 >conftest.err
3312   rm -f conftest.er1
3313   cat conftest.err >&5
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } &&
3316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318   (eval $ac_try) 2>&5
3319   ac_status=$?
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); }; } &&
3322          { ac_try='test -s conftest$ac_exeext'
3323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324   (eval $ac_try) 2>&5
3325   ac_status=$?
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); }; }; then
3328   LIBS=$ac_save_LIBS
3329 # We can link X programs with no special library path.
3330 ac_x_libraries=
3331 else
3332   echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335 LIBS=$ac_save_LIBS
3336 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3337 do
3338   # Don't even attempt the hair of trying to link an X program!
3339   for ac_extension in a so sl; do
3340     if test -r $ac_dir/libXt.$ac_extension; then
3341       ac_x_libraries=$ac_dir
3342       break 2
3343     fi
3344   done
3345 done
3346 fi
3347 rm -f conftest.err conftest.$ac_objext \
3348       conftest$ac_exeext conftest.$ac_ext
3349 fi # $ac_x_libraries = no
3350
3351 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3352   # Didn't find X anywhere.  Cache the known absence of X.
3353   ac_cv_have_x="have_x=no"
3354 else
3355   # Record where we found X for the cache.
3356   ac_cv_have_x="have_x=yes \
3357                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3358 fi
3359 fi
3360
3361   fi
3362   eval "$ac_cv_have_x"
3363 fi # $with_x != no
3364
3365 if test "$have_x" != yes; then
3366   echo "$as_me:$LINENO: result: $have_x" >&5
3367 echo "${ECHO_T}$have_x" >&6
3368   no_x=yes
3369 else
3370   # If each of the values was on the command line, it overrides each guess.
3371   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3372   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3373   # Update the cache value to reflect the command line values.
3374   ac_cv_have_x="have_x=yes \
3375                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3376   # It might be that x_includes is empty (headers are found in the
3377   # standard search path. Then output the corresponding message
3378   ac_out_x_includes=$x_includes
3379   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3380   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3381 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3382 fi
3383
3384 fi
3385 if test "$no_x" = yes; then
3386   # Not all programs may use this symbol, but it does not hurt to define it.
3387
3388 cat >>confdefs.h <<\_ACEOF
3389 #define X_DISPLAY_MISSING 1
3390 _ACEOF
3391
3392   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3393 else
3394   if test -n "$x_includes"; then
3395     X_CFLAGS="$X_CFLAGS -I$x_includes"
3396   fi
3397
3398   # It would also be nice to do this for all -L options, not just this one.
3399   if test -n "$x_libraries"; then
3400     X_LIBS="$X_LIBS -L$x_libraries"
3401     # For Solaris; some versions of Sun CC require a space after -R and
3402     # others require no space.  Words are not sufficient . . . .
3403     case `(uname -sr) 2>/dev/null` in
3404     "SunOS 5"*)
3405       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3406 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3407       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3408       cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414
3415 int
3416 main ()
3417 {
3418
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>conftest.er1
3426   ac_status=$?
3427   grep -v '^ *+' conftest.er1 >conftest.err
3428   rm -f conftest.er1
3429   cat conftest.err >&5
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } &&
3432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434   (eval $ac_try) 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; } &&
3438          { ac_try='test -s conftest$ac_exeext'
3439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440   (eval $ac_try) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); }; }; then
3444   ac_R_nospace=yes
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 ac_R_nospace=no
3450 fi
3451 rm -f conftest.err conftest.$ac_objext \
3452       conftest$ac_exeext conftest.$ac_ext
3453       if test $ac_R_nospace = yes; then
3454         echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456         X_LIBS="$X_LIBS -R$x_libraries"
3457       else
3458         LIBS="$ac_xsave_LIBS -R $x_libraries"
3459         cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.$ac_objext conftest$ac_exeext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3476   (eval $ac_link) 2>conftest.er1
3477   ac_status=$?
3478   grep -v '^ *+' conftest.er1 >conftest.err
3479   rm -f conftest.er1
3480   cat conftest.err >&5
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } &&
3483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; } &&
3489          { ac_try='test -s conftest$ac_exeext'
3490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491   (eval $ac_try) 2>&5
3492   ac_status=$?
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); }; }; then
3495   ac_R_space=yes
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 ac_R_space=no
3501 fi
3502 rm -f conftest.err conftest.$ac_objext \
3503       conftest$ac_exeext conftest.$ac_ext
3504         if test $ac_R_space = yes; then
3505           echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3507           X_LIBS="$X_LIBS -R $x_libraries"
3508         else
3509           echo "$as_me:$LINENO: result: neither works" >&5
3510 echo "${ECHO_T}neither works" >&6
3511         fi
3512       fi
3513       LIBS=$ac_xsave_LIBS
3514     esac
3515   fi
3516
3517   # Check for system-dependent libraries X programs must link with.
3518   # Do this before checking for the system-independent R6 libraries
3519   # (-lICE), since we may need -lsocket or whatever for X linking.
3520
3521   if test "$ISC" = yes; then
3522     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3523   else
3524     # Martyn Johnson says this is needed for Ultrix, if the X
3525     # libraries were built with DECnet support.  And Karl Berry says
3526     # the Alpha needs dnet_stub (dnet does not exist).
3527     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3528     cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h.  */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h.  */
3534
3535 /* Override any gcc2 internal prototype to avoid an error.  */
3536 #ifdef __cplusplus
3537 extern "C"
3538 #endif
3539 /* We use char because int might match the return type of a gcc2
3540    builtin and then its argument prototype would still apply.  */
3541 char XOpenDisplay ();
3542 int
3543 main ()
3544 {
3545 XOpenDisplay ();
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext conftest$ac_exeext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3552   (eval $ac_link) 2>conftest.er1
3553   ac_status=$?
3554   grep -v '^ *+' conftest.er1 >conftest.err
3555   rm -f conftest.er1
3556   cat conftest.err >&5
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); } &&
3559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561   (eval $ac_try) 2>&5
3562   ac_status=$?
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); }; } &&
3565          { ac_try='test -s conftest$ac_exeext'
3566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567   (eval $ac_try) 2>&5
3568   ac_status=$?
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); }; }; then
3571   :
3572 else
3573   echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3577 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3578 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   ac_check_lib_save_LIBS=$LIBS
3582 LIBS="-ldnet  $LIBS"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589
3590 /* Override any gcc2 internal prototype to avoid an error.  */
3591 #ifdef __cplusplus
3592 extern "C"
3593 #endif
3594 /* We use char because int might match the return type of a gcc2
3595    builtin and then its argument prototype would still apply.  */
3596 char dnet_ntoa ();
3597 int
3598 main ()
3599 {
3600 dnet_ntoa ();
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext conftest$ac_exeext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607   (eval $ac_link) 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } &&
3614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616   (eval $ac_try) 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; } &&
3620          { ac_try='test -s conftest$ac_exeext'
3621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622   (eval $ac_try) 2>&5
3623   ac_status=$?
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); }; }; then
3626   ac_cv_lib_dnet_dnet_ntoa=yes
3627 else
3628   echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 ac_cv_lib_dnet_dnet_ntoa=no
3632 fi
3633 rm -f conftest.err conftest.$ac_objext \
3634       conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3638 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3639 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3640   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3641 fi
3642
3643     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3644       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3645 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3646 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   ac_check_lib_save_LIBS=$LIBS
3650 LIBS="-ldnet_stub  $LIBS"
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657
3658 /* Override any gcc2 internal prototype to avoid an error.  */
3659 #ifdef __cplusplus
3660 extern "C"
3661 #endif
3662 /* We use char because int might match the return type of a gcc2
3663    builtin and then its argument prototype would still apply.  */
3664 char dnet_ntoa ();
3665 int
3666 main ()
3667 {
3668 dnet_ntoa ();
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675   (eval $ac_link) 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } &&
3682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; } &&
3688          { ac_try='test -s conftest$ac_exeext'
3689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690   (eval $ac_try) 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 ac_cv_lib_dnet_stub_dnet_ntoa=no
3700 fi
3701 rm -f conftest.err conftest.$ac_objext \
3702       conftest$ac_exeext conftest.$ac_ext
3703 LIBS=$ac_check_lib_save_LIBS
3704 fi
3705 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3706 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3707 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3708   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3709 fi
3710
3711     fi
3712 fi
3713 rm -f conftest.err conftest.$ac_objext \
3714       conftest$ac_exeext conftest.$ac_ext
3715     LIBS="$ac_xsave_LIBS"
3716
3717     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3718     # to get the SysV transport functions.
3719     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3720     # needs -lnsl.
3721     # The nsl library prevents programs from opening the X display
3722     # on Irix 5.2, according to T.E. Dickey.
3723     # The functions gethostbyname, getservbyname, and inet_addr are
3724     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3725     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3726 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3727 if test "${ac_cv_func_gethostbyname+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h.  */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h.  */
3736 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3738 #define gethostbyname innocuous_gethostbyname
3739
3740 /* System header to define __stub macros and hopefully few prototypes,
3741     which can conflict with char gethostbyname (); below.
3742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3743     <limits.h> exists even on freestanding compilers.  */
3744
3745 #ifdef __STDC__
3746 # include <limits.h>
3747 #else
3748 # include <assert.h>
3749 #endif
3750
3751 #undef gethostbyname
3752
3753 /* Override any gcc2 internal prototype to avoid an error.  */
3754 #ifdef __cplusplus
3755 extern "C"
3756 {
3757 #endif
3758 /* We use char because int might match the return type of a gcc2
3759    builtin and then its argument prototype would still apply.  */
3760 char gethostbyname ();
3761 /* The GNU C library defines this for functions which it implements
3762     to always fail with ENOSYS.  Some functions are actually named
3763     something starting with __ and the normal name is an alias.  */
3764 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3765 choke me
3766 #else
3767 char (*f) () = gethostbyname;
3768 #endif
3769 #ifdef __cplusplus
3770 }
3771 #endif
3772
3773 int
3774 main ()
3775 {
3776 return f != gethostbyname;
3777   ;
3778   return 0;
3779 }
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783   (eval $ac_link) 2>conftest.er1
3784   ac_status=$?
3785   grep -v '^ *+' conftest.er1 >conftest.err
3786   rm -f conftest.er1
3787   cat conftest.err >&5
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); } &&
3790          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); }; } &&
3796          { ac_try='test -s conftest$ac_exeext'
3797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798   (eval $ac_try) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; }; then
3802   ac_cv_func_gethostbyname=yes
3803 else
3804   echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 ac_cv_func_gethostbyname=no
3808 fi
3809 rm -f conftest.err conftest.$ac_objext \
3810       conftest$ac_exeext conftest.$ac_ext
3811 fi
3812 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3813 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3814
3815     if test $ac_cv_func_gethostbyname = no; then
3816       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3817 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3818 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3819   echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821   ac_check_lib_save_LIBS=$LIBS
3822 LIBS="-lnsl  $LIBS"
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h.  */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h.  */
3829
3830 /* Override any gcc2 internal prototype to avoid an error.  */
3831 #ifdef __cplusplus
3832 extern "C"
3833 #endif
3834 /* We use char because int might match the return type of a gcc2
3835    builtin and then its argument prototype would still apply.  */
3836 char gethostbyname ();
3837 int
3838 main ()
3839 {
3840 gethostbyname ();
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847   (eval $ac_link) 2>conftest.er1
3848   ac_status=$?
3849   grep -v '^ *+' conftest.er1 >conftest.err
3850   rm -f conftest.er1
3851   cat conftest.err >&5
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); } &&
3854          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856   (eval $ac_try) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; } &&
3860          { ac_try='test -s conftest$ac_exeext'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   ac_cv_lib_nsl_gethostbyname=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 ac_cv_lib_nsl_gethostbyname=no
3872 fi
3873 rm -f conftest.err conftest.$ac_objext \
3874       conftest$ac_exeext conftest.$ac_ext
3875 LIBS=$ac_check_lib_save_LIBS
3876 fi
3877 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3878 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3879 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3880   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3881 fi
3882
3883       if test $ac_cv_lib_nsl_gethostbyname = no; then
3884         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3885 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3886 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   ac_check_lib_save_LIBS=$LIBS
3890 LIBS="-lbsd  $LIBS"
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897
3898 /* Override any gcc2 internal prototype to avoid an error.  */
3899 #ifdef __cplusplus
3900 extern "C"
3901 #endif
3902 /* We use char because int might match the return type of a gcc2
3903    builtin and then its argument prototype would still apply.  */
3904 char gethostbyname ();
3905 int
3906 main ()
3907 {
3908 gethostbyname ();
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915   (eval $ac_link) 2>conftest.er1
3916   ac_status=$?
3917   grep -v '^ *+' conftest.er1 >conftest.err
3918   rm -f conftest.er1
3919   cat conftest.err >&5
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); } &&
3922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924   (eval $ac_try) 2>&5
3925   ac_status=$?
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); }; } &&
3928          { ac_try='test -s conftest$ac_exeext'
3929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930   (eval $ac_try) 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; }; then
3934   ac_cv_lib_bsd_gethostbyname=yes
3935 else
3936   echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 ac_cv_lib_bsd_gethostbyname=no
3940 fi
3941 rm -f conftest.err conftest.$ac_objext \
3942       conftest$ac_exeext conftest.$ac_ext
3943 LIBS=$ac_check_lib_save_LIBS
3944 fi
3945 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3946 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3947 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3948   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3949 fi
3950
3951       fi
3952     fi
3953
3954     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3955     # socket/setsockopt and other routines are undefined under SCO ODT
3956     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3957     # on later versions), says Simon Leinen: it contains gethostby*
3958     # variants that don't use the name server (or something).  -lsocket
3959     # must be given before -lnsl if both are needed.  We assume that
3960     # if connect needs -lnsl, so does gethostbyname.
3961     echo "$as_me:$LINENO: checking for connect" >&5
3962 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3963 if test "${ac_cv_func_connect+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h.  */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h.  */
3972 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3974 #define connect innocuous_connect
3975
3976 /* System header to define __stub macros and hopefully few prototypes,
3977     which can conflict with char connect (); below.
3978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979     <limits.h> exists even on freestanding compilers.  */
3980
3981 #ifdef __STDC__
3982 # include <limits.h>
3983 #else
3984 # include <assert.h>
3985 #endif
3986
3987 #undef connect
3988
3989 /* Override any gcc2 internal prototype to avoid an error.  */
3990 #ifdef __cplusplus
3991 extern "C"
3992 {
3993 #endif
3994 /* We use char because int might match the return type of a gcc2
3995    builtin and then its argument prototype would still apply.  */
3996 char connect ();
3997 /* The GNU C library defines this for functions which it implements
3998     to always fail with ENOSYS.  Some functions are actually named
3999     something starting with __ and the normal name is an alias.  */
4000 #if defined (__stub_connect) || defined (__stub___connect)
4001 choke me
4002 #else
4003 char (*f) () = connect;
4004 #endif
4005 #ifdef __cplusplus
4006 }
4007 #endif
4008
4009 int
4010 main ()
4011 {
4012 return f != connect;
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext conftest$ac_exeext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4019   (eval $ac_link) 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } &&
4026          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028   (eval $ac_try) 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; } &&
4032          { ac_try='test -s conftest$ac_exeext'
4033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034   (eval $ac_try) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); }; }; then
4038   ac_cv_func_connect=yes
4039 else
4040   echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043 ac_cv_func_connect=no
4044 fi
4045 rm -f conftest.err conftest.$ac_objext \
4046       conftest$ac_exeext conftest.$ac_ext
4047 fi
4048 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4049 echo "${ECHO_T}$ac_cv_func_connect" >&6
4050
4051     if test $ac_cv_func_connect = no; then
4052       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4053 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4054 if test "${ac_cv_lib_socket_connect+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   ac_check_lib_save_LIBS=$LIBS
4058 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065
4066 /* Override any gcc2 internal prototype to avoid an error.  */
4067 #ifdef __cplusplus
4068 extern "C"
4069 #endif
4070 /* We use char because int might match the return type of a gcc2
4071    builtin and then its argument prototype would still apply.  */
4072 char connect ();
4073 int
4074 main ()
4075 {
4076 connect ();
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.$ac_objext conftest$ac_exeext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4083   (eval $ac_link) 2>conftest.er1
4084   ac_status=$?
4085   grep -v '^ *+' conftest.er1 >conftest.err
4086   rm -f conftest.er1
4087   cat conftest.err >&5
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); } &&
4090          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; } &&
4096          { ac_try='test -s conftest$ac_exeext'
4097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098   (eval $ac_try) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   ac_cv_lib_socket_connect=yes
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_cv_lib_socket_connect=no
4108 fi
4109 rm -f conftest.err conftest.$ac_objext \
4110       conftest$ac_exeext conftest.$ac_ext
4111 LIBS=$ac_check_lib_save_LIBS
4112 fi
4113 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4114 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4115 if test $ac_cv_lib_socket_connect = yes; then
4116   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4117 fi
4118
4119     fi
4120
4121     # Guillermo Gomez says -lposix is necessary on A/UX.
4122     echo "$as_me:$LINENO: checking for remove" >&5
4123 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4124 if test "${ac_cv_func_remove+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4135 #define remove innocuous_remove
4136
4137 /* System header to define __stub macros and hopefully few prototypes,
4138     which can conflict with char remove (); below.
4139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140     <limits.h> exists even on freestanding compilers.  */
4141
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4147
4148 #undef remove
4149
4150 /* Override any gcc2 internal prototype to avoid an error.  */
4151 #ifdef __cplusplus
4152 extern "C"
4153 {
4154 #endif
4155 /* We use char because int might match the return type of a gcc2
4156    builtin and then its argument prototype would still apply.  */
4157 char remove ();
4158 /* The GNU C library defines this for functions which it implements
4159     to always fail with ENOSYS.  Some functions are actually named
4160     something starting with __ and the normal name is an alias.  */
4161 #if defined (__stub_remove) || defined (__stub___remove)
4162 choke me
4163 #else
4164 char (*f) () = remove;
4165 #endif
4166 #ifdef __cplusplus
4167 }
4168 #endif
4169
4170 int
4171 main ()
4172 {
4173 return f != remove;
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180   (eval $ac_link) 2>conftest.er1
4181   ac_status=$?
4182   grep -v '^ *+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } &&
4187          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189   (eval $ac_try) 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); }; } &&
4193          { ac_try='test -s conftest$ac_exeext'
4194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195   (eval $ac_try) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }; }; then
4199   ac_cv_func_remove=yes
4200 else
4201   echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204 ac_cv_func_remove=no
4205 fi
4206 rm -f conftest.err conftest.$ac_objext \
4207       conftest$ac_exeext conftest.$ac_ext
4208 fi
4209 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4210 echo "${ECHO_T}$ac_cv_func_remove" >&6
4211
4212     if test $ac_cv_func_remove = no; then
4213       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4214 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4215 if test "${ac_cv_lib_posix_remove+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   ac_check_lib_save_LIBS=$LIBS
4219 LIBS="-lposix  $LIBS"
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226
4227 /* Override any gcc2 internal prototype to avoid an error.  */
4228 #ifdef __cplusplus
4229 extern "C"
4230 #endif
4231 /* We use char because int might match the return type of a gcc2
4232    builtin and then its argument prototype would still apply.  */
4233 char remove ();
4234 int
4235 main ()
4236 {
4237 remove ();
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244   (eval $ac_link) 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } &&
4251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253   (eval $ac_try) 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); }; } &&
4257          { ac_try='test -s conftest$ac_exeext'
4258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259   (eval $ac_try) 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }; }; then
4263   ac_cv_lib_posix_remove=yes
4264 else
4265   echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 ac_cv_lib_posix_remove=no
4269 fi
4270 rm -f conftest.err conftest.$ac_objext \
4271       conftest$ac_exeext conftest.$ac_ext
4272 LIBS=$ac_check_lib_save_LIBS
4273 fi
4274 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4275 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4276 if test $ac_cv_lib_posix_remove = yes; then
4277   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4278 fi
4279
4280     fi
4281
4282     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4283     echo "$as_me:$LINENO: checking for shmat" >&5
4284 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4285 if test "${ac_cv_func_shmat+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h.  */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h.  */
4294 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4296 #define shmat innocuous_shmat
4297
4298 /* System header to define __stub macros and hopefully few prototypes,
4299     which can conflict with char shmat (); below.
4300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4301     <limits.h> exists even on freestanding compilers.  */
4302
4303 #ifdef __STDC__
4304 # include <limits.h>
4305 #else
4306 # include <assert.h>
4307 #endif
4308
4309 #undef shmat
4310
4311 /* Override any gcc2 internal prototype to avoid an error.  */
4312 #ifdef __cplusplus
4313 extern "C"
4314 {
4315 #endif
4316 /* We use char because int might match the return type of a gcc2
4317    builtin and then its argument prototype would still apply.  */
4318 char shmat ();
4319 /* The GNU C library defines this for functions which it implements
4320     to always fail with ENOSYS.  Some functions are actually named
4321     something starting with __ and the normal name is an alias.  */
4322 #if defined (__stub_shmat) || defined (__stub___shmat)
4323 choke me
4324 #else
4325 char (*f) () = shmat;
4326 #endif
4327 #ifdef __cplusplus
4328 }
4329 #endif
4330
4331 int
4332 main ()
4333 {
4334 return f != shmat;
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341   (eval $ac_link) 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } &&
4348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350   (eval $ac_try) 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }; } &&
4354          { ac_try='test -s conftest$ac_exeext'
4355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356   (eval $ac_try) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }; }; then
4360   ac_cv_func_shmat=yes
4361 else
4362   echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 ac_cv_func_shmat=no
4366 fi
4367 rm -f conftest.err conftest.$ac_objext \
4368       conftest$ac_exeext conftest.$ac_ext
4369 fi
4370 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4371 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4372
4373     if test $ac_cv_func_shmat = no; then
4374       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4375 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4376 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   ac_check_lib_save_LIBS=$LIBS
4380 LIBS="-lipc  $LIBS"
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h.  */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h.  */
4387
4388 /* Override any gcc2 internal prototype to avoid an error.  */
4389 #ifdef __cplusplus
4390 extern "C"
4391 #endif
4392 /* We use char because int might match the return type of a gcc2
4393    builtin and then its argument prototype would still apply.  */
4394 char shmat ();
4395 int
4396 main ()
4397 {
4398 shmat ();
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405   (eval $ac_link) 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } &&
4412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414   (eval $ac_try) 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; } &&
4418          { ac_try='test -s conftest$ac_exeext'
4419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420   (eval $ac_try) 2>&5
4421   ac_status=$?
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); }; }; then
4424   ac_cv_lib_ipc_shmat=yes
4425 else
4426   echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429 ac_cv_lib_ipc_shmat=no
4430 fi
4431 rm -f conftest.err conftest.$ac_objext \
4432       conftest$ac_exeext conftest.$ac_ext
4433 LIBS=$ac_check_lib_save_LIBS
4434 fi
4435 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4436 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4437 if test $ac_cv_lib_ipc_shmat = yes; then
4438   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4439 fi
4440
4441     fi
4442   fi
4443
4444   # Check for libraries that X11R6 Xt/Xaw programs need.
4445   ac_save_LDFLAGS=$LDFLAGS
4446   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4447   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4448   # check for ICE first), but we must link in the order -lSM -lICE or
4449   # we get undefined symbols.  So assume we have SM if we have ICE.
4450   # These have to be linked with before -lX11, unlike the other
4451   # libraries we check for below, so use a different variable.
4452   # John Interrante, Karl Berry
4453   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4454 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4455 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   ac_check_lib_save_LIBS=$LIBS
4459 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h.  */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h.  */
4466
4467 /* Override any gcc2 internal prototype to avoid an error.  */
4468 #ifdef __cplusplus
4469 extern "C"
4470 #endif
4471 /* We use char because int might match the return type of a gcc2
4472    builtin and then its argument prototype would still apply.  */
4473 char IceConnectionNumber ();
4474 int
4475 main ()
4476 {
4477 IceConnectionNumber ();
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 rm -f conftest.$ac_objext conftest$ac_exeext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484   (eval $ac_link) 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } &&
4491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493   (eval $ac_try) 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); }; } &&
4497          { ac_try='test -s conftest$ac_exeext'
4498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499   (eval $ac_try) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; }; then
4503   ac_cv_lib_ICE_IceConnectionNumber=yes
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 ac_cv_lib_ICE_IceConnectionNumber=no
4509 fi
4510 rm -f conftest.err conftest.$ac_objext \
4511       conftest$ac_exeext conftest.$ac_ext
4512 LIBS=$ac_check_lib_save_LIBS
4513 fi
4514 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4515 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4516 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4517   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4518 fi
4519
4520   LDFLAGS=$ac_save_LDFLAGS
4521
4522 fi
4523
4524 for ac_prog in flex lex
4525 do
4526   # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_prog_LEX+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   if test -n "$LEX"; then
4534   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541   for ac_exec_ext in '' $ac_executable_extensions; do
4542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543     ac_cv_prog_LEX="$ac_prog"
4544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545     break 2
4546   fi
4547 done
4548 done
4549
4550 fi
4551 fi
4552 LEX=$ac_cv_prog_LEX
4553 if test -n "$LEX"; then
4554   echo "$as_me:$LINENO: result: $LEX" >&5
4555 echo "${ECHO_T}$LEX" >&6
4556 else
4557   echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4559 fi
4560
4561   test -n "$LEX" && break
4562 done
4563 test -n "$LEX" || LEX=":"
4564
4565 if test -z "$LEXLIB"
4566 then
4567   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4568 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4569 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   ac_check_lib_save_LIBS=$LIBS
4573 LIBS="-lfl  $LIBS"
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580
4581 /* Override any gcc2 internal prototype to avoid an error.  */
4582 #ifdef __cplusplus
4583 extern "C"
4584 #endif
4585 /* We use char because int might match the return type of a gcc2
4586    builtin and then its argument prototype would still apply.  */
4587 char yywrap ();
4588 int
4589 main ()
4590 {
4591 yywrap ();
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598   (eval $ac_link) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } &&
4605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607   (eval $ac_try) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; } &&
4611          { ac_try='test -s conftest$ac_exeext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_cv_lib_fl_yywrap=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_cv_lib_fl_yywrap=no
4623 fi
4624 rm -f conftest.err conftest.$ac_objext \
4625       conftest$ac_exeext conftest.$ac_ext
4626 LIBS=$ac_check_lib_save_LIBS
4627 fi
4628 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4629 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4630 if test $ac_cv_lib_fl_yywrap = yes; then
4631   LEXLIB="-lfl"
4632 else
4633   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4634 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4635 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4636   echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638   ac_check_lib_save_LIBS=$LIBS
4639 LIBS="-ll  $LIBS"
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646
4647 /* Override any gcc2 internal prototype to avoid an error.  */
4648 #ifdef __cplusplus
4649 extern "C"
4650 #endif
4651 /* We use char because int might match the return type of a gcc2
4652    builtin and then its argument prototype would still apply.  */
4653 char yywrap ();
4654 int
4655 main ()
4656 {
4657 yywrap ();
4658   ;
4659   return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664   (eval $ac_link) 2>conftest.er1
4665   ac_status=$?
4666   grep -v '^ *+' conftest.er1 >conftest.err
4667   rm -f conftest.er1
4668   cat conftest.err >&5
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } &&
4671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673   (eval $ac_try) 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); }; } &&
4677          { ac_try='test -s conftest$ac_exeext'
4678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679   (eval $ac_try) 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; }; then
4683   ac_cv_lib_l_yywrap=yes
4684 else
4685   echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 ac_cv_lib_l_yywrap=no
4689 fi
4690 rm -f conftest.err conftest.$ac_objext \
4691       conftest$ac_exeext conftest.$ac_ext
4692 LIBS=$ac_check_lib_save_LIBS
4693 fi
4694 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4695 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4696 if test $ac_cv_lib_l_yywrap = yes; then
4697   LEXLIB="-ll"
4698 fi
4699
4700 fi
4701
4702 fi
4703
4704 if test "x$LEX" != "x:"; then
4705   echo "$as_me:$LINENO: checking lex output file root" >&5
4706 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4707 if test "${ac_cv_prog_lex_root+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   # The minimal lex program is just a single line: %%.  But some broken lexes
4711 # (Solaris, I think it was) want two %% lines, so accommodate them.
4712 cat >conftest.l <<_ACEOF
4713 %%
4714 %%
4715 _ACEOF
4716 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4717   (eval $LEX conftest.l) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }
4721 if test -f lex.yy.c; then
4722   ac_cv_prog_lex_root=lex.yy
4723 elif test -f lexyy.c; then
4724   ac_cv_prog_lex_root=lexyy
4725 else
4726   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4727 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4728    { (exit 1); exit 1; }; }
4729 fi
4730 fi
4731 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4732 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4733 rm -f conftest.l
4734 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4735
4736 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4737 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4738 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   # POSIX says lex can declare yytext either as a pointer or an array; the
4742 # default is implementation-dependent. Figure out which it is, since
4743 # not all implementations provide the %pointer and %array declarations.
4744 ac_cv_prog_lex_yytext_pointer=no
4745 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4746 ac_save_LIBS=$LIBS
4747 LIBS="$LIBS $LEXLIB"
4748 cat >conftest.$ac_ext <<_ACEOF
4749 `cat $LEX_OUTPUT_ROOT.c`
4750 _ACEOF
4751 rm -f conftest.$ac_objext conftest$ac_exeext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4753   (eval $ac_link) 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } &&
4760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; } &&
4766          { ac_try='test -s conftest$ac_exeext'
4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768   (eval $ac_try) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }; }; then
4772   ac_cv_prog_lex_yytext_pointer=yes
4773 else
4774   echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 fi
4778 rm -f conftest.err conftest.$ac_objext \
4779       conftest$ac_exeext conftest.$ac_ext
4780 LIBS=$ac_save_LIBS
4781 rm -f "${LEX_OUTPUT_ROOT}.c"
4782
4783 fi
4784 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4785 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4786 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4787
4788 cat >>confdefs.h <<\_ACEOF
4789 #define YYTEXT_POINTER 1
4790 _ACEOF
4791
4792 fi
4793
4794 fi
4795
4796 for ac_prog in $LEX flex lex
4797 do
4798   # Extract the first word of "$ac_prog", so it can be a program name with args.
4799 set dummy $ac_prog; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_XLEX+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   if test -n "$XLEX"; then
4806   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811   IFS=$as_save_IFS
4812   test -z "$as_dir" && as_dir=.
4813   for ac_exec_ext in '' $ac_executable_extensions; do
4814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815     ac_cv_prog_XLEX="$ac_prog"
4816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817     break 2
4818   fi
4819 done
4820 done
4821
4822 fi
4823 fi
4824 XLEX=$ac_cv_prog_XLEX
4825 if test -n "$XLEX"; then
4826   echo "$as_me:$LINENO: result: $XLEX" >&5
4827 echo "${ECHO_T}$XLEX" >&6
4828 else
4829   echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4831 fi
4832
4833   test -n "$XLEX" && break
4834 done
4835 test -n "$XLEX" || XLEX="none"
4836
4837 if test "$XLEX" = "none"
4838 then
4839   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4840 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4841    { (exit 1); exit 1; }; }
4842 fi
4843
4844 for ac_prog in bison
4845 do
4846   # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_prog_BISON+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   if test -n "$BISON"; then
4854   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861   for ac_exec_ext in '' $ac_executable_extensions; do
4862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863     ac_cv_prog_BISON="$ac_prog"
4864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868 done
4869
4870 fi
4871 fi
4872 BISON=$ac_cv_prog_BISON
4873 if test -n "$BISON"; then
4874   echo "$as_me:$LINENO: result: $BISON" >&5
4875 echo "${ECHO_T}$BISON" >&6
4876 else
4877   echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4879 fi
4880
4881   test -n "$BISON" && break
4882 done
4883 test -n "$BISON" || BISON="none"
4884
4885 if test "$BISON" = "none"
4886 then
4887   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4888 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4889    { (exit 1); exit 1; }; }
4890 fi
4891
4892 if test -n "$ac_tool_prefix"; then
4893   for ac_prog in gas as
4894   do
4895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4896 set dummy $ac_tool_prefix$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_AS+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if test -n "$AS"; then
4903   ac_cv_prog_AS="$AS" # 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_AS="$ac_tool_prefix$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 AS=$ac_cv_prog_AS
4922 if test -n "$AS"; then
4923   echo "$as_me:$LINENO: result: $AS" >&5
4924 echo "${ECHO_T}$AS" >&6
4925 else
4926   echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4928 fi
4929
4930     test -n "$AS" && break
4931   done
4932 fi
4933 if test -z "$AS"; then
4934   ac_ct_AS=$AS
4935   for ac_prog in gas as
4936 do
4937   # Extract the first word of "$ac_prog", so it can be a program name with args.
4938 set dummy $ac_prog; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   if test -n "$ac_ct_AS"; then
4945   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952   for ac_exec_ext in '' $ac_executable_extensions; do
4953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954     ac_cv_prog_ac_ct_AS="$ac_prog"
4955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959 done
4960
4961 fi
4962 fi
4963 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4964 if test -n "$ac_ct_AS"; then
4965   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4966 echo "${ECHO_T}$ac_ct_AS" >&6
4967 else
4968   echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6
4970 fi
4971
4972   test -n "$ac_ct_AS" && break
4973 done
4974 test -n "$ac_ct_AS" || ac_ct_AS="as"
4975
4976   AS=$ac_ct_AS
4977 fi
4978
4979 if test -n "$ac_tool_prefix"; then
4980   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}ld; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_prog_LD+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   if test -n "$LD"; then
4988   ac_cv_prog_LD="$LD" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993   IFS=$as_save_IFS
4994   test -z "$as_dir" && as_dir=.
4995   for ac_exec_ext in '' $ac_executable_extensions; do
4996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997     ac_cv_prog_LD="${ac_tool_prefix}ld"
4998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999     break 2
5000   fi
5001 done
5002 done
5003
5004 fi
5005 fi
5006 LD=$ac_cv_prog_LD
5007 if test -n "$LD"; then
5008   echo "$as_me:$LINENO: result: $LD" >&5
5009 echo "${ECHO_T}$LD" >&6
5010 else
5011   echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5013 fi
5014
5015 fi
5016 if test -z "$ac_cv_prog_LD"; then
5017   ac_ct_LD=$LD
5018   # Extract the first word of "ld", so it can be a program name with args.
5019 set dummy ld; ac_word=$2
5020 echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025   if test -n "$ac_ct_LD"; then
5026   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033   for ac_exec_ext in '' $ac_executable_extensions; do
5034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035     ac_cv_prog_ac_ct_LD="ld"
5036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040 done
5041
5042   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5043 fi
5044 fi
5045 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5046 if test -n "$ac_ct_LD"; then
5047   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5048 echo "${ECHO_T}$ac_ct_LD" >&6
5049 else
5050   echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5052 fi
5053
5054   LD=$ac_ct_LD
5055 else
5056   LD="$ac_cv_prog_LD"
5057 fi
5058
5059 if test -n "$ac_tool_prefix"; then
5060   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5061 set dummy ${ac_tool_prefix}ar; ac_word=$2
5062 echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064 if test "${ac_cv_prog_AR+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   if test -n "$AR"; then
5068   ac_cv_prog_AR="$AR" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077     ac_cv_prog_AR="${ac_tool_prefix}ar"
5078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082 done
5083
5084 fi
5085 fi
5086 AR=$ac_cv_prog_AR
5087 if test -n "$AR"; then
5088   echo "$as_me:$LINENO: result: $AR" >&5
5089 echo "${ECHO_T}$AR" >&6
5090 else
5091   echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6
5093 fi
5094
5095 fi
5096 if test -z "$ac_cv_prog_AR"; then
5097   ac_ct_AR=$AR
5098   # Extract the first word of "ar", so it can be a program name with args.
5099 set dummy ar; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   if test -n "$ac_ct_AR"; then
5106   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113   for ac_exec_ext in '' $ac_executable_extensions; do
5114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_prog_ac_ct_AR="ar"
5116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120 done
5121
5122   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5123 fi
5124 fi
5125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5126 if test -n "$ac_ct_AR"; then
5127   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5128 echo "${ECHO_T}$ac_ct_AR" >&6
5129 else
5130   echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5132 fi
5133
5134   AR=$ac_ct_AR
5135 else
5136   AR="$ac_cv_prog_AR"
5137 fi
5138
5139 if test -n "$ac_tool_prefix"; then
5140   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5142 echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144 if test "${ac_cv_prog_RANLIB+set}" = set; then
5145   echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147   if test -n "$RANLIB"; then
5148   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155   for ac_exec_ext in '' $ac_executable_extensions; do
5156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162 done
5163
5164 fi
5165 fi
5166 RANLIB=$ac_cv_prog_RANLIB
5167 if test -n "$RANLIB"; then
5168   echo "$as_me:$LINENO: result: $RANLIB" >&5
5169 echo "${ECHO_T}$RANLIB" >&6
5170 else
5171   echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5173 fi
5174
5175 fi
5176 if test -z "$ac_cv_prog_RANLIB"; then
5177   ac_ct_RANLIB=$RANLIB
5178   # Extract the first word of "ranlib", so it can be a program name with args.
5179 set dummy ranlib; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   if test -n "$ac_ct_RANLIB"; then
5186   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193   for ac_exec_ext in '' $ac_executable_extensions; do
5194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195     ac_cv_prog_ac_ct_RANLIB="ranlib"
5196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200 done
5201
5202   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5203 fi
5204 fi
5205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5206 if test -n "$ac_ct_RANLIB"; then
5207   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5208 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5209 else
5210   echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5212 fi
5213
5214   RANLIB=$ac_ct_RANLIB
5215 else
5216   RANLIB="$ac_cv_prog_RANLIB"
5217 fi
5218
5219 if test -n "$ac_tool_prefix"; then
5220   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5221 set dummy ${ac_tool_prefix}strip; ac_word=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_prog_STRIP+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   if test -n "$STRIP"; then
5228   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235   for ac_exec_ext in '' $ac_executable_extensions; do
5236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242 done
5243
5244 fi
5245 fi
5246 STRIP=$ac_cv_prog_STRIP
5247 if test -n "$STRIP"; then
5248   echo "$as_me:$LINENO: result: $STRIP" >&5
5249 echo "${ECHO_T}$STRIP" >&6
5250 else
5251   echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5253 fi
5254
5255 fi
5256 if test -z "$ac_cv_prog_STRIP"; then
5257   ac_ct_STRIP=$STRIP
5258   # Extract the first word of "strip", so it can be a program name with args.
5259 set dummy strip; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   if test -n "$ac_ct_STRIP"; then
5266   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273   for ac_exec_ext in '' $ac_executable_extensions; do
5274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275     ac_cv_prog_ac_ct_STRIP="strip"
5276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280 done
5281
5282   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5283 fi
5284 fi
5285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5286 if test -n "$ac_ct_STRIP"; then
5287   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5288 echo "${ECHO_T}$ac_ct_STRIP" >&6
5289 else
5290   echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5292 fi
5293
5294   STRIP=$ac_ct_STRIP
5295 else
5296   STRIP="$ac_cv_prog_STRIP"
5297 fi
5298
5299 if test -n "$ac_tool_prefix"; then
5300   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}windres; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_WINDRES+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   if test -n "$WINDRES"; then
5308   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315   for ac_exec_ext in '' $ac_executable_extensions; do
5316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322 done
5323
5324 fi
5325 fi
5326 WINDRES=$ac_cv_prog_WINDRES
5327 if test -n "$WINDRES"; then
5328   echo "$as_me:$LINENO: result: $WINDRES" >&5
5329 echo "${ECHO_T}$WINDRES" >&6
5330 else
5331   echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5333 fi
5334
5335 fi
5336 if test -z "$ac_cv_prog_WINDRES"; then
5337   ac_ct_WINDRES=$WINDRES
5338   # Extract the first word of "windres", so it can be a program name with args.
5339 set dummy windres; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   if test -n "$ac_ct_WINDRES"; then
5346   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353   for ac_exec_ext in '' $ac_executable_extensions; do
5354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355     ac_cv_prog_ac_ct_WINDRES="windres"
5356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360 done
5361
5362   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5363 fi
5364 fi
5365 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5366 if test -n "$ac_ct_WINDRES"; then
5367   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5368 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5369 else
5370   echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5372 fi
5373
5374   WINDRES=$ac_ct_WINDRES
5375 else
5376   WINDRES="$ac_cv_prog_WINDRES"
5377 fi
5378
5379 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5380 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5381 LN_S=$as_ln_s
5382 if test "$LN_S" = "ln -s"; then
5383   echo "$as_me:$LINENO: result: yes" >&5
5384 echo "${ECHO_T}yes" >&6
5385 else
5386   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5387 echo "${ECHO_T}no, using $LN_S" >&6
5388 fi
5389
5390 echo "$as_me:$LINENO: checking whether ln works" >&5
5391 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5392 rm -f conf$$ conf$$.file
5393 echo >conf$$.file
5394 if ln conf$$.file conf$$ 2>/dev/null; then
5395   LN=ln
5396
5397   echo "$as_me:$LINENO: result: yes" >&5
5398 echo "${ECHO_T}yes" >&6
5399 else
5400   LN="cp -p"
5401
5402   echo "$as_me:$LINENO: result: no, using $LN" >&5
5403 echo "${ECHO_T}no, using $LN" >&6
5404 fi
5405 rm -f conf$$ conf$$.file
5406 echo "$as_me:$LINENO: checking for egrep" >&5
5407 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5408 if test "${ac_cv_prog_egrep+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5412     then ac_cv_prog_egrep='grep -E'
5413     else ac_cv_prog_egrep='egrep'
5414     fi
5415 fi
5416 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5417 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5418  EGREP=$ac_cv_prog_egrep
5419
5420
5421 # Extract the first word of "ldconfig", so it can be a program name with args.
5422 set dummy ldconfig; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428   case $LDCONFIG in
5429   [\\/]* | ?:[\\/]*)
5430   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5431   ;;
5432   *)
5433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in /sbin /usr/sbin $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438   for ac_exec_ext in '' $ac_executable_extensions; do
5439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445 done
5446
5447   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5448   ;;
5449 esac
5450 fi
5451 LDCONFIG=$ac_cv_path_LDCONFIG
5452
5453 if test -n "$LDCONFIG"; then
5454   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5455 echo "${ECHO_T}$LDCONFIG" >&6
5456 else
5457   echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5459 fi
5460
5461 # Find a good install program.  We prefer a C program (faster),
5462 # so one script is as good as another.  But avoid the broken or
5463 # incompatible versions:
5464 # SysV /etc/install, /usr/sbin/install
5465 # SunOS /usr/etc/install
5466 # IRIX /sbin/install
5467 # AIX /bin/install
5468 # AmigaOS /C/install, which installs bootblocks on floppy discs
5469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5472 # OS/2's system install, which has a completely different semantic
5473 # ./install, which can be erroneously created by make from ./install.sh.
5474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5476 if test -z "$INSTALL"; then
5477 if test "${ac_cv_path_install+set}" = set; then
5478   echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483   IFS=$as_save_IFS
5484   test -z "$as_dir" && as_dir=.
5485   # Account for people who put trailing slashes in PATH elements.
5486 case $as_dir/ in
5487   ./ | .// | /cC/* | \
5488   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5489   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5490   /usr/ucb/* ) ;;
5491   *)
5492     # OSF1 and SCO ODT 3.0 have their own names for install.
5493     # Don't use installbsd from OSF since it installs stuff as root
5494     # by default.
5495     for ac_prog in ginstall scoinst install; do
5496       for ac_exec_ext in '' $ac_executable_extensions; do
5497         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5498           if test $ac_prog = install &&
5499             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5500             # AIX install.  It has an incompatible calling convention.
5501             :
5502           elif test $ac_prog = install &&
5503             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5504             # program-specific install script used by HP pwplus--don't use.
5505             :
5506           else
5507             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5508             break 3
5509           fi
5510         fi
5511       done
5512     done
5513     ;;
5514 esac
5515 done
5516
5517
5518 fi
5519   if test "${ac_cv_path_install+set}" = set; then
5520     INSTALL=$ac_cv_path_install
5521   else
5522     # As a last resort, use the slow shell script.  We don't cache a
5523     # path for INSTALL within a source directory, because that will
5524     # break other packages using the cache if that directory is
5525     # removed, or if the path is relative.
5526     INSTALL=$ac_install_sh
5527   fi
5528 fi
5529 echo "$as_me:$LINENO: result: $INSTALL" >&5
5530 echo "${ECHO_T}$INSTALL" >&6
5531
5532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5533 # It thinks the first close brace ends the variable substitution.
5534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5535
5536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5537
5538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5539
5540 case "$INSTALL" in
5541   [\\/$]* | ?:[\\/]* ) ;;
5542   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5543 esac
5544
5545 for ac_prog in lclint lint
5546 do
5547   # Extract the first word of "$ac_prog", so it can be a program name with args.
5548 set dummy $ac_prog; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_prog_LINT+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   if test -n "$LINT"; then
5555   ac_cv_prog_LINT="$LINT" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560   IFS=$as_save_IFS
5561   test -z "$as_dir" && as_dir=.
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564     ac_cv_prog_LINT="$ac_prog"
5565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566     break 2
5567   fi
5568 done
5569 done
5570
5571 fi
5572 fi
5573 LINT=$ac_cv_prog_LINT
5574 if test -n "$LINT"; then
5575   echo "$as_me:$LINENO: result: $LINT" >&5
5576 echo "${ECHO_T}$LINT" >&6
5577 else
5578   echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5580 fi
5581
5582   test -n "$LINT" && break
5583 done
5584
5585 if test "$LINT" = "lint"
5586 then
5587   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5588   fi
5589
5590
5591
5592 for ac_prog in docbook2html db2html
5593 do
5594   # Extract the first word of "$ac_prog", so it can be a program name with args.
5595 set dummy $ac_prog; ac_word=$2
5596 echo "$as_me:$LINENO: checking for $ac_word" >&5
5597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5599   echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601   if test -n "$DB2HTML"; then
5602   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607   IFS=$as_save_IFS
5608   test -z "$as_dir" && as_dir=.
5609   for ac_exec_ext in '' $ac_executable_extensions; do
5610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611     ac_cv_prog_DB2HTML="$ac_prog"
5612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613     break 2
5614   fi
5615 done
5616 done
5617
5618 fi
5619 fi
5620 DB2HTML=$ac_cv_prog_DB2HTML
5621 if test -n "$DB2HTML"; then
5622   echo "$as_me:$LINENO: result: $DB2HTML" >&5
5623 echo "${ECHO_T}$DB2HTML" >&6
5624 else
5625   echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6
5627 fi
5628
5629   test -n "$DB2HTML" && break
5630 done
5631 test -n "$DB2HTML" || DB2HTML="false"
5632
5633 for ac_prog in docbook2pdf db2pdf
5634 do
5635   # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   if test -n "$DB2PDF"; then
5643   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648   IFS=$as_save_IFS
5649   test -z "$as_dir" && as_dir=.
5650   for ac_exec_ext in '' $ac_executable_extensions; do
5651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652     ac_cv_prog_DB2PDF="$ac_prog"
5653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654     break 2
5655   fi
5656 done
5657 done
5658
5659 fi
5660 fi
5661 DB2PDF=$ac_cv_prog_DB2PDF
5662 if test -n "$DB2PDF"; then
5663   echo "$as_me:$LINENO: result: $DB2PDF" >&5
5664 echo "${ECHO_T}$DB2PDF" >&6
5665 else
5666   echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5668 fi
5669
5670   test -n "$DB2PDF" && break
5671 done
5672 test -n "$DB2PDF" || DB2PDF="false"
5673
5674 for ac_prog in docbook2ps db2ps
5675 do
5676   # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 echo "$as_me:$LINENO: checking for $ac_word" >&5
5679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680 if test "${ac_cv_prog_DB2PS+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   if test -n "$DB2PS"; then
5684   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691   for ac_exec_ext in '' $ac_executable_extensions; do
5692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693     ac_cv_prog_DB2PS="$ac_prog"
5694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695     break 2
5696   fi
5697 done
5698 done
5699
5700 fi
5701 fi
5702 DB2PS=$ac_cv_prog_DB2PS
5703 if test -n "$DB2PS"; then
5704   echo "$as_me:$LINENO: result: $DB2PS" >&5
5705 echo "${ECHO_T}$DB2PS" >&6
5706 else
5707   echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5709 fi
5710
5711   test -n "$DB2PS" && break
5712 done
5713 test -n "$DB2PS" || DB2PS="false"
5714
5715 for ac_prog in docbook2txt db2txt
5716 do
5717   # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724   if test -n "$DB2TXT"; then
5725   ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730   IFS=$as_save_IFS
5731   test -z "$as_dir" && as_dir=.
5732   for ac_exec_ext in '' $ac_executable_extensions; do
5733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734     ac_cv_prog_DB2TXT="$ac_prog"
5735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736     break 2
5737   fi
5738 done
5739 done
5740
5741 fi
5742 fi
5743 DB2TXT=$ac_cv_prog_DB2TXT
5744 if test -n "$DB2TXT"; then
5745   echo "$as_me:$LINENO: result: $DB2TXT" >&5
5746 echo "${ECHO_T}$DB2TXT" >&6
5747 else
5748   echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5750 fi
5751
5752   test -n "$DB2TXT" && break
5753 done
5754 test -n "$DB2TXT" || DB2TXT="false"
5755
5756 for ac_prog in fontforge
5757 do
5758   # Extract the first word of "$ac_prog", so it can be a program name with args.
5759 set dummy $ac_prog; ac_word=$2
5760 echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   if test -n "$FONTFORGE"; then
5766   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773   for ac_exec_ext in '' $ac_executable_extensions; do
5774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775     ac_cv_prog_FONTFORGE="$ac_prog"
5776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777     break 2
5778   fi
5779 done
5780 done
5781
5782 fi
5783 fi
5784 FONTFORGE=$ac_cv_prog_FONTFORGE
5785 if test -n "$FONTFORGE"; then
5786   echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5787 echo "${ECHO_T}$FONTFORGE" >&6
5788 else
5789   echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6
5791 fi
5792
5793   test -n "$FONTFORGE" && break
5794 done
5795 test -n "$FONTFORGE" || FONTFORGE="false"
5796
5797
5798
5799
5800 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5801 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5802 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   ac_check_lib_save_LIBS=$LIBS
5806 LIBS="-li386  $LIBS"
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813
5814 /* Override any gcc2 internal prototype to avoid an error.  */
5815 #ifdef __cplusplus
5816 extern "C"
5817 #endif
5818 /* We use char because int might match the return type of a gcc2
5819    builtin and then its argument prototype would still apply.  */
5820 char i386_set_ldt ();
5821 int
5822 main ()
5823 {
5824 i386_set_ldt ();
5825   ;
5826   return 0;
5827 }
5828 _ACEOF
5829 rm -f conftest.$ac_objext conftest$ac_exeext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831   (eval $ac_link) 2>conftest.er1
5832   ac_status=$?
5833   grep -v '^ *+' conftest.er1 >conftest.err
5834   rm -f conftest.er1
5835   cat conftest.err >&5
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); } &&
5838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840   (eval $ac_try) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; } &&
5844          { ac_try='test -s conftest$ac_exeext'
5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846   (eval $ac_try) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   ac_cv_lib_i386_i386_set_ldt=yes
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_cv_lib_i386_i386_set_ldt=no
5856 fi
5857 rm -f conftest.err conftest.$ac_objext \
5858       conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5860 fi
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5862 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5863 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5864   cat >>confdefs.h <<_ACEOF
5865 #define HAVE_LIBI386 1
5866 _ACEOF
5867
5868   LIBS="-li386 $LIBS"
5869
5870 fi
5871
5872
5873 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5874 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5875 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   ac_check_lib_save_LIBS=$LIBS
5879 LIBS="-lossaudio  $LIBS"
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886
5887 /* Override any gcc2 internal prototype to avoid an error.  */
5888 #ifdef __cplusplus
5889 extern "C"
5890 #endif
5891 /* We use char because int might match the return type of a gcc2
5892    builtin and then its argument prototype would still apply.  */
5893 char _oss_ioctl ();
5894 int
5895 main ()
5896 {
5897 _oss_ioctl ();
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904   (eval $ac_link) 2>conftest.er1
5905   ac_status=$?
5906   grep -v '^ *+' conftest.er1 >conftest.err
5907   rm -f conftest.er1
5908   cat conftest.err >&5
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); } &&
5911          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913   (eval $ac_try) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; } &&
5917          { ac_try='test -s conftest$ac_exeext'
5918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919   (eval $ac_try) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; }; then
5923   ac_cv_lib_ossaudio__oss_ioctl=yes
5924 else
5925   echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 ac_cv_lib_ossaudio__oss_ioctl=no
5929 fi
5930 rm -f conftest.err conftest.$ac_objext \
5931       conftest$ac_exeext conftest.$ac_ext
5932 LIBS=$ac_check_lib_save_LIBS
5933 fi
5934 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5935 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5936 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5937   cat >>confdefs.h <<_ACEOF
5938 #define HAVE_LIBOSSAUDIO 1
5939 _ACEOF
5940
5941   LIBS="-lossaudio $LIBS"
5942
5943 fi
5944
5945
5946 for ac_func in iswalnum
5947 do
5948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5949 echo "$as_me:$LINENO: checking for $ac_func" >&5
5950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5951 if eval "test \"\${$as_ac_var+set}\" = set"; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5962 #define $ac_func innocuous_$ac_func
5963
5964 /* System header to define __stub macros and hopefully few prototypes,
5965     which can conflict with char $ac_func (); below.
5966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5967     <limits.h> exists even on freestanding compilers.  */
5968
5969 #ifdef __STDC__
5970 # include <limits.h>
5971 #else
5972 # include <assert.h>
5973 #endif
5974
5975 #undef $ac_func
5976
5977 /* Override any gcc2 internal prototype to avoid an error.  */
5978 #ifdef __cplusplus
5979 extern "C"
5980 {
5981 #endif
5982 /* We use char because int might match the return type of a gcc2
5983    builtin and then its argument prototype would still apply.  */
5984 char $ac_func ();
5985 /* The GNU C library defines this for functions which it implements
5986     to always fail with ENOSYS.  Some functions are actually named
5987     something starting with __ and the normal name is an alias.  */
5988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5989 choke me
5990 #else
5991 char (*f) () = $ac_func;
5992 #endif
5993 #ifdef __cplusplus
5994 }
5995 #endif
5996
5997 int
5998 main ()
5999 {
6000 return f != $ac_func;
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007   (eval $ac_link) 2>conftest.er1
6008   ac_status=$?
6009   grep -v '^ *+' conftest.er1 >conftest.err
6010   rm -f conftest.er1
6011   cat conftest.err >&5
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } &&
6014          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; } &&
6020          { ac_try='test -s conftest$ac_exeext'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; }; then
6026   eval "$as_ac_var=yes"
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 eval "$as_ac_var=no"
6032 fi
6033 rm -f conftest.err conftest.$ac_objext \
6034       conftest$ac_exeext conftest.$ac_ext
6035 fi
6036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6038 if test `eval echo '${'$as_ac_var'}'` = yes; then
6039   cat >>confdefs.h <<_ACEOF
6040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041 _ACEOF
6042
6043 else
6044
6045 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6046 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6047 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lw  $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058
6059 /* Override any gcc2 internal prototype to avoid an error.  */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064    builtin and then its argument prototype would still apply.  */
6065 char iswalnum ();
6066 int
6067 main ()
6068 {
6069 iswalnum ();
6070   ;
6071   return 0;
6072 }
6073 _ACEOF
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076   (eval $ac_link) 2>conftest.er1
6077   ac_status=$?
6078   grep -v '^ *+' conftest.er1 >conftest.err
6079   rm -f conftest.er1
6080   cat conftest.err >&5
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } &&
6083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; } &&
6089          { ac_try='test -s conftest$ac_exeext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   ac_cv_lib_w_iswalnum=yes
6096 else
6097   echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 ac_cv_lib_w_iswalnum=no
6101 fi
6102 rm -f conftest.err conftest.$ac_objext \
6103       conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6107 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6108 if test $ac_cv_lib_w_iswalnum = yes; then
6109   cat >>confdefs.h <<_ACEOF
6110 #define HAVE_LIBW 1
6111 _ACEOF
6112
6113   LIBS="-lw $LIBS"
6114
6115 fi
6116
6117 fi
6118 done
6119
6120
6121 for ac_func in gethostbyname
6122 do
6123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6124 echo "$as_me:$LINENO: checking for $ac_func" >&5
6125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6126 if eval "test \"\${$as_ac_var+set}\" = set"; then
6127   echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129   cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h.  */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h.  */
6135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6137 #define $ac_func innocuous_$ac_func
6138
6139 /* System header to define __stub macros and hopefully few prototypes,
6140     which can conflict with char $ac_func (); below.
6141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142     <limits.h> exists even on freestanding compilers.  */
6143
6144 #ifdef __STDC__
6145 # include <limits.h>
6146 #else
6147 # include <assert.h>
6148 #endif
6149
6150 #undef $ac_func
6151
6152 /* Override any gcc2 internal prototype to avoid an error.  */
6153 #ifdef __cplusplus
6154 extern "C"
6155 {
6156 #endif
6157 /* We use char because int might match the return type of a gcc2
6158    builtin and then its argument prototype would still apply.  */
6159 char $ac_func ();
6160 /* The GNU C library defines this for functions which it implements
6161     to always fail with ENOSYS.  Some functions are actually named
6162     something starting with __ and the normal name is an alias.  */
6163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6164 choke me
6165 #else
6166 char (*f) () = $ac_func;
6167 #endif
6168 #ifdef __cplusplus
6169 }
6170 #endif
6171
6172 int
6173 main ()
6174 {
6175 return f != $ac_func;
6176   ;
6177   return 0;
6178 }
6179 _ACEOF
6180 rm -f conftest.$ac_objext conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182   (eval $ac_link) 2>conftest.er1
6183   ac_status=$?
6184   grep -v '^ *+' conftest.er1 >conftest.err
6185   rm -f conftest.er1
6186   cat conftest.err >&5
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); } &&
6189          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191   (eval $ac_try) 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); }; } &&
6195          { ac_try='test -s conftest$ac_exeext'
6196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197   (eval $ac_try) 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); }; }; then
6201   eval "$as_ac_var=yes"
6202 else
6203   echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 eval "$as_ac_var=no"
6207 fi
6208 rm -f conftest.err conftest.$ac_objext \
6209       conftest$ac_exeext conftest.$ac_ext
6210 fi
6211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6213 if test `eval echo '${'$as_ac_var'}'` = yes; then
6214   cat >>confdefs.h <<_ACEOF
6215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6216 _ACEOF
6217
6218 else
6219
6220 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6221 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6222 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lnsl  $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233
6234 /* Override any gcc2 internal prototype to avoid an error.  */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239    builtin and then its argument prototype would still apply.  */
6240 char gethostbyname ();
6241 int
6242 main ()
6243 {
6244 gethostbyname ();
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251   (eval $ac_link) 2>conftest.er1
6252   ac_status=$?
6253   grep -v '^ *+' conftest.er1 >conftest.err
6254   rm -f conftest.er1
6255   cat conftest.err >&5
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } &&
6258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260   (eval $ac_try) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; } &&
6264          { ac_try='test -s conftest$ac_exeext'
6265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266   (eval $ac_try) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); }; }; then
6270   ac_cv_lib_nsl_gethostbyname=yes
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_cv_lib_nsl_gethostbyname=no
6276 fi
6277 rm -f conftest.err conftest.$ac_objext \
6278       conftest$ac_exeext conftest.$ac_ext
6279 LIBS=$ac_check_lib_save_LIBS
6280 fi
6281 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6282 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6283 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6284   cat >>confdefs.h <<_ACEOF
6285 #define HAVE_LIBNSL 1
6286 _ACEOF
6287
6288   LIBS="-lnsl $LIBS"
6289
6290 fi
6291
6292 fi
6293 done
6294
6295
6296 for ac_func in connect
6297 do
6298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6299 echo "$as_me:$LINENO: checking for $ac_func" >&5
6300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6301 if eval "test \"\${$as_ac_var+set}\" = set"; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h.  */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h.  */
6310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6312 #define $ac_func innocuous_$ac_func
6313
6314 /* System header to define __stub macros and hopefully few prototypes,
6315     which can conflict with char $ac_func (); below.
6316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6317     <limits.h> exists even on freestanding compilers.  */
6318
6319 #ifdef __STDC__
6320 # include <limits.h>
6321 #else
6322 # include <assert.h>
6323 #endif
6324
6325 #undef $ac_func
6326
6327 /* Override any gcc2 internal prototype to avoid an error.  */
6328 #ifdef __cplusplus
6329 extern "C"
6330 {
6331 #endif
6332 /* We use char because int might match the return type of a gcc2
6333    builtin and then its argument prototype would still apply.  */
6334 char $ac_func ();
6335 /* The GNU C library defines this for functions which it implements
6336     to always fail with ENOSYS.  Some functions are actually named
6337     something starting with __ and the normal name is an alias.  */
6338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6339 choke me
6340 #else
6341 char (*f) () = $ac_func;
6342 #endif
6343 #ifdef __cplusplus
6344 }
6345 #endif
6346
6347 int
6348 main ()
6349 {
6350 return f != $ac_func;
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357   (eval $ac_link) 2>conftest.er1
6358   ac_status=$?
6359   grep -v '^ *+' conftest.er1 >conftest.err
6360   rm -f conftest.er1
6361   cat conftest.err >&5
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } &&
6364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; } &&
6370          { ac_try='test -s conftest$ac_exeext'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; }; then
6376   eval "$as_ac_var=yes"
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381 eval "$as_ac_var=no"
6382 fi
6383 rm -f conftest.err conftest.$ac_objext \
6384       conftest$ac_exeext conftest.$ac_ext
6385 fi
6386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6388 if test `eval echo '${'$as_ac_var'}'` = yes; then
6389   cat >>confdefs.h <<_ACEOF
6390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391 _ACEOF
6392
6393 else
6394
6395 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6396 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6397 if test "${ac_cv_lib_socket_connect+set}" = set; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400   ac_check_lib_save_LIBS=$LIBS
6401 LIBS="-lsocket  $LIBS"
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h.  */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h.  */
6408
6409 /* Override any gcc2 internal prototype to avoid an error.  */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 /* We use char because int might match the return type of a gcc2
6414    builtin and then its argument prototype would still apply.  */
6415 char connect ();
6416 int
6417 main ()
6418 {
6419 connect ();
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426   (eval $ac_link) 2>conftest.er1
6427   ac_status=$?
6428   grep -v '^ *+' conftest.er1 >conftest.err
6429   rm -f conftest.er1
6430   cat conftest.err >&5
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } &&
6433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; } &&
6439          { ac_try='test -s conftest$ac_exeext'
6440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441   (eval $ac_try) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; }; then
6445   ac_cv_lib_socket_connect=yes
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 ac_cv_lib_socket_connect=no
6451 fi
6452 rm -f conftest.err conftest.$ac_objext \
6453       conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6455 fi
6456 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6457 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6458 if test $ac_cv_lib_socket_connect = yes; then
6459   cat >>confdefs.h <<_ACEOF
6460 #define HAVE_LIBSOCKET 1
6461 _ACEOF
6462
6463   LIBS="-lsocket $LIBS"
6464
6465 fi
6466
6467 fi
6468 done
6469
6470
6471 for ac_func in inet_aton
6472 do
6473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6474 echo "$as_me:$LINENO: checking for $ac_func" >&5
6475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6476 if eval "test \"\${$as_ac_var+set}\" = set"; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h.  */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h.  */
6485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6487 #define $ac_func innocuous_$ac_func
6488
6489 /* System header to define __stub macros and hopefully few prototypes,
6490     which can conflict with char $ac_func (); below.
6491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6492     <limits.h> exists even on freestanding compilers.  */
6493
6494 #ifdef __STDC__
6495 # include <limits.h>
6496 #else
6497 # include <assert.h>
6498 #endif
6499
6500 #undef $ac_func
6501
6502 /* Override any gcc2 internal prototype to avoid an error.  */
6503 #ifdef __cplusplus
6504 extern "C"
6505 {
6506 #endif
6507 /* We use char because int might match the return type of a gcc2
6508    builtin and then its argument prototype would still apply.  */
6509 char $ac_func ();
6510 /* The GNU C library defines this for functions which it implements
6511     to always fail with ENOSYS.  Some functions are actually named
6512     something starting with __ and the normal name is an alias.  */
6513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6514 choke me
6515 #else
6516 char (*f) () = $ac_func;
6517 #endif
6518 #ifdef __cplusplus
6519 }
6520 #endif
6521
6522 int
6523 main ()
6524 {
6525 return f != $ac_func;
6526   ;
6527   return 0;
6528 }
6529 _ACEOF
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6532   (eval $ac_link) 2>conftest.er1
6533   ac_status=$?
6534   grep -v '^ *+' conftest.er1 >conftest.err
6535   rm -f conftest.er1
6536   cat conftest.err >&5
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); } &&
6539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; } &&
6545          { ac_try='test -s conftest$ac_exeext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   eval "$as_ac_var=yes"
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 eval "$as_ac_var=no"
6557 fi
6558 rm -f conftest.err conftest.$ac_objext \
6559       conftest$ac_exeext conftest.$ac_ext
6560 fi
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6563 if test `eval echo '${'$as_ac_var'}'` = yes; then
6564   cat >>confdefs.h <<_ACEOF
6565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6566 _ACEOF
6567
6568 else
6569
6570 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6571 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6572 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575   ac_check_lib_save_LIBS=$LIBS
6576 LIBS="-lresolv  $LIBS"
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h.  */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h.  */
6583
6584 /* Override any gcc2 internal prototype to avoid an error.  */
6585 #ifdef __cplusplus
6586 extern "C"
6587 #endif
6588 /* We use char because int might match the return type of a gcc2
6589    builtin and then its argument prototype would still apply.  */
6590 char inet_aton ();
6591 int
6592 main ()
6593 {
6594 inet_aton ();
6595   ;
6596   return 0;
6597 }
6598 _ACEOF
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601   (eval $ac_link) 2>conftest.er1
6602   ac_status=$?
6603   grep -v '^ *+' conftest.er1 >conftest.err
6604   rm -f conftest.er1
6605   cat conftest.err >&5
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); } &&
6608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610   (eval $ac_try) 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); }; } &&
6614          { ac_try='test -s conftest$ac_exeext'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; }; then
6620   ac_cv_lib_resolv_inet_aton=yes
6621 else
6622   echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625 ac_cv_lib_resolv_inet_aton=no
6626 fi
6627 rm -f conftest.err conftest.$ac_objext \
6628       conftest$ac_exeext conftest.$ac_ext
6629 LIBS=$ac_check_lib_save_LIBS
6630 fi
6631 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6632 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6633 if test $ac_cv_lib_resolv_inet_aton = yes; then
6634   cat >>confdefs.h <<_ACEOF
6635 #define HAVE_LIBRESOLV 1
6636 _ACEOF
6637
6638   LIBS="-lresolv $LIBS"
6639
6640 fi
6641
6642 fi
6643 done
6644
6645
6646 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6647 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6648 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6649   echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651   ac_check_lib_save_LIBS=$LIBS
6652 LIBS="-lxpg4  $LIBS"
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h.  */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h.  */
6659
6660 /* Override any gcc2 internal prototype to avoid an error.  */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 /* We use char because int might match the return type of a gcc2
6665    builtin and then its argument prototype would still apply.  */
6666 char _xpg4_setrunelocale ();
6667 int
6668 main ()
6669 {
6670 _xpg4_setrunelocale ();
6671   ;
6672   return 0;
6673 }
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677   (eval $ac_link) 2>conftest.er1
6678   ac_status=$?
6679   grep -v '^ *+' conftest.er1 >conftest.err
6680   rm -f conftest.er1
6681   cat conftest.err >&5
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); } &&
6684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; } &&
6690          { ac_try='test -s conftest$ac_exeext'
6691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692   (eval $ac_try) 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; }; then
6696   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6702 fi
6703 rm -f conftest.err conftest.$ac_objext \
6704       conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6706 fi
6707 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6708 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6709 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6710   cat >>confdefs.h <<_ACEOF
6711 #define HAVE_LIBXPG4 1
6712 _ACEOF
6713
6714   LIBS="-lxpg4 $LIBS"
6715
6716 fi
6717
6718
6719 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6720 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6721 if test "${ac_cv_lib_poll_poll+set}" = set; then
6722   echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724   ac_check_lib_save_LIBS=$LIBS
6725 LIBS="-lpoll  $LIBS"
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h.  */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h.  */
6732
6733 /* Override any gcc2 internal prototype to avoid an error.  */
6734 #ifdef __cplusplus
6735 extern "C"
6736 #endif
6737 /* We use char because int might match the return type of a gcc2
6738    builtin and then its argument prototype would still apply.  */
6739 char poll ();
6740 int
6741 main ()
6742 {
6743 poll ();
6744   ;
6745   return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750   (eval $ac_link) 2>conftest.er1
6751   ac_status=$?
6752   grep -v '^ *+' conftest.er1 >conftest.err
6753   rm -f conftest.er1
6754   cat conftest.err >&5
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } &&
6757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; } &&
6763          { ac_try='test -s conftest$ac_exeext'
6764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765   (eval $ac_try) 2>&5
6766   ac_status=$?
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); }; }; then
6769   ac_cv_lib_poll_poll=yes
6770 else
6771   echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 ac_cv_lib_poll_poll=no
6775 fi
6776 rm -f conftest.err conftest.$ac_objext \
6777       conftest$ac_exeext conftest.$ac_ext
6778 LIBS=$ac_check_lib_save_LIBS
6779 fi
6780 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6781 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6782 if test $ac_cv_lib_poll_poll = yes; then
6783   cat >>confdefs.h <<_ACEOF
6784 #define HAVE_LIBPOLL 1
6785 _ACEOF
6786
6787   LIBS="-lpoll $LIBS"
6788
6789 fi
6790
6791
6792 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6793 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6794 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6795   echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797   ac_check_lib_save_LIBS=$LIBS
6798 LIBS="-lresolv  $LIBS"
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h.  */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h.  */
6805
6806 /* Override any gcc2 internal prototype to avoid an error.  */
6807 #ifdef __cplusplus
6808 extern "C"
6809 #endif
6810 /* We use char because int might match the return type of a gcc2
6811    builtin and then its argument prototype would still apply.  */
6812 char res_9_init ();
6813 int
6814 main ()
6815 {
6816 res_9_init ();
6817   ;
6818   return 0;
6819 }
6820 _ACEOF
6821 rm -f conftest.$ac_objext conftest$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823   (eval $ac_link) 2>conftest.er1
6824   ac_status=$?
6825   grep -v '^ *+' conftest.er1 >conftest.err
6826   rm -f conftest.er1
6827   cat conftest.err >&5
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); } &&
6830          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6836          { ac_try='test -s conftest$ac_exeext'
6837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838   (eval $ac_try) 2>&5
6839   ac_status=$?
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); }; }; then
6842   ac_cv_lib_resolv_res_9_init=yes
6843 else
6844   echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6846
6847 ac_cv_lib_resolv_res_9_init=no
6848 fi
6849 rm -f conftest.err conftest.$ac_objext \
6850       conftest$ac_exeext conftest.$ac_ext
6851 LIBS=$ac_check_lib_save_LIBS
6852 fi
6853 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6854 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6855 if test $ac_cv_lib_resolv_res_9_init = yes; then
6856   cat >>confdefs.h <<_ACEOF
6857 #define HAVE_LIBRESOLV 1
6858 _ACEOF
6859
6860   LIBS="-lresolv $LIBS"
6861
6862 fi
6863
6864 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6865 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6866 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lpthread  $LIBS"
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h.  */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h.  */
6877
6878 /* Override any gcc2 internal prototype to avoid an error.  */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 /* We use char because int might match the return type of a gcc2
6883    builtin and then its argument prototype would still apply.  */
6884 char pthread_create ();
6885 int
6886 main ()
6887 {
6888 pthread_create ();
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895   (eval $ac_link) 2>conftest.er1
6896   ac_status=$?
6897   grep -v '^ *+' conftest.er1 >conftest.err
6898   rm -f conftest.er1
6899   cat conftest.err >&5
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } &&
6902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904   (eval $ac_try) 2>&5
6905   ac_status=$?
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); }; } &&
6908          { ac_try='test -s conftest$ac_exeext'
6909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910   (eval $ac_try) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); }; }; then
6914   ac_cv_lib_pthread_pthread_create=yes
6915 else
6916   echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919 ac_cv_lib_pthread_pthread_create=no
6920 fi
6921 rm -f conftest.err conftest.$ac_objext \
6922       conftest$ac_exeext conftest.$ac_ext
6923 LIBS=$ac_check_lib_save_LIBS
6924 fi
6925 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6926 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6927 if test $ac_cv_lib_pthread_pthread_create = yes; then
6928   LIBPTHREAD="-lpthread"
6929
6930 fi
6931
6932
6933
6934
6935 XFILES=""
6936
6937 OPENGLFILES=""
6938
6939 GLU32FILES=""
6940
6941 OPENGL_LIBS=""
6942 if test "$have_x" = "yes"
6943 then
6944     XLIB="-lXext -lX11"
6945     ac_save_CPPFLAGS="$CPPFLAGS"
6946     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6947
6948         echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6949 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6950 if test "${ac_cv_header_stdc+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959 #include <stdlib.h>
6960 #include <stdarg.h>
6961 #include <string.h>
6962 #include <float.h>
6963
6964 int
6965 main ()
6966 {
6967
6968   ;
6969   return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest.$ac_objext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974   (eval $ac_compile) 2>conftest.er1
6975   ac_status=$?
6976   grep -v '^ *+' conftest.er1 >conftest.err
6977   rm -f conftest.er1
6978   cat conftest.err >&5
6979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); } &&
6981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983   (eval $ac_try) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); }; } &&
6987          { ac_try='test -s conftest.$ac_objext'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; }; then
6993   ac_cv_header_stdc=yes
6994 else
6995   echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6997
6998 ac_cv_header_stdc=no
6999 fi
7000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7001
7002 if test $ac_cv_header_stdc = yes; then
7003   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7004   cat >conftest.$ac_ext <<_ACEOF
7005 /* confdefs.h.  */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h.  */
7010 #include <string.h>
7011
7012 _ACEOF
7013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7014   $EGREP "memchr" >/dev/null 2>&1; then
7015   :
7016 else
7017   ac_cv_header_stdc=no
7018 fi
7019 rm -f conftest*
7020
7021 fi
7022
7023 if test $ac_cv_header_stdc = yes; then
7024   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7025   cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h.  */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h.  */
7031 #include <stdlib.h>
7032
7033 _ACEOF
7034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7035   $EGREP "free" >/dev/null 2>&1; then
7036   :
7037 else
7038   ac_cv_header_stdc=no
7039 fi
7040 rm -f conftest*
7041
7042 fi
7043
7044 if test $ac_cv_header_stdc = yes; then
7045   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7046   if test "$cross_compiling" = yes; then
7047   :
7048 else
7049   cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h.  */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h.  */
7055 #include <ctype.h>
7056 #if ((' ' & 0x0FF) == 0x020)
7057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7059 #else
7060 # define ISLOWER(c) \
7061                    (('a' <= (c) && (c) <= 'i') \
7062                      || ('j' <= (c) && (c) <= 'r') \
7063                      || ('s' <= (c) && (c) <= 'z'))
7064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7065 #endif
7066
7067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7068 int
7069 main ()
7070 {
7071   int i;
7072   for (i = 0; i < 256; i++)
7073     if (XOR (islower (i), ISLOWER (i))
7074         || toupper (i) != TOUPPER (i))
7075       exit(2);
7076   exit (0);
7077 }
7078 _ACEOF
7079 rm -f conftest$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081   (eval $ac_link) 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086   (eval $ac_try) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }; }; then
7090   :
7091 else
7092   echo "$as_me: program exited with status $ac_status" >&5
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 ( exit $ac_status )
7097 ac_cv_header_stdc=no
7098 fi
7099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7100 fi
7101 fi
7102 fi
7103 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7104 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7105 if test $ac_cv_header_stdc = yes; then
7106
7107 cat >>confdefs.h <<\_ACEOF
7108 #define STDC_HEADERS 1
7109 _ACEOF
7110
7111 fi
7112
7113 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7124                   inttypes.h stdint.h unistd.h
7125 do
7126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7127 echo "$as_me:$LINENO: checking for $ac_header" >&5
7128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h.  */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h.  */
7138 $ac_includes_default
7139
7140 #include <$ac_header>
7141 _ACEOF
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144   (eval $ac_compile) 2>conftest.er1
7145   ac_status=$?
7146   grep -v '^ *+' conftest.er1 >conftest.err
7147   rm -f conftest.er1
7148   cat conftest.err >&5
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } &&
7151          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153   (eval $ac_try) 2>&5
7154   ac_status=$?
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); }; } &&
7157          { ac_try='test -s conftest.$ac_objext'
7158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159   (eval $ac_try) 2>&5
7160   ac_status=$?
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); }; }; then
7163   eval "$as_ac_Header=yes"
7164 else
7165   echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7167
7168 eval "$as_ac_Header=no"
7169 fi
7170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171 fi
7172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7175   cat >>confdefs.h <<_ACEOF
7176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7177 _ACEOF
7178
7179 fi
7180
7181 done
7182
7183
7184
7185 for ac_header in X11/Xlib.h
7186 do
7187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7189   echo "$as_me:$LINENO: checking for $ac_header" >&5
7190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192   echo $ECHO_N "(cached) $ECHO_C" >&6
7193 fi
7194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7196 else
7197   # Is the header compilable?
7198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7200 cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h.  */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h.  */
7206 $ac_includes_default
7207 #include <$ac_header>
7208 _ACEOF
7209 rm -f conftest.$ac_objext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211   (eval $ac_compile) 2>conftest.er1
7212   ac_status=$?
7213   grep -v '^ *+' conftest.er1 >conftest.err
7214   rm -f conftest.er1
7215   cat conftest.err >&5
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); } &&
7218          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220   (eval $ac_try) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; } &&
7224          { ac_try='test -s conftest.$ac_objext'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; }; then
7230   ac_header_compiler=yes
7231 else
7232   echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 ac_header_compiler=no
7236 fi
7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7239 echo "${ECHO_T}$ac_header_compiler" >&6
7240
7241 # Is the header present?
7242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250 #include <$ac_header>
7251 _ACEOF
7252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7254   ac_status=$?
7255   grep -v '^ *+' conftest.er1 >conftest.err
7256   rm -f conftest.er1
7257   cat conftest.err >&5
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } >/dev/null; then
7260   if test -s conftest.err; then
7261     ac_cpp_err=$ac_c_preproc_warn_flag
7262     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7263   else
7264     ac_cpp_err=
7265   fi
7266 else
7267   ac_cpp_err=yes
7268 fi
7269 if test -z "$ac_cpp_err"; then
7270   ac_header_preproc=yes
7271 else
7272   echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275   ac_header_preproc=no
7276 fi
7277 rm -f conftest.err conftest.$ac_ext
7278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7279 echo "${ECHO_T}$ac_header_preproc" >&6
7280
7281 # So?  What about this header?
7282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7283   yes:no: )
7284     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7288     ac_header_preproc=yes
7289     ;;
7290   no:yes:* )
7291     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7293     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7294 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7295     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7297     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7298 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7301     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7303     (
7304       cat <<\_ASBOX
7305 ## ------------------------------------ ##
7306 ## Report this to wine-devel@winehq.org ##
7307 ## ------------------------------------ ##
7308 _ASBOX
7309     ) |
7310       sed "s/^/$as_me: WARNING:     /" >&2
7311     ;;
7312 esac
7313 echo "$as_me:$LINENO: checking for $ac_header" >&5
7314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   eval "$as_ac_Header=\$ac_header_preproc"
7319 fi
7320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7322
7323 fi
7324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7325   cat >>confdefs.h <<_ACEOF
7326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7327 _ACEOF
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339 for ac_header in X11/XKBlib.h \
7340                           X11/Xutil.h \
7341                           X11/extensions/shape.h \
7342                           X11/extensions/XInput.h \
7343                           X11/extensions/XShm.h \
7344                           X11/extensions/Xrandr.h \
7345                           X11/extensions/Xrender.h \
7346                           X11/extensions/Xvlib.h \
7347                           X11/extensions/xf86dga.h \
7348                           X11/extensions/xf86vmode.h
7349 do
7350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351 echo "$as_me:$LINENO: checking for $ac_header" >&5
7352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h.  */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h.  */
7362 #include <X11/Xlib.h>
7363                           #ifdef HAVE_X11_XUTIL_H
7364                           # include <X11/Xutil.h>
7365                           #endif
7366
7367 #include <$ac_header>
7368 _ACEOF
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371   (eval $ac_compile) 2>conftest.er1
7372   ac_status=$?
7373   grep -v '^ *+' conftest.er1 >conftest.err
7374   rm -f conftest.er1
7375   cat conftest.err >&5
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } &&
7378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380   (eval $ac_try) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }; } &&
7384          { ac_try='test -s conftest.$ac_objext'
7385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386   (eval $ac_try) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }; }; then
7390   eval "$as_ac_Header=yes"
7391 else
7392   echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7394
7395 eval "$as_ac_Header=no"
7396 fi
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 fi
7399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7402   cat >>confdefs.h <<_ACEOF
7403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404 _ACEOF
7405
7406 fi
7407
7408 done
7409
7410
7411                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7412         then
7413               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7414 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7415 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   ac_check_lib_save_LIBS=$LIBS
7419 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426
7427 /* Override any gcc2 internal prototype to avoid an error.  */
7428 #ifdef __cplusplus
7429 extern "C"
7430 #endif
7431 /* We use char because int might match the return type of a gcc2
7432    builtin and then its argument prototype would still apply.  */
7433 char XkbQueryExtension ();
7434 int
7435 main ()
7436 {
7437 XkbQueryExtension ();
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444   (eval $ac_link) 2>conftest.er1
7445   ac_status=$?
7446   grep -v '^ *+' conftest.er1 >conftest.err
7447   rm -f conftest.er1
7448   cat conftest.err >&5
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; } &&
7457          { ac_try='test -s conftest$ac_exeext'
7458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459   (eval $ac_try) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); }; }; then
7463   ac_cv_lib_X11_XkbQueryExtension=yes
7464 else
7465   echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 ac_cv_lib_X11_XkbQueryExtension=no
7469 fi
7470 rm -f conftest.err conftest.$ac_objext \
7471       conftest$ac_exeext conftest.$ac_ext
7472 LIBS=$ac_check_lib_save_LIBS
7473 fi
7474 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7475 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7476 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7477
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_XKB 1
7480 _ACEOF
7481
7482 fi
7483
7484         fi
7485
7486                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7487         then
7488               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7489 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7490 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   ac_check_lib_save_LIBS=$LIBS
7494 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h.  */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h.  */
7501
7502 /* Override any gcc2 internal prototype to avoid an error.  */
7503 #ifdef __cplusplus
7504 extern "C"
7505 #endif
7506 /* We use char because int might match the return type of a gcc2
7507    builtin and then its argument prototype would still apply.  */
7508 char XShmQueryExtension ();
7509 int
7510 main ()
7511 {
7512 XShmQueryExtension ();
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519   (eval $ac_link) 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
7523   cat conftest.err >&5
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528   (eval $ac_try) 2>&5
7529   ac_status=$?
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); }; } &&
7532          { ac_try='test -s conftest$ac_exeext'
7533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534   (eval $ac_try) 2>&5
7535   ac_status=$?
7536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); }; }; then
7538   ac_cv_lib_Xext_XShmQueryExtension=yes
7539 else
7540   echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 ac_cv_lib_Xext_XShmQueryExtension=no
7544 fi
7545 rm -f conftest.err conftest.$ac_objext \
7546       conftest$ac_exeext conftest.$ac_ext
7547 LIBS=$ac_check_lib_save_LIBS
7548 fi
7549 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7550 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7551 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7552
7553 cat >>confdefs.h <<\_ACEOF
7554 #define HAVE_LIBXXSHM 1
7555 _ACEOF
7556
7557 fi
7558
7559         fi
7560
7561                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7562         then
7563               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7564 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7565 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7566   echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568   ac_check_lib_save_LIBS=$LIBS
7569 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h.  */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h.  */
7576
7577 /* Override any gcc2 internal prototype to avoid an error.  */
7578 #ifdef __cplusplus
7579 extern "C"
7580 #endif
7581 /* We use char because int might match the return type of a gcc2
7582    builtin and then its argument prototype would still apply.  */
7583 char XShapeQueryExtension ();
7584 int
7585 main ()
7586 {
7587 XShapeQueryExtension ();
7588   ;
7589   return 0;
7590 }
7591 _ACEOF
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594   (eval $ac_link) 2>conftest.er1
7595   ac_status=$?
7596   grep -v '^ *+' conftest.er1 >conftest.err
7597   rm -f conftest.er1
7598   cat conftest.err >&5
7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600   (exit $ac_status); } &&
7601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603   (eval $ac_try) 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); }; } &&
7607          { ac_try='test -s conftest$ac_exeext'
7608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609   (eval $ac_try) 2>&5
7610   ac_status=$?
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); }; }; then
7613   ac_cv_lib_Xext_XShapeQueryExtension=yes
7614 else
7615   echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7617
7618 ac_cv_lib_Xext_XShapeQueryExtension=no
7619 fi
7620 rm -f conftest.err conftest.$ac_objext \
7621       conftest$ac_exeext conftest.$ac_ext
7622 LIBS=$ac_check_lib_save_LIBS
7623 fi
7624 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7625 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7626 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7627
7628 cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_LIBXSHAPE 1
7630 _ACEOF
7631
7632 fi
7633
7634         fi
7635
7636                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7637         then
7638               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7639 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7640 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h.  */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h.  */
7651
7652 /* Override any gcc2 internal prototype to avoid an error.  */
7653 #ifdef __cplusplus
7654 extern "C"
7655 #endif
7656 /* We use char because int might match the return type of a gcc2
7657    builtin and then its argument prototype would still apply.  */
7658 char XDGAQueryExtension ();
7659 int
7660 main ()
7661 {
7662 XDGAQueryExtension ();
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669   (eval $ac_link) 2>conftest.er1
7670   ac_status=$?
7671   grep -v '^ *+' conftest.er1 >conftest.err
7672   rm -f conftest.er1
7673   cat conftest.err >&5
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); } &&
7676          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678   (eval $ac_try) 2>&5
7679   ac_status=$?
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); }; } &&
7682          { ac_try='test -s conftest$ac_exeext'
7683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684   (eval $ac_try) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); }; }; then
7688   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7689 else
7690   echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7692
7693 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7694 fi
7695 rm -f conftest.err conftest.$ac_objext \
7696       conftest$ac_exeext conftest.$ac_ext
7697 LIBS=$ac_check_lib_save_LIBS
7698 fi
7699 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7700 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7701 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7702
7703 cat >>confdefs.h <<\_ACEOF
7704 #define HAVE_LIBXXF86DGA2 1
7705 _ACEOF
7706
7707                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7708
7709 else
7710                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7711 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7712 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   ac_check_lib_save_LIBS=$LIBS
7716 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7717                    $LIBS"
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h.  */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h.  */
7724
7725 /* Override any gcc2 internal prototype to avoid an error.  */
7726 #ifdef __cplusplus
7727 extern "C"
7728 #endif
7729 /* We use char because int might match the return type of a gcc2
7730    builtin and then its argument prototype would still apply.  */
7731 char XF86DGAQueryExtension ();
7732 int
7733 main ()
7734 {
7735 XF86DGAQueryExtension ();
7736   ;
7737   return 0;
7738 }
7739 _ACEOF
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742   (eval $ac_link) 2>conftest.er1
7743   ac_status=$?
7744   grep -v '^ *+' conftest.er1 >conftest.err
7745   rm -f conftest.er1
7746   cat conftest.err >&5
7747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); } &&
7749          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751   (eval $ac_try) 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); }; } &&
7755          { ac_try='test -s conftest$ac_exeext'
7756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757   (eval $ac_try) 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }; }; then
7761   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7767 fi
7768 rm -f conftest.err conftest.$ac_objext \
7769       conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7771 fi
7772 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7773 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7774 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7775
7776 cat >>confdefs.h <<\_ACEOF
7777 #define HAVE_LIBXXF86DGA 1
7778 _ACEOF
7779
7780                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7781
7782 fi
7783
7784
7785 fi
7786
7787         fi
7788
7789                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7790         then
7791                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7792 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7793 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h.  */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h.  */
7804
7805 /* Override any gcc2 internal prototype to avoid an error.  */
7806 #ifdef __cplusplus
7807 extern "C"
7808 #endif
7809 /* We use char because int might match the return type of a gcc2
7810    builtin and then its argument prototype would still apply.  */
7811 char XF86VidModeQueryExtension ();
7812 int
7813 main ()
7814 {
7815 XF86VidModeQueryExtension ();
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822   (eval $ac_link) 2>conftest.er1
7823   ac_status=$?
7824   grep -v '^ *+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } &&
7829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831   (eval $ac_try) 2>&5
7832   ac_status=$?
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); }; } &&
7835          { ac_try='test -s conftest$ac_exeext'
7836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837   (eval $ac_try) 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); }; }; then
7841   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7842 else
7843   echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7847 fi
7848 rm -f conftest.err conftest.$ac_objext \
7849       conftest$ac_exeext conftest.$ac_ext
7850 LIBS=$ac_check_lib_save_LIBS
7851 fi
7852 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7853 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7854 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7855
7856 cat >>confdefs.h <<\_ACEOF
7857 #define HAVE_LIBXXF86VM 1
7858 _ACEOF
7859
7860                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7861
7862 fi
7863
7864         fi
7865
7866                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7867         then
7868                 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874 #include <X11/Xlib.h>
7875 #include <X11/extensions/Xrandr.h>
7876 int
7877 main ()
7878 {
7879 static typeof(XRRSetScreenConfigAndRate) * func;
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 rm -f conftest.$ac_objext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7886   (eval $ac_compile) 2>conftest.er1
7887   ac_status=$?
7888   grep -v '^ *+' conftest.er1 >conftest.err
7889   rm -f conftest.er1
7890   cat conftest.err >&5
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); } &&
7893          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895   (eval $ac_try) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; } &&
7899          { ac_try='test -s conftest.$ac_objext'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; }; then
7905
7906 cat >>confdefs.h <<\_ACEOF
7907 #define HAVE_LIBXRANDR 1
7908 _ACEOF
7909
7910 else
7911   echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7913
7914 fi
7915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7916         fi
7917
7918                 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7919         then
7920                 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7921 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7922 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   ac_check_lib_save_LIBS=$LIBS
7926 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7927 cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h.  */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h.  */
7933
7934 /* Override any gcc2 internal prototype to avoid an error.  */
7935 #ifdef __cplusplus
7936 extern "C"
7937 #endif
7938 /* We use char because int might match the return type of a gcc2
7939    builtin and then its argument prototype would still apply.  */
7940 char XvShmCreateImage ();
7941 int
7942 main ()
7943 {
7944 XvShmCreateImage ();
7945   ;
7946   return 0;
7947 }
7948 _ACEOF
7949 rm -f conftest.$ac_objext conftest$ac_exeext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951   (eval $ac_link) 2>conftest.er1
7952   ac_status=$?
7953   grep -v '^ *+' conftest.er1 >conftest.err
7954   rm -f conftest.er1
7955   cat conftest.err >&5
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } &&
7958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960   (eval $ac_try) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); }; } &&
7964          { ac_try='test -s conftest$ac_exeext'
7965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966   (eval $ac_try) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   ac_cv_lib_Xv_XvShmCreateImage=yes
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 ac_cv_lib_Xv_XvShmCreateImage=no
7976 fi
7977 rm -f conftest.err conftest.$ac_objext \
7978       conftest$ac_exeext conftest.$ac_ext
7979 LIBS=$ac_check_lib_save_LIBS
7980 fi
7981 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7982 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7983 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7984
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_XVIDEO 1
7987 _ACEOF
7988
7989                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7990
7991 fi
7992
7993         fi
7994
7995
7996 fi
7997
7998 done
7999
8000         if test "x$with_opengl" != "xno"
8001     then
8002         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8003         then
8004             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8005 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8006 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8007 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8008    { (exit 1); exit 1; }; }
8009         fi
8010
8011
8012
8013 for ac_header in GL/gl.h GL/glx.h
8014 do
8015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8017   echo "$as_me:$LINENO: checking for $ac_header" >&5
8018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 fi
8022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8024 else
8025   # Is the header compilable?
8026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h.  */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h.  */
8034 $ac_includes_default
8035 #include <$ac_header>
8036 _ACEOF
8037 rm -f conftest.$ac_objext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039   (eval $ac_compile) 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } &&
8046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048   (eval $ac_try) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); }; } &&
8052          { ac_try='test -s conftest.$ac_objext'
8053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054   (eval $ac_try) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; }; then
8058   ac_header_compiler=yes
8059 else
8060   echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_header_compiler=no
8064 fi
8065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8067 echo "${ECHO_T}$ac_header_compiler" >&6
8068
8069 # Is the header present?
8070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078 #include <$ac_header>
8079 _ACEOF
8080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8082   ac_status=$?
8083   grep -v '^ *+' conftest.er1 >conftest.err
8084   rm -f conftest.er1
8085   cat conftest.err >&5
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } >/dev/null; then
8088   if test -s conftest.err; then
8089     ac_cpp_err=$ac_c_preproc_warn_flag
8090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8091   else
8092     ac_cpp_err=
8093   fi
8094 else
8095   ac_cpp_err=yes
8096 fi
8097 if test -z "$ac_cpp_err"; then
8098   ac_header_preproc=yes
8099 else
8100   echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103   ac_header_preproc=no
8104 fi
8105 rm -f conftest.err conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107 echo "${ECHO_T}$ac_header_preproc" >&6
8108
8109 # So?  What about this header?
8110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8111   yes:no: )
8112     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8116     ac_header_preproc=yes
8117     ;;
8118   no:yes:* )
8119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8121     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8122 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8123     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8125     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8126 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8129     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8131     (
8132       cat <<\_ASBOX
8133 ## ------------------------------------ ##
8134 ## Report this to wine-devel@winehq.org ##
8135 ## ------------------------------------ ##
8136 _ASBOX
8137     ) |
8138       sed "s/^/$as_me: WARNING:     /" >&2
8139     ;;
8140 esac
8141 echo "$as_me:$LINENO: checking for $ac_header" >&5
8142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8144   echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146   eval "$as_ac_Header=\$ac_header_preproc"
8147 fi
8148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8150
8151 fi
8152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8153   cat >>confdefs.h <<_ACEOF
8154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8155 _ACEOF
8156
8157 fi
8158
8159 done
8160
8161         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8162         then
8163
8164 for ac_header in GL/glext.h
8165 do
8166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8167 echo "$as_me:$LINENO: checking for $ac_header" >&5
8168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172   cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h.  */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h.  */
8178 #include <GL/glx.h>
8179
8180 #include <$ac_header>
8181 _ACEOF
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8184   (eval $ac_compile) 2>conftest.er1
8185   ac_status=$?
8186   grep -v '^ *+' conftest.er1 >conftest.err
8187   rm -f conftest.er1
8188   cat conftest.err >&5
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); } &&
8191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193   (eval $ac_try) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; } &&
8197          { ac_try='test -s conftest.$ac_objext'
8198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199   (eval $ac_try) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; }; then
8203   eval "$as_ac_Header=yes"
8204 else
8205   echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208 eval "$as_ac_Header=no"
8209 fi
8210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8215   cat >>confdefs.h <<_ACEOF
8216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8217 _ACEOF
8218
8219 fi
8220
8221 done
8222
8223                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8224 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8225 if test "${wine_cv_opengl_version_OK+set}" = set; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234 #include <GL/gl.h>
8235 int
8236 main ()
8237 {
8238 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8239   ;
8240   return 0;
8241 }
8242 _ACEOF
8243 rm -f conftest.$ac_objext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8245   (eval $ac_compile) 2>conftest.er1
8246   ac_status=$?
8247   grep -v '^ *+' conftest.er1 >conftest.err
8248   rm -f conftest.er1
8249   cat conftest.err >&5
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } &&
8252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; } &&
8258          { ac_try='test -s conftest.$ac_objext'
8259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260   (eval $ac_try) 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; }; then
8264   wine_cv_opengl_version_OK="yes"
8265 else
8266   echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 wine_cv_opengl_version_OK="no"
8270
8271 fi
8272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8273
8274 fi
8275 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8276 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8277
8278             if test "$wine_cv_opengl_version_OK" = "yes"
8279             then
8280                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8281 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8282 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8283   echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285   ac_check_lib_save_LIBS=$LIBS
8286 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8287 cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293
8294 /* Override any gcc2 internal prototype to avoid an error.  */
8295 #ifdef __cplusplus
8296 extern "C"
8297 #endif
8298 /* We use char because int might match the return type of a gcc2
8299    builtin and then its argument prototype would still apply.  */
8300 char glXCreateContext ();
8301 int
8302 main ()
8303 {
8304 glXCreateContext ();
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311   (eval $ac_link) 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } &&
8318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320   (eval $ac_try) 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; } &&
8324          { ac_try='test -s conftest$ac_exeext'
8325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326   (eval $ac_try) 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; }; then
8330   ac_cv_lib_GL_glXCreateContext=yes
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 ac_cv_lib_GL_glXCreateContext=no
8336 fi
8337 rm -f conftest.err conftest.$ac_objext \
8338       conftest$ac_exeext conftest.$ac_ext
8339 LIBS=$ac_check_lib_save_LIBS
8340 fi
8341 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8342 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8343 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8344   OPENGL_LIBS="-lGL"
8345
8346 fi
8347
8348
8349                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8350                 then
8351                         OPENGLFILES='$(OPENGLFILES)'
8352
8353 cat >>confdefs.h <<\_ACEOF
8354 #define HAVE_OPENGL 1
8355 _ACEOF
8356
8357
8358                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8359 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8360 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   ac_check_lib_save_LIBS=$LIBS
8364 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h.  */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h.  */
8371
8372 /* Override any gcc2 internal prototype to avoid an error.  */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 /* We use char because int might match the return type of a gcc2
8377    builtin and then its argument prototype would still apply.  */
8378 char glXGetProcAddressARB ();
8379 int
8380 main ()
8381 {
8382 glXGetProcAddressARB ();
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389   (eval $ac_link) 2>conftest.er1
8390   ac_status=$?
8391   grep -v '^ *+' conftest.er1 >conftest.err
8392   rm -f conftest.er1
8393   cat conftest.err >&5
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; } &&
8402          { ac_try='test -s conftest$ac_exeext'
8403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404   (eval $ac_try) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; }; then
8408   ac_cv_lib_GL_glXGetProcAddressARB=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 ac_cv_lib_GL_glXGetProcAddressARB=no
8414 fi
8415 rm -f conftest.err conftest.$ac_objext \
8416       conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8418 fi
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8420 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8421 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8422
8423 cat >>confdefs.h <<\_ACEOF
8424 #define HAVE_GLX_GETPROCADDRESS 1
8425 _ACEOF
8426
8427 fi
8428
8429
8430                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8431                         then
8432                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8433 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8434 if test "${wine_cv_extension_prototypes+set}" = set; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443 #include <GL/gl.h>
8444                                                   #ifdef HAVE_GL_GLEXT_H
8445                                                   # include <GL/glext.h>
8446                                                   #endif
8447
8448 int
8449 main ()
8450 {
8451 PFNGLCOLORTABLEEXTPROC test_proc;
8452   ;
8453   return 0;
8454 }
8455 _ACEOF
8456 rm -f conftest.$ac_objext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8458   (eval $ac_compile) 2>conftest.er1
8459   ac_status=$?
8460   grep -v '^ *+' conftest.er1 >conftest.err
8461   rm -f conftest.er1
8462   cat conftest.err >&5
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } &&
8465          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; } &&
8471          { ac_try='test -s conftest.$ac_objext'
8472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473   (eval $ac_try) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }; }; then
8477   wine_cv_extension_prototypes="yes"
8478 else
8479   echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8481
8482 wine_cv_extension_prototypes="no"
8483
8484 fi
8485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8486
8487 fi
8488 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8489 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8490                                 if test "$wine_cv_extension_prototypes" = "yes"
8491                                 then
8492
8493 cat >>confdefs.h <<\_ACEOF
8494 #define HAVE_GLEXT_PROTOTYPES 1
8495 _ACEOF
8496
8497                                 fi
8498                         fi
8499
8500                 fi
8501                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8502 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8503 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   ac_check_lib_save_LIBS=$LIBS
8507 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8508                  $LIBS"
8509 cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515
8516 /* Override any gcc2 internal prototype to avoid an error.  */
8517 #ifdef __cplusplus
8518 extern "C"
8519 #endif
8520 /* We use char because int might match the return type of a gcc2
8521    builtin and then its argument prototype would still apply.  */
8522 char gluLookAt ();
8523 int
8524 main ()
8525 {
8526 gluLookAt ();
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533   (eval $ac_link) 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; } &&
8546          { ac_try='test -s conftest$ac_exeext'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; }; then
8552   ac_cv_lib_GLU_gluLookAt=yes
8553 else
8554   echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557 ac_cv_lib_GLU_gluLookAt=no
8558 fi
8559 rm -f conftest.err conftest.$ac_objext \
8560       conftest$ac_exeext conftest.$ac_ext
8561 LIBS=$ac_check_lib_save_LIBS
8562 fi
8563 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8564 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8565 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8566   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8567                              GLU32FILES='$(GLU32FILES)'
8568
8569 fi
8570
8571              fi
8572
8573                           echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8574 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8575 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   ac_check_lib_save_LIBS=$LIBS
8579 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h.  */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h.  */
8586
8587 /* Override any gcc2 internal prototype to avoid an error.  */
8588 #ifdef __cplusplus
8589 extern "C"
8590 #endif
8591 /* We use char because int might match the return type of a gcc2
8592    builtin and then its argument prototype would still apply.  */
8593 char glutMainLoop ();
8594 int
8595 main ()
8596 {
8597 glutMainLoop ();
8598   ;
8599   return 0;
8600 }
8601 _ACEOF
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604   (eval $ac_link) 2>conftest.er1
8605   ac_status=$?
8606   grep -v '^ *+' conftest.er1 >conftest.err
8607   rm -f conftest.er1
8608   cat conftest.err >&5
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
8617          { ac_try='test -s conftest$ac_exeext'
8618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619   (eval $ac_try) 2>&5
8620   ac_status=$?
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); }; }; then
8623   ac_cv_lib_glut_glutMainLoop=yes
8624 else
8625   echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628 ac_cv_lib_glut_glutMainLoop=no
8629 fi
8630 rm -f conftest.err conftest.$ac_objext \
8631       conftest$ac_exeext conftest.$ac_ext
8632 LIBS=$ac_check_lib_save_LIBS
8633 fi
8634 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8635 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8636 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8637   GLUT_LIBS="-lglut -lXmu -lXi"
8638
8639                         GLUT32FILES='$(GLUT32FILES)'
8640
8641 fi
8642
8643          fi
8644     fi
8645
8646         NASLIBS=""
8647
8648
8649 for ac_header in audio/audiolib.h
8650 do
8651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8653   echo "$as_me:$LINENO: checking for $ac_header" >&5
8654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 fi
8658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8660 else
8661   # Is the header compilable?
8662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8670 $ac_includes_default
8671 #include <$ac_header>
8672 _ACEOF
8673 rm -f conftest.$ac_objext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8675   (eval $ac_compile) 2>conftest.er1
8676   ac_status=$?
8677   grep -v '^ *+' conftest.er1 >conftest.err
8678   rm -f conftest.er1
8679   cat conftest.err >&5
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); } &&
8682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684   (eval $ac_try) 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); }; } &&
8688          { ac_try='test -s conftest.$ac_objext'
8689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690   (eval $ac_try) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; }; then
8694   ac_header_compiler=yes
8695 else
8696   echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699 ac_header_compiler=no
8700 fi
8701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8703 echo "${ECHO_T}$ac_header_compiler" >&6
8704
8705 # Is the header present?
8706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8708 cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h.  */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h.  */
8714 #include <$ac_header>
8715 _ACEOF
8716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8717   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8718   ac_status=$?
8719   grep -v '^ *+' conftest.er1 >conftest.err
8720   rm -f conftest.er1
8721   cat conftest.err >&5
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } >/dev/null; then
8724   if test -s conftest.err; then
8725     ac_cpp_err=$ac_c_preproc_warn_flag
8726     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8727   else
8728     ac_cpp_err=
8729   fi
8730 else
8731   ac_cpp_err=yes
8732 fi
8733 if test -z "$ac_cpp_err"; then
8734   ac_header_preproc=yes
8735 else
8736   echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739   ac_header_preproc=no
8740 fi
8741 rm -f conftest.err conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8743 echo "${ECHO_T}$ac_header_preproc" >&6
8744
8745 # So?  What about this header?
8746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8747   yes:no: )
8748     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8752     ac_header_preproc=yes
8753     ;;
8754   no:yes:* )
8755     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8757     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8758 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8759     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8761     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8762 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8767     (
8768       cat <<\_ASBOX
8769 ## ------------------------------------ ##
8770 ## Report this to wine-devel@winehq.org ##
8771 ## ------------------------------------ ##
8772 _ASBOX
8773     ) |
8774       sed "s/^/$as_me: WARNING:     /" >&2
8775     ;;
8776 esac
8777 echo "$as_me:$LINENO: checking for $ac_header" >&5
8778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8780   echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782   eval "$as_ac_Header=\$ac_header_preproc"
8783 fi
8784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8786
8787 fi
8788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8789   cat >>confdefs.h <<_ACEOF
8790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8791 _ACEOF
8792
8793 for ac_header in audio/soundlib.h
8794 do
8795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8796 echo "$as_me:$LINENO: checking for $ac_header" >&5
8797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801   cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807 #include <audio/audiolib.h>
8808
8809 #include <$ac_header>
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813   (eval $ac_compile) 2>conftest.er1
8814   ac_status=$?
8815   grep -v '^ *+' conftest.er1 >conftest.err
8816   rm -f conftest.er1
8817   cat conftest.err >&5
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } &&
8820          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; } &&
8826          { ac_try='test -s conftest.$ac_objext'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; }; then
8832   eval "$as_ac_Header=yes"
8833 else
8834   echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 eval "$as_ac_Header=no"
8838 fi
8839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8840 fi
8841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8844   cat >>confdefs.h <<_ACEOF
8845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8846 _ACEOF
8847
8848 fi
8849
8850 done
8851
8852           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8853 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8854 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8855   echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857   ac_check_lib_save_LIBS=$LIBS
8858 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h.  */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h.  */
8865
8866 /* Override any gcc2 internal prototype to avoid an error.  */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 /* We use char because int might match the return type of a gcc2
8871    builtin and then its argument prototype would still apply.  */
8872 char AuCreateFlow ();
8873 int
8874 main ()
8875 {
8876 AuCreateFlow ();
8877   ;
8878   return 0;
8879 }
8880 _ACEOF
8881 rm -f conftest.$ac_objext conftest$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883   (eval $ac_link) 2>conftest.er1
8884   ac_status=$?
8885   grep -v '^ *+' conftest.er1 >conftest.err
8886   rm -f conftest.er1
8887   cat conftest.err >&5
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); } &&
8890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892   (eval $ac_try) 2>&5
8893   ac_status=$?
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); }; } &&
8896          { ac_try='test -s conftest$ac_exeext'
8897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898   (eval $ac_try) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; }; then
8902   ac_cv_lib_audio_AuCreateFlow=yes
8903 else
8904   echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ac_cv_lib_audio_AuCreateFlow=no
8908 fi
8909 rm -f conftest.err conftest.$ac_objext \
8910       conftest$ac_exeext conftest.$ac_ext
8911 LIBS=$ac_check_lib_save_LIBS
8912 fi
8913 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8914 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8915 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8916
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_NAS 1
8919 _ACEOF
8920
8921                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8922 fi
8923
8924 fi
8925
8926 done
8927
8928
8929     CPPFLAGS="$ac_save_CPPFLAGS"
8930     XFILES='$(XFILES)'
8931 else
8932     XLIB=""
8933     X_CFLAGS=""
8934     X_LIBS=""
8935 fi
8936
8937 CURSESLIBS=""
8938 if test "x$with_curses" != "xno"
8939 then
8940
8941 for ac_header in ncurses.h
8942 do
8943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8945   echo "$as_me:$LINENO: checking for $ac_header" >&5
8946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 fi
8950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8952 else
8953   # Is the header compilable?
8954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962 $ac_includes_default
8963 #include <$ac_header>
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967   (eval $ac_compile) 2>conftest.er1
8968   ac_status=$?
8969   grep -v '^ *+' conftest.er1 >conftest.err
8970   rm -f conftest.er1
8971   cat conftest.err >&5
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); } &&
8974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976   (eval $ac_try) 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); }; } &&
8980          { ac_try='test -s conftest.$ac_objext'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; }; then
8986   ac_header_compiler=yes
8987 else
8988   echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8990
8991 ac_header_compiler=no
8992 fi
8993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8995 echo "${ECHO_T}$ac_header_compiler" >&6
8996
8997 # Is the header present?
8998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h.  */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h.  */
9006 #include <$ac_header>
9007 _ACEOF
9008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9010   ac_status=$?
9011   grep -v '^ *+' conftest.er1 >conftest.err
9012   rm -f conftest.er1
9013   cat conftest.err >&5
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); } >/dev/null; then
9016   if test -s conftest.err; then
9017     ac_cpp_err=$ac_c_preproc_warn_flag
9018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9019   else
9020     ac_cpp_err=
9021   fi
9022 else
9023   ac_cpp_err=yes
9024 fi
9025 if test -z "$ac_cpp_err"; then
9026   ac_header_preproc=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031   ac_header_preproc=no
9032 fi
9033 rm -f conftest.err conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035 echo "${ECHO_T}$ac_header_preproc" >&6
9036
9037 # So?  What about this header?
9038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9039   yes:no: )
9040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9044     ac_header_preproc=yes
9045     ;;
9046   no:yes:* )
9047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9059     (
9060       cat <<\_ASBOX
9061 ## ------------------------------------ ##
9062 ## Report this to wine-devel@winehq.org ##
9063 ## ------------------------------------ ##
9064 _ASBOX
9065     ) |
9066       sed "s/^/$as_me: WARNING:     /" >&2
9067     ;;
9068 esac
9069 echo "$as_me:$LINENO: checking for $ac_header" >&5
9070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9072   echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074   eval "$as_ac_Header=\$ac_header_preproc"
9075 fi
9076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9078
9079 fi
9080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9081   cat >>confdefs.h <<_ACEOF
9082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9083 _ACEOF
9084  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9085 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9086 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9087   echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089   ac_check_lib_save_LIBS=$LIBS
9090 LIBS="-lncurses  $LIBS"
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h.  */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h.  */
9097
9098 /* Override any gcc2 internal prototype to avoid an error.  */
9099 #ifdef __cplusplus
9100 extern "C"
9101 #endif
9102 /* We use char because int might match the return type of a gcc2
9103    builtin and then its argument prototype would still apply.  */
9104 char waddch ();
9105 int
9106 main ()
9107 {
9108 waddch ();
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115   (eval $ac_link) 2>conftest.er1
9116   ac_status=$?
9117   grep -v '^ *+' conftest.er1 >conftest.err
9118   rm -f conftest.er1
9119   cat conftest.err >&5
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } &&
9122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124   (eval $ac_try) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); }; } &&
9128          { ac_try='test -s conftest$ac_exeext'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; }; then
9134   ac_cv_lib_ncurses_waddch=yes
9135 else
9136   echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139 ac_cv_lib_ncurses_waddch=no
9140 fi
9141 rm -f conftest.err conftest.$ac_objext \
9142       conftest$ac_exeext conftest.$ac_ext
9143 LIBS=$ac_check_lib_save_LIBS
9144 fi
9145 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9146 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9147 if test $ac_cv_lib_ncurses_waddch = yes; then
9148
9149 cat >>confdefs.h <<\_ACEOF
9150 #define HAVE_LIBNCURSES 1
9151 _ACEOF
9152
9153              CURSESLIBS="-lncurses"
9154 else
9155
9156 for ac_header in curses.h
9157 do
9158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9160   echo "$as_me:$LINENO: checking for $ac_header" >&5
9161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 fi
9165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9167 else
9168   # Is the header compilable?
9169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9171 cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h.  */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h.  */
9177 $ac_includes_default
9178 #include <$ac_header>
9179 _ACEOF
9180 rm -f conftest.$ac_objext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9182   (eval $ac_compile) 2>conftest.er1
9183   ac_status=$?
9184   grep -v '^ *+' conftest.er1 >conftest.err
9185   rm -f conftest.er1
9186   cat conftest.err >&5
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } &&
9189          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191   (eval $ac_try) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); }; } &&
9195          { ac_try='test -s conftest.$ac_objext'
9196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197   (eval $ac_try) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); }; }; then
9201   ac_header_compiler=yes
9202 else
9203   echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9205
9206 ac_header_compiler=no
9207 fi
9208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9210 echo "${ECHO_T}$ac_header_compiler" >&6
9211
9212 # Is the header present?
9213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221 #include <$ac_header>
9222 _ACEOF
9223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9224   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9225   ac_status=$?
9226   grep -v '^ *+' conftest.er1 >conftest.err
9227   rm -f conftest.er1
9228   cat conftest.err >&5
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); } >/dev/null; then
9231   if test -s conftest.err; then
9232     ac_cpp_err=$ac_c_preproc_warn_flag
9233     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9234   else
9235     ac_cpp_err=
9236   fi
9237 else
9238   ac_cpp_err=yes
9239 fi
9240 if test -z "$ac_cpp_err"; then
9241   ac_header_preproc=yes
9242 else
9243   echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9245
9246   ac_header_preproc=no
9247 fi
9248 rm -f conftest.err conftest.$ac_ext
9249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9250 echo "${ECHO_T}$ac_header_preproc" >&6
9251
9252 # So?  What about this header?
9253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9254   yes:no: )
9255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9259     ac_header_preproc=yes
9260     ;;
9261   no:yes:* )
9262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9274     (
9275       cat <<\_ASBOX
9276 ## ------------------------------------ ##
9277 ## Report this to wine-devel@winehq.org ##
9278 ## ------------------------------------ ##
9279 _ASBOX
9280     ) |
9281       sed "s/^/$as_me: WARNING:     /" >&2
9282     ;;
9283 esac
9284 echo "$as_me:$LINENO: checking for $ac_header" >&5
9285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   eval "$as_ac_Header=\$ac_header_preproc"
9290 fi
9291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9293
9294 fi
9295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9296   cat >>confdefs.h <<_ACEOF
9297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9298 _ACEOF
9299  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9300 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9301 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9302   echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304   ac_check_lib_save_LIBS=$LIBS
9305 LIBS="-lcurses  $LIBS"
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h.  */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h.  */
9312
9313 /* Override any gcc2 internal prototype to avoid an error.  */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 /* We use char because int might match the return type of a gcc2
9318    builtin and then its argument prototype would still apply.  */
9319 char waddch ();
9320 int
9321 main ()
9322 {
9323 waddch ();
9324   ;
9325   return 0;
9326 }
9327 _ACEOF
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330   (eval $ac_link) 2>conftest.er1
9331   ac_status=$?
9332   grep -v '^ *+' conftest.er1 >conftest.err
9333   rm -f conftest.er1
9334   cat conftest.err >&5
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); } &&
9337          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339   (eval $ac_try) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); }; } &&
9343          { ac_try='test -s conftest$ac_exeext'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   ac_cv_lib_curses_waddch=yes
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354 ac_cv_lib_curses_waddch=no
9355 fi
9356 rm -f conftest.err conftest.$ac_objext \
9357       conftest$ac_exeext conftest.$ac_ext
9358 LIBS=$ac_check_lib_save_LIBS
9359 fi
9360 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9361 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9362 if test $ac_cv_lib_curses_waddch = yes; then
9363
9364 cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_LIBCURSES 1
9366 _ACEOF
9367
9368                       CURSESLIBS="-lcurses"
9369 fi
9370
9371 fi
9372
9373 done
9374
9375 fi
9376
9377 fi
9378
9379 done
9380
9381     saved_libs="$LIBS"
9382     LIBS="$CURSESLIBS $LIBS"
9383
9384
9385 for ac_func in getbkgd resizeterm
9386 do
9387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9388 echo "$as_me:$LINENO: checking for $ac_func" >&5
9389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9390 if eval "test \"\${$as_ac_var+set}\" = set"; then
9391   echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393   cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h.  */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h.  */
9399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9401 #define $ac_func innocuous_$ac_func
9402
9403 /* System header to define __stub macros and hopefully few prototypes,
9404     which can conflict with char $ac_func (); below.
9405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406     <limits.h> exists even on freestanding compilers.  */
9407
9408 #ifdef __STDC__
9409 # include <limits.h>
9410 #else
9411 # include <assert.h>
9412 #endif
9413
9414 #undef $ac_func
9415
9416 /* Override any gcc2 internal prototype to avoid an error.  */
9417 #ifdef __cplusplus
9418 extern "C"
9419 {
9420 #endif
9421 /* We use char because int might match the return type of a gcc2
9422    builtin and then its argument prototype would still apply.  */
9423 char $ac_func ();
9424 /* The GNU C library defines this for functions which it implements
9425     to always fail with ENOSYS.  Some functions are actually named
9426     something starting with __ and the normal name is an alias.  */
9427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9428 choke me
9429 #else
9430 char (*f) () = $ac_func;
9431 #endif
9432 #ifdef __cplusplus
9433 }
9434 #endif
9435
9436 int
9437 main ()
9438 {
9439 return f != $ac_func;
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446   (eval $ac_link) 2>conftest.er1
9447   ac_status=$?
9448   grep -v '^ *+' conftest.er1 >conftest.err
9449   rm -f conftest.er1
9450   cat conftest.err >&5
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } &&
9453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455   (eval $ac_try) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); }; } &&
9459          { ac_try='test -s conftest$ac_exeext'
9460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461   (eval $ac_try) 2>&5
9462   ac_status=$?
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); }; }; then
9465   eval "$as_ac_var=yes"
9466 else
9467   echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 eval "$as_ac_var=no"
9471 fi
9472 rm -f conftest.err conftest.$ac_objext \
9473       conftest$ac_exeext conftest.$ac_ext
9474 fi
9475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9477 if test `eval echo '${'$as_ac_var'}'` = yes; then
9478   cat >>confdefs.h <<_ACEOF
9479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9480 _ACEOF
9481
9482 fi
9483 done
9484
9485     LIBS="$saved_libs"
9486 fi
9487
9488
9489 # Extract the first word of "sane-config", so it can be a program name with args.
9490 set dummy sane-config; ac_word=$2
9491 echo "$as_me:$LINENO: checking for $ac_word" >&5
9492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9493 if test "${ac_cv_prog_sane_devel+set}" = set; then
9494   echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496   if test -n "$sane_devel"; then
9497   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502   IFS=$as_save_IFS
9503   test -z "$as_dir" && as_dir=.
9504   for ac_exec_ext in '' $ac_executable_extensions; do
9505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506     ac_cv_prog_sane_devel="sane-config"
9507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9508     break 2
9509   fi
9510 done
9511 done
9512
9513   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9514 fi
9515 fi
9516 sane_devel=$ac_cv_prog_sane_devel
9517 if test -n "$sane_devel"; then
9518   echo "$as_me:$LINENO: result: $sane_devel" >&5
9519 echo "${ECHO_T}$sane_devel" >&6
9520 else
9521   echo "$as_me:$LINENO: result: no" >&5
9522 echo "${ECHO_T}no" >&6
9523 fi
9524
9525 if test "$sane_devel" = "no"
9526 then
9527     SANELIBS=""
9528     SANEINCL=""
9529 else
9530     SANELIBS="`$sane_devel --libs`"
9531     SANEINCL="`$sane_devel --cflags`"
9532     ac_save_CPPFLAGS="$CPPFLAGS"
9533     ac_save_LIBS="$LIBS"
9534     CPPFLAGS="$CPPFLAGS $SANEINCL"
9535     LIBS="$LIBS $SANELIBS"
9536     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9537   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9538 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9539 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 fi
9542 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9543 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9544 else
9545   # Is the header compilable?
9546 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9547 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554 $ac_includes_default
9555 #include <sane/sane.h>
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559   (eval $ac_compile) 2>conftest.er1
9560   ac_status=$?
9561   grep -v '^ *+' conftest.er1 >conftest.err
9562   rm -f conftest.er1
9563   cat conftest.err >&5
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); } &&
9566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568   (eval $ac_try) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; } &&
9572          { ac_try='test -s conftest.$ac_objext'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; }; then
9578   ac_header_compiler=yes
9579 else
9580   echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 ac_header_compiler=no
9584 fi
9585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9587 echo "${ECHO_T}$ac_header_compiler" >&6
9588
9589 # Is the header present?
9590 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9591 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h.  */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h.  */
9598 #include <sane/sane.h>
9599 _ACEOF
9600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9602   ac_status=$?
9603   grep -v '^ *+' conftest.er1 >conftest.err
9604   rm -f conftest.er1
9605   cat conftest.err >&5
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); } >/dev/null; then
9608   if test -s conftest.err; then
9609     ac_cpp_err=$ac_c_preproc_warn_flag
9610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9611   else
9612     ac_cpp_err=
9613   fi
9614 else
9615   ac_cpp_err=yes
9616 fi
9617 if test -z "$ac_cpp_err"; then
9618   ac_header_preproc=yes
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623   ac_header_preproc=no
9624 fi
9625 rm -f conftest.err conftest.$ac_ext
9626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627 echo "${ECHO_T}$ac_header_preproc" >&6
9628
9629 # So?  What about this header?
9630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9631   yes:no: )
9632     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9633 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9635 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9636     ac_header_preproc=yes
9637     ;;
9638   no:yes:* )
9639     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9640 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9641     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
9642 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
9643     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9644 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9645     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
9646 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9647     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9648 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9649     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9650 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9651     (
9652       cat <<\_ASBOX
9653 ## ------------------------------------ ##
9654 ## Report this to wine-devel@winehq.org ##
9655 ## ------------------------------------ ##
9656 _ASBOX
9657     ) |
9658       sed "s/^/$as_me: WARNING:     /" >&2
9659     ;;
9660 esac
9661 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9662 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9663 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9664   echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666   ac_cv_header_sane_sane_h=$ac_header_preproc
9667 fi
9668 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9669 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9670
9671 fi
9672 if test $ac_cv_header_sane_sane_h = yes; then
9673   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9674 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9675 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9676   echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678   ac_check_lib_save_LIBS=$LIBS
9679 LIBS="-lsane  $LIBS"
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686
9687 /* Override any gcc2 internal prototype to avoid an error.  */
9688 #ifdef __cplusplus
9689 extern "C"
9690 #endif
9691 /* We use char because int might match the return type of a gcc2
9692    builtin and then its argument prototype would still apply.  */
9693 char sane_open ();
9694 int
9695 main ()
9696 {
9697 sane_open ();
9698   ;
9699   return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704   (eval $ac_link) 2>conftest.er1
9705   ac_status=$?
9706   grep -v '^ *+' conftest.er1 >conftest.err
9707   rm -f conftest.er1
9708   cat conftest.err >&5
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); } &&
9711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713   (eval $ac_try) 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; } &&
9717          { ac_try='test -s conftest$ac_exeext'
9718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719   (eval $ac_try) 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); }; }; then
9723   ac_cv_lib_sane_sane_open=yes
9724 else
9725   echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 ac_cv_lib_sane_sane_open=no
9729 fi
9730 rm -f conftest.err conftest.$ac_objext \
9731       conftest$ac_exeext conftest.$ac_ext
9732 LIBS=$ac_check_lib_save_LIBS
9733 fi
9734 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9735 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9736 if test $ac_cv_lib_sane_sane_open = yes; then
9737
9738 cat >>confdefs.h <<\_ACEOF
9739 #define HAVE_SANE 1
9740 _ACEOF
9741
9742 else
9743   SANELIBS=""
9744                                   SANEINCL=""
9745 fi
9746
9747 else
9748   SANELIBS=""
9749                     SANEINCL=""
9750 fi
9751
9752
9753     LIBS="$ac_save_LIBS"
9754     CPPFLAGS="$ac_save_CPPFLAGS"
9755 fi
9756
9757
9758
9759
9760 for ac_header in unicode/ubidi.h
9761 do
9762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9764   echo "$as_me:$LINENO: checking for $ac_header" >&5
9765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 fi
9769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9771 else
9772   # Is the header compilable?
9773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781 $ac_includes_default
9782 #include <$ac_header>
9783 _ACEOF
9784 rm -f conftest.$ac_objext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9786   (eval $ac_compile) 2>conftest.er1
9787   ac_status=$?
9788   grep -v '^ *+' conftest.er1 >conftest.err
9789   rm -f conftest.er1
9790   cat conftest.err >&5
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } &&
9793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; } &&
9799          { ac_try='test -s conftest.$ac_objext'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; }; then
9805   ac_header_compiler=yes
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 ac_header_compiler=no
9811 fi
9812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9814 echo "${ECHO_T}$ac_header_compiler" >&6
9815
9816 # Is the header present?
9817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h.  */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h.  */
9825 #include <$ac_header>
9826 _ACEOF
9827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9829   ac_status=$?
9830   grep -v '^ *+' conftest.er1 >conftest.err
9831   rm -f conftest.er1
9832   cat conftest.err >&5
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); } >/dev/null; then
9835   if test -s conftest.err; then
9836     ac_cpp_err=$ac_c_preproc_warn_flag
9837     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9838   else
9839     ac_cpp_err=
9840   fi
9841 else
9842   ac_cpp_err=yes
9843 fi
9844 if test -z "$ac_cpp_err"; then
9845   ac_header_preproc=yes
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850   ac_header_preproc=no
9851 fi
9852 rm -f conftest.err conftest.$ac_ext
9853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9854 echo "${ECHO_T}$ac_header_preproc" >&6
9855
9856 # So?  What about this header?
9857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9858   yes:no: )
9859     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9863     ac_header_preproc=yes
9864     ;;
9865   no:yes:* )
9866     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9868     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9869 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9870     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9872     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9873 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9876     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9878     (
9879       cat <<\_ASBOX
9880 ## ------------------------------------ ##
9881 ## Report this to wine-devel@winehq.org ##
9882 ## ------------------------------------ ##
9883 _ASBOX
9884     ) |
9885       sed "s/^/$as_me: WARNING:     /" >&2
9886     ;;
9887 esac
9888 echo "$as_me:$LINENO: checking for $ac_header" >&5
9889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9891   echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893   eval "$as_ac_Header=\$ac_header_preproc"
9894 fi
9895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9897
9898 fi
9899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9900   cat >>confdefs.h <<_ACEOF
9901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9902 _ACEOF
9903
9904 fi
9905
9906 done
9907
9908 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9909 then
9910     saved_libs="$LIBS"
9911     ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9912     ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9913     ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9914     echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9915 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
9916     LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9917     cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923 #include <unicode/ubidi.h>
9924 int
9925 main ()
9926 {
9927 ubidi_open()
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934   (eval $ac_link) 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943   (eval $ac_try) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; } &&
9947          { ac_try='test -s conftest$ac_exeext'
9948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949   (eval $ac_try) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; }; then
9953
9954 cat >>confdefs.h <<\_ACEOF
9955 #define HAVE_ICU 1
9956 _ACEOF
9957
9958                  ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9959
9960                  echo "$as_me:$LINENO: result: yes" >&5
9961 echo "${ECHO_T}yes" >&6
9962 else
9963   echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9965
9966 echo "$as_me:$LINENO: result: no" >&5
9967 echo "${ECHO_T}no" >&6
9968 fi
9969 rm -f conftest.err conftest.$ac_objext \
9970       conftest$ac_exeext conftest.$ac_ext
9971     LIBS="$saved_libs"
9972 fi
9973
9974 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9975 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9976 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979   ac_check_lib_save_LIBS=$LIBS
9980 LIBS="-lfreetype $X_LIBS $LIBS"
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h.  */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h.  */
9987
9988 /* Override any gcc2 internal prototype to avoid an error.  */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 /* We use char because int might match the return type of a gcc2
9993    builtin and then its argument prototype would still apply.  */
9994 char FT_Init_FreeType ();
9995 int
9996 main ()
9997 {
9998 FT_Init_FreeType ();
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005   (eval $ac_link) 2>conftest.er1
10006   ac_status=$?
10007   grep -v '^ *+' conftest.er1 >conftest.err
10008   rm -f conftest.er1
10009   cat conftest.err >&5
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); } &&
10012          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014   (eval $ac_try) 2>&5
10015   ac_status=$?
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); }; } &&
10018          { ac_try='test -s conftest$ac_exeext'
10019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020   (eval $ac_try) 2>&5
10021   ac_status=$?
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); }; }; then
10024   ac_cv_lib_freetype_FT_Init_FreeType=yes
10025 else
10026   echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10028
10029 ac_cv_lib_freetype_FT_Init_FreeType=no
10030 fi
10031 rm -f conftest.err conftest.$ac_objext \
10032       conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10034 fi
10035 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10036 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10037 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10038   ft_lib=yes
10039 else
10040   ft_lib=no
10041 fi
10042
10043 if test "$ft_lib" = "no"
10044 then
10045     FREETYPELIBS=""
10046     FREETYPEINCL=""
10047     wine_cv_msg_freetype=no
10048 else
10049     # Extract the first word of "freetype-config", so it can be a program name with args.
10050 set dummy freetype-config; ac_word=$2
10051 echo "$as_me:$LINENO: checking for $ac_word" >&5
10052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10053 if test "${ac_cv_prog_ft_devel+set}" = set; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056   if test -n "$ft_devel"; then
10057   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10058 else
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10061 do
10062   IFS=$as_save_IFS
10063   test -z "$as_dir" && as_dir=.
10064   for ac_exec_ext in '' $ac_executable_extensions; do
10065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10066     ac_cv_prog_ft_devel="freetype-config"
10067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10068     break 2
10069   fi
10070 done
10071 done
10072
10073   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10074 fi
10075 fi
10076 ft_devel=$ac_cv_prog_ft_devel
10077 if test -n "$ft_devel"; then
10078   echo "$as_me:$LINENO: result: $ft_devel" >&5
10079 echo "${ECHO_T}$ft_devel" >&6
10080 else
10081   echo "$as_me:$LINENO: result: no" >&5
10082 echo "${ECHO_T}no" >&6
10083 fi
10084
10085     if test "$ft_devel" = "no"
10086     then
10087         # Extract the first word of "freetype2-config", so it can be a program name with args.
10088 set dummy freetype2-config; ac_word=$2
10089 echo "$as_me:$LINENO: checking for $ac_word" >&5
10090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10091 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10092   echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10094   if test -n "$ft_devel2"; then
10095   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10096 else
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10099 do
10100   IFS=$as_save_IFS
10101   test -z "$as_dir" && as_dir=.
10102   for ac_exec_ext in '' $ac_executable_extensions; do
10103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104     ac_cv_prog_ft_devel2="freetype2-config"
10105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10106     break 2
10107   fi
10108 done
10109 done
10110
10111   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10112 fi
10113 fi
10114 ft_devel2=$ac_cv_prog_ft_devel2
10115 if test -n "$ft_devel2"; then
10116   echo "$as_me:$LINENO: result: $ft_devel2" >&5
10117 echo "${ECHO_T}$ft_devel2" >&6
10118 else
10119   echo "$as_me:$LINENO: result: no" >&5
10120 echo "${ECHO_T}no" >&6
10121 fi
10122
10123         if test "$ft_devel2" = "freetype2-config"
10124         then
10125                 ft_devel=$ft_devel2
10126         fi
10127     fi
10128     if test "$ft_devel" = "no"
10129     then
10130         FREETYPELIBS=""
10131         FREETYPEINCL=""
10132         wine_cv_msg_freetype=yes
10133     else
10134         FREETYPELIBS=`$ft_devel --libs`
10135         FREETYPEINCL=`$ft_devel --cflags`
10136         ac_save_CPPFLAGS="$CPPFLAGS"
10137         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148 for ac_header in ft2build.h \
10149                          freetype/freetype.h \
10150                          freetype/ftglyph.h \
10151                          freetype/tttables.h \
10152                          freetype/ftnames.h \
10153                          freetype/ftsnames.h \
10154                          freetype/ttnameid.h \
10155                          freetype/ftoutln.h \
10156                          freetype/ftwinfnt.h \
10157                          freetype/internal/sfnt.h
10158 do
10159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10160 echo "$as_me:$LINENO: checking for $ac_header" >&5
10161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10163   echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165   cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h.  */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h.  */
10171 #if HAVE_FT2BUILD_H
10172                           #include <ft2build.h>
10173                           #endif
10174
10175 #include <$ac_header>
10176 _ACEOF
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179   (eval $ac_compile) 2>conftest.er1
10180   ac_status=$?
10181   grep -v '^ *+' conftest.er1 >conftest.err
10182   rm -f conftest.er1
10183   cat conftest.err >&5
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); } &&
10186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
10192          { ac_try='test -s conftest.$ac_objext'
10193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194   (eval $ac_try) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; }; then
10198   eval "$as_ac_Header=yes"
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 eval "$as_ac_Header=no"
10204 fi
10205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10206 fi
10207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10210   cat >>confdefs.h <<_ACEOF
10211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10212 _ACEOF
10213
10214 fi
10215
10216 done
10217
10218         cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h.  */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h.  */
10224 #include <ft2build.h>
10225                     #include <freetype/fttrigon.h>
10226 _ACEOF
10227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10229   ac_status=$?
10230   grep -v '^ *+' conftest.er1 >conftest.err
10231   rm -f conftest.er1
10232   cat conftest.err >&5
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } >/dev/null; then
10235   if test -s conftest.err; then
10236     ac_cpp_err=$ac_c_preproc_warn_flag
10237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10238   else
10239     ac_cpp_err=
10240   fi
10241 else
10242   ac_cpp_err=yes
10243 fi
10244 if test -z "$ac_cpp_err"; then
10245
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_FREETYPE_FTTRIGON_H 1
10248 _ACEOF
10249
10250                     wine_cv_fttrigon=yes
10251 else
10252   echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10254
10255   wine_cv_fttrigon=no
10256 fi
10257 rm -f conftest.err conftest.$ac_ext
10258         CPPFLAGS="$ac_save_CPPFLAGS"
10259                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10260         then
10261
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_FREETYPE 1
10264 _ACEOF
10265
10266             wine_cv_msg_freetype=no
10267         else
10268             FREETYPELIBS=""
10269             FREETYPEINCL=""
10270             wine_cv_msg_freetype=yes
10271         fi
10272     fi
10273 fi
10274
10275
10276
10277 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10278 then
10279   FONTSSUBDIRS="fonts"
10280
10281 fi
10282
10283 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10284 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10285 if test "${ac_cv_c_ppdev+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288   cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 #include <linux/ppdev.h>
10295 int
10296 main ()
10297 {
10298 ioctl (1,PPCLAIM,0)
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10305   (eval $ac_compile) 2>conftest.er1
10306   ac_status=$?
10307   grep -v '^ *+' conftest.er1 >conftest.err
10308   rm -f conftest.er1
10309   cat conftest.err >&5
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); } &&
10312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314   (eval $ac_try) 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; } &&
10318          { ac_try='test -s conftest.$ac_objext'
10319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320   (eval $ac_try) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; }; then
10324   ac_cv_c_ppdev="yes"
10325 else
10326   echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 ac_cv_c_ppdev="no"
10330 fi
10331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10332
10333 fi
10334 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10335 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10336 if test "$ac_cv_c_ppdev" = "yes"
10337 then
10338
10339 cat >>confdefs.h <<\_ACEOF
10340 #define HAVE_PPDEV 1
10341 _ACEOF
10342
10343 fi
10344
10345 echo "$as_me:$LINENO: checking for va_copy" >&5
10346 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10347 if test "${ac_cv_c_va_copy+set}" = set; then
10348   echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350   cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h.  */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h.  */
10356 #include <stdarg.h>
10357 int
10358 main ()
10359 {
10360 va_list ap1, ap2;
10361     va_copy(ap1,ap2);
10362
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10369   (eval $ac_link) 2>conftest.er1
10370   ac_status=$?
10371   grep -v '^ *+' conftest.er1 >conftest.err
10372   rm -f conftest.er1
10373   cat conftest.err >&5
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } &&
10376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378   (eval $ac_try) 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); }; } &&
10382          { ac_try='test -s conftest$ac_exeext'
10383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384   (eval $ac_try) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; }; then
10388   ac_cv_c_va_copy="yes"
10389 else
10390   echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10392
10393 ac_cv_c_va_copy="no"
10394 fi
10395 rm -f conftest.err conftest.$ac_objext \
10396       conftest$ac_exeext conftest.$ac_ext
10397
10398 fi
10399 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10400 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10401 if test "$ac_cv_c_va_copy" = "yes"
10402 then
10403
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_VA_COPY 1
10406 _ACEOF
10407
10408 fi
10409 echo "$as_me:$LINENO: checking for __va_copy" >&5
10410 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10411 if test "${ac_cv_c___va_copy+set}" = set; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414   cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h.  */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h.  */
10420 #include <stdarg.h>
10421 int
10422 main ()
10423 {
10424 va_list ap1, ap2;
10425     __va_copy(ap1,ap2);
10426
10427   ;
10428   return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433   (eval $ac_link) 2>conftest.er1
10434   ac_status=$?
10435   grep -v '^ *+' conftest.er1 >conftest.err
10436   rm -f conftest.er1
10437   cat conftest.err >&5
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); } &&
10440          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442   (eval $ac_try) 2>&5
10443   ac_status=$?
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); }; } &&
10446          { ac_try='test -s conftest$ac_exeext'
10447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448   (eval $ac_try) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); }; }; then
10452   ac_cv_c___va_copy="yes"
10453 else
10454   echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10456
10457 ac_cv_c___va_copy="no"
10458 fi
10459 rm -f conftest.err conftest.$ac_objext \
10460       conftest$ac_exeext conftest.$ac_ext
10461
10462 fi
10463 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10464 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10465 if test "$ac_cv_c___va_copy" = "yes"
10466 then
10467
10468 cat >>confdefs.h <<\_ACEOF
10469 #define HAVE___VA_COPY 1
10470 _ACEOF
10471
10472 fi
10473
10474 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10475 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10476 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h.  */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h.  */
10485 #include <setjmp.h>
10486 int
10487 main ()
10488 {
10489 sigjmp_buf buf;
10490     sigsetjmp( buf, 1 );
10491     siglongjmp( buf, 1 );
10492   ;
10493   return 0;
10494 }
10495 _ACEOF
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498   (eval $ac_link) 2>conftest.er1
10499   ac_status=$?
10500   grep -v '^ *+' conftest.er1 >conftest.err
10501   rm -f conftest.er1
10502   cat conftest.err >&5
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); } &&
10505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507   (eval $ac_try) 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; } &&
10511          { ac_try='test -s conftest$ac_exeext'
10512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513   (eval $ac_try) 2>&5
10514   ac_status=$?
10515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); }; }; then
10517   ac_cv_c_sigsetjmp="yes"
10518 else
10519   echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10521
10522 ac_cv_c_sigsetjmp="no"
10523 fi
10524 rm -f conftest.err conftest.$ac_objext \
10525       conftest$ac_exeext conftest.$ac_ext
10526
10527 fi
10528 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10529 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10530 if test "$ac_cv_c_sigsetjmp" = "yes"
10531 then
10532
10533 cat >>confdefs.h <<\_ACEOF
10534 #define HAVE_SIGSETJMP 1
10535 _ACEOF
10536
10537 fi
10538
10539 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10540 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10541 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10542   echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544   cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550 #define _GNU_SOURCE
10551 #include <pthread.h>
10552
10553 int
10554 main ()
10555 {
10556 if ((pthread_rwlock_t *) 0)
10557   return 0;
10558 if (sizeof (pthread_rwlock_t))
10559   return 0;
10560   ;
10561   return 0;
10562 }
10563 _ACEOF
10564 rm -f conftest.$ac_objext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10566   (eval $ac_compile) 2>conftest.er1
10567   ac_status=$?
10568   grep -v '^ *+' conftest.er1 >conftest.err
10569   rm -f conftest.er1
10570   cat conftest.err >&5
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); } &&
10573          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575   (eval $ac_try) 2>&5
10576   ac_status=$?
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); }; } &&
10579          { ac_try='test -s conftest.$ac_objext'
10580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581   (eval $ac_try) 2>&5
10582   ac_status=$?
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); }; }; then
10585   ac_cv_type_pthread_rwlock_t=yes
10586 else
10587   echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590 ac_cv_type_pthread_rwlock_t=no
10591 fi
10592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10593 fi
10594 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10595 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10596 if test $ac_cv_type_pthread_rwlock_t = yes; then
10597
10598 cat >>confdefs.h <<_ACEOF
10599 #define HAVE_PTHREAD_RWLOCK_T 1
10600 _ACEOF
10601
10602
10603 fi
10604 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10605 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10606 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10607   echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609   cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h.  */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h.  */
10615 #define _GNU_SOURCE
10616 #include <pthread.h>
10617
10618 int
10619 main ()
10620 {
10621 if ((pthread_rwlockattr_t *) 0)
10622   return 0;
10623 if (sizeof (pthread_rwlockattr_t))
10624   return 0;
10625   ;
10626   return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10631   (eval $ac_compile) 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } &&
10638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640   (eval $ac_try) 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); }; } &&
10644          { ac_try='test -s conftest.$ac_objext'
10645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646   (eval $ac_try) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; }; then
10650   ac_cv_type_pthread_rwlockattr_t=yes
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655 ac_cv_type_pthread_rwlockattr_t=no
10656 fi
10657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10658 fi
10659 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10660 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10661 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10662
10663 cat >>confdefs.h <<_ACEOF
10664 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10665 _ACEOF
10666
10667
10668 fi
10669
10670
10671 ac_save_LIBS="$LIBS"
10672 LIBS="$LIBS $LIBPTHREAD"
10673
10674
10675
10676 for ac_func in \
10677         pthread_getattr_np \
10678         pthread_get_stackaddr_np \
10679         pthread_get_stacksize_np \
10680
10681 do
10682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10683 echo "$as_me:$LINENO: checking for $ac_func" >&5
10684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10685 if eval "test \"\${$as_ac_var+set}\" = set"; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688   cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h.  */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h.  */
10694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10696 #define $ac_func innocuous_$ac_func
10697
10698 /* System header to define __stub macros and hopefully few prototypes,
10699     which can conflict with char $ac_func (); below.
10700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10701     <limits.h> exists even on freestanding compilers.  */
10702
10703 #ifdef __STDC__
10704 # include <limits.h>
10705 #else
10706 # include <assert.h>
10707 #endif
10708
10709 #undef $ac_func
10710
10711 /* Override any gcc2 internal prototype to avoid an error.  */
10712 #ifdef __cplusplus
10713 extern "C"
10714 {
10715 #endif
10716 /* We use char because int might match the return type of a gcc2
10717    builtin and then its argument prototype would still apply.  */
10718 char $ac_func ();
10719 /* The GNU C library defines this for functions which it implements
10720     to always fail with ENOSYS.  Some functions are actually named
10721     something starting with __ and the normal name is an alias.  */
10722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10723 choke me
10724 #else
10725 char (*f) () = $ac_func;
10726 #endif
10727 #ifdef __cplusplus
10728 }
10729 #endif
10730
10731 int
10732 main ()
10733 {
10734 return f != $ac_func;
10735   ;
10736   return 0;
10737 }
10738 _ACEOF
10739 rm -f conftest.$ac_objext conftest$ac_exeext
10740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10741   (eval $ac_link) 2>conftest.er1
10742   ac_status=$?
10743   grep -v '^ *+' conftest.er1 >conftest.err
10744   rm -f conftest.er1
10745   cat conftest.err >&5
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); } &&
10748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; } &&
10754          { ac_try='test -s conftest$ac_exeext'
10755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756   (eval $ac_try) 2>&5
10757   ac_status=$?
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); }; }; then
10760   eval "$as_ac_var=yes"
10761 else
10762   echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10764
10765 eval "$as_ac_var=no"
10766 fi
10767 rm -f conftest.err conftest.$ac_objext \
10768       conftest$ac_exeext conftest.$ac_ext
10769 fi
10770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10772 if test `eval echo '${'$as_ac_var'}'` = yes; then
10773   cat >>confdefs.h <<_ACEOF
10774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10775 _ACEOF
10776
10777 fi
10778 done
10779
10780 LIBS="$ac_save_LIBS"
10781
10782
10783
10784
10785 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10786 do
10787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10789   echo "$as_me:$LINENO: checking for $ac_header" >&5
10790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10792   echo $ECHO_N "(cached) $ECHO_C" >&6
10793 fi
10794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10796 else
10797   # Is the header compilable?
10798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10800 cat >conftest.$ac_ext <<_ACEOF
10801 /* confdefs.h.  */
10802 _ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h.  */
10806 $ac_includes_default
10807 #include <$ac_header>
10808 _ACEOF
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811   (eval $ac_compile) 2>conftest.er1
10812   ac_status=$?
10813   grep -v '^ *+' conftest.er1 >conftest.err
10814   rm -f conftest.er1
10815   cat conftest.err >&5
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); } &&
10818          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820   (eval $ac_try) 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); }; } &&
10824          { ac_try='test -s conftest.$ac_objext'
10825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826   (eval $ac_try) 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); }; }; then
10830   ac_header_compiler=yes
10831 else
10832   echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 ac_header_compiler=no
10836 fi
10837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10839 echo "${ECHO_T}$ac_header_compiler" >&6
10840
10841 # Is the header present?
10842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10845 /* confdefs.h.  */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h.  */
10850 #include <$ac_header>
10851 _ACEOF
10852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10853   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10854   ac_status=$?
10855   grep -v '^ *+' conftest.er1 >conftest.err
10856   rm -f conftest.er1
10857   cat conftest.err >&5
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); } >/dev/null; then
10860   if test -s conftest.err; then
10861     ac_cpp_err=$ac_c_preproc_warn_flag
10862     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10863   else
10864     ac_cpp_err=
10865   fi
10866 else
10867   ac_cpp_err=yes
10868 fi
10869 if test -z "$ac_cpp_err"; then
10870   ac_header_preproc=yes
10871 else
10872   echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875   ac_header_preproc=no
10876 fi
10877 rm -f conftest.err conftest.$ac_ext
10878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10879 echo "${ECHO_T}$ac_header_preproc" >&6
10880
10881 # So?  What about this header?
10882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10883   yes:no: )
10884     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10888     ac_header_preproc=yes
10889     ;;
10890   no:yes:* )
10891     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10893     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10894 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10895     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10897     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10898 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10901     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10903     (
10904       cat <<\_ASBOX
10905 ## ------------------------------------ ##
10906 ## Report this to wine-devel@winehq.org ##
10907 ## ------------------------------------ ##
10908 _ASBOX
10909     ) |
10910       sed "s/^/$as_me: WARNING:     /" >&2
10911     ;;
10912 esac
10913 echo "$as_me:$LINENO: checking for $ac_header" >&5
10914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10916   echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918   eval "$as_ac_Header=\$ac_header_preproc"
10919 fi
10920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10922
10923 fi
10924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10925   cat >>confdefs.h <<_ACEOF
10926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10927 _ACEOF
10928  break
10929 fi
10930
10931 done
10932
10933
10934 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10935 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10936 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10937   echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939   cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h.  */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h.  */
10945
10946         #if defined(HAVE_SYS_SOUNDCARD_H)
10947                 #include <sys/soundcard.h>
10948         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10949                 #include <machine/soundcard.h>
10950         #elif defined(HAVE_SOUNDCARD_H)
10951                 #include <soundcard.h>
10952         #endif
10953
10954 int
10955 main ()
10956 {
10957
10958
10959 /* check for one of the Open Sound System specific SNDCTL_ defines */
10960 #if !defined(SNDCTL_DSP_STEREO)
10961 #error No open sound system
10962 #endif
10963
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10970   (eval $ac_compile) 2>conftest.er1
10971   ac_status=$?
10972   grep -v '^ *+' conftest.er1 >conftest.err
10973   rm -f conftest.er1
10974   cat conftest.err >&5
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); } &&
10977          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979   (eval $ac_try) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }; } &&
10983          { ac_try='test -s conftest.$ac_objext'
10984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985   (eval $ac_try) 2>&5
10986   ac_status=$?
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); }; }; then
10989   ac_cv_c_opensoundsystem="yes"
10990 else
10991   echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994 ac_cv_c_opensoundsystem="no"
10995 fi
10996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10997 fi
10998 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10999 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11000
11001 if test "$ac_cv_c_opensoundsystem" = "yes"
11002 then
11003
11004 cat >>confdefs.h <<\_ACEOF
11005 #define HAVE_OSS 1
11006 _ACEOF
11007
11008 fi
11009
11010 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11011 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11012 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11013   echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015   cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h.  */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h.  */
11021
11022         #if defined(HAVE_SYS_SOUNDCARD_H)
11023                 #include <sys/soundcard.h>
11024         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11025                 #include <machine/soundcard.h>
11026         #elif defined(HAVE_SOUNDCARD_H)
11027                 #include <soundcard.h>
11028         #endif
11029
11030 int
11031 main ()
11032 {
11033
11034
11035 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11036 #if !defined(SNDCTL_SEQ_SYNC)
11037 #error No open sound system MIDI interface
11038 #endif
11039
11040   ;
11041   return 0;
11042 }
11043 _ACEOF
11044 rm -f conftest.$ac_objext
11045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11046   (eval $ac_compile) 2>conftest.er1
11047   ac_status=$?
11048   grep -v '^ *+' conftest.er1 >conftest.err
11049   rm -f conftest.er1
11050   cat conftest.err >&5
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); } &&
11053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055   (eval $ac_try) 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; } &&
11059          { ac_try='test -s conftest.$ac_objext'
11060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061   (eval $ac_try) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; }; then
11065   ac_cv_c_opensoundsystem_midi="yes"
11066 else
11067   echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070 ac_cv_c_opensoundsystem_midi="no"
11071 fi
11072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11073 fi
11074 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11075 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11076
11077 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11078 then
11079
11080 cat >>confdefs.h <<\_ACEOF
11081 #define HAVE_OSS_MIDI 1
11082 _ACEOF
11083
11084 fi
11085
11086 # Extract the first word of "artsc-config", so it can be a program name with args.
11087 set dummy artsc-config; ac_word=$2
11088 echo "$as_me:$LINENO: checking for $ac_word" >&5
11089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11090 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093   case $ARTSCCONFIG in
11094   [\\/]* | ?:[\\/]*)
11095   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11096   ;;
11097   *)
11098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099 for as_dir in $PATH
11100 do
11101   IFS=$as_save_IFS
11102   test -z "$as_dir" && as_dir=.
11103   for ac_exec_ext in '' $ac_executable_extensions; do
11104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11105     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11107     break 2
11108   fi
11109 done
11110 done
11111
11112   ;;
11113 esac
11114 fi
11115 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11116
11117 if test -n "$ARTSCCONFIG"; then
11118   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11119 echo "${ECHO_T}$ARTSCCONFIG" >&6
11120 else
11121   echo "$as_me:$LINENO: result: no" >&5
11122 echo "${ECHO_T}no" >&6
11123 fi
11124
11125 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11126 then
11127     ARTSC_CFLAGS=""
11128     for i in `$ARTSCCONFIG --cflags`
11129     do
11130       case "$i" in
11131         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11132       esac
11133     done
11134     ARTSC_LIBS=`$ARTSCCONFIG --libs`
11135     save_CFLAGS="$CFLAGS"
11136     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11137     cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h.  */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h.  */
11143 #include <artsc.h>
11144 int
11145 main ()
11146 {
11147 arts_stream_t stream;
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11154   (eval $ac_compile) 2>conftest.er1
11155   ac_status=$?
11156   grep -v '^ *+' conftest.er1 >conftest.err
11157   rm -f conftest.er1
11158   cat conftest.err >&5
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); } &&
11161          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest.$ac_objext'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173   ARTSLIBS=$ARTSC_LIBS
11174
11175          ARTSINCL=$ARTSC_CFLAGS
11176
11177
11178 cat >>confdefs.h <<\_ACEOF
11179 #define HAVE_ARTS 1
11180 _ACEOF
11181
11182 else
11183   echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 fi
11187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11188     CFLAGS="$save_CFLAGS"
11189 fi
11190
11191 ALSALIBS=""
11192
11193
11194
11195 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11196 do
11197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11199   echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 fi
11204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11206 else
11207   # Is the header compilable?
11208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h.  */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h.  */
11216 $ac_includes_default
11217 #include <$ac_header>
11218 _ACEOF
11219 rm -f conftest.$ac_objext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221   (eval $ac_compile) 2>conftest.er1
11222   ac_status=$?
11223   grep -v '^ *+' conftest.er1 >conftest.err
11224   rm -f conftest.er1
11225   cat conftest.err >&5
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); } &&
11228          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230   (eval $ac_try) 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); }; } &&
11234          { ac_try='test -s conftest.$ac_objext'
11235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236   (eval $ac_try) 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); }; }; then
11240   ac_header_compiler=yes
11241 else
11242   echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 ac_header_compiler=no
11246 fi
11247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11249 echo "${ECHO_T}$ac_header_compiler" >&6
11250
11251 # Is the header present?
11252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260 #include <$ac_header>
11261 _ACEOF
11262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } >/dev/null; then
11270   if test -s conftest.err; then
11271     ac_cpp_err=$ac_c_preproc_warn_flag
11272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11273   else
11274     ac_cpp_err=
11275   fi
11276 else
11277   ac_cpp_err=yes
11278 fi
11279 if test -z "$ac_cpp_err"; then
11280   ac_header_preproc=yes
11281 else
11282   echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285   ac_header_preproc=no
11286 fi
11287 rm -f conftest.err conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 echo "${ECHO_T}$ac_header_preproc" >&6
11290
11291 # So?  What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11293   yes:no: )
11294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298     ac_header_preproc=yes
11299     ;;
11300   no:yes:* )
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11313     (
11314       cat <<\_ASBOX
11315 ## ------------------------------------ ##
11316 ## Report this to wine-devel@winehq.org ##
11317 ## ------------------------------------ ##
11318 _ASBOX
11319     ) |
11320       sed "s/^/$as_me: WARNING:     /" >&2
11321     ;;
11322 esac
11323 echo "$as_me:$LINENO: checking for $ac_header" >&5
11324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11326   echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328   eval "$as_ac_Header=\$ac_header_preproc"
11329 fi
11330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11332
11333 fi
11334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11335   cat >>confdefs.h <<_ACEOF
11336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11337 _ACEOF
11338  break
11339 fi
11340
11341 done
11342
11343 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11344 then
11345     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11346 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11347 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11348   echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350   ac_check_lib_save_LIBS=$LIBS
11351 LIBS="-lasound  $LIBS"
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h.  */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h.  */
11358
11359 /* Override any gcc2 internal prototype to avoid an error.  */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 /* We use char because int might match the return type of a gcc2
11364    builtin and then its argument prototype would still apply.  */
11365 char snd_pcm_open ();
11366 int
11367 main ()
11368 {
11369 snd_pcm_open ();
11370   ;
11371   return 0;
11372 }
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11376   (eval $ac_link) 2>conftest.er1
11377   ac_status=$?
11378   grep -v '^ *+' conftest.er1 >conftest.err
11379   rm -f conftest.er1
11380   cat conftest.err >&5
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); } &&
11383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385   (eval $ac_try) 2>&5
11386   ac_status=$?
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); }; } &&
11389          { ac_try='test -s conftest$ac_exeext'
11390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391   (eval $ac_try) 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; }; then
11395   ac_cv_lib_asound_snd_pcm_open=yes
11396 else
11397   echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11399
11400 ac_cv_lib_asound_snd_pcm_open=no
11401 fi
11402 rm -f conftest.err conftest.$ac_objext \
11403       conftest$ac_exeext conftest.$ac_ext
11404 LIBS=$ac_check_lib_save_LIBS
11405 fi
11406 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11407 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11408 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11409
11410 cat >>confdefs.h <<\_ACEOF
11411 #define HAVE_ALSA 1
11412 _ACEOF
11413
11414         ALSALIBS="-lasound"
11415 fi
11416
11417 fi
11418
11419
11420 AUDIOIOLIBS=""
11421
11422
11423 for ac_header in libaudioio.h
11424 do
11425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11427   echo "$as_me:$LINENO: checking for $ac_header" >&5
11428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 fi
11432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11434 else
11435   # Is the header compilable?
11436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11438 cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h.  */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h.  */
11444 $ac_includes_default
11445 #include <$ac_header>
11446 _ACEOF
11447 rm -f conftest.$ac_objext
11448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449   (eval $ac_compile) 2>conftest.er1
11450   ac_status=$?
11451   grep -v '^ *+' conftest.er1 >conftest.err
11452   rm -f conftest.er1
11453   cat conftest.err >&5
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } &&
11456          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458   (eval $ac_try) 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; } &&
11462          { ac_try='test -s conftest.$ac_objext'
11463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464   (eval $ac_try) 2>&5
11465   ac_status=$?
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); }; }; then
11468   ac_header_compiler=yes
11469 else
11470   echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473 ac_header_compiler=no
11474 fi
11475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11477 echo "${ECHO_T}$ac_header_compiler" >&6
11478
11479 # Is the header present?
11480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h.  */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h.  */
11488 #include <$ac_header>
11489 _ACEOF
11490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11491   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11492   ac_status=$?
11493   grep -v '^ *+' conftest.er1 >conftest.err
11494   rm -f conftest.er1
11495   cat conftest.err >&5
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } >/dev/null; then
11498   if test -s conftest.err; then
11499     ac_cpp_err=$ac_c_preproc_warn_flag
11500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11501   else
11502     ac_cpp_err=
11503   fi
11504 else
11505   ac_cpp_err=yes
11506 fi
11507 if test -z "$ac_cpp_err"; then
11508   ac_header_preproc=yes
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513   ac_header_preproc=no
11514 fi
11515 rm -f conftest.err conftest.$ac_ext
11516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11517 echo "${ECHO_T}$ac_header_preproc" >&6
11518
11519 # So?  What about this header?
11520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11521   yes:no: )
11522     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11526     ac_header_preproc=yes
11527     ;;
11528   no:yes:* )
11529     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11531     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11532 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11533     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11535     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11536 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11541     (
11542       cat <<\_ASBOX
11543 ## ------------------------------------ ##
11544 ## Report this to wine-devel@winehq.org ##
11545 ## ------------------------------------ ##
11546 _ASBOX
11547     ) |
11548       sed "s/^/$as_me: WARNING:     /" >&2
11549     ;;
11550 esac
11551 echo "$as_me:$LINENO: checking for $ac_header" >&5
11552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11554   echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556   eval "$as_ac_Header=\$ac_header_preproc"
11557 fi
11558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11560
11561 fi
11562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11563   cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 _ACEOF
11566  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11567 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11568 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11569   echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571   ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-laudioio  $LIBS"
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h.  */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h.  */
11579
11580 /* Override any gcc2 internal prototype to avoid an error.  */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 /* We use char because int might match the return type of a gcc2
11585    builtin and then its argument prototype would still apply.  */
11586 char AudioIOGetVersion ();
11587 int
11588 main ()
11589 {
11590 AudioIOGetVersion ();
11591   ;
11592   return 0;
11593 }
11594 _ACEOF
11595 rm -f conftest.$ac_objext conftest$ac_exeext
11596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11597   (eval $ac_link) 2>conftest.er1
11598   ac_status=$?
11599   grep -v '^ *+' conftest.er1 >conftest.err
11600   rm -f conftest.er1
11601   cat conftest.err >&5
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); } &&
11604          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606   (eval $ac_try) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; } &&
11610          { ac_try='test -s conftest$ac_exeext'
11611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612   (eval $ac_try) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; }; then
11616   ac_cv_lib_audioio_AudioIOGetVersion=yes
11617 else
11618   echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11620
11621 ac_cv_lib_audioio_AudioIOGetVersion=no
11622 fi
11623 rm -f conftest.err conftest.$ac_objext \
11624       conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11626 fi
11627 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11628 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11629 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11630   AUDIOIOLIBS="-laudioio"
11631
11632 cat >>confdefs.h <<\_ACEOF
11633 #define HAVE_LIBAUDIOIO 1
11634 _ACEOF
11635
11636 fi
11637
11638 fi
11639
11640 done
11641
11642
11643
11644
11645 for ac_header in capi20.h
11646 do
11647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11649   echo "$as_me:$LINENO: checking for $ac_header" >&5
11650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11652   echo $ECHO_N "(cached) $ECHO_C" >&6
11653 fi
11654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11656 else
11657   # Is the header compilable?
11658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h.  */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h.  */
11666 $ac_includes_default
11667 #include <$ac_header>
11668 _ACEOF
11669 rm -f conftest.$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671   (eval $ac_compile) 2>conftest.er1
11672   ac_status=$?
11673   grep -v '^ *+' conftest.er1 >conftest.err
11674   rm -f conftest.er1
11675   cat conftest.err >&5
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } &&
11678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; } &&
11684          { ac_try='test -s conftest.$ac_objext'
11685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686   (eval $ac_try) 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; }; then
11690   ac_header_compiler=yes
11691 else
11692   echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11694
11695 ac_header_compiler=no
11696 fi
11697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11699 echo "${ECHO_T}$ac_header_compiler" >&6
11700
11701 # Is the header present?
11702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11704 cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h.  */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h.  */
11710 #include <$ac_header>
11711 _ACEOF
11712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11714   ac_status=$?
11715   grep -v '^ *+' conftest.er1 >conftest.err
11716   rm -f conftest.er1
11717   cat conftest.err >&5
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); } >/dev/null; then
11720   if test -s conftest.err; then
11721     ac_cpp_err=$ac_c_preproc_warn_flag
11722     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11723   else
11724     ac_cpp_err=
11725   fi
11726 else
11727   ac_cpp_err=yes
11728 fi
11729 if test -z "$ac_cpp_err"; then
11730   ac_header_preproc=yes
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735   ac_header_preproc=no
11736 fi
11737 rm -f conftest.err conftest.$ac_ext
11738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11739 echo "${ECHO_T}$ac_header_preproc" >&6
11740
11741 # So?  What about this header?
11742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11743   yes:no: )
11744     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11748     ac_header_preproc=yes
11749     ;;
11750   no:yes:* )
11751     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11753     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11754 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11755     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11757     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11758 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11761     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11763     (
11764       cat <<\_ASBOX
11765 ## ------------------------------------ ##
11766 ## Report this to wine-devel@winehq.org ##
11767 ## ------------------------------------ ##
11768 _ASBOX
11769     ) |
11770       sed "s/^/$as_me: WARNING:     /" >&2
11771     ;;
11772 esac
11773 echo "$as_me:$LINENO: checking for $ac_header" >&5
11774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11776   echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11778   eval "$as_ac_Header=\$ac_header_preproc"
11779 fi
11780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11782
11783 fi
11784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11785   cat >>confdefs.h <<_ACEOF
11786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11787 _ACEOF
11788
11789
11790 for ac_header in linux/capi.h
11791 do
11792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11794   echo "$as_me:$LINENO: checking for $ac_header" >&5
11795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11797   echo $ECHO_N "(cached) $ECHO_C" >&6
11798 fi
11799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11801 else
11802   # Is the header compilable?
11803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h.  */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h.  */
11811 $ac_includes_default
11812 #include <$ac_header>
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816   (eval $ac_compile) 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } &&
11823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; } &&
11829          { ac_try='test -s conftest.$ac_objext'
11830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831   (eval $ac_try) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; }; then
11835   ac_header_compiler=yes
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 ac_header_compiler=no
11841 fi
11842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11844 echo "${ECHO_T}$ac_header_compiler" >&6
11845
11846 # Is the header present?
11847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855 #include <$ac_header>
11856 _ACEOF
11857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11858   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11859   ac_status=$?
11860   grep -v '^ *+' conftest.er1 >conftest.err
11861   rm -f conftest.er1
11862   cat conftest.err >&5
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); } >/dev/null; then
11865   if test -s conftest.err; then
11866     ac_cpp_err=$ac_c_preproc_warn_flag
11867     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11868   else
11869     ac_cpp_err=
11870   fi
11871 else
11872   ac_cpp_err=yes
11873 fi
11874 if test -z "$ac_cpp_err"; then
11875   ac_header_preproc=yes
11876 else
11877   echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880   ac_header_preproc=no
11881 fi
11882 rm -f conftest.err conftest.$ac_ext
11883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 echo "${ECHO_T}$ac_header_preproc" >&6
11885
11886 # So?  What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888   yes:no: )
11889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893     ac_header_preproc=yes
11894     ;;
11895   no:yes:* )
11896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11908     (
11909       cat <<\_ASBOX
11910 ## ------------------------------------ ##
11911 ## Report this to wine-devel@winehq.org ##
11912 ## ------------------------------------ ##
11913 _ASBOX
11914     ) |
11915       sed "s/^/$as_me: WARNING:     /" >&2
11916     ;;
11917 esac
11918 echo "$as_me:$LINENO: checking for $ac_header" >&5
11919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11921   echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923   eval "$as_ac_Header=\$ac_header_preproc"
11924 fi
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11927
11928 fi
11929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11930   cat >>confdefs.h <<_ACEOF
11931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11932 _ACEOF
11933
11934                 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11935 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11936 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11937   echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939   ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lcapi20  $LIBS"
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947
11948 /* Override any gcc2 internal prototype to avoid an error.  */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 /* We use char because int might match the return type of a gcc2
11953    builtin and then its argument prototype would still apply.  */
11954 char capi20_register ();
11955 int
11956 main ()
11957 {
11958 capi20_register ();
11959   ;
11960   return 0;
11961 }
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965   (eval $ac_link) 2>conftest.er1
11966   ac_status=$?
11967   grep -v '^ *+' conftest.er1 >conftest.err
11968   rm -f conftest.er1
11969   cat conftest.err >&5
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); } &&
11972          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974   (eval $ac_try) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; } &&
11978          { ac_try='test -s conftest$ac_exeext'
11979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980   (eval $ac_try) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; }; then
11984   ac_cv_lib_capi20_capi20_register=yes
11985 else
11986   echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989 ac_cv_lib_capi20_capi20_register=no
11990 fi
11991 rm -f conftest.err conftest.$ac_objext \
11992       conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11994 fi
11995 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
11996 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
11997 if test $ac_cv_lib_capi20_capi20_register = yes; then
11998
11999
12000 cat >>confdefs.h <<\_ACEOF
12001 #define HAVE_CAPI4LINUX 1
12002 _ACEOF
12003
12004                         CAPI4LINUXLIBS="-lcapi20"
12005
12006
12007 fi
12008
12009
12010 fi
12011
12012 done
12013
12014
12015 fi
12016
12017 done
12018
12019
12020
12021 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12022 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12023 if test "${ac_cv_mmap64_works+set}" = set; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   if test "$cross_compiling" = yes; then
12027   ac_cv_mmap64_works="no"
12028 else
12029   cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h.  */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h.  */
12035
12036                 #define _FILE_OFFSET_BITS 64
12037                 #include <stdio.h>
12038                 #include <unistd.h>
12039                 #include <fcntl.h>
12040                 #include <sys/mman.h>
12041                 #include <errno.h>
12042
12043                 int main(int argc,char **argv) {
12044                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12045                         if (fd == -1) exit(1);
12046
12047                         unlink("conftest.map");
12048
12049                         write(fd,"test",4);
12050
12051                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12052                             (errno == EINVAL)
12053                         ) {
12054                                 exit(1);
12055                         }
12056                         close(fd);
12057                         fprintf(stderr,"success!\n");
12058                         exit(0);
12059                 }
12060
12061
12062 _ACEOF
12063 rm -f conftest$ac_exeext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065   (eval $ac_link) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070   (eval $ac_try) 2>&5
12071   ac_status=$?
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); }; }; then
12074   ac_cv_mmap64_works="yes"
12075 else
12076   echo "$as_me: program exited with status $ac_status" >&5
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 ( exit $ac_status )
12081 ac_cv_mmap64_works="no"
12082 fi
12083 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12084 fi
12085 fi
12086 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12087 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12088
12089 if test "$ac_cv_mmap64_works" = "yes"
12090 then
12091
12092 cat >>confdefs.h <<\_ACEOF
12093 #define _FILE_OFFSET_BITS 64
12094 _ACEOF
12095
12096 fi
12097
12098
12099 EXTRACFLAGS=""
12100
12101 if test "x${GCC}" = "xyes"
12102 then
12103   EXTRACFLAGS="-Wall -pipe"
12104
12105     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12106 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12107 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12108   echo $ECHO_N "(cached) $ECHO_C" >&6
12109 else
12110   if test "$cross_compiling" = yes; then
12111   ac_cv_c_gcc_strength_bug="yes"
12112 else
12113   cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119
12120 int     L[4] = {0,1,2,3};
12121 int main(void) {
12122   static int Array[3];
12123   unsigned int B = 3;
12124   int i;
12125   for(i=0; i<B; i++) Array[i] = i - 3;
12126   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12127   L[i] = 4;
12128
12129   exit( Array[1] != -2 || L[2] != 3);
12130 }
12131 _ACEOF
12132 rm -f conftest$ac_exeext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12134   (eval $ac_link) 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139   (eval $ac_try) 2>&5
12140   ac_status=$?
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); }; }; then
12143   ac_cv_c_gcc_strength_bug="no"
12144 else
12145   echo "$as_me: program exited with status $ac_status" >&5
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 ( exit $ac_status )
12150 ac_cv_c_gcc_strength_bug="yes"
12151 fi
12152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12153 fi
12154 fi
12155 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12156 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12157   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12158   then
12159     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12160   fi
12161
12162     echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12163 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12164 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   ac_wine_try_cflags_saved=$CFLAGS
12168 CFLAGS="$CFLAGS -fshort-wchar"
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175
12176 int
12177 main ()
12178 {
12179
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186   (eval $ac_link) 2>conftest.er1
12187   ac_status=$?
12188   grep -v '^ *+' conftest.er1 >conftest.err
12189   rm -f conftest.er1
12190   cat conftest.err >&5
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } &&
12193          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195   (eval $ac_try) 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; } &&
12199          { ac_try='test -s 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   ac_cv_c_gcc_fshort_wchar="yes"
12206 else
12207   echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 ac_cv_c_gcc_fshort_wchar="no"
12211 fi
12212 rm -f conftest.err conftest.$ac_objext \
12213       conftest$ac_exeext conftest.$ac_ext
12214 CFLAGS=$ac_wine_try_cflags_saved
12215 fi
12216 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12217 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12218   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12219   then
12220
12221 cat >>confdefs.h <<\_ACEOF
12222 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12223 _ACEOF
12224
12225   fi
12226
12227     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12228 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12229 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   ac_wine_try_cflags_saved=$CFLAGS
12233 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240
12241 int
12242 main ()
12243 {
12244
12245   ;
12246   return 0;
12247 }
12248 _ACEOF
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12251   (eval $ac_link) 2>conftest.er1
12252   ac_status=$?
12253   grep -v '^ *+' conftest.er1 >conftest.err
12254   rm -f conftest.er1
12255   cat conftest.err >&5
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } &&
12258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; } &&
12264          { ac_try='test -s conftest$ac_exeext'
12265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266   (eval $ac_try) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; }; then
12270   ac_cv_c_gcc_stack_boundary="yes"
12271 else
12272   echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 ac_cv_c_gcc_stack_boundary="no"
12276 fi
12277 rm -f conftest.err conftest.$ac_objext \
12278       conftest$ac_exeext conftest.$ac_ext
12279 CFLAGS=$ac_wine_try_cflags_saved
12280 fi
12281 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12282 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12283   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12284   then
12285     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12286   fi
12287
12288     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12289 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12290 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   ac_wine_try_cflags_saved=$CFLAGS
12294 CFLAGS="$CFLAGS -fno-strict-aliasing"
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h.  */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h.  */
12301
12302 int
12303 main ()
12304 {
12305
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12312   (eval $ac_link) 2>conftest.er1
12313   ac_status=$?
12314   grep -v '^ *+' conftest.er1 >conftest.err
12315   rm -f conftest.er1
12316   cat conftest.err >&5
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } &&
12319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; } &&
12325          { ac_try='test -s conftest$ac_exeext'
12326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327   (eval $ac_try) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; }; then
12331   ac_cv_c_gcc_no_strict_aliasing="yes"
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ac_cv_c_gcc_no_strict_aliasing="no"
12337 fi
12338 rm -f conftest.err conftest.$ac_objext \
12339       conftest$ac_exeext conftest.$ac_ext
12340 CFLAGS=$ac_wine_try_cflags_saved
12341 fi
12342 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12343 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12344   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12345   then
12346     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12347   fi
12348
12349     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12350 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12351 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12352   echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354   ac_wine_try_cflags_saved=$CFLAGS
12355 CFLAGS="$CFLAGS -gstabs+"
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h.  */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h.  */
12362
12363 int
12364 main ()
12365 {
12366
12367   ;
12368   return 0;
12369 }
12370 _ACEOF
12371 rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12373   (eval $ac_link) 2>conftest.er1
12374   ac_status=$?
12375   grep -v '^ *+' conftest.er1 >conftest.err
12376   rm -f conftest.er1
12377   cat conftest.err >&5
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); } &&
12380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382   (eval $ac_try) 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); }; } &&
12386          { ac_try='test -s conftest$ac_exeext'
12387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388   (eval $ac_try) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; }; then
12392   ac_cv_c_gcc_gstabs="yes"
12393 else
12394   echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12396
12397 ac_cv_c_gcc_gstabs="no"
12398 fi
12399 rm -f conftest.err conftest.$ac_objext \
12400       conftest$ac_exeext conftest.$ac_ext
12401 CFLAGS=$ac_wine_try_cflags_saved
12402 fi
12403 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12404 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12405   if test "$ac_cv_c_gcc_gstabs" = "yes"
12406   then
12407     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12408   fi
12409
12410     saved_CFLAGS="$CFLAGS"
12411   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12412   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12413 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12414 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417   cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423 #include <string.h>
12424 int
12425 main ()
12426 {
12427
12428   ;
12429   return 0;
12430 }
12431 _ACEOF
12432 rm -f conftest.$ac_objext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12434   (eval $ac_compile) 2>conftest.er1
12435   ac_status=$?
12436   grep -v '^ *+' conftest.er1 >conftest.err
12437   rm -f conftest.er1
12438   cat conftest.err >&5
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); } &&
12441          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443   (eval $ac_try) 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); }; } &&
12447          { ac_try='test -s conftest.$ac_objext'
12448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453   ac_cv_c_string_h_warnings=no
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458 ac_cv_c_string_h_warnings=yes
12459 fi
12460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12461 fi
12462 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12463 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12464   CFLAGS="$saved_CFLAGS"
12465   if test "$ac_cv_c_string_h_warnings" = "no"
12466   then
12467     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12468   fi
12469 fi
12470
12471
12472 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12473 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12474 if test "${ac_cv_asm_func_def+set}" = set; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483 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"); }
12484
12485 int
12486 main ()
12487 {
12488
12489   ;
12490   return 0;
12491 }
12492 _ACEOF
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495   (eval $ac_link) 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } &&
12502          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; } &&
12508          { ac_try='test -s conftest$ac_exeext'
12509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510   (eval $ac_try) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; }; then
12514   ac_cv_asm_func_def=".def"
12515 else
12516   echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12518
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12526
12527 int
12528 main ()
12529 {
12530
12531   ;
12532   return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537   (eval $ac_link) 2>conftest.er1
12538   ac_status=$?
12539   grep -v '^ *+' conftest.er1 >conftest.err
12540   rm -f conftest.er1
12541   cat conftest.err >&5
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); } &&
12544          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546   (eval $ac_try) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; } &&
12550          { ac_try='test -s conftest$ac_exeext'
12551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552   (eval $ac_try) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; }; then
12556   ac_cv_asm_func_def=".type @function"
12557 else
12558   echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12560
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12568
12569 int
12570 main ()
12571 {
12572
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579   (eval $ac_link) 2>conftest.er1
12580   ac_status=$?
12581   grep -v '^ *+' conftest.er1 >conftest.err
12582   rm -f conftest.er1
12583   cat conftest.err >&5
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); } &&
12586          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588   (eval $ac_try) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; } &&
12592          { ac_try='test -s conftest$ac_exeext'
12593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594   (eval $ac_try) 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; }; then
12598   ac_cv_asm_func_def=".type 2"
12599 else
12600   echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 ac_cv_asm_func_def="unknown"
12604 fi
12605 rm -f conftest.err conftest.$ac_objext \
12606       conftest$ac_exeext conftest.$ac_ext
12607 fi
12608 rm -f conftest.err conftest.$ac_objext \
12609       conftest$ac_exeext conftest.$ac_ext
12610 fi
12611 rm -f conftest.err conftest.$ac_objext \
12612       conftest$ac_exeext conftest.$ac_ext
12613 fi
12614 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12615 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12616
12617
12618
12619 case "$ac_cv_asm_func_def" in
12620   ".def")
12621      cat >>confdefs.h <<\_ACEOF
12622 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12623 _ACEOF
12624  ;;
12625   ".type @function")
12626      cat >>confdefs.h <<\_ACEOF
12627 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12628 _ACEOF
12629  ;;
12630   ".type 2")
12631      cat >>confdefs.h <<\_ACEOF
12632 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12633 _ACEOF
12634  ;;
12635   *)
12636      cat >>confdefs.h <<\_ACEOF
12637 #define __ASM_FUNC(name) ""
12638 _ACEOF
12639  ;;
12640 esac
12641
12642
12643 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12644 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12645 if test "${ac_cv_c_extern_prefix+set}" = set; then
12646   echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648   cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h.  */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h.  */
12654 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12655 extern int ac_test;
12656 int
12657 main ()
12658 {
12659 if (ac_test) return 1
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666   (eval $ac_link) 2>conftest.er1
12667   ac_status=$?
12668   grep -v '^ *+' conftest.er1 >conftest.err
12669   rm -f conftest.er1
12670   cat conftest.err >&5
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } &&
12673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675   (eval $ac_try) 2>&5
12676   ac_status=$?
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); }; } &&
12679          { ac_try='test -s conftest$ac_exeext'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; }; then
12685   ac_cv_c_extern_prefix="yes"
12686 else
12687   echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12689
12690 ac_cv_c_extern_prefix="no"
12691 fi
12692 rm -f conftest.err conftest.$ac_objext \
12693       conftest$ac_exeext conftest.$ac_ext
12694 fi
12695 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12696 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12697
12698
12699
12700 if test "$ac_cv_c_extern_prefix" = "yes"
12701 then
12702   cat >>confdefs.h <<\_ACEOF
12703 #define __ASM_NAME(name) "_" name
12704 _ACEOF
12705
12706 else
12707   cat >>confdefs.h <<\_ACEOF
12708 #define __ASM_NAME(name) name
12709 _ACEOF
12710
12711 fi
12712
12713
12714 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12715 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12716 if test "${ac_cv_c_asm_string+set}" = set; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719   cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h.  */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h.  */
12725 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12726
12727 int
12728 main ()
12729 {
12730
12731   ;
12732   return 0;
12733 }
12734 _ACEOF
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12737   (eval $ac_link) 2>conftest.er1
12738   ac_status=$?
12739   grep -v '^ *+' conftest.er1 >conftest.err
12740   rm -f conftest.er1
12741   cat conftest.err >&5
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } &&
12744          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746   (eval $ac_try) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; } &&
12750          { ac_try='test -s conftest$ac_exeext'
12751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752   (eval $ac_try) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; }; then
12756   ac_cv_c_asm_string=".string"
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h.  */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h.  */
12767 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12768
12769 int
12770 main ()
12771 {
12772
12773   ;
12774   return 0;
12775 }
12776 _ACEOF
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779   (eval $ac_link) 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } &&
12786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788   (eval $ac_try) 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); }; } &&
12792          { ac_try='test -s conftest$ac_exeext'
12793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794   (eval $ac_try) 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; }; then
12798   ac_cv_c_asm_string=".asciz"
12799 else
12800   echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12802
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12810
12811 int
12812 main ()
12813 {
12814
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 rm -f conftest.$ac_objext conftest$ac_exeext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12821   (eval $ac_link) 2>conftest.er1
12822   ac_status=$?
12823   grep -v '^ *+' conftest.er1 >conftest.err
12824   rm -f conftest.er1
12825   cat conftest.err >&5
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); } &&
12828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830   (eval $ac_try) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); }; } &&
12834          { ac_try='test -s conftest$ac_exeext'
12835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836   (eval $ac_try) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; }; then
12840   ac_cv_c_asm_string=".ascii"
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12846 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12847    { (exit 1); exit 1; }; }
12848 fi
12849 rm -f conftest.err conftest.$ac_objext \
12850       conftest$ac_exeext conftest.$ac_ext
12851 fi
12852 rm -f conftest.err conftest.$ac_objext \
12853       conftest$ac_exeext conftest.$ac_ext
12854 fi
12855 rm -f conftest.err conftest.$ac_objext \
12856       conftest$ac_exeext conftest.$ac_ext
12857 fi
12858 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12859 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12860
12861
12862 cat >>confdefs.h <<_ACEOF
12863 #define __ASM_STRING "$ac_cv_c_asm_string"
12864 _ACEOF
12865
12866
12867
12868 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12869 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
12870 if test "${ac_cv_c_asm_short+set}" = set; then
12871   echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873   cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h.  */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h.  */
12879 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
12880
12881 int
12882 main ()
12883 {
12884
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891   (eval $ac_link) 2>conftest.er1
12892   ac_status=$?
12893   grep -v '^ *+' conftest.er1 >conftest.err
12894   rm -f conftest.er1
12895   cat conftest.err >&5
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } &&
12898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest$ac_exeext'
12905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906   (eval $ac_try) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; }; then
12910   ac_cv_c_asm_short=".short"
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915 cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h.  */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h.  */
12921 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
12922
12923 int
12924 main ()
12925 {
12926
12927   ;
12928   return 0;
12929 }
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933   (eval $ac_link) 2>conftest.er1
12934   ac_status=$?
12935   grep -v '^ *+' conftest.er1 >conftest.err
12936   rm -f conftest.er1
12937   cat conftest.err >&5
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); } &&
12940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942   (eval $ac_try) 2>&5
12943   ac_status=$?
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); }; } &&
12946          { ac_try='test -s conftest$ac_exeext'
12947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948   (eval $ac_try) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; }; then
12952   ac_cv_c_asm_short=".half"
12953 else
12954   echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12956
12957 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
12958 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
12959    { (exit 1); exit 1; }; }
12960 fi
12961 rm -f conftest.err conftest.$ac_objext \
12962       conftest$ac_exeext conftest.$ac_ext
12963 fi
12964 rm -f conftest.err conftest.$ac_objext \
12965       conftest$ac_exeext conftest.$ac_ext
12966 fi
12967 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
12968 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
12969
12970
12971 cat >>confdefs.h <<_ACEOF
12972 #define __ASM_SHORT "$ac_cv_c_asm_short"
12973 _ACEOF
12974
12975
12976
12977 echo "$as_me:$LINENO: checking for .size in assembler" >&5
12978 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
12979 if test "${ac_cv_c_asm_size+set}" = set; then
12980   echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982   cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h.  */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h.  */
12988 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
12989
12990 int
12991 main ()
12992 {
12993
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13000   (eval $ac_link) 2>conftest.er1
13001   ac_status=$?
13002   grep -v '^ *+' conftest.er1 >conftest.err
13003   rm -f conftest.er1
13004   cat conftest.err >&5
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); } &&
13007          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009   (eval $ac_try) 2>&5
13010   ac_status=$?
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); }; } &&
13013          { ac_try='test -s conftest$ac_exeext'
13014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015   (eval $ac_try) 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; }; then
13019   ac_cv_c_asm_size="yes"
13020 else
13021   echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024 ac_cv_c_asm_size="no"
13025 fi
13026 rm -f conftest.err conftest.$ac_objext \
13027       conftest$ac_exeext conftest.$ac_ext
13028 fi
13029 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13030 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13031
13032 if test "$ac_cv_c_asm_size" = "yes"
13033 then
13034
13035 cat >>confdefs.h <<\_ACEOF
13036 #define HAVE_ASM_DOT_SIZE 1
13037 _ACEOF
13038
13039 fi
13040
13041
13042 DLLEXT=""
13043
13044 DLLFLAGS="-D_REENTRANT"
13045
13046 DLLIBS=""
13047
13048 LDSHARED=""
13049
13050 LDDLLFLAGS=""
13051
13052 LIBEXT="so"
13053
13054 IMPLIBEXT="def"
13055
13056
13057 case $host_os in
13058   cygwin*|mingw32*)
13059     if test -n "$ac_tool_prefix"; then
13060   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13061 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13062 echo "$as_me:$LINENO: checking for $ac_word" >&5
13063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13064 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13065   echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067   if test -n "$DLLTOOL"; then
13068   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13069 else
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13072 do
13073   IFS=$as_save_IFS
13074   test -z "$as_dir" && as_dir=.
13075   for ac_exec_ext in '' $ac_executable_extensions; do
13076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13079     break 2
13080   fi
13081 done
13082 done
13083
13084 fi
13085 fi
13086 DLLTOOL=$ac_cv_prog_DLLTOOL
13087 if test -n "$DLLTOOL"; then
13088   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13089 echo "${ECHO_T}$DLLTOOL" >&6
13090 else
13091   echo "$as_me:$LINENO: result: no" >&5
13092 echo "${ECHO_T}no" >&6
13093 fi
13094
13095 fi
13096 if test -z "$ac_cv_prog_DLLTOOL"; then
13097   ac_ct_DLLTOOL=$DLLTOOL
13098   # Extract the first word of "dlltool", so it can be a program name with args.
13099 set dummy dlltool; ac_word=$2
13100 echo "$as_me:$LINENO: checking for $ac_word" >&5
13101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13102 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13103   echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105   if test -n "$ac_ct_DLLTOOL"; then
13106   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13110 do
13111   IFS=$as_save_IFS
13112   test -z "$as_dir" && as_dir=.
13113   for ac_exec_ext in '' $ac_executable_extensions; do
13114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13115     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13117     break 2
13118   fi
13119 done
13120 done
13121
13122   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13123 fi
13124 fi
13125 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13126 if test -n "$ac_ct_DLLTOOL"; then
13127   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13128 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13129 else
13130   echo "$as_me:$LINENO: result: no" >&5
13131 echo "${ECHO_T}no" >&6
13132 fi
13133
13134   DLLTOOL=$ac_ct_DLLTOOL
13135 else
13136   DLLTOOL="$ac_cv_prog_DLLTOOL"
13137 fi
13138
13139     if test -n "$ac_tool_prefix"; then
13140   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13141 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13142 echo "$as_me:$LINENO: checking for $ac_word" >&5
13143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13144 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13145   echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147   if test -n "$DLLWRAP"; then
13148   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13149 else
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151 for as_dir in $PATH
13152 do
13153   IFS=$as_save_IFS
13154   test -z "$as_dir" && as_dir=.
13155   for ac_exec_ext in '' $ac_executable_extensions; do
13156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13157     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13159     break 2
13160   fi
13161 done
13162 done
13163
13164 fi
13165 fi
13166 DLLWRAP=$ac_cv_prog_DLLWRAP
13167 if test -n "$DLLWRAP"; then
13168   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13169 echo "${ECHO_T}$DLLWRAP" >&6
13170 else
13171   echo "$as_me:$LINENO: result: no" >&5
13172 echo "${ECHO_T}no" >&6
13173 fi
13174
13175 fi
13176 if test -z "$ac_cv_prog_DLLWRAP"; then
13177   ac_ct_DLLWRAP=$DLLWRAP
13178   # Extract the first word of "dllwrap", so it can be a program name with args.
13179 set dummy dllwrap; ac_word=$2
13180 echo "$as_me:$LINENO: checking for $ac_word" >&5
13181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13182 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13183   echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185   if test -n "$ac_ct_DLLWRAP"; then
13186   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13187 else
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13190 do
13191   IFS=$as_save_IFS
13192   test -z "$as_dir" && as_dir=.
13193   for ac_exec_ext in '' $ac_executable_extensions; do
13194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13195     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13197     break 2
13198   fi
13199 done
13200 done
13201
13202   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13203 fi
13204 fi
13205 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13206 if test -n "$ac_ct_DLLWRAP"; then
13207   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13208 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13209 else
13210   echo "$as_me:$LINENO: result: no" >&5
13211 echo "${ECHO_T}no" >&6
13212 fi
13213
13214   DLLWRAP=$ac_ct_DLLWRAP
13215 else
13216   DLLWRAP="$ac_cv_prog_DLLWRAP"
13217 fi
13218
13219     if test "$DLLWRAP" = "false"; then
13220       LIBEXT="a"
13221     else
13222             LIBEXT="dll"
13223     fi
13224     IMPLIBEXT="a"
13225         WIN16_FILES=""
13226     WIN16_INSTALL=""
13227     ;;
13228   *)
13229
13230 for ac_header in dlfcn.h
13231 do
13232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13234   echo "$as_me:$LINENO: checking for $ac_header" >&5
13235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13237   echo $ECHO_N "(cached) $ECHO_C" >&6
13238 fi
13239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13241 else
13242   # Is the header compilable?
13243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h.  */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h.  */
13251 $ac_includes_default
13252 #include <$ac_header>
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256   (eval $ac_compile) 2>conftest.er1
13257   ac_status=$?
13258   grep -v '^ *+' conftest.er1 >conftest.err
13259   rm -f conftest.er1
13260   cat conftest.err >&5
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); } &&
13263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265   (eval $ac_try) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; } &&
13269          { ac_try='test -s conftest.$ac_objext'
13270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271   (eval $ac_try) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; }; then
13275   ac_header_compiler=yes
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 ac_header_compiler=no
13281 fi
13282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13284 echo "${ECHO_T}$ac_header_compiler" >&6
13285
13286 # Is the header present?
13287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295 #include <$ac_header>
13296 _ACEOF
13297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } >/dev/null; then
13305   if test -s conftest.err; then
13306     ac_cpp_err=$ac_c_preproc_warn_flag
13307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13308   else
13309     ac_cpp_err=
13310   fi
13311 else
13312   ac_cpp_err=yes
13313 fi
13314 if test -z "$ac_cpp_err"; then
13315   ac_header_preproc=yes
13316 else
13317   echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320   ac_header_preproc=no
13321 fi
13322 rm -f conftest.err conftest.$ac_ext
13323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13324 echo "${ECHO_T}$ac_header_preproc" >&6
13325
13326 # So?  What about this header?
13327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13328   yes:no: )
13329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13333     ac_header_preproc=yes
13334     ;;
13335   no:yes:* )
13336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13338     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13339 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13340     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13342     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13343 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13346     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13348     (
13349       cat <<\_ASBOX
13350 ## ------------------------------------ ##
13351 ## Report this to wine-devel@winehq.org ##
13352 ## ------------------------------------ ##
13353 _ASBOX
13354     ) |
13355       sed "s/^/$as_me: WARNING:     /" >&2
13356     ;;
13357 esac
13358 echo "$as_me:$LINENO: checking for $ac_header" >&5
13359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   eval "$as_ac_Header=\$ac_header_preproc"
13364 fi
13365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13367
13368 fi
13369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13370   cat >>confdefs.h <<_ACEOF
13371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13372 _ACEOF
13373
13374 for ac_func in dlopen
13375 do
13376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13377 echo "$as_me:$LINENO: checking for $ac_func" >&5
13378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13379 if eval "test \"\${$as_ac_var+set}\" = set"; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h.  */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h.  */
13388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13390 #define $ac_func innocuous_$ac_func
13391
13392 /* System header to define __stub macros and hopefully few prototypes,
13393     which can conflict with char $ac_func (); below.
13394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13395     <limits.h> exists even on freestanding compilers.  */
13396
13397 #ifdef __STDC__
13398 # include <limits.h>
13399 #else
13400 # include <assert.h>
13401 #endif
13402
13403 #undef $ac_func
13404
13405 /* Override any gcc2 internal prototype to avoid an error.  */
13406 #ifdef __cplusplus
13407 extern "C"
13408 {
13409 #endif
13410 /* We use char because int might match the return type of a gcc2
13411    builtin and then its argument prototype would still apply.  */
13412 char $ac_func ();
13413 /* The GNU C library defines this for functions which it implements
13414     to always fail with ENOSYS.  Some functions are actually named
13415     something starting with __ and the normal name is an alias.  */
13416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13417 choke me
13418 #else
13419 char (*f) () = $ac_func;
13420 #endif
13421 #ifdef __cplusplus
13422 }
13423 #endif
13424
13425 int
13426 main ()
13427 {
13428 return f != $ac_func;
13429   ;
13430   return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435   (eval $ac_link) 2>conftest.er1
13436   ac_status=$?
13437   grep -v '^ *+' conftest.er1 >conftest.err
13438   rm -f conftest.er1
13439   cat conftest.err >&5
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; } &&
13448          { ac_try='test -s conftest$ac_exeext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   eval "$as_ac_var=yes"
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 eval "$as_ac_var=no"
13460 fi
13461 rm -f conftest.err conftest.$ac_objext \
13462       conftest$ac_exeext conftest.$ac_ext
13463 fi
13464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13466 if test `eval echo '${'$as_ac_var'}'` = yes; then
13467   cat >>confdefs.h <<_ACEOF
13468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13469 _ACEOF
13470
13471 else
13472   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13473 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13474 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   ac_check_lib_save_LIBS=$LIBS
13478 LIBS="-ldl  $LIBS"
13479 cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485
13486 /* Override any gcc2 internal prototype to avoid an error.  */
13487 #ifdef __cplusplus
13488 extern "C"
13489 #endif
13490 /* We use char because int might match the return type of a gcc2
13491    builtin and then its argument prototype would still apply.  */
13492 char dlopen ();
13493 int
13494 main ()
13495 {
13496 dlopen ();
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext conftest$ac_exeext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13503   (eval $ac_link) 2>conftest.er1
13504   ac_status=$?
13505   grep -v '^ *+' conftest.er1 >conftest.err
13506   rm -f conftest.er1
13507   cat conftest.err >&5
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } &&
13510          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512   (eval $ac_try) 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; } &&
13516          { ac_try='test -s conftest$ac_exeext'
13517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518   (eval $ac_try) 2>&5
13519   ac_status=$?
13520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521   (exit $ac_status); }; }; then
13522   ac_cv_lib_dl_dlopen=yes
13523 else
13524   echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 ac_cv_lib_dl_dlopen=no
13528 fi
13529 rm -f conftest.err conftest.$ac_objext \
13530       conftest$ac_exeext conftest.$ac_ext
13531 LIBS=$ac_check_lib_save_LIBS
13532 fi
13533 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13534 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13535 if test $ac_cv_lib_dl_dlopen = yes; then
13536
13537 cat >>confdefs.h <<\_ACEOF
13538 #define HAVE_DLOPEN 1
13539 _ACEOF
13540
13541                           DLLIBS="-ldl"
13542 else
13543   LIBEXT="a"
13544 fi
13545
13546 fi
13547 done
13548
13549 else
13550   LIBEXT="a"
13551 fi
13552
13553 done
13554
13555
13556     if test "$LIBEXT" = "so"
13557     then
13558       DLLFLAGS="$DLLFLAGS -fPIC"
13559       DLLEXT=".so"
13560       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13561 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13562 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13563   echo $ECHO_N "(cached) $ECHO_C" >&6
13564 else
13565   ac_wine_try_cflags_saved=$CFLAGS
13566 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13567 cat >conftest.$ac_ext <<_ACEOF
13568 void myfunc() {}
13569 _ACEOF
13570 rm -f conftest.$ac_objext conftest$ac_exeext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13572   (eval $ac_link) 2>conftest.er1
13573   ac_status=$?
13574   grep -v '^ *+' conftest.er1 >conftest.err
13575   rm -f conftest.er1
13576   cat conftest.err >&5
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); } &&
13579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581   (eval $ac_try) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; } &&
13585          { ac_try='test -s conftest$ac_exeext'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }; then
13591   ac_cv_c_dll_gnuelf="yes"
13592 else
13593   echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 ac_cv_c_dll_gnuelf="no"
13597 fi
13598 rm -f conftest.err conftest.$ac_objext \
13599       conftest$ac_exeext conftest.$ac_ext
13600 CFLAGS=$ac_wine_try_cflags_saved
13601 fi
13602 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13603 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13604       if test "$ac_cv_c_dll_gnuelf" = "yes"
13605       then
13606         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13607         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13608         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13609 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13610 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613   ac_wine_try_cflags_saved=$CFLAGS
13614 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h.  */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h.  */
13621
13622 int
13623 main ()
13624 {
13625
13626   ;
13627   return 0;
13628 }
13629 _ACEOF
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632   (eval $ac_link) 2>conftest.er1
13633   ac_status=$?
13634   grep -v '^ *+' conftest.er1 >conftest.err
13635   rm -f conftest.er1
13636   cat conftest.err >&5
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); } &&
13639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641   (eval $ac_try) 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; } &&
13645          { ac_try='test -s conftest$ac_exeext'
13646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647   (eval $ac_try) 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); }; }; then
13651   ac_cv_c_dll_zdefs="yes"
13652 else
13653   echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13655
13656 ac_cv_c_dll_zdefs="no"
13657 fi
13658 rm -f conftest.err conftest.$ac_objext \
13659       conftest$ac_exeext conftest.$ac_ext
13660 CFLAGS=$ac_wine_try_cflags_saved
13661 fi
13662 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13663 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13664         if test "$ac_cv_c_dll_zdefs" = "yes"
13665         then
13666           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13667         fi
13668
13669         echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13670 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13671 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13672   echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674   ac_wine_try_cflags_saved=$CFLAGS
13675 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13676 cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h.  */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h.  */
13682
13683 int
13684 main ()
13685 {
13686
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693   (eval $ac_link) 2>conftest.er1
13694   ac_status=$?
13695   grep -v '^ *+' conftest.er1 >conftest.err
13696   rm -f conftest.er1
13697   cat conftest.err >&5
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } &&
13700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702   (eval $ac_try) 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; } &&
13706          { ac_try='test -s conftest$ac_exeext'
13707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708   (eval $ac_try) 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); }; }; then
13712   ac_cv_c_dll_init_fini="yes"
13713 else
13714   echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13716
13717 ac_cv_c_dll_init_fini="no"
13718 fi
13719 rm -f conftest.err conftest.$ac_objext \
13720       conftest$ac_exeext conftest.$ac_ext
13721 CFLAGS=$ac_wine_try_cflags_saved
13722 fi
13723 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13724 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13725         if test "$ac_cv_c_dll_init_fini" = "yes"
13726         then
13727           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13728         fi
13729
13730         echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13731 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13732 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13733   echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735   echo '{ global: *; };' >conftest.map
13736            ac_wine_try_cflags_saved=$CFLAGS
13737 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h.  */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h.  */
13744
13745 int
13746 main ()
13747 {
13748
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13755   (eval $ac_link) 2>conftest.er1
13756   ac_status=$?
13757   grep -v '^ *+' conftest.er1 >conftest.err
13758   rm -f conftest.er1
13759   cat conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } &&
13762          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764   (eval $ac_try) 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); }; } &&
13768          { ac_try='test -s conftest$ac_exeext'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; }; then
13774   ac_cv_c_ld_version_scripts="yes"
13775 else
13776   echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779 ac_cv_c_ld_version_scripts="no"
13780 fi
13781 rm -f conftest.err conftest.$ac_objext \
13782       conftest$ac_exeext conftest.$ac_ext
13783 CFLAGS=$ac_wine_try_cflags_saved
13784            rm -f conftest.map
13785 fi
13786 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13787 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13788         if test "$ac_cv_c_ld_version_scripts" = "yes"
13789         then
13790           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13791         fi
13792
13793         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13794 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13795 if test "${ac_cv_c_export_dynamic+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   ac_wine_try_cflags_saved=$CFLAGS
13799 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h.  */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h.  */
13806
13807 int
13808 main ()
13809 {
13810
13811   ;
13812   return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817   (eval $ac_link) 2>conftest.er1
13818   ac_status=$?
13819   grep -v '^ *+' conftest.er1 >conftest.err
13820   rm -f conftest.er1
13821   cat conftest.err >&5
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); } &&
13824          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; } &&
13830          { ac_try='test -s conftest$ac_exeext'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_cv_c_export_dynamic="yes"
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841 ac_cv_c_export_dynamic="no"
13842 fi
13843 rm -f conftest.err conftest.$ac_objext \
13844       conftest$ac_exeext conftest.$ac_ext
13845 CFLAGS=$ac_wine_try_cflags_saved
13846 fi
13847 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13848 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13849         if test "$ac_cv_c_export_dynamic" = "yes"
13850         then
13851           LDEXECFLAGS="-Wl,--export-dynamic"
13852
13853         fi
13854
13855         case $host_cpu in
13856           *i[3456789]86*)
13857             echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
13858 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
13859 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13860   echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862   ac_wine_try_cflags_saved=$CFLAGS
13863 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870
13871 int
13872 main ()
13873 {
13874
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13881   (eval $ac_link) 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; } &&
13894          { ac_try='test -s conftest$ac_exeext'
13895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896   (eval $ac_try) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   ac_cv_ld_reloc_exec="yes"
13901 else
13902   echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905 ac_cv_ld_reloc_exec="no"
13906 fi
13907 rm -f conftest.err conftest.$ac_objext \
13908       conftest$ac_exeext conftest.$ac_ext
13909 CFLAGS=$ac_wine_try_cflags_saved
13910 fi
13911 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13912 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13913             if test "$ac_cv_ld_reloc_exec" = "yes"
13914             then
13915               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
13916             fi
13917             ;;
13918         esac
13919
13920       else
13921         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13922 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13923 if test "${ac_cv_c_dll_unixware+set}" = set; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   ac_wine_try_cflags_saved=$CFLAGS
13927 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13928 cat >conftest.$ac_ext <<_ACEOF
13929 void myfunc() {}
13930 _ACEOF
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13933   (eval $ac_link) 2>conftest.er1
13934   ac_status=$?
13935   grep -v '^ *+' conftest.er1 >conftest.err
13936   rm -f conftest.er1
13937   cat conftest.err >&5
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } &&
13940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942   (eval $ac_try) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; } &&
13946          { ac_try='test -s conftest$ac_exeext'
13947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948   (eval $ac_try) 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; }; then
13952   ac_cv_c_dll_unixware="yes"
13953 else
13954   echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13956
13957 ac_cv_c_dll_unixware="no"
13958 fi
13959 rm -f conftest.err conftest.$ac_objext \
13960       conftest$ac_exeext conftest.$ac_ext
13961 CFLAGS=$ac_wine_try_cflags_saved
13962 fi
13963 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13964 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13965         if test "$ac_cv_c_dll_unixware" = "yes"
13966         then
13967           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13968           LDDLLFLAGS="-Wl,-G,-B,symbolic"
13969
13970         else
13971           echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13972 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13973 if test "${ac_cv_c_dll_macho+set}" = set; then
13974   echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976   ac_wine_try_cflags_saved=$CFLAGS
13977 CFLAGS="$CFLAGS -bundle"
13978 cat >conftest.$ac_ext <<_ACEOF
13979 void myfunc() {}
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983   (eval $ac_link) 2>conftest.er1
13984   ac_status=$?
13985   grep -v '^ *+' conftest.er1 >conftest.err
13986   rm -f conftest.er1
13987   cat conftest.err >&5
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); } &&
13990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992   (eval $ac_try) 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }; } &&
13996          { ac_try='test -s conftest$ac_exeext'
13997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998   (eval $ac_try) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); }; }; then
14002   ac_cv_c_dll_macho="yes"
14003 else
14004   echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007 ac_cv_c_dll_macho="no"
14008 fi
14009 rm -f conftest.err conftest.$ac_objext \
14010       conftest$ac_exeext conftest.$ac_ext
14011 CFLAGS=$ac_wine_try_cflags_saved
14012 fi
14013 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14014 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14015           if test "$ac_cv_c_dll_macho" = "yes"
14016           then
14017             LIBEXT="dylib"
14018             LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14019             LDSHARED="\$(CC) -dynamiclib"
14020             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14021             STRIP="$STRIP -u -r"
14022                         LDEXECFLAGS="-seg1addr 0x120000"
14023
14024                         LDLIBWINEFLAGS="-seg1addr 0x140000"
14025
14026                     COREFOUNDATIONLIB="-framework CoreFoundation"
14027
14028             IOKITLIB="-framework IOKit"
14029
14030                     IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB"
14031           else
14032             echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14033 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14034 if test "${ac_cv_c_dll_hpux+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   ac_wine_try_cflags_saved=$CFLAGS
14038 CFLAGS="$CFLAGS -shared"
14039 cat >conftest.$ac_ext <<_ACEOF
14040 void myfunc() {}
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044   (eval $ac_link) 2>conftest.er1
14045   ac_status=$?
14046   grep -v '^ *+' conftest.er1 >conftest.err
14047   rm -f conftest.er1
14048   cat conftest.err >&5
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } &&
14051          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053   (eval $ac_try) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; } &&
14057          { ac_try='test -s conftest$ac_exeext'
14058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059   (eval $ac_try) 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; }; then
14063   ac_cv_c_dll_hpux="yes"
14064 else
14065   echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14067
14068 ac_cv_c_dll_hpux="no"
14069 fi
14070 rm -f conftest.err conftest.$ac_objext \
14071       conftest$ac_exeext conftest.$ac_ext
14072 CFLAGS=$ac_wine_try_cflags_saved
14073 fi
14074 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14075 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14076             if test "$ac_cv_c_dll_hpux" = "yes"
14077             then
14078               LIBEXT="sl"
14079               DLLEXT=".sl"
14080               LDDLLFLAGS="-shared -fPIC"
14081               LDSHARED="\$(CC) -shared"
14082             fi
14083           fi
14084         fi
14085       fi
14086     fi
14087
14088         CROSSTEST=""
14089
14090     if test "$cross_compiling" = "no"
14091     then
14092       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14093 do
14094   # Extract the first word of "$ac_prog", so it can be a program name with args.
14095 set dummy $ac_prog; ac_word=$2
14096 echo "$as_me:$LINENO: checking for $ac_word" >&5
14097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14098 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101   if test -n "$CROSSCC"; then
14102   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14103 else
14104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105 for as_dir in $PATH
14106 do
14107   IFS=$as_save_IFS
14108   test -z "$as_dir" && as_dir=.
14109   for ac_exec_ext in '' $ac_executable_extensions; do
14110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14111     ac_cv_prog_CROSSCC="$ac_prog"
14112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14113     break 2
14114   fi
14115 done
14116 done
14117
14118 fi
14119 fi
14120 CROSSCC=$ac_cv_prog_CROSSCC
14121 if test -n "$CROSSCC"; then
14122   echo "$as_me:$LINENO: result: $CROSSCC" >&5
14123 echo "${ECHO_T}$CROSSCC" >&6
14124 else
14125   echo "$as_me:$LINENO: result: no" >&5
14126 echo "${ECHO_T}no" >&6
14127 fi
14128
14129   test -n "$CROSSCC" && break
14130 done
14131 test -n "$CROSSCC" || CROSSCC="false"
14132
14133       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14134 do
14135   # Extract the first word of "$ac_prog", so it can be a program name with args.
14136 set dummy $ac_prog; ac_word=$2
14137 echo "$as_me:$LINENO: checking for $ac_word" >&5
14138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14139 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142   if test -n "$DLLTOOL"; then
14143   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14144 else
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14147 do
14148   IFS=$as_save_IFS
14149   test -z "$as_dir" && as_dir=.
14150   for ac_exec_ext in '' $ac_executable_extensions; do
14151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14152     ac_cv_prog_DLLTOOL="$ac_prog"
14153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14154     break 2
14155   fi
14156 done
14157 done
14158
14159 fi
14160 fi
14161 DLLTOOL=$ac_cv_prog_DLLTOOL
14162 if test -n "$DLLTOOL"; then
14163   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14164 echo "${ECHO_T}$DLLTOOL" >&6
14165 else
14166   echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6
14168 fi
14169
14170   test -n "$DLLTOOL" && break
14171 done
14172 test -n "$DLLTOOL" || DLLTOOL="false"
14173
14174       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14175 do
14176   # Extract the first word of "$ac_prog", so it can be a program name with args.
14177 set dummy $ac_prog; ac_word=$2
14178 echo "$as_me:$LINENO: checking for $ac_word" >&5
14179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14180 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   if test -n "$CROSSWINDRES"; then
14184   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14185 else
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14188 do
14189   IFS=$as_save_IFS
14190   test -z "$as_dir" && as_dir=.
14191   for ac_exec_ext in '' $ac_executable_extensions; do
14192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14193     ac_cv_prog_CROSSWINDRES="$ac_prog"
14194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14195     break 2
14196   fi
14197 done
14198 done
14199
14200 fi
14201 fi
14202 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14203 if test -n "$CROSSWINDRES"; then
14204   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14205 echo "${ECHO_T}$CROSSWINDRES" >&6
14206 else
14207   echo "$as_me:$LINENO: result: no" >&5
14208 echo "${ECHO_T}no" >&6
14209 fi
14210
14211   test -n "$CROSSWINDRES" && break
14212 done
14213 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14214
14215       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14216     fi
14217     ;;
14218 esac
14219
14220 if test "$LIBEXT" = "a"; then
14221   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14222 It is currently not possible to build Wine without shared library
14223 (.so) support to allow transparent switch between .so and .dll files.
14224 If you are using Linux, you will need a newer binutils.
14225 " >&5
14226 echo "$as_me: error: could not find a way to build shared libraries.
14227 It is currently not possible to build Wine without shared library
14228 (.so) support to allow transparent switch between .so and .dll files.
14229 If you are using Linux, you will need a newer binutils.
14230 " >&2;}
14231    { (exit 1); exit 1; }; }
14232 fi
14233
14234 case $build_os in
14235   cygwin*|mingw32*)
14236     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14237  ;;
14238   darwin*|macosx*)
14239     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14240  ;;
14241   *)
14242     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14243  ;;
14244 esac
14245
14246 case $host_os in
14247   mingw32*)
14248     CRTLIBS="-lmsvcrt"
14249
14250     SOCKETLIBS="-lws2_32"
14251
14252     ;;
14253 esac
14254
14255 case $host_os in
14256   linux*)
14257     case $host_cpu in
14258       *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14259  ;;
14260       *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14261  ;;
14262     esac
14263     MAIN_BINARY="wine-glibc"
14264
14265     ;;
14266   darwin*)
14267     WINE_BINARIES="wine-pthread"
14268
14269     MAIN_BINARY="wine-pthread"
14270
14271     ;;
14272   *)
14273     WINE_BINARIES="wine-kthread"
14274
14275     MAIN_BINARY="wine-kthread"
14276
14277     ;;
14278 esac
14279
14280
14281 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14282 then
14283   # Extract the first word of "ldd", so it can be a program name with args.
14284 set dummy ldd; ac_word=$2
14285 echo "$as_me:$LINENO: checking for $ac_word" >&5
14286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14287 if test "${ac_cv_path_LDD+set}" = set; then
14288   echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290   case $LDD in
14291   [\\/]* | ?:[\\/]*)
14292   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14293   ;;
14294   *)
14295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296 as_dummy="/sbin:/usr/sbin:$PATH"
14297 for as_dir in $as_dummy
14298 do
14299   IFS=$as_save_IFS
14300   test -z "$as_dir" && as_dir=.
14301   for ac_exec_ext in '' $ac_executable_extensions; do
14302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14303     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14305     break 2
14306   fi
14307 done
14308 done
14309
14310   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14311   ;;
14312 esac
14313 fi
14314 LDD=$ac_cv_path_LDD
14315
14316 if test -n "$LDD"; then
14317   echo "$as_me:$LINENO: result: $LDD" >&5
14318 echo "${ECHO_T}$LDD" >&6
14319 else
14320   echo "$as_me:$LINENO: result: no" >&5
14321 echo "${ECHO_T}no" >&6
14322 fi
14323
14324
14325 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14326 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14327 if test "${ac_cv_lib_soname_X11+set}" = set; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   ac_get_soname_save_LIBS=$LIBS
14331 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14332   cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h.  */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h.  */
14338
14339 /* Override any gcc2 internal prototype to avoid an error.  */
14340 #ifdef __cplusplus
14341 extern "C"
14342 #endif
14343 /* We use char because int might match the return type of a gcc2
14344    builtin and then its argument prototype would still apply.  */
14345 char XCreateWindow ();
14346 int
14347 main ()
14348 {
14349 XCreateWindow ();
14350   ;
14351   return 0;
14352 }
14353 _ACEOF
14354 rm -f conftest.$ac_objext conftest$ac_exeext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14356   (eval $ac_link) 2>conftest.er1
14357   ac_status=$?
14358   grep -v '^ *+' conftest.er1 >conftest.err
14359   rm -f conftest.er1
14360   cat conftest.err >&5
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); } &&
14363          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365   (eval $ac_try) 2>&5
14366   ac_status=$?
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); }; } &&
14369          { ac_try='test -s conftest$ac_exeext'
14370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371   (eval $ac_try) 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }; }; then
14375   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^       ]*\).*$/\1/"`
14376   if test "x$ac_cv_lib_soname_X11" = "x"
14377   then
14378      ac_cv_lib_soname_X11="libX11.$LIBEXT"
14379   fi
14380 else
14381   echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14385 fi
14386 rm -f conftest.err conftest.$ac_objext \
14387       conftest$ac_exeext conftest.$ac_ext
14388   LIBS=$ac_get_soname_save_LIBS
14389 fi
14390 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14391 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14392 if test "x$ac_cv_lib_soname_X11" != xNONE
14393 then
14394 cat >>confdefs.h <<_ACEOF
14395 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14396 _ACEOF
14397 fi
14398
14399 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14400 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14401 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14402   echo $ECHO_N "(cached) $ECHO_C" >&6
14403 else
14404   ac_get_soname_save_LIBS=$LIBS
14405 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14406   cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412
14413 /* Override any gcc2 internal prototype to avoid an error.  */
14414 #ifdef __cplusplus
14415 extern "C"
14416 #endif
14417 /* We use char because int might match the return type of a gcc2
14418    builtin and then its argument prototype would still apply.  */
14419 char XextCreateExtension ();
14420 int
14421 main ()
14422 {
14423 XextCreateExtension ();
14424   ;
14425   return 0;
14426 }
14427 _ACEOF
14428 rm -f conftest.$ac_objext conftest$ac_exeext
14429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14430   (eval $ac_link) 2>conftest.er1
14431   ac_status=$?
14432   grep -v '^ *+' conftest.er1 >conftest.err
14433   rm -f conftest.er1
14434   cat conftest.err >&5
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } &&
14437          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; } &&
14443          { ac_try='test -s conftest$ac_exeext'
14444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445   (eval $ac_try) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }; then
14449   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^    ]*\).*$/\1/"`
14450   if test "x$ac_cv_lib_soname_Xext" = "x"
14451   then
14452      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14453   fi
14454 else
14455   echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14459 fi
14460 rm -f conftest.err conftest.$ac_objext \
14461       conftest$ac_exeext conftest.$ac_ext
14462   LIBS=$ac_get_soname_save_LIBS
14463 fi
14464 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14465 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14466 if test "x$ac_cv_lib_soname_Xext" != xNONE
14467 then
14468 cat >>confdefs.h <<_ACEOF
14469 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14470 _ACEOF
14471 fi
14472
14473 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14474 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14475 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   ac_get_soname_save_LIBS=$LIBS
14479 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14480   cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h.  */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h.  */
14486
14487 /* Override any gcc2 internal prototype to avoid an error.  */
14488 #ifdef __cplusplus
14489 extern "C"
14490 #endif
14491 /* We use char because int might match the return type of a gcc2
14492    builtin and then its argument prototype would still apply.  */
14493 char XOpenDevice ();
14494 int
14495 main ()
14496 {
14497 XOpenDevice ();
14498   ;
14499   return 0;
14500 }
14501 _ACEOF
14502 rm -f conftest.$ac_objext conftest$ac_exeext
14503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14504   (eval $ac_link) 2>conftest.er1
14505   ac_status=$?
14506   grep -v '^ *+' conftest.er1 >conftest.err
14507   rm -f conftest.er1
14508   cat conftest.err >&5
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); } &&
14511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14513   (eval $ac_try) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); }; } &&
14517          { ac_try='test -s conftest$ac_exeext'
14518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519   (eval $ac_try) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }; then
14523   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^  ]*\).*$/\1/"`
14524   if test "x$ac_cv_lib_soname_Xi" = "x"
14525   then
14526      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14527   fi
14528 else
14529   echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14531
14532 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14533 fi
14534 rm -f conftest.err conftest.$ac_objext \
14535       conftest$ac_exeext conftest.$ac_ext
14536   LIBS=$ac_get_soname_save_LIBS
14537 fi
14538 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14539 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14540 if test "x$ac_cv_lib_soname_Xi" != xNONE
14541 then
14542 cat >>confdefs.h <<_ACEOF
14543 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14544 _ACEOF
14545 fi
14546
14547 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14548 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14549 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14550   echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552   ac_get_soname_save_LIBS=$LIBS
14553 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14554   cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560
14561 /* Override any gcc2 internal prototype to avoid an error.  */
14562 #ifdef __cplusplus
14563 extern "C"
14564 #endif
14565 /* We use char because int might match the return type of a gcc2
14566    builtin and then its argument prototype would still apply.  */
14567 char XRenderQueryExtension ();
14568 int
14569 main ()
14570 {
14571 XRenderQueryExtension ();
14572   ;
14573   return 0;
14574 }
14575 _ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578   (eval $ac_link) 2>conftest.er1
14579   ac_status=$?
14580   grep -v '^ *+' conftest.er1 >conftest.err
14581   rm -f conftest.er1
14582   cat conftest.err >&5
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } &&
14585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587   (eval $ac_try) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); }; } &&
14591          { ac_try='test -s conftest$ac_exeext'
14592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }; then
14597   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^   ]*\).*$/\1/"`
14598   if test "x$ac_cv_lib_soname_Xrender" = "x"
14599   then
14600      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14601   fi
14602 else
14603   echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14605
14606 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14607 fi
14608 rm -f conftest.err conftest.$ac_objext \
14609       conftest$ac_exeext conftest.$ac_ext
14610   LIBS=$ac_get_soname_save_LIBS
14611 fi
14612 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14613 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14614 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14615 then
14616 cat >>confdefs.h <<_ACEOF
14617 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14618 _ACEOF
14619 fi
14620
14621 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14622 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14623 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14624   echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626   ac_get_soname_save_LIBS=$LIBS
14627 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14628   cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634
14635 /* Override any gcc2 internal prototype to avoid an error.  */
14636 #ifdef __cplusplus
14637 extern "C"
14638 #endif
14639 /* We use char because int might match the return type of a gcc2
14640    builtin and then its argument prototype would still apply.  */
14641 char XRRQueryExtension ();
14642 int
14643 main ()
14644 {
14645 XRRQueryExtension ();
14646   ;
14647   return 0;
14648 }
14649 _ACEOF
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14652   (eval $ac_link) 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } &&
14659          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; } &&
14665          { ac_try='test -s conftest$ac_exeext'
14666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667   (eval $ac_try) 2>&5
14668   ac_status=$?
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); }; }; then
14671   ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^      ]*\).*$/\1/"`
14672   if test "x$ac_cv_lib_soname_Xrandr" = "x"
14673   then
14674      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14675   fi
14676 else
14677   echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14679
14680 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14681 fi
14682 rm -f conftest.err conftest.$ac_objext \
14683       conftest$ac_exeext conftest.$ac_ext
14684   LIBS=$ac_get_soname_save_LIBS
14685 fi
14686 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14687 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14688 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14689 then
14690 cat >>confdefs.h <<_ACEOF
14691 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14692 _ACEOF
14693 fi
14694
14695 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14696 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14697 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14698   echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700   ac_get_soname_save_LIBS=$LIBS
14701 LIBS="-lfreetype $X_LIBS $LIBS"
14702   cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708
14709 /* Override any gcc2 internal prototype to avoid an error.  */
14710 #ifdef __cplusplus
14711 extern "C"
14712 #endif
14713 /* We use char because int might match the return type of a gcc2
14714    builtin and then its argument prototype would still apply.  */
14715 char FT_Init_FreeType ();
14716 int
14717 main ()
14718 {
14719 FT_Init_FreeType ();
14720   ;
14721   return 0;
14722 }
14723 _ACEOF
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14726   (eval $ac_link) 2>conftest.er1
14727   ac_status=$?
14728   grep -v '^ *+' conftest.er1 >conftest.err
14729   rm -f conftest.er1
14730   cat conftest.err >&5
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } &&
14733          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; } &&
14739          { ac_try='test -s conftest$ac_exeext'
14740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741   (eval $ac_try) 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); }; }; then
14745   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^        ]*\).*$/\1/"`
14746   if test "x$ac_cv_lib_soname_freetype" = "x"
14747   then
14748      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14749   fi
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14755 fi
14756 rm -f conftest.err conftest.$ac_objext \
14757       conftest$ac_exeext conftest.$ac_ext
14758   LIBS=$ac_get_soname_save_LIBS
14759 fi
14760 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14761 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14762 if test "x$ac_cv_lib_soname_freetype" != xNONE
14763 then
14764 cat >>confdefs.h <<_ACEOF
14765 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14766 _ACEOF
14767 fi
14768
14769 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14770 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14771 if test "${ac_cv_lib_soname_GL+set}" = set; then
14772   echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774   ac_get_soname_save_LIBS=$LIBS
14775 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14776   cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h.  */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h.  */
14782
14783 /* Override any gcc2 internal prototype to avoid an error.  */
14784 #ifdef __cplusplus
14785 extern "C"
14786 #endif
14787 /* We use char because int might match the return type of a gcc2
14788    builtin and then its argument prototype would still apply.  */
14789 char glXQueryExtension ();
14790 int
14791 main ()
14792 {
14793 glXQueryExtension ();
14794   ;
14795   return 0;
14796 }
14797 _ACEOF
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800   (eval $ac_link) 2>conftest.er1
14801   ac_status=$?
14802   grep -v '^ *+' conftest.er1 >conftest.err
14803   rm -f conftest.er1
14804   cat conftest.err >&5
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); } &&
14807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809   (eval $ac_try) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; } &&
14813          { ac_try='test -s conftest$ac_exeext'
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_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^  ]*\).*$/\1/"`
14820   if test "x$ac_cv_lib_soname_GL" = "x"
14821   then
14822      ac_cv_lib_soname_GL="libGL.$LIBEXT"
14823   fi
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14829 fi
14830 rm -f conftest.err conftest.$ac_objext \
14831       conftest$ac_exeext conftest.$ac_ext
14832   LIBS=$ac_get_soname_save_LIBS
14833 fi
14834 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14835 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14836 if test "x$ac_cv_lib_soname_GL" != xNONE
14837 then
14838 cat >>confdefs.h <<_ACEOF
14839 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14840 _ACEOF
14841 fi
14842
14843 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14844 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14845 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14846   echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848   ac_get_soname_save_LIBS=$LIBS
14849 LIBS="-ltxc_dxtn  $LIBS"
14850   cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856
14857 /* Override any gcc2 internal prototype to avoid an error.  */
14858 #ifdef __cplusplus
14859 extern "C"
14860 #endif
14861 /* We use char because int might match the return type of a gcc2
14862    builtin and then its argument prototype would still apply.  */
14863 char fetch_2d_texel_rgba_dxt1 ();
14864 int
14865 main ()
14866 {
14867 fetch_2d_texel_rgba_dxt1 ();
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874   (eval $ac_link) 2>conftest.er1
14875   ac_status=$?
14876   grep -v '^ *+' conftest.er1 >conftest.err
14877   rm -f conftest.er1
14878   cat conftest.err >&5
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } &&
14881          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883   (eval $ac_try) 2>&5
14884   ac_status=$?
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); }; } &&
14887          { ac_try='test -s conftest$ac_exeext'
14888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889   (eval $ac_try) 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; }; then
14893   ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^        ]*\).*$/\1/"`
14894   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14895   then
14896      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14897   fi
14898 else
14899   echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14903 fi
14904 rm -f conftest.err conftest.$ac_objext \
14905       conftest$ac_exeext conftest.$ac_ext
14906   LIBS=$ac_get_soname_save_LIBS
14907 fi
14908 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14909 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14910 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
14911 then
14912 cat >>confdefs.h <<_ACEOF
14913 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14914 _ACEOF
14915 fi
14916
14917 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14918 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14919 if test "${ac_cv_lib_soname_cups+set}" = set; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922   ac_get_soname_save_LIBS=$LIBS
14923 LIBS="-lcups  $LIBS"
14924   cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930
14931 /* Override any gcc2 internal prototype to avoid an error.  */
14932 #ifdef __cplusplus
14933 extern "C"
14934 #endif
14935 /* We use char because int might match the return type of a gcc2
14936    builtin and then its argument prototype would still apply.  */
14937 char cupsGetDefault ();
14938 int
14939 main ()
14940 {
14941 cupsGetDefault ();
14942   ;
14943   return 0;
14944 }
14945 _ACEOF
14946 rm -f conftest.$ac_objext conftest$ac_exeext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14948   (eval $ac_link) 2>conftest.er1
14949   ac_status=$?
14950   grep -v '^ *+' conftest.er1 >conftest.err
14951   rm -f conftest.er1
14952   cat conftest.err >&5
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); } &&
14955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957   (eval $ac_try) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; } &&
14961          { ac_try='test -s conftest$ac_exeext'
14962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963   (eval $ac_try) 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); }; }; then
14967   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^    ]*\).*$/\1/"`
14968   if test "x$ac_cv_lib_soname_cups" = "x"
14969   then
14970      ac_cv_lib_soname_cups="libcups.$LIBEXT"
14971   fi
14972 else
14973   echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14975
14976 ac_cv_lib_soname_cups="libcups.$LIBEXT"
14977 fi
14978 rm -f conftest.err conftest.$ac_objext \
14979       conftest$ac_exeext conftest.$ac_ext
14980   LIBS=$ac_get_soname_save_LIBS
14981 fi
14982 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14983 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14984 if test "x$ac_cv_lib_soname_cups" != xNONE
14985 then
14986 cat >>confdefs.h <<_ACEOF
14987 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14988 _ACEOF
14989 fi
14990
14991 echo "$as_me:$LINENO: checking for -ljack soname" >&5
14992 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14993 if test "${ac_cv_lib_soname_jack+set}" = set; then
14994   echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996   ac_get_soname_save_LIBS=$LIBS
14997 LIBS="-ljack  $LIBS"
14998   cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h.  */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h.  */
15004
15005 /* Override any gcc2 internal prototype to avoid an error.  */
15006 #ifdef __cplusplus
15007 extern "C"
15008 #endif
15009 /* We use char because int might match the return type of a gcc2
15010    builtin and then its argument prototype would still apply.  */
15011 char jack_client_new ();
15012 int
15013 main ()
15014 {
15015 jack_client_new ();
15016   ;
15017   return 0;
15018 }
15019 _ACEOF
15020 rm -f conftest.$ac_objext conftest$ac_exeext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15022   (eval $ac_link) 2>conftest.er1
15023   ac_status=$?
15024   grep -v '^ *+' conftest.er1 >conftest.err
15025   rm -f conftest.er1
15026   cat conftest.err >&5
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); } &&
15029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031   (eval $ac_try) 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); }; } &&
15035          { ac_try='test -s conftest$ac_exeext'
15036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037   (eval $ac_try) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); }; }; then
15041   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^    ]*\).*$/\1/"`
15042   if test "x$ac_cv_lib_soname_jack" = "x"
15043   then
15044      ac_cv_lib_soname_jack="libjack.$LIBEXT"
15045   fi
15046 else
15047   echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15051 fi
15052 rm -f conftest.err conftest.$ac_objext \
15053       conftest$ac_exeext conftest.$ac_ext
15054   LIBS=$ac_get_soname_save_LIBS
15055 fi
15056 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15057 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15058 if test "x$ac_cv_lib_soname_jack" != xNONE
15059 then
15060 cat >>confdefs.h <<_ACEOF
15061 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15062 _ACEOF
15063 fi
15064
15065 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15066 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15067 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15068   echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070   ac_get_soname_save_LIBS=$LIBS
15071 LIBS="-lfontconfig  $LIBS"
15072   cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h.  */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h.  */
15078
15079 /* Override any gcc2 internal prototype to avoid an error.  */
15080 #ifdef __cplusplus
15081 extern "C"
15082 #endif
15083 /* We use char because int might match the return type of a gcc2
15084    builtin and then its argument prototype would still apply.  */
15085 char FcInit ();
15086 int
15087 main ()
15088 {
15089 FcInit ();
15090   ;
15091   return 0;
15092 }
15093 _ACEOF
15094 rm -f conftest.$ac_objext conftest$ac_exeext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15096   (eval $ac_link) 2>conftest.er1
15097   ac_status=$?
15098   grep -v '^ *+' conftest.er1 >conftest.err
15099   rm -f conftest.er1
15100   cat conftest.err >&5
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); } &&
15103          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105   (eval $ac_try) 2>&5
15106   ac_status=$?
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); }; } &&
15109          { ac_try='test -s conftest$ac_exeext'
15110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111   (eval $ac_try) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; }; then
15115   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^  ]*\).*$/\1/"`
15116   if test "x$ac_cv_lib_soname_fontconfig" = "x"
15117   then
15118      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15119   fi
15120 else
15121   echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15125 fi
15126 rm -f conftest.err conftest.$ac_objext \
15127       conftest$ac_exeext conftest.$ac_ext
15128   LIBS=$ac_get_soname_save_LIBS
15129 fi
15130 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15131 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15132 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15133 then
15134 cat >>confdefs.h <<_ACEOF
15135 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15136 _ACEOF
15137 fi
15138
15139 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15140 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15141 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15142   echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15144   ac_get_soname_save_LIBS=$LIBS
15145 LIBS="-lssl  $LIBS"
15146   cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h.  */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h.  */
15152
15153 /* Override any gcc2 internal prototype to avoid an error.  */
15154 #ifdef __cplusplus
15155 extern "C"
15156 #endif
15157 /* We use char because int might match the return type of a gcc2
15158    builtin and then its argument prototype would still apply.  */
15159 char SSL_library_init ();
15160 int
15161 main ()
15162 {
15163 SSL_library_init ();
15164   ;
15165   return 0;
15166 }
15167 _ACEOF
15168 rm -f conftest.$ac_objext conftest$ac_exeext
15169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15170   (eval $ac_link) 2>conftest.er1
15171   ac_status=$?
15172   grep -v '^ *+' conftest.er1 >conftest.err
15173   rm -f conftest.er1
15174   cat conftest.err >&5
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); } &&
15177          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; } &&
15183          { ac_try='test -s conftest$ac_exeext'
15184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185   (eval $ac_try) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; }; then
15189   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^       ]*\).*$/\1/"`
15190   if test "x$ac_cv_lib_soname_ssl" = "x"
15191   then
15192      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15193   fi
15194 else
15195   echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15199 fi
15200 rm -f conftest.err conftest.$ac_objext \
15201       conftest$ac_exeext conftest.$ac_ext
15202   LIBS=$ac_get_soname_save_LIBS
15203 fi
15204 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15205 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15206 if test "x$ac_cv_lib_soname_ssl" != xNONE
15207 then
15208 cat >>confdefs.h <<_ACEOF
15209 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15210 _ACEOF
15211 fi
15212
15213 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15214 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15215 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15216   echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218   ac_get_soname_save_LIBS=$LIBS
15219 LIBS="-lcrypto  $LIBS"
15220   cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h.  */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h.  */
15226
15227 /* Override any gcc2 internal prototype to avoid an error.  */
15228 #ifdef __cplusplus
15229 extern "C"
15230 #endif
15231 /* We use char because int might match the return type of a gcc2
15232    builtin and then its argument prototype would still apply.  */
15233 char BIO_new_socket ();
15234 int
15235 main ()
15236 {
15237 BIO_new_socket ();
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 rm -f conftest.$ac_objext conftest$ac_exeext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15244   (eval $ac_link) 2>conftest.er1
15245   ac_status=$?
15246   grep -v '^ *+' conftest.er1 >conftest.err
15247   rm -f conftest.er1
15248   cat conftest.err >&5
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); } &&
15251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253   (eval $ac_try) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; } &&
15257          { ac_try='test -s conftest$ac_exeext'
15258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259   (eval $ac_try) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^      ]*\).*$/\1/"`
15264   if test "x$ac_cv_lib_soname_crypto" = "x"
15265   then
15266      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15267   fi
15268 else
15269   echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15271
15272 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15273 fi
15274 rm -f conftest.err conftest.$ac_objext \
15275       conftest$ac_exeext conftest.$ac_ext
15276   LIBS=$ac_get_soname_save_LIBS
15277 fi
15278 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15279 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15280 if test "x$ac_cv_lib_soname_crypto" != xNONE
15281 then
15282 cat >>confdefs.h <<_ACEOF
15283 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15284 _ACEOF
15285 fi
15286
15287 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15288 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15289 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15290   echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292   ac_get_soname_save_LIBS=$LIBS
15293 LIBS="-lncurses  $LIBS"
15294   cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300
15301 /* Override any gcc2 internal prototype to avoid an error.  */
15302 #ifdef __cplusplus
15303 extern "C"
15304 #endif
15305 /* We use char because int might match the return type of a gcc2
15306    builtin and then its argument prototype would still apply.  */
15307 char waddch ();
15308 int
15309 main ()
15310 {
15311 waddch ();
15312   ;
15313   return 0;
15314 }
15315 _ACEOF
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15318   (eval $ac_link) 2>conftest.er1
15319   ac_status=$?
15320   grep -v '^ *+' conftest.er1 >conftest.err
15321   rm -f conftest.er1
15322   cat conftest.err >&5
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); } &&
15325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327   (eval $ac_try) 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; } &&
15331          { ac_try='test -s conftest$ac_exeext'
15332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333   (eval $ac_try) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; }; then
15337   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^   ]*\).*$/\1/"`
15338   if test "x$ac_cv_lib_soname_ncurses" = "x"
15339   then
15340      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15341   fi
15342 else
15343   echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15347 fi
15348 rm -f conftest.err conftest.$ac_objext \
15349       conftest$ac_exeext conftest.$ac_ext
15350   LIBS=$ac_get_soname_save_LIBS
15351 fi
15352 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15353 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15354 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15355 then
15356 cat >>confdefs.h <<_ACEOF
15357 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15358 _ACEOF
15359 fi
15360
15361 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15362 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15363 if test "${ac_cv_lib_soname_curses+set}" = set; then
15364   echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366   ac_get_soname_save_LIBS=$LIBS
15367 LIBS="-lcurses  $LIBS"
15368   cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374
15375 /* Override any gcc2 internal prototype to avoid an error.  */
15376 #ifdef __cplusplus
15377 extern "C"
15378 #endif
15379 /* We use char because int might match the return type of a gcc2
15380    builtin and then its argument prototype would still apply.  */
15381 char waddch ();
15382 int
15383 main ()
15384 {
15385 waddch ();
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392   (eval $ac_link) 2>conftest.er1
15393   ac_status=$?
15394   grep -v '^ *+' conftest.er1 >conftest.err
15395   rm -f conftest.er1
15396   cat conftest.err >&5
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } &&
15399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401   (eval $ac_try) 2>&5
15402   ac_status=$?
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); }; } &&
15405          { ac_try='test -s conftest$ac_exeext'
15406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407   (eval $ac_try) 2>&5
15408   ac_status=$?
15409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410   (exit $ac_status); }; }; then
15411   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^      ]*\).*$/\1/"`
15412   if test "x$ac_cv_lib_soname_curses" = "x"
15413   then
15414      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15415   fi
15416 else
15417   echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15419
15420 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15421 fi
15422 rm -f conftest.err conftest.$ac_objext \
15423       conftest$ac_exeext conftest.$ac_ext
15424   LIBS=$ac_get_soname_save_LIBS
15425 fi
15426 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15427 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15428 if test "x$ac_cv_lib_soname_curses" != xNONE
15429 then
15430 cat >>confdefs.h <<_ACEOF
15431 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15432 _ACEOF
15433 fi
15434
15435 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15436 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15437 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15438   echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440   ac_get_soname_save_LIBS=$LIBS
15441 LIBS="-ljpeg  $LIBS"
15442   cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h.  */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h.  */
15448
15449 /* Override any gcc2 internal prototype to avoid an error.  */
15450 #ifdef __cplusplus
15451 extern "C"
15452 #endif
15453 /* We use char because int might match the return type of a gcc2
15454    builtin and then its argument prototype would still apply.  */
15455 char jpeg_start_decompress ();
15456 int
15457 main ()
15458 {
15459 jpeg_start_decompress ();
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15466   (eval $ac_link) 2>conftest.er1
15467   ac_status=$?
15468   grep -v '^ *+' conftest.er1 >conftest.err
15469   rm -f conftest.er1
15470   cat conftest.err >&5
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); } &&
15473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475   (eval $ac_try) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); }; } &&
15479          { ac_try='test -s conftest$ac_exeext'
15480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481   (eval $ac_try) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); }; }; then
15485   ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^    ]*\).*$/\1/"`
15486   if test "x$ac_cv_lib_soname_jpeg" = "x"
15487   then
15488      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15489   fi
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15495 fi
15496 rm -f conftest.err conftest.$ac_objext \
15497       conftest$ac_exeext conftest.$ac_ext
15498   LIBS=$ac_get_soname_save_LIBS
15499 fi
15500 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15501 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15502 if test "x$ac_cv_lib_soname_jpeg" != xNONE
15503 then
15504 cat >>confdefs.h <<_ACEOF
15505 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15506 _ACEOF
15507 fi
15508
15509 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15510 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15511 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15512   echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514   ac_get_soname_save_LIBS=$LIBS
15515 LIBS="-lungif  $LIBS"
15516   cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h.  */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h.  */
15522
15523 /* Override any gcc2 internal prototype to avoid an error.  */
15524 #ifdef __cplusplus
15525 extern "C"
15526 #endif
15527 /* We use char because int might match the return type of a gcc2
15528    builtin and then its argument prototype would still apply.  */
15529 char DGifOpen ();
15530 int
15531 main ()
15532 {
15533 DGifOpen ();
15534   ;
15535   return 0;
15536 }
15537 _ACEOF
15538 rm -f conftest.$ac_objext conftest$ac_exeext
15539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15540   (eval $ac_link) 2>conftest.er1
15541   ac_status=$?
15542   grep -v '^ *+' conftest.er1 >conftest.err
15543   rm -f conftest.er1
15544   cat conftest.err >&5
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); } &&
15547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549   (eval $ac_try) 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; } &&
15553          { ac_try='test -s conftest$ac_exeext'
15554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555   (eval $ac_try) 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; }; then
15559   ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^         ]*\).*$/\1/"`
15560   if test "x$ac_cv_lib_soname_ungif" = "x"
15561   then
15562      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15563   fi
15564 else
15565   echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15567
15568 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15569 fi
15570 rm -f conftest.err conftest.$ac_objext \
15571       conftest$ac_exeext conftest.$ac_ext
15572   LIBS=$ac_get_soname_save_LIBS
15573 fi
15574 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15575 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15576 if test "x$ac_cv_lib_soname_ungif" != xNONE
15577 then
15578 cat >>confdefs.h <<_ACEOF
15579 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15580 _ACEOF
15581 fi
15582
15583 echo "$as_me:$LINENO: checking for -lgif soname" >&5
15584 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15585 if test "${ac_cv_lib_soname_gif+set}" = set; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588   ac_get_soname_save_LIBS=$LIBS
15589 LIBS="-lgif  $LIBS"
15590   cat >conftest.$ac_ext <<_ACEOF
15591 /* confdefs.h.  */
15592 _ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h.  */
15596
15597 /* Override any gcc2 internal prototype to avoid an error.  */
15598 #ifdef __cplusplus
15599 extern "C"
15600 #endif
15601 /* We use char because int might match the return type of a gcc2
15602    builtin and then its argument prototype would still apply.  */
15603 char DGifOpen ();
15604 int
15605 main ()
15606 {
15607 DGifOpen ();
15608   ;
15609   return 0;
15610 }
15611 _ACEOF
15612 rm -f conftest.$ac_objext conftest$ac_exeext
15613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15614   (eval $ac_link) 2>conftest.er1
15615   ac_status=$?
15616   grep -v '^ *+' conftest.er1 >conftest.err
15617   rm -f conftest.er1
15618   cat conftest.err >&5
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); } &&
15621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623   (eval $ac_try) 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; } &&
15627          { ac_try='test -s conftest$ac_exeext'
15628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629   (eval $ac_try) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; }; then
15633   ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^       ]*\).*$/\1/"`
15634   if test "x$ac_cv_lib_soname_gif" = "x"
15635   then
15636      ac_cv_lib_soname_gif="libgif.$LIBEXT"
15637   fi
15638 else
15639   echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15643 fi
15644 rm -f conftest.err conftest.$ac_objext \
15645       conftest$ac_exeext conftest.$ac_ext
15646   LIBS=$ac_get_soname_save_LIBS
15647 fi
15648 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15649 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15650 if test "x$ac_cv_lib_soname_gif" != xNONE
15651 then
15652 cat >>confdefs.h <<_ACEOF
15653 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15654 _ACEOF
15655 fi
15656
15657 echo "$as_me:$LINENO: checking for -llcms soname" >&5
15658 echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
15659 if test "${ac_cv_lib_soname_lcms+set}" = set; then
15660   echo $ECHO_N "(cached) $ECHO_C" >&6
15661 else
15662   ac_get_soname_save_LIBS=$LIBS
15663 LIBS="-llcms  $LIBS"
15664   cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670
15671 /* Override any gcc2 internal prototype to avoid an error.  */
15672 #ifdef __cplusplus
15673 extern "C"
15674 #endif
15675 /* We use char because int might match the return type of a gcc2
15676    builtin and then its argument prototype would still apply.  */
15677 char cmsOpenProfileFromFile ();
15678 int
15679 main ()
15680 {
15681 cmsOpenProfileFromFile ();
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15688   (eval $ac_link) 2>conftest.er1
15689   ac_status=$?
15690   grep -v '^ *+' conftest.er1 >conftest.err
15691   rm -f conftest.er1
15692   cat conftest.err >&5
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } &&
15695          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697   (eval $ac_try) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; } &&
15701          { ac_try='test -s conftest$ac_exeext'
15702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703   (eval $ac_try) 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); }; }; then
15707   ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^    ]*\).*$/\1/"`
15708   if test "x$ac_cv_lib_soname_lcms" = "x"
15709   then
15710      ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15711   fi
15712 else
15713   echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15715
15716 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15717 fi
15718 rm -f conftest.err conftest.$ac_objext \
15719       conftest$ac_exeext conftest.$ac_ext
15720   LIBS=$ac_get_soname_save_LIBS
15721 fi
15722 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
15723 echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
15724 if test "x$ac_cv_lib_soname_lcms" != xNONE
15725 then
15726 cat >>confdefs.h <<_ACEOF
15727 #define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
15728 _ACEOF
15729 fi
15730 fi
15731
15732
15733
15734 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15735 # for constant arguments.  Useless!
15736 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15737 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15738 if test "${ac_cv_working_alloca_h+set}" = set; then
15739   echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741   cat >conftest.$ac_ext <<_ACEOF
15742 /* confdefs.h.  */
15743 _ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h.  */
15747 #include <alloca.h>
15748 int
15749 main ()
15750 {
15751 char *p = (char *) alloca (2 * sizeof (int));
15752   ;
15753   return 0;
15754 }
15755 _ACEOF
15756 rm -f conftest.$ac_objext conftest$ac_exeext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15758   (eval $ac_link) 2>conftest.er1
15759   ac_status=$?
15760   grep -v '^ *+' conftest.er1 >conftest.err
15761   rm -f conftest.er1
15762   cat conftest.err >&5
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); } &&
15765          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767   (eval $ac_try) 2>&5
15768   ac_status=$?
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); }; } &&
15771          { ac_try='test -s conftest$ac_exeext'
15772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773   (eval $ac_try) 2>&5
15774   ac_status=$?
15775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776   (exit $ac_status); }; }; then
15777   ac_cv_working_alloca_h=yes
15778 else
15779   echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782 ac_cv_working_alloca_h=no
15783 fi
15784 rm -f conftest.err conftest.$ac_objext \
15785       conftest$ac_exeext conftest.$ac_ext
15786 fi
15787 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15788 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15789 if test $ac_cv_working_alloca_h = yes; then
15790
15791 cat >>confdefs.h <<\_ACEOF
15792 #define HAVE_ALLOCA_H 1
15793 _ACEOF
15794
15795 fi
15796
15797 echo "$as_me:$LINENO: checking for alloca" >&5
15798 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15799 if test "${ac_cv_func_alloca_works+set}" = set; then
15800   echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802   cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h.  */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h.  */
15808 #ifdef __GNUC__
15809 # define alloca __builtin_alloca
15810 #else
15811 # ifdef _MSC_VER
15812 #  include <malloc.h>
15813 #  define alloca _alloca
15814 # else
15815 #  if HAVE_ALLOCA_H
15816 #   include <alloca.h>
15817 #  else
15818 #   ifdef _AIX
15819  #pragma alloca
15820 #   else
15821 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15822 char *alloca ();
15823 #    endif
15824 #   endif
15825 #  endif
15826 # endif
15827 #endif
15828
15829 int
15830 main ()
15831 {
15832 char *p = (char *) alloca (1);
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839   (eval $ac_link) 2>conftest.er1
15840   ac_status=$?
15841   grep -v '^ *+' conftest.er1 >conftest.err
15842   rm -f conftest.er1
15843   cat conftest.err >&5
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); } &&
15846          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848   (eval $ac_try) 2>&5
15849   ac_status=$?
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); }; } &&
15852          { ac_try='test -s conftest$ac_exeext'
15853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854   (eval $ac_try) 2>&5
15855   ac_status=$?
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); }; }; then
15858   ac_cv_func_alloca_works=yes
15859 else
15860   echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15862
15863 ac_cv_func_alloca_works=no
15864 fi
15865 rm -f conftest.err conftest.$ac_objext \
15866       conftest$ac_exeext conftest.$ac_ext
15867 fi
15868 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15869 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15870
15871 if test $ac_cv_func_alloca_works = yes; then
15872
15873 cat >>confdefs.h <<\_ACEOF
15874 #define HAVE_ALLOCA 1
15875 _ACEOF
15876
15877 else
15878   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15879 # that cause trouble.  Some versions do not even contain alloca or
15880 # contain a buggy version.  If you still want to use their alloca,
15881 # use ar to extract alloca.o from them instead of compiling alloca.c.
15882
15883 ALLOCA=alloca.$ac_objext
15884
15885 cat >>confdefs.h <<\_ACEOF
15886 #define C_ALLOCA 1
15887 _ACEOF
15888
15889
15890 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15891 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15892 if test "${ac_cv_os_cray+set}" = set; then
15893   echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895   cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h.  */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h.  */
15901 #if defined(CRAY) && ! defined(CRAY2)
15902 webecray
15903 #else
15904 wenotbecray
15905 #endif
15906
15907 _ACEOF
15908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15909   $EGREP "webecray" >/dev/null 2>&1; then
15910   ac_cv_os_cray=yes
15911 else
15912   ac_cv_os_cray=no
15913 fi
15914 rm -f conftest*
15915
15916 fi
15917 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15918 echo "${ECHO_T}$ac_cv_os_cray" >&6
15919 if test $ac_cv_os_cray = yes; then
15920   for ac_func in _getb67 GETB67 getb67; do
15921     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15922 echo "$as_me:$LINENO: checking for $ac_func" >&5
15923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15924 if eval "test \"\${$as_ac_var+set}\" = set"; then
15925   echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927   cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15935 #define $ac_func innocuous_$ac_func
15936
15937 /* System header to define __stub macros and hopefully few prototypes,
15938     which can conflict with char $ac_func (); below.
15939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15940     <limits.h> exists even on freestanding compilers.  */
15941
15942 #ifdef __STDC__
15943 # include <limits.h>
15944 #else
15945 # include <assert.h>
15946 #endif
15947
15948 #undef $ac_func
15949
15950 /* Override any gcc2 internal prototype to avoid an error.  */
15951 #ifdef __cplusplus
15952 extern "C"
15953 {
15954 #endif
15955 /* We use char because int might match the return type of a gcc2
15956    builtin and then its argument prototype would still apply.  */
15957 char $ac_func ();
15958 /* The GNU C library defines this for functions which it implements
15959     to always fail with ENOSYS.  Some functions are actually named
15960     something starting with __ and the normal name is an alias.  */
15961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15962 choke me
15963 #else
15964 char (*f) () = $ac_func;
15965 #endif
15966 #ifdef __cplusplus
15967 }
15968 #endif
15969
15970 int
15971 main ()
15972 {
15973 return f != $ac_func;
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15980   (eval $ac_link) 2>conftest.er1
15981   ac_status=$?
15982   grep -v '^ *+' conftest.er1 >conftest.err
15983   rm -f conftest.er1
15984   cat conftest.err >&5
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); } &&
15987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989   (eval $ac_try) 2>&5
15990   ac_status=$?
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); }; } &&
15993          { ac_try='test -s conftest$ac_exeext'
15994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995   (eval $ac_try) 2>&5
15996   ac_status=$?
15997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998   (exit $ac_status); }; }; then
15999   eval "$as_ac_var=yes"
16000 else
16001   echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004 eval "$as_ac_var=no"
16005 fi
16006 rm -f conftest.err conftest.$ac_objext \
16007       conftest$ac_exeext conftest.$ac_ext
16008 fi
16009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16011 if test `eval echo '${'$as_ac_var'}'` = yes; then
16012
16013 cat >>confdefs.h <<_ACEOF
16014 #define CRAY_STACKSEG_END $ac_func
16015 _ACEOF
16016
16017     break
16018 fi
16019
16020   done
16021 fi
16022
16023 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16024 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16025 if test "${ac_cv_c_stack_direction+set}" = set; then
16026   echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028   if test "$cross_compiling" = yes; then
16029   ac_cv_c_stack_direction=0
16030 else
16031   cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037 int
16038 find_stack_direction ()
16039 {
16040   static char *addr = 0;
16041   auto char dummy;
16042   if (addr == 0)
16043     {
16044       addr = &dummy;
16045       return find_stack_direction ();
16046     }
16047   else
16048     return (&dummy > addr) ? 1 : -1;
16049 }
16050
16051 int
16052 main ()
16053 {
16054   exit (find_stack_direction () < 0);
16055 }
16056 _ACEOF
16057 rm -f conftest$ac_exeext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16059   (eval $ac_link) 2>&5
16060   ac_status=$?
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064   (eval $ac_try) 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }; }; then
16068   ac_cv_c_stack_direction=1
16069 else
16070   echo "$as_me: program exited with status $ac_status" >&5
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 ( exit $ac_status )
16075 ac_cv_c_stack_direction=-1
16076 fi
16077 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16078 fi
16079 fi
16080 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16081 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16082
16083 cat >>confdefs.h <<_ACEOF
16084 #define STACK_DIRECTION $ac_cv_c_stack_direction
16085 _ACEOF
16086
16087
16088 fi
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151 for ac_func in \
16152         _lwp_create \
16153         _lwp_self \
16154         _pclose \
16155         _popen \
16156         _snprintf \
16157         _spawnvp \
16158         _stricmp \
16159         _strnicmp \
16160         _vsnprintf \
16161         chsize \
16162         clone \
16163         epoll_create \
16164         finite \
16165         fork \
16166         fpclass \
16167         fstatfs \
16168         fstatvfs \
16169         ftruncate \
16170         ftruncate64 \
16171         futimes \
16172         getnetbyaddr \
16173         getnetbyname \
16174         getopt_long \
16175         getpagesize \
16176         getprotobyname \
16177         getprotobynumber \
16178         getpwuid \
16179         getservbyport \
16180         gettid \
16181         gettimeofday \
16182         getuid \
16183         inet_network \
16184         lseek64 \
16185         lstat \
16186         memmove \
16187         mmap \
16188         pclose \
16189         popen \
16190         pread \
16191         pwrite \
16192         readlink \
16193         rfork \
16194         sched_yield \
16195         select \
16196         sendmsg \
16197         settimeofday \
16198         sigaltstack \
16199         snprintf \
16200         spawnvp \
16201         statfs \
16202         statvfs \
16203         strcasecmp \
16204         strerror \
16205         strncasecmp \
16206         tcgetattr \
16207         timegm \
16208         usleep \
16209         vfscanf \
16210         vsnprintf \
16211         wait4 \
16212         waitpid \
16213
16214 do
16215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16216 echo "$as_me:$LINENO: checking for $ac_func" >&5
16217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16218 if eval "test \"\${$as_ac_var+set}\" = set"; then
16219   echo $ECHO_N "(cached) $ECHO_C" >&6
16220 else
16221   cat >conftest.$ac_ext <<_ACEOF
16222 /* confdefs.h.  */
16223 _ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h.  */
16227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16229 #define $ac_func innocuous_$ac_func
16230
16231 /* System header to define __stub macros and hopefully few prototypes,
16232     which can conflict with char $ac_func (); below.
16233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16234     <limits.h> exists even on freestanding compilers.  */
16235
16236 #ifdef __STDC__
16237 # include <limits.h>
16238 #else
16239 # include <assert.h>
16240 #endif
16241
16242 #undef $ac_func
16243
16244 /* Override any gcc2 internal prototype to avoid an error.  */
16245 #ifdef __cplusplus
16246 extern "C"
16247 {
16248 #endif
16249 /* We use char because int might match the return type of a gcc2
16250    builtin and then its argument prototype would still apply.  */
16251 char $ac_func ();
16252 /* The GNU C library defines this for functions which it implements
16253     to always fail with ENOSYS.  Some functions are actually named
16254     something starting with __ and the normal name is an alias.  */
16255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16256 choke me
16257 #else
16258 char (*f) () = $ac_func;
16259 #endif
16260 #ifdef __cplusplus
16261 }
16262 #endif
16263
16264 int
16265 main ()
16266 {
16267 return f != $ac_func;
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16274   (eval $ac_link) 2>conftest.er1
16275   ac_status=$?
16276   grep -v '^ *+' conftest.er1 >conftest.err
16277   rm -f conftest.er1
16278   cat conftest.err >&5
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); } &&
16281          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283   (eval $ac_try) 2>&5
16284   ac_status=$?
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); }; } &&
16287          { ac_try='test -s conftest$ac_exeext'
16288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289   (eval $ac_try) 2>&5
16290   ac_status=$?
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); }; }; then
16293   eval "$as_ac_var=yes"
16294 else
16295   echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16297
16298 eval "$as_ac_var=no"
16299 fi
16300 rm -f conftest.err conftest.$ac_objext \
16301       conftest$ac_exeext conftest.$ac_ext
16302 fi
16303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16305 if test `eval echo '${'$as_ac_var'}'` = yes; then
16306   cat >>confdefs.h <<_ACEOF
16307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16308 _ACEOF
16309
16310 fi
16311 done
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405 for ac_header in \
16406         arpa/inet.h \
16407         arpa/nameser.h \
16408         cups/cups.h \
16409         direct.h \
16410         elf.h \
16411         float.h \
16412         fontconfig/fontconfig.h \
16413         getopt.h \
16414         gif_lib.h \
16415         ieeefp.h \
16416         io.h \
16417         jack/jack.h \
16418         jpeglib.h \
16419         lcms.h \
16420         libio.h \
16421         libutil.h \
16422         link.h \
16423         linux/cdrom.h \
16424         linux/compiler.h \
16425         linux/hdreg.h \
16426         linux/input.h \
16427         linux/ioctl.h \
16428         linux/joystick.h \
16429         linux/major.h \
16430         linux/param.h \
16431         linux/serial.h \
16432         linux/ucdrom.h \
16433         machine/cpu.h \
16434         mntent.h \
16435         netdb.h \
16436         netinet/in.h \
16437         netinet/in_systm.h \
16438         netinet/tcp.h \
16439         netinet/tcp_fsm.h \
16440         openssl/ssl.h \
16441         process.h \
16442         pthread.h \
16443         pty.h \
16444         pwd.h \
16445         regex.h \
16446         sched.h \
16447         scsi/sg.h \
16448         scsi/scsi.h \
16449         scsi/scsi_ioctl.h \
16450         socket.h \
16451         stdint.h \
16452         strings.h \
16453         sys/cdio.h \
16454         sys/elf32.h \
16455         sys/errno.h \
16456         sys/epoll.h \
16457         sys/exec_elf.h \
16458         sys/file.h \
16459         sys/filio.h \
16460         sys/inttypes.h \
16461         sys/ioctl.h \
16462         sys/ipc.h \
16463         sys/link.h \
16464         sys/lwp.h \
16465         sys/mman.h \
16466         sys/modem.h \
16467         sys/msg.h \
16468         sys/param.h \
16469         sys/poll.h \
16470         sys/ptrace.h \
16471         sys/reg.h \
16472         sys/scsiio.h \
16473         sys/shm.h \
16474         sys/signal.h \
16475         sys/socket.h \
16476         sys/sockio.h \
16477         sys/statfs.h \
16478         sys/statvfs.h \
16479         sys/strtio.h \
16480         sys/syscall.h \
16481         sys/sysctl.h \
16482         sys/time.h \
16483         sys/times.h \
16484         sys/uio.h \
16485         sys/un.h \
16486         sys/v86.h \
16487         sys/v86intr.h \
16488         sys/vfs.h \
16489         sys/vm86.h \
16490         sys/wait.h \
16491         syscall.h \
16492         termios.h \
16493         unistd.h \
16494         utime.h \
16495         valgrind/memcheck.h
16496
16497 do
16498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16500   echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 fi
16505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16507 else
16508   # Is the header compilable?
16509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16511 cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h.  */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h.  */
16517 $ac_includes_default
16518 #include <$ac_header>
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522   (eval $ac_compile) 2>conftest.er1
16523   ac_status=$?
16524   grep -v '^ *+' conftest.er1 >conftest.err
16525   rm -f conftest.er1
16526   cat conftest.err >&5
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } &&
16529          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531   (eval $ac_try) 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); }; } &&
16535          { ac_try='test -s conftest.$ac_objext'
16536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537   (eval $ac_try) 2>&5
16538   ac_status=$?
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); }; }; then
16541   ac_header_compiler=yes
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 ac_header_compiler=no
16547 fi
16548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16550 echo "${ECHO_T}$ac_header_compiler" >&6
16551
16552 # Is the header present?
16553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16555 cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h.  */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h.  */
16561 #include <$ac_header>
16562 _ACEOF
16563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16565   ac_status=$?
16566   grep -v '^ *+' conftest.er1 >conftest.err
16567   rm -f conftest.er1
16568   cat conftest.err >&5
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); } >/dev/null; then
16571   if test -s conftest.err; then
16572     ac_cpp_err=$ac_c_preproc_warn_flag
16573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16574   else
16575     ac_cpp_err=
16576   fi
16577 else
16578   ac_cpp_err=yes
16579 fi
16580 if test -z "$ac_cpp_err"; then
16581   ac_header_preproc=yes
16582 else
16583   echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16585
16586   ac_header_preproc=no
16587 fi
16588 rm -f conftest.err conftest.$ac_ext
16589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16590 echo "${ECHO_T}$ac_header_preproc" >&6
16591
16592 # So?  What about this header?
16593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16594   yes:no: )
16595     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16599     ac_header_preproc=yes
16600     ;;
16601   no:yes:* )
16602     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16604     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16605 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16606     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16608     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16609 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16612     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16614     (
16615       cat <<\_ASBOX
16616 ## ------------------------------------ ##
16617 ## Report this to wine-devel@winehq.org ##
16618 ## ------------------------------------ ##
16619 _ASBOX
16620     ) |
16621       sed "s/^/$as_me: WARNING:     /" >&2
16622     ;;
16623 esac
16624 echo "$as_me:$LINENO: checking for $ac_header" >&5
16625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16627   echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629   eval "$as_ac_Header=\$ac_header_preproc"
16630 fi
16631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16633
16634 fi
16635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16636   cat >>confdefs.h <<_ACEOF
16637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16638 _ACEOF
16639
16640 fi
16641
16642 done
16643
16644 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16645 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16646 if test "${ac_cv_header_stat_broken+set}" = set; then
16647   echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649   cat >conftest.$ac_ext <<_ACEOF
16650 /* confdefs.h.  */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h.  */
16655 #include <sys/types.h>
16656 #include <sys/stat.h>
16657
16658 #if defined(S_ISBLK) && defined(S_IFDIR)
16659 # if S_ISBLK (S_IFDIR)
16660 You lose.
16661 # endif
16662 #endif
16663
16664 #if defined(S_ISBLK) && defined(S_IFCHR)
16665 # if S_ISBLK (S_IFCHR)
16666 You lose.
16667 # endif
16668 #endif
16669
16670 #if defined(S_ISLNK) && defined(S_IFREG)
16671 # if S_ISLNK (S_IFREG)
16672 You lose.
16673 # endif
16674 #endif
16675
16676 #if defined(S_ISSOCK) && defined(S_IFREG)
16677 # if S_ISSOCK (S_IFREG)
16678 You lose.
16679 # endif
16680 #endif
16681
16682 _ACEOF
16683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16684   $EGREP "You lose" >/dev/null 2>&1; then
16685   ac_cv_header_stat_broken=yes
16686 else
16687   ac_cv_header_stat_broken=no
16688 fi
16689 rm -f conftest*
16690
16691 fi
16692 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16693 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16694 if test $ac_cv_header_stat_broken = yes; then
16695
16696 cat >>confdefs.h <<\_ACEOF
16697 #define STAT_MACROS_BROKEN 1
16698 _ACEOF
16699
16700 fi
16701
16702
16703
16704
16705
16706 for ac_header in sys/mount.h sys/user.h
16707 do
16708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16709 echo "$as_me:$LINENO: checking for $ac_header" >&5
16710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16712   echo $ECHO_N "(cached) $ECHO_C" >&6
16713 else
16714   cat >conftest.$ac_ext <<_ACEOF
16715 /* confdefs.h.  */
16716 _ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h.  */
16720 #include <sys/types.h>
16721      #if HAVE_SYS_PARAM_H
16722      # include <sys/param.h>
16723      #endif
16724
16725 #include <$ac_header>
16726 _ACEOF
16727 rm -f conftest.$ac_objext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729   (eval $ac_compile) 2>conftest.er1
16730   ac_status=$?
16731   grep -v '^ *+' conftest.er1 >conftest.err
16732   rm -f conftest.er1
16733   cat conftest.err >&5
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } &&
16736          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738   (eval $ac_try) 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); }; } &&
16742          { ac_try='test -s conftest.$ac_objext'
16743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744   (eval $ac_try) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); }; }; then
16748   eval "$as_ac_Header=yes"
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753 eval "$as_ac_Header=no"
16754 fi
16755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16756 fi
16757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16760   cat >>confdefs.h <<_ACEOF
16761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16762 _ACEOF
16763
16764 fi
16765
16766 done
16767
16768
16769
16770
16771
16772
16773
16774 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16775 do
16776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16777 echo "$as_me:$LINENO: checking for $ac_header" >&5
16778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782   cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h.  */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h.  */
16788 #include <sys/types.h>
16789      #if HAVE_SYS_SOCKET_H
16790      # include <sys/socket.h>
16791      #endif
16792
16793 #include <$ac_header>
16794 _ACEOF
16795 rm -f conftest.$ac_objext
16796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16797   (eval $ac_compile) 2>conftest.er1
16798   ac_status=$?
16799   grep -v '^ *+' conftest.er1 >conftest.err
16800   rm -f conftest.er1
16801   cat conftest.err >&5
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); } &&
16804          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806   (eval $ac_try) 2>&5
16807   ac_status=$?
16808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809   (exit $ac_status); }; } &&
16810          { ac_try='test -s conftest.$ac_objext'
16811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812   (eval $ac_try) 2>&5
16813   ac_status=$?
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); }; }; then
16816   eval "$as_ac_Header=yes"
16817 else
16818   echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16820
16821 eval "$as_ac_Header=no"
16822 fi
16823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16824 fi
16825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16828   cat >>confdefs.h <<_ACEOF
16829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16830 _ACEOF
16831
16832 fi
16833
16834 done
16835
16836
16837
16838 for ac_header in resolv.h
16839 do
16840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16841 echo "$as_me:$LINENO: checking for $ac_header" >&5
16842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16844   echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846   cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h.  */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h.  */
16852 #include <sys/types.h>
16853      #if HAVE_SYS_SOCKET_H
16854      # include <sys/socket.h>
16855      #endif
16856      #if HAVE_NETINET_IN_H
16857      # include <netinet/in.h>
16858      #endif
16859      #if HAVE_ARPA_NAMESER_H
16860      # include <arpa/nameser.h>
16861      #endif
16862
16863 #include <$ac_header>
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867   (eval $ac_compile) 2>conftest.er1
16868   ac_status=$?
16869   grep -v '^ *+' conftest.er1 >conftest.err
16870   rm -f conftest.er1
16871   cat conftest.err >&5
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } &&
16874          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876   (eval $ac_try) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }; } &&
16880          { ac_try='test -s conftest.$ac_objext'
16881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882   (eval $ac_try) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; }; then
16886   eval "$as_ac_Header=yes"
16887 else
16888   echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 eval "$as_ac_Header=no"
16892 fi
16893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16894 fi
16895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16898   cat >>confdefs.h <<_ACEOF
16899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16900 _ACEOF
16901
16902 fi
16903
16904 done
16905
16906
16907
16908 for ac_header in netinet/ip.h
16909 do
16910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16911 echo "$as_me:$LINENO: checking for $ac_header" >&5
16912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16914   echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916   cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h.  */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h.  */
16922 #include <sys/types.h>
16923      #if HAVE_SYS_SOCKET_H
16924      # include <sys/socket.h>
16925      #endif
16926      #if HAVE_NETINET_IN_SYSTM_H
16927      # include <netinet/in_systm.h>
16928      #endif
16929
16930 #include <$ac_header>
16931 _ACEOF
16932 rm -f conftest.$ac_objext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16934   (eval $ac_compile) 2>conftest.er1
16935   ac_status=$?
16936   grep -v '^ *+' conftest.er1 >conftest.err
16937   rm -f conftest.er1
16938   cat conftest.err >&5
16939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); } &&
16941          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943   (eval $ac_try) 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }; } &&
16947          { ac_try='test -s conftest.$ac_objext'
16948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949   (eval $ac_try) 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; }; then
16953   eval "$as_ac_Header=yes"
16954 else
16955   echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958 eval "$as_ac_Header=no"
16959 fi
16960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16961 fi
16962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16965   cat >>confdefs.h <<_ACEOF
16966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16967 _ACEOF
16968
16969 fi
16970
16971 done
16972
16973
16974
16975 for ac_header in ucontext.h
16976 do
16977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16978 echo "$as_me:$LINENO: checking for $ac_header" >&5
16979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16981   echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983   cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h.  */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h.  */
16989 #include <signal.h>
16990
16991 #include <$ac_header>
16992 _ACEOF
16993 rm -f conftest.$ac_objext
16994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16995   (eval $ac_compile) 2>conftest.er1
16996   ac_status=$?
16997   grep -v '^ *+' conftest.er1 >conftest.err
16998   rm -f conftest.er1
16999   cat conftest.err >&5
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); } &&
17002          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004   (eval $ac_try) 2>&5
17005   ac_status=$?
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); }; } &&
17008          { ac_try='test -s conftest.$ac_objext'
17009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010   (eval $ac_try) 2>&5
17011   ac_status=$?
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); }; }; then
17014   eval "$as_ac_Header=yes"
17015 else
17016   echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17018
17019 eval "$as_ac_Header=no"
17020 fi
17021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17022 fi
17023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17026   cat >>confdefs.h <<_ACEOF
17027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17028 _ACEOF
17029
17030 fi
17031
17032 done
17033
17034
17035
17036 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17037 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17038 if test "${ac_cv_c_ipx_gnu+set}" = set; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041   cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047 #include <sys/types.h>
17048     #ifdef HAVE_SYS_SOCKET_H
17049     # include <sys/socket.h>
17050     #endif
17051     #include <netipx/ipx.h>
17052 int
17053 main ()
17054 {
17055 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext
17061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17062   (eval $ac_compile) 2>conftest.er1
17063   ac_status=$?
17064   grep -v '^ *+' conftest.er1 >conftest.err
17065   rm -f conftest.er1
17066   cat conftest.err >&5
17067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); } &&
17069          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071   (eval $ac_try) 2>&5
17072   ac_status=$?
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); }; } &&
17075          { ac_try='test -s conftest.$ac_objext'
17076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077   (eval $ac_try) 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); }; }; then
17081   ac_cv_c_ipx_gnu="yes"
17082 else
17083   echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17085
17086 ac_cv_c_ipx_gnu="no"
17087 fi
17088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17089
17090 fi
17091 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17092 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17093 if test "$ac_cv_c_ipx_gnu" = "yes"
17094 then
17095
17096 cat >>confdefs.h <<\_ACEOF
17097 #define HAVE_IPX_GNU 1
17098 _ACEOF
17099
17100 fi
17101
17102 if test "$ac_cv_c_ipx_gnu" = "no"
17103 then
17104  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17105 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17106 if test "${ac_cv_c_ipx_linux+set}" = set; then
17107   echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109   cat >conftest.$ac_ext <<_ACEOF
17110 /* confdefs.h.  */
17111 _ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h.  */
17115 #include <sys/types.h>
17116      #ifdef HAVE_SYS_SOCKET_H
17117      # include <sys/socket.h>
17118      #endif
17119      #include <asm/types.h>
17120      #include <linux/ipx.h>
17121 int
17122 main ()
17123 {
17124 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17125   ;
17126   return 0;
17127 }
17128 _ACEOF
17129 rm -f conftest.$ac_objext
17130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17131   (eval $ac_compile) 2>conftest.er1
17132   ac_status=$?
17133   grep -v '^ *+' conftest.er1 >conftest.err
17134   rm -f conftest.er1
17135   cat conftest.err >&5
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } &&
17138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140   (eval $ac_try) 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; } &&
17144          { ac_try='test -s conftest.$ac_objext'
17145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146   (eval $ac_try) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; }; then
17150   ac_cv_c_ipx_linux="yes"
17151 else
17152   echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17154
17155 ac_cv_c_ipx_linux="no"
17156 fi
17157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17158
17159 fi
17160 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17161 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17162   if test "$ac_cv_c_ipx_linux" = "yes"
17163   then
17164
17165 cat >>confdefs.h <<\_ACEOF
17166 #define HAVE_IPX_LINUX 1
17167 _ACEOF
17168
17169   fi
17170 fi
17171
17172
17173 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17174 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17175 if test "${ac_cv_c_const+set}" = set; then
17176   echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178   cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h.  */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h.  */
17184
17185 int
17186 main ()
17187 {
17188 /* FIXME: Include the comments suggested by Paul. */
17189 #ifndef __cplusplus
17190   /* Ultrix mips cc rejects this.  */
17191   typedef int charset[2];
17192   const charset x;
17193   /* SunOS 4.1.1 cc rejects this.  */
17194   char const *const *ccp;
17195   char **p;
17196   /* NEC SVR4.0.2 mips cc rejects this.  */
17197   struct point {int x, y;};
17198   static struct point const zero = {0,0};
17199   /* AIX XL C 1.02.0.0 rejects this.
17200      It does not let you subtract one const X* pointer from another in
17201      an arm of an if-expression whose if-part is not a constant
17202      expression */
17203   const char *g = "string";
17204   ccp = &g + (g ? g-g : 0);
17205   /* HPUX 7.0 cc rejects these. */
17206   ++ccp;
17207   p = (char**) ccp;
17208   ccp = (char const *const *) p;
17209   { /* SCO 3.2v4 cc rejects this.  */
17210     char *t;
17211     char const *s = 0 ? (char *) 0 : (char const *) 0;
17212
17213     *t++ = 0;
17214   }
17215   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17216     int x[] = {25, 17};
17217     const int *foo = &x[0];
17218     ++foo;
17219   }
17220   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17221     typedef const int *iptr;
17222     iptr p = 0;
17223     ++p;
17224   }
17225   { /* AIX XL C 1.02.0.0 rejects this saying
17226        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17227     struct s { int j; const int *ap[3]; };
17228     struct s *b; b->j = 5;
17229   }
17230   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17231     const int foo = 10;
17232   }
17233 #endif
17234
17235   ;
17236   return 0;
17237 }
17238 _ACEOF
17239 rm -f conftest.$ac_objext
17240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17241   (eval $ac_compile) 2>conftest.er1
17242   ac_status=$?
17243   grep -v '^ *+' conftest.er1 >conftest.err
17244   rm -f conftest.er1
17245   cat conftest.err >&5
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); } &&
17248          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250   (eval $ac_try) 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); }; } &&
17254          { ac_try='test -s conftest.$ac_objext'
17255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256   (eval $ac_try) 2>&5
17257   ac_status=$?
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); }; }; then
17260   ac_cv_c_const=yes
17261 else
17262   echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17264
17265 ac_cv_c_const=no
17266 fi
17267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17268 fi
17269 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17270 echo "${ECHO_T}$ac_cv_c_const" >&6
17271 if test $ac_cv_c_const = no; then
17272
17273 cat >>confdefs.h <<\_ACEOF
17274 #define const
17275 _ACEOF
17276
17277 fi
17278
17279 echo "$as_me:$LINENO: checking for inline" >&5
17280 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17281 if test "${ac_cv_c_inline+set}" = set; then
17282   echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284   ac_cv_c_inline=no
17285 for ac_kw in inline __inline__ __inline; do
17286   cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h.  */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h.  */
17292 #ifndef __cplusplus
17293 typedef int foo_t;
17294 static $ac_kw foo_t static_foo () {return 0; }
17295 $ac_kw foo_t foo () {return 0; }
17296 #endif
17297
17298 _ACEOF
17299 rm -f conftest.$ac_objext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17301   (eval $ac_compile) 2>conftest.er1
17302   ac_status=$?
17303   grep -v '^ *+' conftest.er1 >conftest.err
17304   rm -f conftest.er1
17305   cat conftest.err >&5
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); } &&
17308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310   (eval $ac_try) 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); }; } &&
17314          { ac_try='test -s conftest.$ac_objext'
17315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316   (eval $ac_try) 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); }; }; then
17320   ac_cv_c_inline=$ac_kw; break
17321 else
17322   echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17324
17325 fi
17326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17327 done
17328
17329 fi
17330 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17331 echo "${ECHO_T}$ac_cv_c_inline" >&6
17332
17333
17334 case $ac_cv_c_inline in
17335   inline | yes) ;;
17336   *)
17337     case $ac_cv_c_inline in
17338       no) ac_val=;;
17339       *) ac_val=$ac_cv_c_inline;;
17340     esac
17341     cat >>confdefs.h <<_ACEOF
17342 #ifndef __cplusplus
17343 #define inline $ac_val
17344 #endif
17345 _ACEOF
17346     ;;
17347 esac
17348
17349 echo "$as_me:$LINENO: checking for mode_t" >&5
17350 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17351 if test "${ac_cv_type_mode_t+set}" = set; then
17352   echo $ECHO_N "(cached) $ECHO_C" >&6
17353 else
17354   cat >conftest.$ac_ext <<_ACEOF
17355 /* confdefs.h.  */
17356 _ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h.  */
17360 $ac_includes_default
17361 int
17362 main ()
17363 {
17364 if ((mode_t *) 0)
17365   return 0;
17366 if (sizeof (mode_t))
17367   return 0;
17368   ;
17369   return 0;
17370 }
17371 _ACEOF
17372 rm -f conftest.$ac_objext
17373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17374   (eval $ac_compile) 2>conftest.er1
17375   ac_status=$?
17376   grep -v '^ *+' conftest.er1 >conftest.err
17377   rm -f conftest.er1
17378   cat conftest.err >&5
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); } &&
17381          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383   (eval $ac_try) 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; } &&
17387          { ac_try='test -s conftest.$ac_objext'
17388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389   (eval $ac_try) 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); }; }; then
17393   ac_cv_type_mode_t=yes
17394 else
17395   echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17397
17398 ac_cv_type_mode_t=no
17399 fi
17400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17401 fi
17402 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17403 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17404 if test $ac_cv_type_mode_t = yes; then
17405
17406 cat >>confdefs.h <<_ACEOF
17407 #define HAVE_MODE_T 1
17408 _ACEOF
17409
17410
17411 fi
17412 echo "$as_me:$LINENO: checking for off_t" >&5
17413 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17414 if test "${ac_cv_type_off_t+set}" = set; then
17415   echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417   cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h.  */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h.  */
17423 $ac_includes_default
17424 int
17425 main ()
17426 {
17427 if ((off_t *) 0)
17428   return 0;
17429 if (sizeof (off_t))
17430   return 0;
17431   ;
17432   return 0;
17433 }
17434 _ACEOF
17435 rm -f conftest.$ac_objext
17436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17437   (eval $ac_compile) 2>conftest.er1
17438   ac_status=$?
17439   grep -v '^ *+' conftest.er1 >conftest.err
17440   rm -f conftest.er1
17441   cat conftest.err >&5
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); } &&
17444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446   (eval $ac_try) 2>&5
17447   ac_status=$?
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); }; } &&
17450          { ac_try='test -s conftest.$ac_objext'
17451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452   (eval $ac_try) 2>&5
17453   ac_status=$?
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); }; }; then
17456   ac_cv_type_off_t=yes
17457 else
17458   echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17460
17461 ac_cv_type_off_t=no
17462 fi
17463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17464 fi
17465 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17466 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17467 if test $ac_cv_type_off_t = yes; then
17468
17469 cat >>confdefs.h <<_ACEOF
17470 #define HAVE_OFF_T 1
17471 _ACEOF
17472
17473
17474 fi
17475 echo "$as_me:$LINENO: checking for pid_t" >&5
17476 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17477 if test "${ac_cv_type_pid_t+set}" = set; then
17478   echo $ECHO_N "(cached) $ECHO_C" >&6
17479 else
17480   cat >conftest.$ac_ext <<_ACEOF
17481 /* confdefs.h.  */
17482 _ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h.  */
17486 $ac_includes_default
17487 int
17488 main ()
17489 {
17490 if ((pid_t *) 0)
17491   return 0;
17492 if (sizeof (pid_t))
17493   return 0;
17494   ;
17495   return 0;
17496 }
17497 _ACEOF
17498 rm -f conftest.$ac_objext
17499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17500   (eval $ac_compile) 2>conftest.er1
17501   ac_status=$?
17502   grep -v '^ *+' conftest.er1 >conftest.err
17503   rm -f conftest.er1
17504   cat conftest.err >&5
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } &&
17507          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509   (eval $ac_try) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }; } &&
17513          { ac_try='test -s conftest.$ac_objext'
17514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515   (eval $ac_try) 2>&5
17516   ac_status=$?
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); }; }; then
17519   ac_cv_type_pid_t=yes
17520 else
17521   echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 ac_cv_type_pid_t=no
17525 fi
17526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17527 fi
17528 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17529 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17530 if test $ac_cv_type_pid_t = yes; then
17531
17532 cat >>confdefs.h <<_ACEOF
17533 #define HAVE_PID_T 1
17534 _ACEOF
17535
17536
17537 fi
17538 echo "$as_me:$LINENO: checking for size_t" >&5
17539 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17540 if test "${ac_cv_type_size_t+set}" = set; then
17541   echo $ECHO_N "(cached) $ECHO_C" >&6
17542 else
17543   cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h.  */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h.  */
17549 $ac_includes_default
17550 int
17551 main ()
17552 {
17553 if ((size_t *) 0)
17554   return 0;
17555 if (sizeof (size_t))
17556   return 0;
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17563   (eval $ac_compile) 2>conftest.er1
17564   ac_status=$?
17565   grep -v '^ *+' conftest.er1 >conftest.err
17566   rm -f conftest.er1
17567   cat conftest.err >&5
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); } &&
17570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; } &&
17576          { ac_try='test -s conftest.$ac_objext'
17577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578   (eval $ac_try) 2>&5
17579   ac_status=$?
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); }; }; then
17582   ac_cv_type_size_t=yes
17583 else
17584   echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17586
17587 ac_cv_type_size_t=no
17588 fi
17589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17590 fi
17591 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17592 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17593 if test $ac_cv_type_size_t = yes; then
17594
17595 cat >>confdefs.h <<_ACEOF
17596 #define HAVE_SIZE_T 1
17597 _ACEOF
17598
17599
17600 fi
17601 echo "$as_me:$LINENO: checking for ssize_t" >&5
17602 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17603 if test "${ac_cv_type_ssize_t+set}" = set; then
17604   echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606   cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h.  */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h.  */
17612 $ac_includes_default
17613 int
17614 main ()
17615 {
17616 if ((ssize_t *) 0)
17617   return 0;
17618 if (sizeof (ssize_t))
17619   return 0;
17620   ;
17621   return 0;
17622 }
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17626   (eval $ac_compile) 2>conftest.er1
17627   ac_status=$?
17628   grep -v '^ *+' conftest.er1 >conftest.err
17629   rm -f conftest.er1
17630   cat conftest.err >&5
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } &&
17633          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635   (eval $ac_try) 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; } &&
17639          { ac_try='test -s conftest.$ac_objext'
17640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641   (eval $ac_try) 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; }; then
17645   ac_cv_type_ssize_t=yes
17646 else
17647   echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17649
17650 ac_cv_type_ssize_t=no
17651 fi
17652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17653 fi
17654 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17655 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17656 if test $ac_cv_type_ssize_t = yes; then
17657
17658 cat >>confdefs.h <<_ACEOF
17659 #define HAVE_SSIZE_T 1
17660 _ACEOF
17661
17662
17663 fi
17664 echo "$as_me:$LINENO: checking for long long" >&5
17665 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17666 if test "${ac_cv_type_long_long+set}" = set; then
17667   echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669   cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675 $ac_includes_default
17676 int
17677 main ()
17678 {
17679 if ((long long *) 0)
17680   return 0;
17681 if (sizeof (long long))
17682   return 0;
17683   ;
17684   return 0;
17685 }
17686 _ACEOF
17687 rm -f conftest.$ac_objext
17688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689   (eval $ac_compile) 2>conftest.er1
17690   ac_status=$?
17691   grep -v '^ *+' conftest.er1 >conftest.err
17692   rm -f conftest.er1
17693   cat conftest.err >&5
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); } &&
17696          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698   (eval $ac_try) 2>&5
17699   ac_status=$?
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); }; } &&
17702          { ac_try='test -s conftest.$ac_objext'
17703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704   (eval $ac_try) 2>&5
17705   ac_status=$?
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); }; }; then
17708   ac_cv_type_long_long=yes
17709 else
17710   echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713 ac_cv_type_long_long=no
17714 fi
17715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17716 fi
17717 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17718 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17719 if test $ac_cv_type_long_long = yes; then
17720
17721 cat >>confdefs.h <<_ACEOF
17722 #define HAVE_LONG_LONG 1
17723 _ACEOF
17724
17725
17726 fi
17727 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17728 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17729 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17730   echo $ECHO_N "(cached) $ECHO_C" >&6
17731 else
17732   cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h.  */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h.  */
17738 $ac_includes_default
17739 int
17740 main ()
17741 {
17742 if ((fsblkcnt_t *) 0)
17743   return 0;
17744 if (sizeof (fsblkcnt_t))
17745   return 0;
17746   ;
17747   return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17752   (eval $ac_compile) 2>conftest.er1
17753   ac_status=$?
17754   grep -v '^ *+' conftest.er1 >conftest.err
17755   rm -f conftest.er1
17756   cat conftest.err >&5
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); } &&
17759          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761   (eval $ac_try) 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; } &&
17765          { ac_try='test -s conftest.$ac_objext'
17766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767   (eval $ac_try) 2>&5
17768   ac_status=$?
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); }; }; then
17771   ac_cv_type_fsblkcnt_t=yes
17772 else
17773   echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17775
17776 ac_cv_type_fsblkcnt_t=no
17777 fi
17778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17779 fi
17780 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17781 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17782 if test $ac_cv_type_fsblkcnt_t = yes; then
17783
17784 cat >>confdefs.h <<_ACEOF
17785 #define HAVE_FSBLKCNT_T 1
17786 _ACEOF
17787
17788
17789 fi
17790 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17791 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17792 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17793   echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795   cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h.  */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h.  */
17801 $ac_includes_default
17802 int
17803 main ()
17804 {
17805 if ((fsfilcnt_t *) 0)
17806   return 0;
17807 if (sizeof (fsfilcnt_t))
17808   return 0;
17809   ;
17810   return 0;
17811 }
17812 _ACEOF
17813 rm -f conftest.$ac_objext
17814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17815   (eval $ac_compile) 2>conftest.er1
17816   ac_status=$?
17817   grep -v '^ *+' conftest.er1 >conftest.err
17818   rm -f conftest.er1
17819   cat conftest.err >&5
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); } &&
17822          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824   (eval $ac_try) 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }; } &&
17828          { ac_try='test -s conftest.$ac_objext'
17829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830   (eval $ac_try) 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; }; then
17834   ac_cv_type_fsfilcnt_t=yes
17835 else
17836   echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17838
17839 ac_cv_type_fsfilcnt_t=no
17840 fi
17841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17842 fi
17843 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17844 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17845 if test $ac_cv_type_fsfilcnt_t = yes; then
17846
17847 cat >>confdefs.h <<_ACEOF
17848 #define HAVE_FSFILCNT_T 1
17849 _ACEOF
17850
17851
17852 fi
17853
17854
17855 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17856 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17857 if test "${wine_cv_linux_input_h+set}" = set; then
17858   echo $ECHO_N "(cached) $ECHO_C" >&6
17859 else
17860   cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h.  */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h.  */
17866
17867             #include <linux/input.h>
17868
17869 int
17870 main ()
17871 {
17872
17873             int foo = EVIOCGBIT(EV_ABS,42);
17874             int bar = BTN_PINKIE;
17875             int fortytwo = 42;
17876
17877   ;
17878   return 0;
17879 }
17880 _ACEOF
17881 rm -f conftest.$ac_objext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17883   (eval $ac_compile) 2>conftest.er1
17884   ac_status=$?
17885   grep -v '^ *+' conftest.er1 >conftest.err
17886   rm -f conftest.er1
17887   cat conftest.err >&5
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); } &&
17890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892   (eval $ac_try) 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); }; } &&
17896          { ac_try='test -s conftest.$ac_objext'
17897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898   (eval $ac_try) 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; }; then
17902   wine_cv_linux_input_h=yes
17903 else
17904   echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907 wine_cv_linux_input_h=no
17908 fi
17909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17910
17911 fi
17912 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17913 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17914     if test "$wine_cv_linux_input_h" = "yes"
17915     then
17916
17917 cat >>confdefs.h <<\_ACEOF
17918 #define HAVE_CORRECT_LINUXINPUT_H 1
17919 _ACEOF
17920
17921     fi
17922
17923
17924 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17925 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17926 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17927   echo $ECHO_N "(cached) $ECHO_C" >&6
17928 else
17929   cat >conftest.$ac_ext <<_ACEOF
17930 /* confdefs.h.  */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h.  */
17935
17936 #include <netdb.h>
17937
17938 int
17939 main ()
17940 {
17941
17942     char *name=NULL;
17943     struct hostent he;
17944     struct hostent *result;
17945     char *buf=NULL;
17946     int bufsize=0;
17947     int res,errnr;
17948     char *addr=NULL;
17949     int addrlen=0;
17950     int addrtype=0;
17951     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17952     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17953
17954   ;
17955   return 0;
17956 }
17957 _ACEOF
17958 rm -f conftest.$ac_objext conftest$ac_exeext
17959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17960   (eval $ac_link) 2>conftest.er1
17961   ac_status=$?
17962   grep -v '^ *+' conftest.er1 >conftest.err
17963   rm -f conftest.er1
17964   cat conftest.err >&5
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); } &&
17967          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969   (eval $ac_try) 2>&5
17970   ac_status=$?
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); }; } &&
17973          { ac_try='test -s conftest$ac_exeext'
17974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975   (eval $ac_try) 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; }; then
17979   wine_cv_linux_gethostbyname_r_6=yes
17980 else
17981   echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984 wine_cv_linux_gethostbyname_r_6=no
17985
17986 fi
17987 rm -f conftest.err conftest.$ac_objext \
17988       conftest$ac_exeext conftest.$ac_ext
17989
17990 fi
17991 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17992 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17993    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17994    then
17995
17996 cat >>confdefs.h <<\_ACEOF
17997 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17998 _ACEOF
17999
18000    fi
18001
18002 if test "$ac_cv_header_linux_joystick_h" = "yes"
18003 then
18004    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18005 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18006 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18007   echo $ECHO_N "(cached) $ECHO_C" >&6
18008 else
18009   cat >conftest.$ac_ext <<_ACEOF
18010 /* confdefs.h.  */
18011 _ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h.  */
18015
18016         #include <sys/ioctl.h>
18017         #include <linux/joystick.h>
18018
18019         struct js_event blub;
18020         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18021         #error "no 2.2 header"
18022         #endif
18023
18024 int
18025 main ()
18026 {
18027 /*empty*/
18028   ;
18029   return 0;
18030 }
18031 _ACEOF
18032 rm -f conftest.$ac_objext
18033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18034   (eval $ac_compile) 2>conftest.er1
18035   ac_status=$?
18036   grep -v '^ *+' conftest.er1 >conftest.err
18037   rm -f conftest.er1
18038   cat conftest.err >&5
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); } &&
18041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043   (eval $ac_try) 2>&5
18044   ac_status=$?
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); }; } &&
18047          { ac_try='test -s conftest.$ac_objext'
18048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049   (eval $ac_try) 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; }; then
18053   wine_cv_linux_joystick_22_api=yes
18054 else
18055   echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 wine_cv_linux_joystick_22_api=no
18059 fi
18060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18061
18062 fi
18063 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18064 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
18065    if test "$wine_cv_linux_joystick_22_api" = "yes"
18066    then
18067
18068 cat >>confdefs.h <<\_ACEOF
18069 #define HAVE_LINUX_22_JOYSTICK_API 1
18070 _ACEOF
18071
18072    fi
18073 fi
18074
18075
18076 if test "$ac_cv_header_sys_vfs_h" = "yes"
18077 then
18078     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
18079 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18080 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18081   echo $ECHO_N "(cached) $ECHO_C" >&6
18082 else
18083   cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089
18090         #include <sys/types.h>
18091         #ifdef HAVE_SYS_PARAM_H
18092         # include <sys/param.h>
18093         #endif
18094         #include <sys/vfs.h>
18095
18096 int
18097 main ()
18098 {
18099
18100                 struct statfs stfs;
18101
18102                 memset(&stfs,0,sizeof(stfs));
18103
18104   ;
18105   return 0;
18106 }
18107 _ACEOF
18108 rm -f conftest.$ac_objext
18109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18110   (eval $ac_compile) 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } &&
18117          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119   (eval $ac_try) 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; } &&
18123          { ac_try='test -s conftest.$ac_objext'
18124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125   (eval $ac_try) 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; }; then
18129   wine_cv_sys_vfs_has_statfs=yes
18130 else
18131   echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18133
18134 wine_cv_sys_vfs_has_statfs=no
18135
18136 fi
18137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18138
18139 fi
18140 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18141 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18142     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18143     then
18144
18145 cat >>confdefs.h <<\_ACEOF
18146 #define STATFS_DEFINED_BY_SYS_VFS 1
18147 _ACEOF
18148
18149     fi
18150 fi
18151
18152 if test "$ac_cv_header_sys_statfs_h" = "yes"
18153 then
18154     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18155 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18156 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18157   echo $ECHO_N "(cached) $ECHO_C" >&6
18158 else
18159   cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h.  */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h.  */
18165
18166         #include <sys/types.h>
18167         #ifdef HAVE_SYS_PARAM_H
18168         # include <sys/param.h>
18169         #endif
18170         #include <sys/statfs.h>
18171
18172 int
18173 main ()
18174 {
18175
18176                 struct statfs stfs;
18177
18178   ;
18179   return 0;
18180 }
18181 _ACEOF
18182 rm -f conftest.$ac_objext
18183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18184   (eval $ac_compile) 2>conftest.er1
18185   ac_status=$?
18186   grep -v '^ *+' conftest.er1 >conftest.err
18187   rm -f conftest.er1
18188   cat conftest.err >&5
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } &&
18191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193   (eval $ac_try) 2>&5
18194   ac_status=$?
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); }; } &&
18197          { ac_try='test -s conftest.$ac_objext'
18198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199   (eval $ac_try) 2>&5
18200   ac_status=$?
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); }; }; then
18203   wine_cv_sys_statfs_has_statfs=yes
18204 else
18205   echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18207
18208 wine_cv_sys_statfs_has_statfs=no
18209
18210 fi
18211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18212
18213 fi
18214 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18215 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18216     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18217     then
18218
18219 cat >>confdefs.h <<\_ACEOF
18220 #define STATFS_DEFINED_BY_SYS_STATFS 1
18221 _ACEOF
18222
18223     fi
18224 fi
18225
18226 if test "$ac_cv_header_sys_mount_h" = "yes"
18227 then
18228     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18229 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18230 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18231   echo $ECHO_N "(cached) $ECHO_C" >&6
18232 else
18233   cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h.  */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h.  */
18239
18240         #include <sys/types.h>
18241         #ifdef HAVE_SYS_PARAM_H
18242         # include <sys/param.h>
18243         #endif
18244         #include <sys/mount.h>
18245
18246 int
18247 main ()
18248 {
18249
18250                 struct statfs stfs;
18251
18252   ;
18253   return 0;
18254 }
18255 _ACEOF
18256 rm -f conftest.$ac_objext
18257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18258   (eval $ac_compile) 2>conftest.er1
18259   ac_status=$?
18260   grep -v '^ *+' conftest.er1 >conftest.err
18261   rm -f conftest.er1
18262   cat conftest.err >&5
18263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264   (exit $ac_status); } &&
18265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267   (eval $ac_try) 2>&5
18268   ac_status=$?
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); }; } &&
18271          { ac_try='test -s conftest.$ac_objext'
18272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273   (eval $ac_try) 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; }; then
18277   wine_cv_sys_mount_has_statfs=yes
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281
18282 wine_cv_sys_mount_has_statfs=no
18283
18284 fi
18285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18286
18287 fi
18288 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18289 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18290     if test "$wine_cv_sys_mount_has_statfs" = "yes"
18291     then
18292
18293 cat >>confdefs.h <<\_ACEOF
18294 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18295 _ACEOF
18296
18297     fi
18298 fi
18299
18300
18301 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18302 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18303 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18304   echo $ECHO_N "(cached) $ECHO_C" >&6
18305 else
18306   cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h.  */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h.  */
18312 #include <sys/types.h>
18313 #ifdef HAVE_SYS_PARAM_H
18314 # include <sys/param.h>
18315 #endif
18316 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18317 # include <sys/mount.h>
18318 #else
18319 # ifdef STATFS_DEFINED_BY_SYS_VFS
18320 #  include <sys/vfs.h>
18321 # else
18322 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18323 #   include <sys/statfs.h>
18324 #  endif
18325 # endif
18326 #endif
18327
18328 int
18329 main ()
18330 {
18331 static struct statfs ac_aggr;
18332 if (ac_aggr.f_bfree)
18333 return 0;
18334   ;
18335   return 0;
18336 }
18337 _ACEOF
18338 rm -f conftest.$ac_objext
18339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18340   (eval $ac_compile) 2>conftest.er1
18341   ac_status=$?
18342   grep -v '^ *+' conftest.er1 >conftest.err
18343   rm -f conftest.er1
18344   cat conftest.err >&5
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); } &&
18347          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349   (eval $ac_try) 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; } &&
18353          { ac_try='test -s conftest.$ac_objext'
18354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355   (eval $ac_try) 2>&5
18356   ac_status=$?
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); }; }; then
18359   ac_cv_member_struct_statfs_f_bfree=yes
18360 else
18361   echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h.  */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h.  */
18370 #include <sys/types.h>
18371 #ifdef HAVE_SYS_PARAM_H
18372 # include <sys/param.h>
18373 #endif
18374 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18375 # include <sys/mount.h>
18376 #else
18377 # ifdef STATFS_DEFINED_BY_SYS_VFS
18378 #  include <sys/vfs.h>
18379 # else
18380 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18381 #   include <sys/statfs.h>
18382 #  endif
18383 # endif
18384 #endif
18385
18386 int
18387 main ()
18388 {
18389 static struct statfs ac_aggr;
18390 if (sizeof ac_aggr.f_bfree)
18391 return 0;
18392   ;
18393   return 0;
18394 }
18395 _ACEOF
18396 rm -f conftest.$ac_objext
18397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18398   (eval $ac_compile) 2>conftest.er1
18399   ac_status=$?
18400   grep -v '^ *+' conftest.er1 >conftest.err
18401   rm -f conftest.er1
18402   cat conftest.err >&5
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); } &&
18405          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407   (eval $ac_try) 2>&5
18408   ac_status=$?
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); }; } &&
18411          { ac_try='test -s conftest.$ac_objext'
18412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413   (eval $ac_try) 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); }; }; then
18417   ac_cv_member_struct_statfs_f_bfree=yes
18418 else
18419   echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18421
18422 ac_cv_member_struct_statfs_f_bfree=no
18423 fi
18424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18425 fi
18426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18427 fi
18428 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18429 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18430 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18431
18432 cat >>confdefs.h <<_ACEOF
18433 #define HAVE_STRUCT_STATFS_F_BFREE 1
18434 _ACEOF
18435
18436
18437 fi
18438 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18439 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18440 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18441   echo $ECHO_N "(cached) $ECHO_C" >&6
18442 else
18443   cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h.  */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h.  */
18449 #include <sys/types.h>
18450 #ifdef HAVE_SYS_PARAM_H
18451 # include <sys/param.h>
18452 #endif
18453 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18454 # include <sys/mount.h>
18455 #else
18456 # ifdef STATFS_DEFINED_BY_SYS_VFS
18457 #  include <sys/vfs.h>
18458 # else
18459 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18460 #   include <sys/statfs.h>
18461 #  endif
18462 # endif
18463 #endif
18464
18465 int
18466 main ()
18467 {
18468 static struct statfs ac_aggr;
18469 if (ac_aggr.f_bavail)
18470 return 0;
18471   ;
18472   return 0;
18473 }
18474 _ACEOF
18475 rm -f conftest.$ac_objext
18476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18477   (eval $ac_compile) 2>conftest.er1
18478   ac_status=$?
18479   grep -v '^ *+' conftest.er1 >conftest.err
18480   rm -f conftest.er1
18481   cat conftest.err >&5
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); } &&
18484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486   (eval $ac_try) 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); }; } &&
18490          { ac_try='test -s conftest.$ac_objext'
18491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492   (eval $ac_try) 2>&5
18493   ac_status=$?
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); }; }; then
18496   ac_cv_member_struct_statfs_f_bavail=yes
18497 else
18498   echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18500
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507 #include <sys/types.h>
18508 #ifdef HAVE_SYS_PARAM_H
18509 # include <sys/param.h>
18510 #endif
18511 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18512 # include <sys/mount.h>
18513 #else
18514 # ifdef STATFS_DEFINED_BY_SYS_VFS
18515 #  include <sys/vfs.h>
18516 # else
18517 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18518 #   include <sys/statfs.h>
18519 #  endif
18520 # endif
18521 #endif
18522
18523 int
18524 main ()
18525 {
18526 static struct statfs ac_aggr;
18527 if (sizeof ac_aggr.f_bavail)
18528 return 0;
18529   ;
18530   return 0;
18531 }
18532 _ACEOF
18533 rm -f conftest.$ac_objext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535   (eval $ac_compile) 2>conftest.er1
18536   ac_status=$?
18537   grep -v '^ *+' conftest.er1 >conftest.err
18538   rm -f conftest.er1
18539   cat conftest.err >&5
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); } &&
18542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544   (eval $ac_try) 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; } &&
18548          { ac_try='test -s conftest.$ac_objext'
18549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550   (eval $ac_try) 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; }; then
18554   ac_cv_member_struct_statfs_f_bavail=yes
18555 else
18556   echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 ac_cv_member_struct_statfs_f_bavail=no
18560 fi
18561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18562 fi
18563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18564 fi
18565 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18566 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18567 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18568
18569 cat >>confdefs.h <<_ACEOF
18570 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18571 _ACEOF
18572
18573
18574 fi
18575 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18576 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18577 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18578   echo $ECHO_N "(cached) $ECHO_C" >&6
18579 else
18580   cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h.  */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h.  */
18586 #include <sys/types.h>
18587 #ifdef HAVE_SYS_PARAM_H
18588 # include <sys/param.h>
18589 #endif
18590 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18591 # include <sys/mount.h>
18592 #else
18593 # ifdef STATFS_DEFINED_BY_SYS_VFS
18594 #  include <sys/vfs.h>
18595 # else
18596 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18597 #   include <sys/statfs.h>
18598 #  endif
18599 # endif
18600 #endif
18601
18602 int
18603 main ()
18604 {
18605 static struct statfs ac_aggr;
18606 if (ac_aggr.f_frsize)
18607 return 0;
18608   ;
18609   return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest.$ac_objext
18613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18614   (eval $ac_compile) 2>conftest.er1
18615   ac_status=$?
18616   grep -v '^ *+' conftest.er1 >conftest.err
18617   rm -f conftest.er1
18618   cat conftest.err >&5
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); } &&
18621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623   (eval $ac_try) 2>&5
18624   ac_status=$?
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); }; } &&
18627          { ac_try='test -s conftest.$ac_objext'
18628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629   (eval $ac_try) 2>&5
18630   ac_status=$?
18631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632   (exit $ac_status); }; }; then
18633   ac_cv_member_struct_statfs_f_frsize=yes
18634 else
18635   echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18637
18638 cat >conftest.$ac_ext <<_ACEOF
18639 /* confdefs.h.  */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h.  */
18644 #include <sys/types.h>
18645 #ifdef HAVE_SYS_PARAM_H
18646 # include <sys/param.h>
18647 #endif
18648 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18649 # include <sys/mount.h>
18650 #else
18651 # ifdef STATFS_DEFINED_BY_SYS_VFS
18652 #  include <sys/vfs.h>
18653 # else
18654 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18655 #   include <sys/statfs.h>
18656 #  endif
18657 # endif
18658 #endif
18659
18660 int
18661 main ()
18662 {
18663 static struct statfs ac_aggr;
18664 if (sizeof ac_aggr.f_frsize)
18665 return 0;
18666   ;
18667   return 0;
18668 }
18669 _ACEOF
18670 rm -f conftest.$ac_objext
18671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18672   (eval $ac_compile) 2>conftest.er1
18673   ac_status=$?
18674   grep -v '^ *+' conftest.er1 >conftest.err
18675   rm -f conftest.er1
18676   cat conftest.err >&5
18677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); } &&
18679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681   (eval $ac_try) 2>&5
18682   ac_status=$?
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); }; } &&
18685          { ac_try='test -s conftest.$ac_objext'
18686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687   (eval $ac_try) 2>&5
18688   ac_status=$?
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); }; }; then
18691   ac_cv_member_struct_statfs_f_frsize=yes
18692 else
18693   echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18695
18696 ac_cv_member_struct_statfs_f_frsize=no
18697 fi
18698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18699 fi
18700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18701 fi
18702 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18703 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18704 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18705
18706 cat >>confdefs.h <<_ACEOF
18707 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18708 _ACEOF
18709
18710
18711 fi
18712 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18713 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18714 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18715   echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717   cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h.  */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h.  */
18723 #include <sys/types.h>
18724 #ifdef HAVE_SYS_PARAM_H
18725 # include <sys/param.h>
18726 #endif
18727 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18728 # include <sys/mount.h>
18729 #else
18730 # ifdef STATFS_DEFINED_BY_SYS_VFS
18731 #  include <sys/vfs.h>
18732 # else
18733 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18734 #   include <sys/statfs.h>
18735 #  endif
18736 # endif
18737 #endif
18738
18739 int
18740 main ()
18741 {
18742 static struct statfs ac_aggr;
18743 if (ac_aggr.f_ffree)
18744 return 0;
18745   ;
18746   return 0;
18747 }
18748 _ACEOF
18749 rm -f conftest.$ac_objext
18750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18751   (eval $ac_compile) 2>conftest.er1
18752   ac_status=$?
18753   grep -v '^ *+' conftest.er1 >conftest.err
18754   rm -f conftest.er1
18755   cat conftest.err >&5
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); } &&
18758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760   (eval $ac_try) 2>&5
18761   ac_status=$?
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); }; } &&
18764          { ac_try='test -s conftest.$ac_objext'
18765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766   (eval $ac_try) 2>&5
18767   ac_status=$?
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); }; }; then
18770   ac_cv_member_struct_statfs_f_ffree=yes
18771 else
18772   echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18774
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h.  */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h.  */
18781 #include <sys/types.h>
18782 #ifdef HAVE_SYS_PARAM_H
18783 # include <sys/param.h>
18784 #endif
18785 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18786 # include <sys/mount.h>
18787 #else
18788 # ifdef STATFS_DEFINED_BY_SYS_VFS
18789 #  include <sys/vfs.h>
18790 # else
18791 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18792 #   include <sys/statfs.h>
18793 #  endif
18794 # endif
18795 #endif
18796
18797 int
18798 main ()
18799 {
18800 static struct statfs ac_aggr;
18801 if (sizeof ac_aggr.f_ffree)
18802 return 0;
18803   ;
18804   return 0;
18805 }
18806 _ACEOF
18807 rm -f conftest.$ac_objext
18808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18809   (eval $ac_compile) 2>conftest.er1
18810   ac_status=$?
18811   grep -v '^ *+' conftest.er1 >conftest.err
18812   rm -f conftest.er1
18813   cat conftest.err >&5
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); } &&
18816          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818   (eval $ac_try) 2>&5
18819   ac_status=$?
18820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821   (exit $ac_status); }; } &&
18822          { ac_try='test -s conftest.$ac_objext'
18823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824   (eval $ac_try) 2>&5
18825   ac_status=$?
18826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827   (exit $ac_status); }; }; then
18828   ac_cv_member_struct_statfs_f_ffree=yes
18829 else
18830   echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833 ac_cv_member_struct_statfs_f_ffree=no
18834 fi
18835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18836 fi
18837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18838 fi
18839 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18840 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18841 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18842
18843 cat >>confdefs.h <<_ACEOF
18844 #define HAVE_STRUCT_STATFS_F_FFREE 1
18845 _ACEOF
18846
18847
18848 fi
18849 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18850 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18851 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18852   echo $ECHO_N "(cached) $ECHO_C" >&6
18853 else
18854   cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h.  */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h.  */
18860 #include <sys/types.h>
18861 #ifdef HAVE_SYS_PARAM_H
18862 # include <sys/param.h>
18863 #endif
18864 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18865 # include <sys/mount.h>
18866 #else
18867 # ifdef STATFS_DEFINED_BY_SYS_VFS
18868 #  include <sys/vfs.h>
18869 # else
18870 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18871 #   include <sys/statfs.h>
18872 #  endif
18873 # endif
18874 #endif
18875
18876 int
18877 main ()
18878 {
18879 static struct statfs ac_aggr;
18880 if (ac_aggr.f_favail)
18881 return 0;
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 rm -f conftest.$ac_objext
18887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888   (eval $ac_compile) 2>conftest.er1
18889   ac_status=$?
18890   grep -v '^ *+' conftest.er1 >conftest.err
18891   rm -f conftest.er1
18892   cat conftest.err >&5
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } &&
18895          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897   (eval $ac_try) 2>&5
18898   ac_status=$?
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); }; } &&
18901          { ac_try='test -s conftest.$ac_objext'
18902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18903   (eval $ac_try) 2>&5
18904   ac_status=$?
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); }; }; then
18907   ac_cv_member_struct_statfs_f_favail=yes
18908 else
18909   echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h.  */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h.  */
18918 #include <sys/types.h>
18919 #ifdef HAVE_SYS_PARAM_H
18920 # include <sys/param.h>
18921 #endif
18922 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18923 # include <sys/mount.h>
18924 #else
18925 # ifdef STATFS_DEFINED_BY_SYS_VFS
18926 #  include <sys/vfs.h>
18927 # else
18928 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18929 #   include <sys/statfs.h>
18930 #  endif
18931 # endif
18932 #endif
18933
18934 int
18935 main ()
18936 {
18937 static struct statfs ac_aggr;
18938 if (sizeof ac_aggr.f_favail)
18939 return 0;
18940   ;
18941   return 0;
18942 }
18943 _ACEOF
18944 rm -f conftest.$ac_objext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18946   (eval $ac_compile) 2>conftest.er1
18947   ac_status=$?
18948   grep -v '^ *+' conftest.er1 >conftest.err
18949   rm -f conftest.er1
18950   cat conftest.err >&5
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); } &&
18953          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955   (eval $ac_try) 2>&5
18956   ac_status=$?
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); }; } &&
18959          { ac_try='test -s conftest.$ac_objext'
18960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961   (eval $ac_try) 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; }; then
18965   ac_cv_member_struct_statfs_f_favail=yes
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970 ac_cv_member_struct_statfs_f_favail=no
18971 fi
18972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18973 fi
18974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18975 fi
18976 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18977 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18978 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18979
18980 cat >>confdefs.h <<_ACEOF
18981 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18982 _ACEOF
18983
18984
18985 fi
18986 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18987 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18988 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h.  */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h.  */
18997 #include <sys/types.h>
18998 #ifdef HAVE_SYS_PARAM_H
18999 # include <sys/param.h>
19000 #endif
19001 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19002 # include <sys/mount.h>
19003 #else
19004 # ifdef STATFS_DEFINED_BY_SYS_VFS
19005 #  include <sys/vfs.h>
19006 # else
19007 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
19008 #   include <sys/statfs.h>
19009 #  endif
19010 # endif
19011 #endif
19012
19013 int
19014 main ()
19015 {
19016 static struct statfs ac_aggr;
19017 if (ac_aggr.f_namelen)
19018 return 0;
19019   ;
19020   return 0;
19021 }
19022 _ACEOF
19023 rm -f conftest.$ac_objext
19024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19025   (eval $ac_compile) 2>conftest.er1
19026   ac_status=$?
19027   grep -v '^ *+' conftest.er1 >conftest.err
19028   rm -f conftest.er1
19029   cat conftest.err >&5
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } &&
19032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034   (eval $ac_try) 2>&5
19035   ac_status=$?
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); }; } &&
19038          { ac_try='test -s conftest.$ac_objext'
19039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040   (eval $ac_try) 2>&5
19041   ac_status=$?
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); }; }; then
19044   ac_cv_member_struct_statfs_f_namelen=yes
19045 else
19046   echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19048
19049 cat >conftest.$ac_ext <<_ACEOF
19050 /* confdefs.h.  */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h.  */
19055 #include <sys/types.h>
19056 #ifdef HAVE_SYS_PARAM_H
19057 # include <sys/param.h>
19058 #endif
19059 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19060 # include <sys/mount.h>
19061 #else
19062 # ifdef STATFS_DEFINED_BY_SYS_VFS
19063 #  include <sys/vfs.h>
19064 # else
19065 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
19066 #   include <sys/statfs.h>
19067 #  endif
19068 # endif
19069 #endif
19070
19071 int
19072 main ()
19073 {
19074 static struct statfs ac_aggr;
19075 if (sizeof ac_aggr.f_namelen)
19076 return 0;
19077   ;
19078   return 0;
19079 }
19080 _ACEOF
19081 rm -f conftest.$ac_objext
19082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19083   (eval $ac_compile) 2>conftest.er1
19084   ac_status=$?
19085   grep -v '^ *+' conftest.er1 >conftest.err
19086   rm -f conftest.er1
19087   cat conftest.err >&5
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); } &&
19090          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092   (eval $ac_try) 2>&5
19093   ac_status=$?
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); }; } &&
19096          { ac_try='test -s conftest.$ac_objext'
19097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098   (eval $ac_try) 2>&5
19099   ac_status=$?
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); }; }; then
19102   ac_cv_member_struct_statfs_f_namelen=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107 ac_cv_member_struct_statfs_f_namelen=no
19108 fi
19109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19110 fi
19111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19112 fi
19113 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19114 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19115 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19116
19117 cat >>confdefs.h <<_ACEOF
19118 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19119 _ACEOF
19120
19121
19122 fi
19123
19124
19125 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19126 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19127 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19128   echo $ECHO_N "(cached) $ECHO_C" >&6
19129 else
19130   cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136 #ifdef HAVE_SYS_STATVFS_H
19137 #include <sys/statvfs.h>
19138 #endif
19139
19140 int
19141 main ()
19142 {
19143 static struct statvfs ac_aggr;
19144 if (ac_aggr.f_blocks)
19145 return 0;
19146   ;
19147   return 0;
19148 }
19149 _ACEOF
19150 rm -f conftest.$ac_objext
19151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19152   (eval $ac_compile) 2>conftest.er1
19153   ac_status=$?
19154   grep -v '^ *+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } &&
19159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161   (eval $ac_try) 2>&5
19162   ac_status=$?
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); }; } &&
19165          { ac_try='test -s conftest.$ac_objext'
19166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167   (eval $ac_try) 2>&5
19168   ac_status=$?
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); }; }; then
19171   ac_cv_member_struct_statvfs_f_blocks=yes
19172 else
19173   echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19175
19176 cat >conftest.$ac_ext <<_ACEOF
19177 /* confdefs.h.  */
19178 _ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h.  */
19182 #ifdef HAVE_SYS_STATVFS_H
19183 #include <sys/statvfs.h>
19184 #endif
19185
19186 int
19187 main ()
19188 {
19189 static struct statvfs ac_aggr;
19190 if (sizeof ac_aggr.f_blocks)
19191 return 0;
19192   ;
19193   return 0;
19194 }
19195 _ACEOF
19196 rm -f conftest.$ac_objext
19197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198   (eval $ac_compile) 2>conftest.er1
19199   ac_status=$?
19200   grep -v '^ *+' conftest.er1 >conftest.err
19201   rm -f conftest.er1
19202   cat conftest.err >&5
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); } &&
19205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207   (eval $ac_try) 2>&5
19208   ac_status=$?
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); }; } &&
19211          { ac_try='test -s conftest.$ac_objext'
19212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213   (eval $ac_try) 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; }; then
19217   ac_cv_member_struct_statvfs_f_blocks=yes
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222 ac_cv_member_struct_statvfs_f_blocks=no
19223 fi
19224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19225 fi
19226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19227 fi
19228 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19229 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19230 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19231
19232 cat >>confdefs.h <<_ACEOF
19233 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19234 _ACEOF
19235
19236
19237 fi
19238
19239
19240 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19241 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19242 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19243   echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245   cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h.  */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h.  */
19251 #include <sys/types.h>
19252 #ifdef HAVE_SYS_SOCKET_H
19253 # include <sys/socket.h>
19254 #endif
19255 #ifdef HAVE_SYS_UN_H
19256 # include <sys/un.h>
19257 #endif
19258
19259 int
19260 main ()
19261 {
19262 static struct msghdr ac_aggr;
19263 if (ac_aggr.msg_accrights)
19264 return 0;
19265   ;
19266   return 0;
19267 }
19268 _ACEOF
19269 rm -f conftest.$ac_objext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19271   (eval $ac_compile) 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } &&
19278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280   (eval $ac_try) 2>&5
19281   ac_status=$?
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); }; } &&
19284          { ac_try='test -s conftest.$ac_objext'
19285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286   (eval $ac_try) 2>&5
19287   ac_status=$?
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); }; }; then
19290   ac_cv_member_struct_msghdr_msg_accrights=yes
19291 else
19292   echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295 cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h.  */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h.  */
19301 #include <sys/types.h>
19302 #ifdef HAVE_SYS_SOCKET_H
19303 # include <sys/socket.h>
19304 #endif
19305 #ifdef HAVE_SYS_UN_H
19306 # include <sys/un.h>
19307 #endif
19308
19309 int
19310 main ()
19311 {
19312 static struct msghdr ac_aggr;
19313 if (sizeof ac_aggr.msg_accrights)
19314 return 0;
19315   ;
19316   return 0;
19317 }
19318 _ACEOF
19319 rm -f conftest.$ac_objext
19320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19321   (eval $ac_compile) 2>conftest.er1
19322   ac_status=$?
19323   grep -v '^ *+' conftest.er1 >conftest.err
19324   rm -f conftest.er1
19325   cat conftest.err >&5
19326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327   (exit $ac_status); } &&
19328          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330   (eval $ac_try) 2>&5
19331   ac_status=$?
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); }; } &&
19334          { ac_try='test -s conftest.$ac_objext'
19335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336   (eval $ac_try) 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }; }; then
19340   ac_cv_member_struct_msghdr_msg_accrights=yes
19341 else
19342   echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345 ac_cv_member_struct_msghdr_msg_accrights=no
19346 fi
19347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19348 fi
19349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19350 fi
19351 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19352 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19353 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19354
19355 cat >>confdefs.h <<_ACEOF
19356 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19357 _ACEOF
19358
19359
19360 fi
19361 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19362 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19363 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19364   echo $ECHO_N "(cached) $ECHO_C" >&6
19365 else
19366   cat >conftest.$ac_ext <<_ACEOF
19367 /* confdefs.h.  */
19368 _ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h.  */
19372 #include <sys/types.h>
19373 #ifdef HAVE_SYS_SOCKET_H
19374 # include <sys/socket.h>
19375 #endif
19376 #ifdef HAVE_SYS_UN_H
19377 # include <sys/un.h>
19378 #endif
19379
19380 int
19381 main ()
19382 {
19383 static struct sockaddr ac_aggr;
19384 if (ac_aggr.sa_len)
19385 return 0;
19386   ;
19387   return 0;
19388 }
19389 _ACEOF
19390 rm -f conftest.$ac_objext
19391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19392   (eval $ac_compile) 2>conftest.er1
19393   ac_status=$?
19394   grep -v '^ *+' conftest.er1 >conftest.err
19395   rm -f conftest.er1
19396   cat conftest.err >&5
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } &&
19399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401   (eval $ac_try) 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }; } &&
19405          { ac_try='test -s conftest.$ac_objext'
19406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407   (eval $ac_try) 2>&5
19408   ac_status=$?
19409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410   (exit $ac_status); }; }; then
19411   ac_cv_member_struct_sockaddr_sa_len=yes
19412 else
19413   echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19415
19416 cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h.  */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h.  */
19422 #include <sys/types.h>
19423 #ifdef HAVE_SYS_SOCKET_H
19424 # include <sys/socket.h>
19425 #endif
19426 #ifdef HAVE_SYS_UN_H
19427 # include <sys/un.h>
19428 #endif
19429
19430 int
19431 main ()
19432 {
19433 static struct sockaddr ac_aggr;
19434 if (sizeof ac_aggr.sa_len)
19435 return 0;
19436   ;
19437   return 0;
19438 }
19439 _ACEOF
19440 rm -f conftest.$ac_objext
19441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19442   (eval $ac_compile) 2>conftest.er1
19443   ac_status=$?
19444   grep -v '^ *+' conftest.er1 >conftest.err
19445   rm -f conftest.er1
19446   cat conftest.err >&5
19447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448   (exit $ac_status); } &&
19449          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451   (eval $ac_try) 2>&5
19452   ac_status=$?
19453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454   (exit $ac_status); }; } &&
19455          { ac_try='test -s conftest.$ac_objext'
19456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457   (eval $ac_try) 2>&5
19458   ac_status=$?
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); }; }; then
19461   ac_cv_member_struct_sockaddr_sa_len=yes
19462 else
19463   echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19465
19466 ac_cv_member_struct_sockaddr_sa_len=no
19467 fi
19468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19469 fi
19470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19471 fi
19472 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19473 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19474 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19475
19476 cat >>confdefs.h <<_ACEOF
19477 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19478 _ACEOF
19479
19480
19481 fi
19482 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19483 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19484 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19485   echo $ECHO_N "(cached) $ECHO_C" >&6
19486 else
19487   cat >conftest.$ac_ext <<_ACEOF
19488 /* confdefs.h.  */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h.  */
19493 #include <sys/types.h>
19494 #ifdef HAVE_SYS_SOCKET_H
19495 # include <sys/socket.h>
19496 #endif
19497 #ifdef HAVE_SYS_UN_H
19498 # include <sys/un.h>
19499 #endif
19500
19501 int
19502 main ()
19503 {
19504 static struct sockaddr_un ac_aggr;
19505 if (ac_aggr.sun_len)
19506 return 0;
19507   ;
19508   return 0;
19509 }
19510 _ACEOF
19511 rm -f conftest.$ac_objext
19512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19513   (eval $ac_compile) 2>conftest.er1
19514   ac_status=$?
19515   grep -v '^ *+' conftest.er1 >conftest.err
19516   rm -f conftest.er1
19517   cat conftest.err >&5
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); } &&
19520          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522   (eval $ac_try) 2>&5
19523   ac_status=$?
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); }; } &&
19526          { ac_try='test -s conftest.$ac_objext'
19527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528   (eval $ac_try) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; }; then
19532   ac_cv_member_struct_sockaddr_un_sun_len=yes
19533 else
19534   echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19536
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h.  */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h.  */
19543 #include <sys/types.h>
19544 #ifdef HAVE_SYS_SOCKET_H
19545 # include <sys/socket.h>
19546 #endif
19547 #ifdef HAVE_SYS_UN_H
19548 # include <sys/un.h>
19549 #endif
19550
19551 int
19552 main ()
19553 {
19554 static struct sockaddr_un ac_aggr;
19555 if (sizeof ac_aggr.sun_len)
19556 return 0;
19557   ;
19558   return 0;
19559 }
19560 _ACEOF
19561 rm -f conftest.$ac_objext
19562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563   (eval $ac_compile) 2>conftest.er1
19564   ac_status=$?
19565   grep -v '^ *+' conftest.er1 >conftest.err
19566   rm -f conftest.er1
19567   cat conftest.err >&5
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); } &&
19570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572   (eval $ac_try) 2>&5
19573   ac_status=$?
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); }; } &&
19576          { ac_try='test -s conftest.$ac_objext'
19577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578   (eval $ac_try) 2>&5
19579   ac_status=$?
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); }; }; then
19582   ac_cv_member_struct_sockaddr_un_sun_len=yes
19583 else
19584   echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19586
19587 ac_cv_member_struct_sockaddr_un_sun_len=no
19588 fi
19589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19590 fi
19591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19592 fi
19593 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19594 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19595 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19596
19597 cat >>confdefs.h <<_ACEOF
19598 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19599 _ACEOF
19600
19601
19602 fi
19603
19604
19605 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19606 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19607 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19608   echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610   cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h.  */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h.  */
19616 #include <signal.h>
19617
19618 int
19619 main ()
19620 {
19621 static siginfo_t ac_aggr;
19622 if (ac_aggr.si_fd)
19623 return 0;
19624   ;
19625   return 0;
19626 }
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19630   (eval $ac_compile) 2>conftest.er1
19631   ac_status=$?
19632   grep -v '^ *+' conftest.er1 >conftest.err
19633   rm -f conftest.er1
19634   cat conftest.err >&5
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } &&
19637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639   (eval $ac_try) 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); }; } &&
19643          { ac_try='test -s conftest.$ac_objext'
19644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645   (eval $ac_try) 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; }; then
19649   ac_cv_member_siginfo_t_si_fd=yes
19650 else
19651   echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 #include <signal.h>
19661
19662 int
19663 main ()
19664 {
19665 static siginfo_t ac_aggr;
19666 if (sizeof ac_aggr.si_fd)
19667 return 0;
19668   ;
19669   return 0;
19670 }
19671 _ACEOF
19672 rm -f conftest.$ac_objext
19673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19674   (eval $ac_compile) 2>conftest.er1
19675   ac_status=$?
19676   grep -v '^ *+' conftest.er1 >conftest.err
19677   rm -f conftest.er1
19678   cat conftest.err >&5
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); } &&
19681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683   (eval $ac_try) 2>&5
19684   ac_status=$?
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); }; } &&
19687          { ac_try='test -s conftest.$ac_objext'
19688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689   (eval $ac_try) 2>&5
19690   ac_status=$?
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); }; }; then
19693   ac_cv_member_siginfo_t_si_fd=yes
19694 else
19695   echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19697
19698 ac_cv_member_siginfo_t_si_fd=no
19699 fi
19700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19701 fi
19702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19703 fi
19704 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19705 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19706 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19707
19708 cat >>confdefs.h <<_ACEOF
19709 #define HAVE_SIGINFO_T_SI_FD 1
19710 _ACEOF
19711
19712
19713 fi
19714
19715
19716 echo "$as_me:$LINENO: checking for struct option.name" >&5
19717 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19718 if test "${ac_cv_member_struct_option_name+set}" = set; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h.  */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h.  */
19727 #ifdef HAVE_GETOPT_H
19728 #include <getopt.h>
19729 #endif
19730
19731 int
19732 main ()
19733 {
19734 static struct option ac_aggr;
19735 if (ac_aggr.name)
19736 return 0;
19737   ;
19738   return 0;
19739 }
19740 _ACEOF
19741 rm -f conftest.$ac_objext
19742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19743   (eval $ac_compile) 2>conftest.er1
19744   ac_status=$?
19745   grep -v '^ *+' conftest.er1 >conftest.err
19746   rm -f conftest.er1
19747   cat conftest.err >&5
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } &&
19750          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752   (eval $ac_try) 2>&5
19753   ac_status=$?
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); }; } &&
19756          { ac_try='test -s conftest.$ac_objext'
19757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758   (eval $ac_try) 2>&5
19759   ac_status=$?
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); }; }; then
19762   ac_cv_member_struct_option_name=yes
19763 else
19764   echo "$as_me: failed program was:" >&5
19765 sed 's/^/| /' conftest.$ac_ext >&5
19766
19767 cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773 #ifdef HAVE_GETOPT_H
19774 #include <getopt.h>
19775 #endif
19776
19777 int
19778 main ()
19779 {
19780 static struct option ac_aggr;
19781 if (sizeof ac_aggr.name)
19782 return 0;
19783   ;
19784   return 0;
19785 }
19786 _ACEOF
19787 rm -f conftest.$ac_objext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19789   (eval $ac_compile) 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798   (eval $ac_try) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; } &&
19802          { ac_try='test -s conftest.$ac_objext'
19803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804   (eval $ac_try) 2>&5
19805   ac_status=$?
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); }; }; then
19808   ac_cv_member_struct_option_name=yes
19809 else
19810   echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813 ac_cv_member_struct_option_name=no
19814 fi
19815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19816 fi
19817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19818 fi
19819 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19820 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19821 if test $ac_cv_member_struct_option_name = yes; then
19822
19823 cat >>confdefs.h <<_ACEOF
19824 #define HAVE_STRUCT_OPTION_NAME 1
19825 _ACEOF
19826
19827
19828 fi
19829
19830
19831 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19832 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19833 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19834   echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836   cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h.  */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h.  */
19842 $ac_includes_default
19843 int
19844 main ()
19845 {
19846 static struct stat ac_aggr;
19847 if (ac_aggr.st_blocks)
19848 return 0;
19849   ;
19850   return 0;
19851 }
19852 _ACEOF
19853 rm -f conftest.$ac_objext
19854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19855   (eval $ac_compile) 2>conftest.er1
19856   ac_status=$?
19857   grep -v '^ *+' conftest.er1 >conftest.err
19858   rm -f conftest.er1
19859   cat conftest.err >&5
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); } &&
19862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864   (eval $ac_try) 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); }; } &&
19868          { ac_try='test -s conftest.$ac_objext'
19869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870   (eval $ac_try) 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; }; then
19874   ac_cv_member_struct_stat_st_blocks=yes
19875 else
19876   echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879 cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h.  */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h.  */
19885 $ac_includes_default
19886 int
19887 main ()
19888 {
19889 static struct stat ac_aggr;
19890 if (sizeof ac_aggr.st_blocks)
19891 return 0;
19892   ;
19893   return 0;
19894 }
19895 _ACEOF
19896 rm -f conftest.$ac_objext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898   (eval $ac_compile) 2>conftest.er1
19899   ac_status=$?
19900   grep -v '^ *+' conftest.er1 >conftest.err
19901   rm -f conftest.er1
19902   cat conftest.err >&5
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); } &&
19905          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907   (eval $ac_try) 2>&5
19908   ac_status=$?
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); }; } &&
19911          { ac_try='test -s conftest.$ac_objext'
19912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913   (eval $ac_try) 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); }; }; then
19917   ac_cv_member_struct_stat_st_blocks=yes
19918 else
19919   echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19921
19922 ac_cv_member_struct_stat_st_blocks=no
19923 fi
19924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19925 fi
19926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19927 fi
19928 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19929 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19930 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19931
19932 cat >>confdefs.h <<_ACEOF
19933 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19934 _ACEOF
19935
19936
19937 fi
19938
19939
19940
19941 case $host_cpu in
19942   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19943 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19944 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19945   echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947   cat >conftest.$ac_ext <<_ACEOF
19948 /* confdefs.h.  */
19949 _ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h.  */
19953 #ifndef __i386__
19954 yes
19955 #endif
19956 _ACEOF
19957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19958   $EGREP "yes" >/dev/null 2>&1; then
19959   ac_cv_cpp_def___i386__=yes
19960 else
19961   ac_cv_cpp_def___i386__=no
19962 fi
19963 rm -f conftest*
19964
19965 fi
19966 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19967 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19968 if test $ac_cv_cpp_def___i386__ = yes; then
19969   CFLAGS="$CFLAGS -D__i386__"
19970   LINTFLAGS="$LINTFLAGS -D__i386__"
19971 fi
19972  ;;
19973   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19974 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19975 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19976   echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978   cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h.  */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h.  */
19984 #ifndef __ALPHA__
19985 yes
19986 #endif
19987 _ACEOF
19988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19989   $EGREP "yes" >/dev/null 2>&1; then
19990   ac_cv_cpp_def___ALPHA__=yes
19991 else
19992   ac_cv_cpp_def___ALPHA__=no
19993 fi
19994 rm -f conftest*
19995
19996 fi
19997 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19998 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19999 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20000   CFLAGS="$CFLAGS -D__ALPHA__"
20001   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20002 fi
20003  ;;
20004   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20005 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
20006 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20007   echo $ECHO_N "(cached) $ECHO_C" >&6
20008 else
20009   cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015 #ifndef __sparc__
20016 yes
20017 #endif
20018 _ACEOF
20019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20020   $EGREP "yes" >/dev/null 2>&1; then
20021   ac_cv_cpp_def___sparc__=yes
20022 else
20023   ac_cv_cpp_def___sparc__=no
20024 fi
20025 rm -f conftest*
20026
20027 fi
20028 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20029 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20030 if test $ac_cv_cpp_def___sparc__ = yes; then
20031   CFLAGS="$CFLAGS -D__sparc__"
20032   LINTFLAGS="$LINTFLAGS -D__sparc__"
20033 fi
20034  ;;
20035   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20036 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20037 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20038   echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040   cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046 #ifndef __powerpc__
20047 yes
20048 #endif
20049 _ACEOF
20050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20051   $EGREP "yes" >/dev/null 2>&1; then
20052   ac_cv_cpp_def___powerpc__=yes
20053 else
20054   ac_cv_cpp_def___powerpc__=no
20055 fi
20056 rm -f conftest*
20057
20058 fi
20059 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20060 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20061 if test $ac_cv_cpp_def___powerpc__ = yes; then
20062   CFLAGS="$CFLAGS -D__powerpc__"
20063   LINTFLAGS="$LINTFLAGS -D__powerpc__"
20064 fi
20065  ;;
20066 esac
20067
20068 case $host_vendor in
20069   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20070 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
20071 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20072   echo $ECHO_N "(cached) $ECHO_C" >&6
20073 else
20074   cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h.  */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h.  */
20080 #ifndef __sun__
20081 yes
20082 #endif
20083 _ACEOF
20084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20085   $EGREP "yes" >/dev/null 2>&1; then
20086   ac_cv_cpp_def___sun__=yes
20087 else
20088   ac_cv_cpp_def___sun__=no
20089 fi
20090 rm -f conftest*
20091
20092 fi
20093 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20094 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20095 if test $ac_cv_cpp_def___sun__ = yes; then
20096   CFLAGS="$CFLAGS -D__sun__"
20097   LINTFLAGS="$LINTFLAGS -D__sun__"
20098 fi
20099  ;;
20100 esac
20101
20102
20103
20104
20105
20106           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20107
20108           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20109
20110           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20111
20112           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20113
20114           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20115
20116           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20117
20118           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20119
20120           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20121
20122           ac_config_commands="$ac_config_commands dlls/kernel/messages"
20123
20124           ac_config_commands="$ac_config_commands dlls/user/dde"
20125
20126           ac_config_commands="$ac_config_commands dlls/user/resources"
20127
20128           ac_config_commands="$ac_config_commands dlls/wineps/data"
20129
20130           ac_config_commands="$ac_config_commands include/wine"
20131
20132           ac_config_commands="$ac_config_commands misc"
20133
20134           ac_config_commands="$ac_config_commands programs/regedit/tests"
20135
20136           ac_config_commands="$ac_config_commands windows"
20137
20138
20139 MAKE_RULES=Make.rules
20140
20141
20142 MAKE_DLL_RULES=dlls/Makedll.rules
20143
20144
20145 MAKE_TEST_RULES=dlls/Maketest.rules
20146
20147
20148 MAKE_LIB_RULES=libs/Makelib.rules
20149
20150
20151 MAKE_PROG_RULES=programs/Makeprog.rules
20152
20153
20154                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/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/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/secur32/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/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/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/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
20155
20156
20157 cat >confcache <<\_ACEOF
20158 # This file is a shell script that caches the results of configure
20159 # tests run on this system so they can be shared between configure
20160 # scripts and configure runs, see configure's option --config-cache.
20161 # It is not useful on other systems.  If it contains results you don't
20162 # want to keep, you may remove or edit it.
20163 #
20164 # config.status only pays attention to the cache file if you give it
20165 # the --recheck option to rerun configure.
20166 #
20167 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20168 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20169 # following values.
20170
20171 _ACEOF
20172
20173 # The following way of writing the cache mishandles newlines in values,
20174 # but we know of no workaround that is simple, portable, and efficient.
20175 # So, don't put newlines in cache variables' values.
20176 # Ultrix sh set writes to stderr and can't be redirected directly,
20177 # and sets the high bit in the cache file unless we assign to the vars.
20178 {
20179   (set) 2>&1 |
20180     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20181     *ac_space=\ *)
20182       # `set' does not quote correctly, so add quotes (double-quote
20183       # substitution turns \\\\ into \\, and sed turns \\ into \).
20184       sed -n \
20185         "s/'/'\\\\''/g;
20186           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20187       ;;
20188     *)
20189       # `set' quotes correctly as required by POSIX, so do not add quotes.
20190       sed -n \
20191         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20192       ;;
20193     esac;
20194 } |
20195   sed '
20196      t clear
20197      : clear
20198      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20199      t end
20200      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20201      : end' >>confcache
20202 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20203   if test -w $cache_file; then
20204     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20205     cat confcache >$cache_file
20206   else
20207     echo "not updating unwritable cache $cache_file"
20208   fi
20209 fi
20210 rm -f confcache
20211
20212 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20213 # Let make expand exec_prefix.
20214 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20215
20216 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20217 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20218 # trailing colons and then remove the whole line if VPATH becomes empty
20219 # (actually we leave an empty line to preserve line numbers).
20220 if test "x$srcdir" = x.; then
20221   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20222 s/:*\$(srcdir):*/:/;
20223 s/:*\${srcdir}:*/:/;
20224 s/:*@srcdir@:*/:/;
20225 s/^\([^=]*=[     ]*\):*/\1/;
20226 s/:*$//;
20227 s/^[^=]*=[       ]*$//;
20228 }'
20229 fi
20230
20231 DEFS=-DHAVE_CONFIG_H
20232
20233 ac_libobjs=
20234 ac_ltlibobjs=
20235 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20236   # 1. Remove the extension, and $U if already installed.
20237   ac_i=`echo "$ac_i" |
20238          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20239   # 2. Add them.
20240   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20241   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20242 done
20243 LIBOBJS=$ac_libobjs
20244
20245 LTLIBOBJS=$ac_ltlibobjs
20246
20247
20248
20249 : ${CONFIG_STATUS=./config.status}
20250 ac_clean_files_save=$ac_clean_files
20251 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20252 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20253 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20254 cat >$CONFIG_STATUS <<_ACEOF
20255 #! $SHELL
20256 # Generated by $as_me.
20257 # Run this file to recreate the current configuration.
20258 # Compiler output produced by configure, useful for debugging
20259 # configure, is in config.log if it exists.
20260
20261 debug=false
20262 ac_cs_recheck=false
20263 ac_cs_silent=false
20264 SHELL=\${CONFIG_SHELL-$SHELL}
20265 _ACEOF
20266
20267 cat >>$CONFIG_STATUS <<\_ACEOF
20268 ## --------------------- ##
20269 ## M4sh Initialization.  ##
20270 ## --------------------- ##
20271
20272 # Be Bourne compatible
20273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20274   emulate sh
20275   NULLCMD=:
20276   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20277   # is contrary to our usage.  Disable this feature.
20278   alias -g '${1+"$@"}'='"$@"'
20279 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20280   set -o posix
20281 fi
20282 DUALCASE=1; export DUALCASE # for MKS sh
20283
20284 # Support unset when possible.
20285 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20286   as_unset=unset
20287 else
20288   as_unset=false
20289 fi
20290
20291
20292 # Work around bugs in pre-3.0 UWIN ksh.
20293 $as_unset ENV MAIL MAILPATH
20294 PS1='$ '
20295 PS2='> '
20296 PS4='+ '
20297
20298 # NLS nuisances.
20299 for as_var in \
20300   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20301   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20302   LC_TELEPHONE LC_TIME
20303 do
20304   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20305     eval $as_var=C; export $as_var
20306   else
20307     $as_unset $as_var
20308   fi
20309 done
20310
20311 # Required to use basename.
20312 if expr a : '\(a\)' >/dev/null 2>&1; then
20313   as_expr=expr
20314 else
20315   as_expr=false
20316 fi
20317
20318 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20319   as_basename=basename
20320 else
20321   as_basename=false
20322 fi
20323
20324
20325 # Name of the executable.
20326 as_me=`$as_basename "$0" ||
20327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20328          X"$0" : 'X\(//\)$' \| \
20329          X"$0" : 'X\(/\)$' \| \
20330          .     : '\(.\)' 2>/dev/null ||
20331 echo X/"$0" |
20332     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20333           /^X\/\(\/\/\)$/{ s//\1/; q; }
20334           /^X\/\(\/\).*/{ s//\1/; q; }
20335           s/.*/./; q'`
20336
20337
20338 # PATH needs CR, and LINENO needs CR and PATH.
20339 # Avoid depending upon Character Ranges.
20340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20343 as_cr_digits='0123456789'
20344 as_cr_alnum=$as_cr_Letters$as_cr_digits
20345
20346 # The user is always right.
20347 if test "${PATH_SEPARATOR+set}" != set; then
20348   echo "#! /bin/sh" >conf$$.sh
20349   echo  "exit 0"   >>conf$$.sh
20350   chmod +x conf$$.sh
20351   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20352     PATH_SEPARATOR=';'
20353   else
20354     PATH_SEPARATOR=:
20355   fi
20356   rm -f conf$$.sh
20357 fi
20358
20359
20360   as_lineno_1=$LINENO
20361   as_lineno_2=$LINENO
20362   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20363   test "x$as_lineno_1" != "x$as_lineno_2" &&
20364   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20365   # Find who we are.  Look in the path if we contain no path at all
20366   # relative or not.
20367   case $0 in
20368     *[\\/]* ) as_myself=$0 ;;
20369     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20370 for as_dir in $PATH
20371 do
20372   IFS=$as_save_IFS
20373   test -z "$as_dir" && as_dir=.
20374   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20375 done
20376
20377        ;;
20378   esac
20379   # We did not find ourselves, most probably we were run as `sh COMMAND'
20380   # in which case we are not to be found in the path.
20381   if test "x$as_myself" = x; then
20382     as_myself=$0
20383   fi
20384   if test ! -f "$as_myself"; then
20385     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20386 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20387    { (exit 1); exit 1; }; }
20388   fi
20389   case $CONFIG_SHELL in
20390   '')
20391     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20392 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20393 do
20394   IFS=$as_save_IFS
20395   test -z "$as_dir" && as_dir=.
20396   for as_base in sh bash ksh sh5; do
20397          case $as_dir in
20398          /*)
20399            if ("$as_dir/$as_base" -c '
20400   as_lineno_1=$LINENO
20401   as_lineno_2=$LINENO
20402   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20403   test "x$as_lineno_1" != "x$as_lineno_2" &&
20404   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20405              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20406              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20407              CONFIG_SHELL=$as_dir/$as_base
20408              export CONFIG_SHELL
20409              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20410            fi;;
20411          esac
20412        done
20413 done
20414 ;;
20415   esac
20416
20417   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20418   # uniformly replaced by the line number.  The first 'sed' inserts a
20419   # line-number line before each line; the second 'sed' does the real
20420   # work.  The second script uses 'N' to pair each line-number line
20421   # with the numbered line, and appends trailing '-' during
20422   # substitution so that $LINENO is not a special case at line end.
20423   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20424   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20425   sed '=' <$as_myself |
20426     sed '
20427       N
20428       s,$,-,
20429       : loop
20430       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20431       t loop
20432       s,-$,,
20433       s,^['$as_cr_digits']*\n,,
20434     ' >$as_me.lineno &&
20435   chmod +x $as_me.lineno ||
20436     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20437 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20438    { (exit 1); exit 1; }; }
20439
20440   # Don't try to exec as it changes $[0], causing all sort of problems
20441   # (the dirname of $[0] is not the place where we might find the
20442   # original and so on.  Autoconf is especially sensible to this).
20443   . ./$as_me.lineno
20444   # Exit status is that of the last command.
20445   exit
20446 }
20447
20448
20449 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20450   *c*,-n*) ECHO_N= ECHO_C='
20451 ' ECHO_T='      ' ;;
20452   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20453   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20454 esac
20455
20456 if expr a : '\(a\)' >/dev/null 2>&1; then
20457   as_expr=expr
20458 else
20459   as_expr=false
20460 fi
20461
20462 rm -f conf$$ conf$$.exe conf$$.file
20463 echo >conf$$.file
20464 if ln -s conf$$.file conf$$ 2>/dev/null; then
20465   # We could just check for DJGPP; but this test a) works b) is more generic
20466   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20467   if test -f conf$$.exe; then
20468     # Don't use ln at all; we don't have any links
20469     as_ln_s='cp -p'
20470   else
20471     as_ln_s='ln -s'
20472   fi
20473 elif ln conf$$.file conf$$ 2>/dev/null; then
20474   as_ln_s=ln
20475 else
20476   as_ln_s='cp -p'
20477 fi
20478 rm -f conf$$ conf$$.exe conf$$.file
20479
20480 if mkdir -p . 2>/dev/null; then
20481   as_mkdir_p=:
20482 else
20483   test -d ./-p && rmdir ./-p
20484   as_mkdir_p=false
20485 fi
20486
20487 as_executable_p="test -f"
20488
20489 # Sed expression to map a string onto a valid CPP name.
20490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20491
20492 # Sed expression to map a string onto a valid variable name.
20493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20494
20495
20496 # IFS
20497 # We need space, tab and new line, in precisely that order.
20498 as_nl='
20499 '
20500 IFS="   $as_nl"
20501
20502 # CDPATH.
20503 $as_unset CDPATH
20504
20505 exec 6>&1
20506
20507 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20508 # report actual input values of CONFIG_FILES etc. instead of their
20509 # values after options handling.  Logging --version etc. is OK.
20510 exec 5>>config.log
20511 {
20512   echo
20513   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20514 ## Running $as_me. ##
20515 _ASBOX
20516 } >&5
20517 cat >&5 <<_CSEOF
20518
20519 This file was extended by Wine $as_me 20040914, which was
20520 generated by GNU Autoconf 2.59.  Invocation command line was
20521
20522   CONFIG_FILES    = $CONFIG_FILES
20523   CONFIG_HEADERS  = $CONFIG_HEADERS
20524   CONFIG_LINKS    = $CONFIG_LINKS
20525   CONFIG_COMMANDS = $CONFIG_COMMANDS
20526   $ $0 $@
20527
20528 _CSEOF
20529 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20530 echo >&5
20531 _ACEOF
20532
20533 # Files that config.status was made for.
20534 if test -n "$ac_config_files"; then
20535   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20536 fi
20537
20538 if test -n "$ac_config_headers"; then
20539   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20540 fi
20541
20542 if test -n "$ac_config_links"; then
20543   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20544 fi
20545
20546 if test -n "$ac_config_commands"; then
20547   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20548 fi
20549
20550 cat >>$CONFIG_STATUS <<\_ACEOF
20551
20552 ac_cs_usage="\
20553 \`$as_me' instantiates files from templates according to the
20554 current configuration.
20555
20556 Usage: $0 [OPTIONS] [FILE]...
20557
20558   -h, --help       print this help, then exit
20559   -V, --version    print version number, then exit
20560   -q, --quiet      do not print progress messages
20561   -d, --debug      don't remove temporary files
20562       --recheck    update $as_me by reconfiguring in the same conditions
20563   --file=FILE[:TEMPLATE]
20564                    instantiate the configuration file FILE
20565   --header=FILE[:TEMPLATE]
20566                    instantiate the configuration header FILE
20567
20568 Configuration files:
20569 $config_files
20570
20571 Configuration headers:
20572 $config_headers
20573
20574 Configuration commands:
20575 $config_commands
20576
20577 Report bugs to <bug-autoconf@gnu.org>."
20578 _ACEOF
20579
20580 cat >>$CONFIG_STATUS <<_ACEOF
20581 ac_cs_version="\\
20582 Wine config.status 20040914
20583 configured by $0, generated by GNU Autoconf 2.59,
20584   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20585
20586 Copyright (C) 2003 Free Software Foundation, Inc.
20587 This config.status script is free software; the Free Software Foundation
20588 gives unlimited permission to copy, distribute and modify it."
20589 srcdir=$srcdir
20590 INSTALL="$INSTALL"
20591 _ACEOF
20592
20593 cat >>$CONFIG_STATUS <<\_ACEOF
20594 # If no file are specified by the user, then we need to provide default
20595 # value.  By we need to know if files were specified by the user.
20596 ac_need_defaults=:
20597 while test $# != 0
20598 do
20599   case $1 in
20600   --*=*)
20601     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20602     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20603     ac_shift=:
20604     ;;
20605   -*)
20606     ac_option=$1
20607     ac_optarg=$2
20608     ac_shift=shift
20609     ;;
20610   *) # This is not an option, so the user has probably given explicit
20611      # arguments.
20612      ac_option=$1
20613      ac_need_defaults=false;;
20614   esac
20615
20616   case $ac_option in
20617   # Handling of the options.
20618 _ACEOF
20619 cat >>$CONFIG_STATUS <<\_ACEOF
20620   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20621     ac_cs_recheck=: ;;
20622   --version | --vers* | -V )
20623     echo "$ac_cs_version"; exit 0 ;;
20624   --he | --h)
20625     # Conflict between --help and --header
20626     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20627 Try \`$0 --help' for more information." >&5
20628 echo "$as_me: error: ambiguous option: $1
20629 Try \`$0 --help' for more information." >&2;}
20630    { (exit 1); exit 1; }; };;
20631   --help | --hel | -h )
20632     echo "$ac_cs_usage"; exit 0 ;;
20633   --debug | --d* | -d )
20634     debug=: ;;
20635   --file | --fil | --fi | --f )
20636     $ac_shift
20637     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20638     ac_need_defaults=false;;
20639   --header | --heade | --head | --hea )
20640     $ac_shift
20641     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20642     ac_need_defaults=false;;
20643   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20644   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20645     ac_cs_silent=: ;;
20646
20647   # This is an error.
20648   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20649 Try \`$0 --help' for more information." >&5
20650 echo "$as_me: error: unrecognized option: $1
20651 Try \`$0 --help' for more information." >&2;}
20652    { (exit 1); exit 1; }; } ;;
20653
20654   *) ac_config_targets="$ac_config_targets $1" ;;
20655
20656   esac
20657   shift
20658 done
20659
20660 ac_configure_extra_args=
20661
20662 if $ac_cs_silent; then
20663   exec 6>/dev/null
20664   ac_configure_extra_args="$ac_configure_extra_args --silent"
20665 fi
20666
20667 _ACEOF
20668 cat >>$CONFIG_STATUS <<_ACEOF
20669 if \$ac_cs_recheck; then
20670   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20671   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20672 fi
20673
20674 _ACEOF
20675
20676
20677
20678
20679
20680 cat >>$CONFIG_STATUS <<\_ACEOF
20681 for ac_config_target in $ac_config_targets
20682 do
20683   case "$ac_config_target" in
20684   # Handling of arguments.
20685   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20686   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20687   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20688   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20689   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20690   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20691   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20692   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20693   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20694   "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20695   "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20696   "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20697   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20698   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20699   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20700   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20701   "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20702   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20703   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20704   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20705   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20706   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20707   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20708   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20709   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20710   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20711   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20712   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20713   "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20714   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20715   "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20716   "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20717   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20718   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20719   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20720   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20721   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20722   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20723   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20724   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20725   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20726   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20727   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20728   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20729   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20730   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20731   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20732   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20733   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20734   "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20735   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20736   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20737   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20738   "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20739   "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20740   "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20741   "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20742   "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20743   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20744   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20745   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20746   "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20747   "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20748   "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20749   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20750   "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20751   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20752   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20753   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20754   "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20755   "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20756   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20757   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20758   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20759   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20760   "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20761   "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20762   "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20763   "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20764   "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20765   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20766   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20767   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20768   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20769   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20770   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20771   "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20772   "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20773   "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20774   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20775   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20776   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20777   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20778   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20779   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20780   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20781   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20782   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20783   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20784   "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20785   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20786   "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20787   "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20788   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20789   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20790   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20791   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20792   "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20793   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20794   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20795   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20796   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20797   "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20798   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20799   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20800   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20801   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20802   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20803   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20804   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20805   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20806   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20807   "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20808   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20809   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20810   "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20811   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20812   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20813   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20814   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20815   "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20816   "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20817   "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20818   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20819   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20820   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20821   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20822   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20823   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20824   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20825   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20826   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20827   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20828   "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20829   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20830   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20831   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20832   "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20833   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20834   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20835   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20836   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20837   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20838   "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20839   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20840   "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20841   "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20842   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20843   "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20844   "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20845   "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20846   "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20847   "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20848   "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20849   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20850   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20851   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20852   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20853   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20854   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20855   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20856   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20857   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20858   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20859   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20860   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20861   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20862   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20863   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20864   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20865   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20866   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20867   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20868   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20869   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20870   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20871   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20872   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20873   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20874   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20875   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20876   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20877   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20878   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20879   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20880   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20881   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20882   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20883   "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20884   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20885   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20886   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20887   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20888   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20889   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20890   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20891   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20892   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20893   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20894   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20895   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20896   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20897   "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20898   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20899   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20900   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20901   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20902   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20903   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20904   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20905   "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20906   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20907   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20908   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20909   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20910   "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20911   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20912   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20913   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20914   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20915   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20916   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20917   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20918   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20919   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20920   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20921   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20922   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20923   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20924   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20925   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20926   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20927   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20928   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20929   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20930   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20931   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20932   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20933   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20934   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20935   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20936   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20937   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20938   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20939   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20940   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20941   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20942   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20943   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20944   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20945   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20946   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20947   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20948   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20949 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20950    { (exit 1); exit 1; }; };;
20951   esac
20952 done
20953
20954 # If the user did not use the arguments to specify the items to instantiate,
20955 # then the envvar interface is used.  Set only those that are not.
20956 # We use the long form for the default assignment because of an extremely
20957 # bizarre bug on SunOS 4.1.3.
20958 if $ac_need_defaults; then
20959   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20960   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20961   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20962 fi
20963
20964 # Have a temporary directory for convenience.  Make it in the build tree
20965 # simply because there is no reason to put it here, and in addition,
20966 # creating and moving files from /tmp can sometimes cause problems.
20967 # Create a temporary directory, and hook for its removal unless debugging.
20968 $debug ||
20969 {
20970   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20971   trap '{ (exit 1); exit 1; }' 1 2 13 15
20972 }
20973
20974 # Create a (secure) tmp directory for tmp files.
20975
20976 {
20977   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20978   test -n "$tmp" && test -d "$tmp"
20979 }  ||
20980 {
20981   tmp=./confstat$$-$RANDOM
20982   (umask 077 && mkdir $tmp)
20983 } ||
20984 {
20985    echo "$me: cannot create a temporary directory in ." >&2
20986    { (exit 1); exit 1; }
20987 }
20988
20989 _ACEOF
20990
20991 cat >>$CONFIG_STATUS <<_ACEOF
20992
20993 #
20994 # CONFIG_FILES section.
20995 #
20996
20997 # No need to generate the scripts if there are no CONFIG_FILES.
20998 # This happens for instance when ./config.status config.h
20999 if test -n "\$CONFIG_FILES"; then
21000   # Protect against being on the right side of a sed subst in config.status.
21001   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21002    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21003 s,@SHELL@,$SHELL,;t t
21004 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21005 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21006 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21007 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21008 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21009 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21010 s,@exec_prefix@,$exec_prefix,;t t
21011 s,@prefix@,$prefix,;t t
21012 s,@program_transform_name@,$program_transform_name,;t t
21013 s,@bindir@,$bindir,;t t
21014 s,@sbindir@,$sbindir,;t t
21015 s,@libexecdir@,$libexecdir,;t t
21016 s,@datadir@,$datadir,;t t
21017 s,@sysconfdir@,$sysconfdir,;t t
21018 s,@sharedstatedir@,$sharedstatedir,;t t
21019 s,@localstatedir@,$localstatedir,;t t
21020 s,@libdir@,$libdir,;t t
21021 s,@includedir@,$includedir,;t t
21022 s,@oldincludedir@,$oldincludedir,;t t
21023 s,@infodir@,$infodir,;t t
21024 s,@mandir@,$mandir,;t t
21025 s,@build_alias@,$build_alias,;t t
21026 s,@host_alias@,$host_alias,;t t
21027 s,@target_alias@,$target_alias,;t t
21028 s,@DEFS@,$DEFS,;t t
21029 s,@ECHO_C@,$ECHO_C,;t t
21030 s,@ECHO_N@,$ECHO_N,;t t
21031 s,@ECHO_T@,$ECHO_T,;t t
21032 s,@LIBS@,$LIBS,;t t
21033 s,@WIN16_FILES@,$WIN16_FILES,;t t
21034 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
21035 s,@DLLDEFS@,$DLLDEFS,;t t
21036 s,@build@,$build,;t t
21037 s,@build_cpu@,$build_cpu,;t t
21038 s,@build_vendor@,$build_vendor,;t t
21039 s,@build_os@,$build_os,;t t
21040 s,@host@,$host,;t t
21041 s,@host_cpu@,$host_cpu,;t t
21042 s,@host_vendor@,$host_vendor,;t t
21043 s,@host_os@,$host_os,;t t
21044 s,@SET_MAKE@,$SET_MAKE,;t t
21045 s,@CC@,$CC,;t t
21046 s,@CFLAGS@,$CFLAGS,;t t
21047 s,@LDFLAGS@,$LDFLAGS,;t t
21048 s,@CPPFLAGS@,$CPPFLAGS,;t t
21049 s,@ac_ct_CC@,$ac_ct_CC,;t t
21050 s,@EXEEXT@,$EXEEXT,;t t
21051 s,@OBJEXT@,$OBJEXT,;t t
21052 s,@CXX@,$CXX,;t t
21053 s,@CXXFLAGS@,$CXXFLAGS,;t t
21054 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21055 s,@CPPBIN@,$CPPBIN,;t t
21056 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
21057 s,@TOOLSDIR@,$TOOLSDIR,;t t
21058 s,@CPP@,$CPP,;t t
21059 s,@X_CFLAGS@,$X_CFLAGS,;t t
21060 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21061 s,@X_LIBS@,$X_LIBS,;t t
21062 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21063 s,@LEX@,$LEX,;t t
21064 s,@LEXLIB@,$LEXLIB,;t t
21065 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
21066 s,@XLEX@,$XLEX,;t t
21067 s,@BISON@,$BISON,;t t
21068 s,@AS@,$AS,;t t
21069 s,@ac_ct_AS@,$ac_ct_AS,;t t
21070 s,@LD@,$LD,;t t
21071 s,@ac_ct_LD@,$ac_ct_LD,;t t
21072 s,@AR@,$AR,;t t
21073 s,@ac_ct_AR@,$ac_ct_AR,;t t
21074 s,@RANLIB@,$RANLIB,;t t
21075 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21076 s,@STRIP@,$STRIP,;t t
21077 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21078 s,@WINDRES@,$WINDRES,;t t
21079 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21080 s,@LN_S@,$LN_S,;t t
21081 s,@LN@,$LN,;t t
21082 s,@EGREP@,$EGREP,;t t
21083 s,@LDCONFIG@,$LDCONFIG,;t t
21084 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21085 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21086 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21087 s,@LINT@,$LINT,;t t
21088 s,@LINTFLAGS@,$LINTFLAGS,;t t
21089 s,@DB2HTML@,$DB2HTML,;t t
21090 s,@DB2PDF@,$DB2PDF,;t t
21091 s,@DB2PS@,$DB2PS,;t t
21092 s,@DB2TXT@,$DB2TXT,;t t
21093 s,@FONTFORGE@,$FONTFORGE,;t t
21094 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
21095 s,@XLIB@,$XLIB,;t t
21096 s,@XFILES@,$XFILES,;t t
21097 s,@OPENGLFILES@,$OPENGLFILES,;t t
21098 s,@GLU32FILES@,$GLU32FILES,;t t
21099 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
21100 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21101 s,@GLUT32FILES@,$GLUT32FILES,;t t
21102 s,@NASLIBS@,$NASLIBS,;t t
21103 s,@CURSESLIBS@,$CURSESLIBS,;t t
21104 s,@sane_devel@,$sane_devel,;t t
21105 s,@SANELIBS@,$SANELIBS,;t t
21106 s,@SANEINCL@,$SANEINCL,;t t
21107 s,@ICULIBS@,$ICULIBS,;t t
21108 s,@ft_devel@,$ft_devel,;t t
21109 s,@ft_devel2@,$ft_devel2,;t t
21110 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
21111 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21112 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
21113 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21114 s,@ARTSLIBS@,$ARTSLIBS,;t t
21115 s,@ARTSINCL@,$ARTSINCL,;t t
21116 s,@ALSALIBS@,$ALSALIBS,;t t
21117 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21118 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
21119 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21120 s,@DLLEXT@,$DLLEXT,;t t
21121 s,@DLLFLAGS@,$DLLFLAGS,;t t
21122 s,@DLLIBS@,$DLLIBS,;t t
21123 s,@LDSHARED@,$LDSHARED,;t t
21124 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21125 s,@LIBEXT@,$LIBEXT,;t t
21126 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21127 s,@DLLTOOL@,$DLLTOOL,;t t
21128 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21129 s,@DLLWRAP@,$DLLWRAP,;t t
21130 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21131 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21132 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
21133 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21134 s,@IOKITLIB@,$IOKITLIB,;t t
21135 s,@CROSSTEST@,$CROSSTEST,;t t
21136 s,@CROSSCC@,$CROSSCC,;t t
21137 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21138 s,@LDPATH@,$LDPATH,;t t
21139 s,@CRTLIBS@,$CRTLIBS,;t t
21140 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
21141 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21142 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21143 s,@LDD@,$LDD,;t t
21144 s,@ALLOCA@,$ALLOCA,;t t
21145 s,@LIBOBJS@,$LIBOBJS,;t t
21146 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21147 /@MAKE_RULES@/r $MAKE_RULES
21148 s,@MAKE_RULES@,,;t t
21149 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21150 s,@MAKE_DLL_RULES@,,;t t
21151 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21152 s,@MAKE_TEST_RULES@,,;t t
21153 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21154 s,@MAKE_LIB_RULES@,,;t t
21155 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21156 s,@MAKE_PROG_RULES@,,;t t
21157 CEOF
21158
21159 _ACEOF
21160
21161   cat >>$CONFIG_STATUS <<\_ACEOF
21162   # Split the substitutions into bite-sized pieces for seds with
21163   # small command number limits, like on Digital OSF/1 and HP-UX.
21164   ac_max_sed_lines=48
21165   ac_sed_frag=1 # Number of current file.
21166   ac_beg=1 # First line for current file.
21167   ac_end=$ac_max_sed_lines # Line after last line for current file.
21168   ac_more_lines=:
21169   ac_sed_cmds=
21170   while $ac_more_lines; do
21171     if test $ac_beg -gt 1; then
21172       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21173     else
21174       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21175     fi
21176     if test ! -s $tmp/subs.frag; then
21177       ac_more_lines=false
21178     else
21179       # The purpose of the label and of the branching condition is to
21180       # speed up the sed processing (if there are no `@' at all, there
21181       # is no need to browse any of the substitutions).
21182       # These are the two extra sed commands mentioned above.
21183       (echo ':t
21184   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21185       if test -z "$ac_sed_cmds"; then
21186         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21187       else
21188         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21189       fi
21190       ac_sed_frag=`expr $ac_sed_frag + 1`
21191       ac_beg=$ac_end
21192       ac_end=`expr $ac_end + $ac_max_sed_lines`
21193     fi
21194   done
21195   if test -z "$ac_sed_cmds"; then
21196     ac_sed_cmds=cat
21197   fi
21198 fi # test -n "$CONFIG_FILES"
21199
21200 _ACEOF
21201 cat >>$CONFIG_STATUS <<\_ACEOF
21202 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21203   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21204   case $ac_file in
21205   - | *:- | *:-:* ) # input from stdin
21206         cat >$tmp/stdin
21207         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21208         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21209   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21210         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21211   * )   ac_file_in=$ac_file.in ;;
21212   esac
21213
21214   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21215   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21216 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21217          X"$ac_file" : 'X\(//\)[^/]' \| \
21218          X"$ac_file" : 'X\(//\)$' \| \
21219          X"$ac_file" : 'X\(/\)' \| \
21220          .     : '\(.\)' 2>/dev/null ||
21221 echo X"$ac_file" |
21222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21224           /^X\(\/\/\)$/{ s//\1/; q; }
21225           /^X\(\/\).*/{ s//\1/; q; }
21226           s/.*/./; q'`
21227   { if $as_mkdir_p; then
21228     mkdir -p "$ac_dir"
21229   else
21230     as_dir="$ac_dir"
21231     as_dirs=
21232     while test ! -d "$as_dir"; do
21233       as_dirs="$as_dir $as_dirs"
21234       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21236          X"$as_dir" : 'X\(//\)[^/]' \| \
21237          X"$as_dir" : 'X\(//\)$' \| \
21238          X"$as_dir" : 'X\(/\)' \| \
21239          .     : '\(.\)' 2>/dev/null ||
21240 echo X"$as_dir" |
21241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21242           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21243           /^X\(\/\/\)$/{ s//\1/; q; }
21244           /^X\(\/\).*/{ s//\1/; q; }
21245           s/.*/./; q'`
21246     done
21247     test ! -n "$as_dirs" || mkdir $as_dirs
21248   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21249 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21250    { (exit 1); exit 1; }; }; }
21251
21252   ac_builddir=.
21253
21254 if test "$ac_dir" != .; then
21255   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21256   # A "../" for each directory in $ac_dir_suffix.
21257   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21258 else
21259   ac_dir_suffix= ac_top_builddir=
21260 fi
21261
21262 case $srcdir in
21263   .)  # No --srcdir option.  We are building in place.
21264     ac_srcdir=.
21265     if test -z "$ac_top_builddir"; then
21266        ac_top_srcdir=.
21267     else
21268        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21269     fi ;;
21270   [\\/]* | ?:[\\/]* )  # Absolute path.
21271     ac_srcdir=$srcdir$ac_dir_suffix;
21272     ac_top_srcdir=$srcdir ;;
21273   *) # Relative path.
21274     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21275     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21276 esac
21277
21278 # Do not use `cd foo && pwd` to compute absolute paths, because
21279 # the directories may not exist.
21280 case `pwd` in
21281 .) ac_abs_builddir="$ac_dir";;
21282 *)
21283   case "$ac_dir" in
21284   .) ac_abs_builddir=`pwd`;;
21285   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21286   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21287   esac;;
21288 esac
21289 case $ac_abs_builddir in
21290 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21291 *)
21292   case ${ac_top_builddir}. in
21293   .) ac_abs_top_builddir=$ac_abs_builddir;;
21294   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21295   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21296   esac;;
21297 esac
21298 case $ac_abs_builddir in
21299 .) ac_abs_srcdir=$ac_srcdir;;
21300 *)
21301   case $ac_srcdir in
21302   .) ac_abs_srcdir=$ac_abs_builddir;;
21303   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21304   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21305   esac;;
21306 esac
21307 case $ac_abs_builddir in
21308 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21309 *)
21310   case $ac_top_srcdir in
21311   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21312   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21313   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21314   esac;;
21315 esac
21316
21317
21318   case $INSTALL in
21319   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21320   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21321   esac
21322
21323   # Let's still pretend it is `configure' which instantiates (i.e., don't
21324   # use $as_me), people would be surprised to read:
21325   #    /* config.h.  Generated by config.status.  */
21326   if test x"$ac_file" = x-; then
21327     configure_input=
21328   else
21329     configure_input="$ac_file.  "
21330   fi
21331   configure_input=$configure_input"Generated from `echo $ac_file_in |
21332                                      sed 's,.*/,,'` by configure."
21333
21334   # First look for the input files in the build tree, otherwise in the
21335   # src tree.
21336   ac_file_inputs=`IFS=:
21337     for f in $ac_file_in; do
21338       case $f in
21339       -) echo $tmp/stdin ;;
21340       [\\/$]*)
21341          # Absolute (can't be DOS-style, as IFS=:)
21342          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21343 echo "$as_me: error: cannot find input file: $f" >&2;}
21344    { (exit 1); exit 1; }; }
21345          echo "$f";;
21346       *) # Relative
21347          if test -f "$f"; then
21348            # Build tree
21349            echo "$f"
21350          elif test -f "$srcdir/$f"; then
21351            # Source tree
21352            echo "$srcdir/$f"
21353          else
21354            # /dev/null tree
21355            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21356 echo "$as_me: error: cannot find input file: $f" >&2;}
21357    { (exit 1); exit 1; }; }
21358          fi;;
21359       esac
21360     done` || { (exit 1); exit 1; }
21361
21362   if test x"$ac_file" != x-; then
21363     { echo "$as_me:$LINENO: creating $ac_file" >&5
21364 echo "$as_me: creating $ac_file" >&6;}
21365     rm -f "$ac_file"
21366   fi
21367 _ACEOF
21368 cat >>$CONFIG_STATUS <<_ACEOF
21369   sed "$ac_vpsub
21370 $extrasub
21371 _ACEOF
21372 cat >>$CONFIG_STATUS <<\_ACEOF
21373 :t
21374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21375 s,@configure_input@,$configure_input,;t t
21376 s,@srcdir@,$ac_srcdir,;t t
21377 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21378 s,@top_srcdir@,$ac_top_srcdir,;t t
21379 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21380 s,@builddir@,$ac_builddir,;t t
21381 s,@abs_builddir@,$ac_abs_builddir,;t t
21382 s,@top_builddir@,$ac_top_builddir,;t t
21383 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21384 s,@INSTALL@,$ac_INSTALL,;t t
21385 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21386   rm -f $tmp/stdin
21387   if test x"$ac_file" != x-; then
21388     mv $tmp/out $ac_file
21389   else
21390     cat $tmp/out
21391     rm -f $tmp/out
21392   fi
21393
21394 done
21395 _ACEOF
21396 cat >>$CONFIG_STATUS <<\_ACEOF
21397
21398 #
21399 # CONFIG_HEADER section.
21400 #
21401
21402 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21403 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21404 #
21405 # ac_d sets the value in "#define NAME VALUE" lines.
21406 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21407 ac_dB='[         ].*$,\1#\2'
21408 ac_dC=' '
21409 ac_dD=',;t'
21410 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21411 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21412 ac_uB='$,\1#\2define\3'
21413 ac_uC=' '
21414 ac_uD=',;t'
21415
21416 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21417   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21418   case $ac_file in
21419   - | *:- | *:-:* ) # input from stdin
21420         cat >$tmp/stdin
21421         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21422         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21423   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21424         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21425   * )   ac_file_in=$ac_file.in ;;
21426   esac
21427
21428   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21429 echo "$as_me: creating $ac_file" >&6;}
21430
21431   # First look for the input files in the build tree, otherwise in the
21432   # src tree.
21433   ac_file_inputs=`IFS=:
21434     for f in $ac_file_in; do
21435       case $f in
21436       -) echo $tmp/stdin ;;
21437       [\\/$]*)
21438          # Absolute (can't be DOS-style, as IFS=:)
21439          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21440 echo "$as_me: error: cannot find input file: $f" >&2;}
21441    { (exit 1); exit 1; }; }
21442          # Do quote $f, to prevent DOS paths from being IFS'd.
21443          echo "$f";;
21444       *) # Relative
21445          if test -f "$f"; then
21446            # Build tree
21447            echo "$f"
21448          elif test -f "$srcdir/$f"; then
21449            # Source tree
21450            echo "$srcdir/$f"
21451          else
21452            # /dev/null tree
21453            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21454 echo "$as_me: error: cannot find input file: $f" >&2;}
21455    { (exit 1); exit 1; }; }
21456          fi;;
21457       esac
21458     done` || { (exit 1); exit 1; }
21459   # Remove the trailing spaces.
21460   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21461
21462 _ACEOF
21463
21464 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21465 # `conftest.undefs', that substitutes the proper values into
21466 # config.h.in to produce config.h.  The first handles `#define'
21467 # templates, and the second `#undef' templates.
21468 # And first: Protect against being on the right side of a sed subst in
21469 # config.status.  Protect against being in an unquoted here document
21470 # in config.status.
21471 rm -f conftest.defines conftest.undefs
21472 # Using a here document instead of a string reduces the quoting nightmare.
21473 # Putting comments in sed scripts is not portable.
21474 #
21475 # `end' is used to avoid that the second main sed command (meant for
21476 # 0-ary CPP macros) applies to n-ary macro definitions.
21477 # See the Autoconf documentation for `clear'.
21478 cat >confdef2sed.sed <<\_ACEOF
21479 s/[\\&,]/\\&/g
21480 s,[\\$`],\\&,g
21481 t clear
21482 : clear
21483 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21484 t end
21485 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21486 : end
21487 _ACEOF
21488 # If some macros were called several times there might be several times
21489 # the same #defines, which is useless.  Nevertheless, we may not want to
21490 # sort them, since we want the *last* AC-DEFINE to be honored.
21491 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21492 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21493 rm -f confdef2sed.sed
21494
21495 # This sed command replaces #undef with comments.  This is necessary, for
21496 # example, in the case of _POSIX_SOURCE, which is predefined and required
21497 # on some systems where configure will not decide to define it.
21498 cat >>conftest.undefs <<\_ACEOF
21499 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21500 _ACEOF
21501
21502 # Break up conftest.defines because some shells have a limit on the size
21503 # of here documents, and old seds have small limits too (100 cmds).
21504 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21505 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21506 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21507 echo '  :' >>$CONFIG_STATUS
21508 rm -f conftest.tail
21509 while grep . conftest.defines >/dev/null
21510 do
21511   # Write a limited-size here document to $tmp/defines.sed.
21512   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21513   # Speed up: don't consider the non `#define' lines.
21514   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21515   # Work around the forget-to-reset-the-flag bug.
21516   echo 't clr' >>$CONFIG_STATUS
21517   echo ': clr' >>$CONFIG_STATUS
21518   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21519   echo 'CEOF
21520   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21521   rm -f $tmp/in
21522   mv $tmp/out $tmp/in
21523 ' >>$CONFIG_STATUS
21524   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21525   rm -f conftest.defines
21526   mv conftest.tail conftest.defines
21527 done
21528 rm -f conftest.defines
21529 echo '  fi # grep' >>$CONFIG_STATUS
21530 echo >>$CONFIG_STATUS
21531
21532 # Break up conftest.undefs because some shells have a limit on the size
21533 # of here documents, and old seds have small limits too (100 cmds).
21534 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21535 rm -f conftest.tail
21536 while grep . conftest.undefs >/dev/null
21537 do
21538   # Write a limited-size here document to $tmp/undefs.sed.
21539   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21540   # Speed up: don't consider the non `#undef'
21541   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21542   # Work around the forget-to-reset-the-flag bug.
21543   echo 't clr' >>$CONFIG_STATUS
21544   echo ': clr' >>$CONFIG_STATUS
21545   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21546   echo 'CEOF
21547   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21548   rm -f $tmp/in
21549   mv $tmp/out $tmp/in
21550 ' >>$CONFIG_STATUS
21551   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21552   rm -f conftest.undefs
21553   mv conftest.tail conftest.undefs
21554 done
21555 rm -f conftest.undefs
21556
21557 cat >>$CONFIG_STATUS <<\_ACEOF
21558   # Let's still pretend it is `configure' which instantiates (i.e., don't
21559   # use $as_me), people would be surprised to read:
21560   #    /* config.h.  Generated by config.status.  */
21561   if test x"$ac_file" = x-; then
21562     echo "/* Generated by configure.  */" >$tmp/config.h
21563   else
21564     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21565   fi
21566   cat $tmp/in >>$tmp/config.h
21567   rm -f $tmp/in
21568   if test x"$ac_file" != x-; then
21569     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21570       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21571 echo "$as_me: $ac_file is unchanged" >&6;}
21572     else
21573       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21575          X"$ac_file" : 'X\(//\)[^/]' \| \
21576          X"$ac_file" : 'X\(//\)$' \| \
21577          X"$ac_file" : 'X\(/\)' \| \
21578          .     : '\(.\)' 2>/dev/null ||
21579 echo X"$ac_file" |
21580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21581           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21582           /^X\(\/\/\)$/{ s//\1/; q; }
21583           /^X\(\/\).*/{ s//\1/; q; }
21584           s/.*/./; q'`
21585       { if $as_mkdir_p; then
21586     mkdir -p "$ac_dir"
21587   else
21588     as_dir="$ac_dir"
21589     as_dirs=
21590     while test ! -d "$as_dir"; do
21591       as_dirs="$as_dir $as_dirs"
21592       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21594          X"$as_dir" : 'X\(//\)[^/]' \| \
21595          X"$as_dir" : 'X\(//\)$' \| \
21596          X"$as_dir" : 'X\(/\)' \| \
21597          .     : '\(.\)' 2>/dev/null ||
21598 echo X"$as_dir" |
21599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21600           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21601           /^X\(\/\/\)$/{ s//\1/; q; }
21602           /^X\(\/\).*/{ s//\1/; q; }
21603           s/.*/./; q'`
21604     done
21605     test ! -n "$as_dirs" || mkdir $as_dirs
21606   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21607 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21608    { (exit 1); exit 1; }; }; }
21609
21610       rm -f $ac_file
21611       mv $tmp/config.h $ac_file
21612     fi
21613   else
21614     cat $tmp/config.h
21615     rm -f $tmp/config.h
21616   fi
21617 done
21618 _ACEOF
21619 cat >>$CONFIG_STATUS <<\_ACEOF
21620
21621 #
21622 # CONFIG_COMMANDS section.
21623 #
21624 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21625   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21626   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21627   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21628 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21629          X"$ac_dest" : 'X\(//\)[^/]' \| \
21630          X"$ac_dest" : 'X\(//\)$' \| \
21631          X"$ac_dest" : 'X\(/\)' \| \
21632          .     : '\(.\)' 2>/dev/null ||
21633 echo X"$ac_dest" |
21634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21636           /^X\(\/\/\)$/{ s//\1/; q; }
21637           /^X\(\/\).*/{ s//\1/; q; }
21638           s/.*/./; q'`
21639   { if $as_mkdir_p; then
21640     mkdir -p "$ac_dir"
21641   else
21642     as_dir="$ac_dir"
21643     as_dirs=
21644     while test ! -d "$as_dir"; do
21645       as_dirs="$as_dir $as_dirs"
21646       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21648          X"$as_dir" : 'X\(//\)[^/]' \| \
21649          X"$as_dir" : 'X\(//\)$' \| \
21650          X"$as_dir" : 'X\(/\)' \| \
21651          .     : '\(.\)' 2>/dev/null ||
21652 echo X"$as_dir" |
21653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21655           /^X\(\/\/\)$/{ s//\1/; q; }
21656           /^X\(\/\).*/{ s//\1/; q; }
21657           s/.*/./; q'`
21658     done
21659     test ! -n "$as_dirs" || mkdir $as_dirs
21660   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21661 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21662    { (exit 1); exit 1; }; }; }
21663
21664   ac_builddir=.
21665
21666 if test "$ac_dir" != .; then
21667   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21668   # A "../" for each directory in $ac_dir_suffix.
21669   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21670 else
21671   ac_dir_suffix= ac_top_builddir=
21672 fi
21673
21674 case $srcdir in
21675   .)  # No --srcdir option.  We are building in place.
21676     ac_srcdir=.
21677     if test -z "$ac_top_builddir"; then
21678        ac_top_srcdir=.
21679     else
21680        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21681     fi ;;
21682   [\\/]* | ?:[\\/]* )  # Absolute path.
21683     ac_srcdir=$srcdir$ac_dir_suffix;
21684     ac_top_srcdir=$srcdir ;;
21685   *) # Relative path.
21686     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21687     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21688 esac
21689
21690 # Do not use `cd foo && pwd` to compute absolute paths, because
21691 # the directories may not exist.
21692 case `pwd` in
21693 .) ac_abs_builddir="$ac_dir";;
21694 *)
21695   case "$ac_dir" in
21696   .) ac_abs_builddir=`pwd`;;
21697   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21698   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21699   esac;;
21700 esac
21701 case $ac_abs_builddir in
21702 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21703 *)
21704   case ${ac_top_builddir}. in
21705   .) ac_abs_top_builddir=$ac_abs_builddir;;
21706   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21707   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21708   esac;;
21709 esac
21710 case $ac_abs_builddir in
21711 .) ac_abs_srcdir=$ac_srcdir;;
21712 *)
21713   case $ac_srcdir in
21714   .) ac_abs_srcdir=$ac_abs_builddir;;
21715   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21716   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21717   esac;;
21718 esac
21719 case $ac_abs_builddir in
21720 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21721 *)
21722   case $ac_top_srcdir in
21723   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21724   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21725   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21726   esac;;
21727 esac
21728
21729
21730   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21731 echo "$as_me: executing $ac_dest commands" >&6;}
21732   case $ac_dest in
21733     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21734 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21735     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21736 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21737     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21738 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21739     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21740 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21741     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21742 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21743     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21744 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21745     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21746 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21747     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21748 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21749     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21750 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21751     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21752 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21753     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21754 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21755     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21756 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21757     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21758 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21759     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21760 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21761     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21762 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21763     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21764 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21765   esac
21766 done
21767 _ACEOF
21768
21769 cat >>$CONFIG_STATUS <<\_ACEOF
21770
21771 { (exit 0); exit 0; }
21772 _ACEOF
21773 chmod +x $CONFIG_STATUS
21774 ac_clean_files=$ac_clean_files_save
21775
21776
21777 # configure is writing to config.log, and then calls config.status.
21778 # config.status does its own redirection, appending to config.log.
21779 # Unfortunately, on DOS this fails, as config.log is still kept open
21780 # by configure, so config.status won't be able to write to it; its
21781 # output is simply discarded.  So we exec the FD to /dev/null,
21782 # effectively closing config.log, so it can be properly (re)opened and
21783 # appended to by config.status.  When coming back to configure, we
21784 # need to make the FD available again.
21785 if test "$no_create" != yes; then
21786   ac_cs_success=:
21787   ac_config_status_args=
21788   test "$silent" = yes &&
21789     ac_config_status_args="$ac_config_status_args --quiet"
21790   exec 5>/dev/null
21791   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21792   exec 5>>config.log
21793   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21794   # would make configure fail if this is the last instruction.
21795   $ac_cs_success || { (exit 1); exit 1; }
21796 fi
21797
21798
21799 if test "$have_x" = "no"
21800 then
21801   echo
21802   echo "*** Warning: X development files not found. Wine will be built without"
21803   echo "*** X support, which currently does not work, and would probably not be"
21804   echo "*** what you want anyway. You will need to install devel packages of"
21805   echo "*** Xlib/Xfree86 at the very least."
21806 fi
21807
21808 if test "$wine_cv_opengl_version_OK" = "no"
21809 then
21810   echo
21811   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21812   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21813 fi
21814
21815 if test "$wine_cv_msg_freetype" = "yes"
21816 then
21817   echo
21818   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21819   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21820   echo "*** freetype-devel package (or its equivalent on your distribution) to"
21821   echo "*** enable Wine to use TrueType fonts."
21822 fi
21823
21824 echo
21825 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
21826 echo
21827