Test some more ntdll types.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040813.
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='20040813'
273 PACKAGE_STRING='Wine 20040813'
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 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 20040813 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 20040813:";;
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
867 Optional Packages:
868   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870   --without-opengl        do not use OpenGL
871   --without-curses        do not use curses
872   --with-wine-tools=<dir> use Wine tools from directory <dir>
873   --with-x                use the X Window System
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CXX         C++ compiler command
883   CXXFLAGS    C++ compiler flags
884   CPP         C preprocessor
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <wine-devel@winehq.org>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
928 *)
929   case "$ac_dir" in
930   .) ac_abs_builddir=`pwd`;;
931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932   *) ac_abs_builddir=`pwd`/"$ac_dir";;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *)
938   case ${ac_top_builddir}. in
939   .) ac_abs_top_builddir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942   esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
946 *)
947   case $ac_srcdir in
948   .) ac_abs_srcdir=$ac_abs_builddir;;
949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951   esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *)
956   case $ac_top_srcdir in
957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960   esac;;
961 esac
962
963     cd $ac_dir
964     # Check for guested configure; otherwise get Cygnus style configure.
965     if test -f $ac_srcdir/configure.gnu; then
966       echo
967       $SHELL $ac_srcdir/configure.gnu  --help=recursive
968     elif test -f $ac_srcdir/configure; then
969       echo
970       $SHELL $ac_srcdir/configure  --help=recursive
971     elif test -f $ac_srcdir/configure.ac ||
972            test -f $ac_srcdir/configure.in; then
973       echo
974       $ac_configure --help
975     else
976       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977     fi
978     cd "$ac_popdir"
979   done
980 fi
981
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984   cat <<\_ACEOF
985 Wine configure 20040813
986 generated by GNU Autoconf 2.59
987
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992   exit 0
993 fi
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
998
999 It was created by Wine $as_me 20040813, which was
1000 generated by GNU Autoconf 2.59.  Invocation command line was
1001
1002   $ $0 $@
1003
1004 _ACEOF
1005 {
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1010
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1019
1020 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1021 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1024 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1025 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1026 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1027
1028 _ASUNAME
1029
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1032 do
1033   IFS=$as_save_IFS
1034   test -z "$as_dir" && as_dir=.
1035   echo "PATH: $as_dir"
1036 done
1037
1038 } >&5
1039
1040 cat >&5 <<_ACEOF
1041
1042
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1046
1047 _ACEOF
1048
1049
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1061 do
1062   for ac_arg
1063   do
1064     case $ac_arg in
1065     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067     | -silent | --silent | --silen | --sile | --sil)
1068       continue ;;
1069     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071     esac
1072     case $ac_pass in
1073     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074     2)
1075       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076       if test $ac_must_keep_next = true; then
1077         ac_must_keep_next=false # Got value, back to normal.
1078       else
1079         case $ac_arg in
1080           *=* | --config-cache | -C | -disable-* | --disable-* \
1081           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083           | -with-* | --with-* | -without-* | --without-* | --x)
1084             case "$ac_configure_args0 " in
1085               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086             esac
1087             ;;
1088           -* ) ac_must_keep_next=true ;;
1089         esac
1090       fi
1091       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092       # Get rid of the leading space.
1093       ac_sep=" "
1094       ;;
1095     esac
1096   done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log.  We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107   # Save into config.log some information that might help in debugging.
1108   {
1109     echo
1110
1111     cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116     echo
1117     # The following way of writing the cache mishandles newlines in values,
1118 {
1119   (set) 2>&1 |
1120     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121     *ac_space=\ *)
1122       sed -n \
1123         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125       ;;
1126     *)
1127       sed -n \
1128         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129       ;;
1130     esac;
1131 }
1132     echo
1133
1134     cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139     echo
1140     for ac_var in $ac_subst_vars
1141     do
1142       eval ac_val=$`echo $ac_var`
1143       echo "$ac_var='"'"'$ac_val'"'"'"
1144     done | sort
1145     echo
1146
1147     if test -n "$ac_subst_files"; then
1148       cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153       echo
1154       for ac_var in $ac_subst_files
1155       do
1156         eval ac_val=$`echo $ac_var`
1157         echo "$ac_var='"'"'$ac_val'"'"'"
1158       done | sort
1159       echo
1160     fi
1161
1162     if test -s confdefs.h; then
1163       cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168       echo
1169       sed "/^$/d" confdefs.h | sort
1170       echo
1171     fi
1172     test "$ac_signal" != 0 &&
1173       echo "$as_me: caught signal $ac_signal"
1174     echo "$as_me: exit $exit_status"
1175   } >&5
1176   rm -f core *.core &&
1177   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178     exit $exit_status
1179      ' 0
1180 for ac_signal in 1 2 13 15; do
1181   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1184
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1189
1190 # Predefined preprocessor variables.
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1215
1216
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220   if test "x$prefix" != xNONE; then
1221     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222   else
1223     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224   fi
1225 fi
1226 for ac_site_file in $CONFIG_SITE; do
1227   if test -r "$ac_site_file"; then
1228     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230     sed 's/^/| /' "$ac_site_file" >&5
1231     . "$ac_site_file"
1232   fi
1233 done
1234
1235 if test -r "$cache_file"; then
1236   # Some versions of bash will fail to source /dev/null (special
1237   # files actually), so we avoid doing that.
1238   if test -f "$cache_file"; then
1239     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241     case $cache_file in
1242       [\\/]* | ?:[\\/]* ) . $cache_file;;
1243       *)                      . ./$cache_file;;
1244     esac
1245   fi
1246 else
1247   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249   >$cache_file
1250 fi
1251
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258   eval ac_new_set=\$ac_env_${ac_var}_set
1259   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260   eval ac_new_val="\$ac_env_${ac_var}_value"
1261   case $ac_old_set,$ac_new_set in
1262     set,)
1263       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265       ac_cache_corrupted=: ;;
1266     ,set)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,);;
1271     *)
1272       if test "x$ac_old_val" != "x$ac_new_val"; then
1273         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1276 echo "$as_me:   former value:  $ac_old_val" >&2;}
1277         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1278 echo "$as_me:   current value: $ac_new_val" >&2;}
1279         ac_cache_corrupted=:
1280       fi;;
1281   esac
1282   # Pass precious variables to config.status.
1283   if test "$ac_new_set" = set; then
1284     case $ac_new_val in
1285     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287     *) ac_arg=$ac_var=$ac_new_val ;;
1288     esac
1289     case " $ac_configure_args " in
1290       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1291       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292     esac
1293   fi
1294 done
1295 if $ac_cache_corrupted; then
1296   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300    { (exit 1); exit 1; }; }
1301 fi
1302
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
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           ac_config_headers="$ac_config_headers include/config.h"
1337
1338 ac_aux_dir=
1339 for ac_dir in tools $srcdir/tools; do
1340   if test -f $ac_dir/install-sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install-sh -c"
1343     break
1344   elif test -f $ac_dir/install.sh; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/install.sh -c"
1347     break
1348   elif test -f $ac_dir/shtool; then
1349     ac_aux_dir=$ac_dir
1350     ac_install_sh="$ac_aux_dir/shtool install -c"
1351     break
1352   fi
1353 done
1354 if test -z "$ac_aux_dir"; then
1355   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363
1364
1365 # Check whether --enable-win16 or --disable-win16 was given.
1366 if test "${enable_win16+set}" = set; then
1367   enableval="$enable_win16"
1368
1369 fi;
1370 # Check whether --enable-debug or --disable-debug was given.
1371 if test "${enable_debug+set}" = set; then
1372   enableval="$enable_debug"
1373
1374 fi;
1375 # Check whether --enable-trace or --disable-trace was given.
1376 if test "${enable_trace+set}" = set; then
1377   enableval="$enable_trace"
1378
1379 fi;
1380
1381
1382 # Check whether --with-opengl or --without-opengl was given.
1383 if test "${with_opengl+set}" = set; then
1384   withval="$with_opengl"
1385
1386 fi;
1387
1388 # Check whether --with-curses or --without-curses was given.
1389 if test "${with_curses+set}" = set; then
1390   withval="$with_curses"
1391
1392 fi;
1393
1394 # Check whether --with-wine-tools or --without-wine-tools was given.
1395 if test "${with_wine_tools+set}" = set; then
1396   withval="$with_wine_tools"
1397
1398 fi;
1399
1400 WIN16_FILES="\$(WIN16_FILES)"
1401
1402 WIN16_INSTALL="\$(WIN16_INSTALL)"
1403
1404 if test "x$enable_win16" = "xno"
1405 then
1406   WIN16_FILES=""
1407   WIN16_INSTALL=""
1408 fi
1409 if test "x$enable_debug" = "xno"
1410 then
1411
1412 cat >>confdefs.h <<\_ACEOF
1413 #define NO_DEBUG_MSGS 1
1414 _ACEOF
1415
1416 fi
1417 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1418 then
1419
1420 cat >>confdefs.h <<\_ACEOF
1421 #define NO_TRACE_MSGS 1
1422 _ACEOF
1423
1424 fi
1425
1426
1427 # Make sure we can run config.sub.
1428 $ac_config_sub sun4 >/dev/null 2>&1 ||
1429   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1430 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1431    { (exit 1); exit 1; }; }
1432
1433 echo "$as_me:$LINENO: checking build system type" >&5
1434 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1435 if test "${ac_cv_build+set}" = set; then
1436   echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438   ac_cv_build_alias=$build_alias
1439 test -z "$ac_cv_build_alias" &&
1440   ac_cv_build_alias=`$ac_config_guess`
1441 test -z "$ac_cv_build_alias" &&
1442   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1444    { (exit 1); exit 1; }; }
1445 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1446   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1448    { (exit 1); exit 1; }; }
1449
1450 fi
1451 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1452 echo "${ECHO_T}$ac_cv_build" >&6
1453 build=$ac_cv_build
1454 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457
1458
1459 echo "$as_me:$LINENO: checking host system type" >&5
1460 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1461 if test "${ac_cv_host+set}" = set; then
1462   echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464   ac_cv_host_alias=$host_alias
1465 test -z "$ac_cv_host_alias" &&
1466   ac_cv_host_alias=$ac_cv_build_alias
1467 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1468   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1470    { (exit 1); exit 1; }; }
1471
1472 fi
1473 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1474 echo "${ECHO_T}$ac_cv_host" >&6
1475 host=$ac_cv_host
1476 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1479
1480
1481 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1482 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1483 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1484 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   cat >conftest.make <<\_ACEOF
1488 all:
1489         @echo 'ac_maketemp="$(MAKE)"'
1490 _ACEOF
1491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1492 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1493 if test -n "$ac_maketemp"; then
1494   eval ac_cv_prog_make_${ac_make}_set=yes
1495 else
1496   eval ac_cv_prog_make_${ac_make}_set=no
1497 fi
1498 rm -f conftest.make
1499 fi
1500 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1501   echo "$as_me:$LINENO: result: yes" >&5
1502 echo "${ECHO_T}yes" >&6
1503   SET_MAKE=
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507   SET_MAKE="MAKE=${MAKE-make}"
1508 fi
1509
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 if test -n "$ac_tool_prefix"; then
1516   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$CC"; then
1524   ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544   echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551 fi
1552 if test -z "$ac_cv_prog_CC"; then
1553   ac_ct_CC=$CC
1554   # Extract the first word of "gcc", so it can be a program name with args.
1555 set dummy gcc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$ac_ct_CC"; then
1562   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_ac_ct_CC="gcc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589   CC=$ac_ct_CC
1590 else
1591   CC="$ac_cv_prog_CC"
1592 fi
1593
1594 if test -z "$CC"; then
1595   if test -n "$ac_tool_prefix"; then
1596   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597 set dummy ${ac_tool_prefix}cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$CC"; then
1604   ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     ac_cv_prog_CC="${ac_tool_prefix}cc"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624   echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631 fi
1632 if test -z "$ac_cv_prog_CC"; then
1633   ac_ct_CC=$CC
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$ac_ct_CC"; then
1642   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   for ac_exec_ext in '' $ac_executable_extensions; do
1650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651     ac_cv_prog_ac_ct_CC="cc"
1652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653     break 2
1654   fi
1655 done
1656 done
1657
1658 fi
1659 fi
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665   echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1667 fi
1668
1669   CC=$ac_ct_CC
1670 else
1671   CC="$ac_cv_prog_CC"
1672 fi
1673
1674 fi
1675 if test -z "$CC"; then
1676   # Extract the first word of "cc", so it can be a program name with args.
1677 set dummy cc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   if test -n "$CC"; then
1684   ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686   ac_prog_rejected=no
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1695        ac_prog_rejected=yes
1696        continue
1697      fi
1698     ac_cv_prog_CC="cc"
1699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700     break 2
1701   fi
1702 done
1703 done
1704
1705 if test $ac_prog_rejected = yes; then
1706   # We found a bogon in the path, so make sure we never use it.
1707   set dummy $ac_cv_prog_CC
1708   shift
1709   if test $# != 0; then
1710     # We chose a different compiler from the bogus one.
1711     # However, it has the same basename, so the bogon will be chosen
1712     # first if we set CC to just the basename; use the full file name.
1713     shift
1714     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1715   fi
1716 fi
1717 fi
1718 fi
1719 CC=$ac_cv_prog_CC
1720 if test -n "$CC"; then
1721   echo "$as_me:$LINENO: result: $CC" >&5
1722 echo "${ECHO_T}$CC" >&6
1723 else
1724   echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1726 fi
1727
1728 fi
1729 if test -z "$CC"; then
1730   if test -n "$ac_tool_prefix"; then
1731   for ac_prog in cl
1732   do
1733     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$CC"; then
1741   ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761   echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768     test -n "$CC" && break
1769   done
1770 fi
1771 if test -z "$CC"; then
1772   ac_ct_CC=$CC
1773   for ac_prog in cl
1774 do
1775   # Extract the first word of "$ac_prog", so it can be a program name with args.
1776 set dummy $ac_prog; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   if test -n "$ac_ct_CC"; then
1783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1787 do
1788   IFS=$as_save_IFS
1789   test -z "$as_dir" && as_dir=.
1790   for ac_exec_ext in '' $ac_executable_extensions; do
1791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792     ac_cv_prog_ac_ct_CC="$ac_prog"
1793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794     break 2
1795   fi
1796 done
1797 done
1798
1799 fi
1800 fi
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806   echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1808 fi
1809
1810   test -n "$ac_ct_CC" && break
1811 done
1812
1813   CC=$ac_ct_CC
1814 fi
1815
1816 fi
1817
1818
1819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1820 See \`config.log' for more details." >&5
1821 echo "$as_me: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&2;}
1823    { (exit 1); exit 1; }; }
1824
1825 # Provide some information about the compiler.
1826 echo "$as_me:$LINENO:" \
1827      "checking for C compiler version" >&5
1828 ac_compiler=`set X $ac_compile; echo $2`
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1830   (eval $ac_compiler --version </dev/null >&5) 2>&5
1831   ac_status=$?
1832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833   (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1835   (eval $ac_compiler -v </dev/null >&5) 2>&5
1836   ac_status=$?
1837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838   (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1840   (eval $ac_compiler -V </dev/null >&5) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }
1844
1845 cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h.  */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h.  */
1851
1852 int
1853 main ()
1854 {
1855
1856   ;
1857   return 0;
1858 }
1859 _ACEOF
1860 ac_clean_files_save=$ac_clean_files
1861 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1862 # Try to create an executable without -o first, disregard a.out.
1863 # It will help us diagnose broken compilers, and finding out an intuition
1864 # of exeext.
1865 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1866 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1867 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1869   (eval $ac_link_default) 2>&5
1870   ac_status=$?
1871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872   (exit $ac_status); }; then
1873   # Find the output, starting from the most likely.  This scheme is
1874 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875 # resort.
1876
1877 # Be careful to initialize this variable, since it used to be cached.
1878 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1879 ac_cv_exeext=
1880 # b.out is created by i960 compilers.
1881 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1882 do
1883   test -f "$ac_file" || continue
1884   case $ac_file in
1885     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1886         ;;
1887     conftest.$ac_ext )
1888         # This is the source file.
1889         ;;
1890     [ab].out )
1891         # We found the default executable, but exeext='' is most
1892         # certainly right.
1893         break;;
1894     *.* )
1895         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896         # FIXME: I believe we export ac_cv_exeext for Libtool,
1897         # but it would be cool to find out if it's true.  Does anybody
1898         # maintain Libtool? --akim.
1899         export ac_cv_exeext
1900         break;;
1901     * )
1902         break;;
1903   esac
1904 done
1905 else
1906   echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: C compiler cannot create executables
1912 See \`config.log' for more details." >&2;}
1913    { (exit 77); exit 77; }; }
1914 fi
1915
1916 ac_exeext=$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_file" >&5
1918 echo "${ECHO_T}$ac_file" >&6
1919
1920 # Check the compiler produces executables we can run.  If not, either
1921 # the compiler is broken, or we cross compile.
1922 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1923 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1924 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1925 # If not cross compiling, check that we can run a simple program.
1926 if test "$cross_compiling" != yes; then
1927   if { ac_try='./$ac_file'
1928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929   (eval $ac_try) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }; }; then
1933     cross_compiling=no
1934   else
1935     if test "$cross_compiling" = maybe; then
1936         cross_compiling=yes
1937     else
1938         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1939 If you meant to cross compile, use \`--host'.
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&2;}
1944    { (exit 1); exit 1; }; }
1945     fi
1946   fi
1947 fi
1948 echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6
1950
1951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1952 ac_clean_files=$ac_clean_files_save
1953 # Check the compiler produces executables we can run.  If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1957 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1958 echo "${ECHO_T}$cross_compiling" >&6
1959
1960 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1963   (eval $ac_link) 2>&5
1964   ac_status=$?
1965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966   (exit $ac_status); }; then
1967   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1968 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1969 # work properly (i.e., refer to `conftest.exe'), while it won't with
1970 # `rm'.
1971 for ac_file in conftest.exe conftest conftest.*; do
1972   test -f "$ac_file" || continue
1973   case $ac_file in
1974     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1976           export ac_cv_exeext
1977           break;;
1978     * ) break;;
1979   esac
1980 done
1981 else
1982   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1985 See \`config.log' for more details." >&2;}
1986    { (exit 1); exit 1; }; }
1987 fi
1988
1989 rm -f conftest$ac_cv_exeext
1990 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1991 echo "${ECHO_T}$ac_cv_exeext" >&6
1992
1993 rm -f conftest.$ac_ext
1994 EXEEXT=$ac_cv_exeext
1995 ac_exeext=$EXEEXT
1996 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1997 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1998 if test "${ac_cv_objext+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h.  */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h.  */
2007
2008 int
2009 main ()
2010 {
2011
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 rm -f conftest.o conftest.obj
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018   (eval $ac_compile) 2>&5
2019   ac_status=$?
2020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021   (exit $ac_status); }; then
2022   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2023   case $ac_file in
2024     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2025     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2026        break;;
2027   esac
2028 done
2029 else
2030   echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2036 See \`config.log' for more details." >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2041 fi
2042 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2043 echo "${ECHO_T}$ac_cv_objext" >&6
2044 OBJEXT=$ac_cv_objext
2045 ac_objext=$OBJEXT
2046 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   cat >conftest.$ac_ext <<_ACEOF
2052 /* confdefs.h.  */
2053 _ACEOF
2054 cat confdefs.h >>conftest.$ac_ext
2055 cat >>conftest.$ac_ext <<_ACEOF
2056 /* end confdefs.h.  */
2057
2058 int
2059 main ()
2060 {
2061 #ifndef __GNUC__
2062        choke me
2063 #endif
2064
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 rm -f conftest.$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071   (eval $ac_compile) 2>conftest.er1
2072   ac_status=$?
2073   grep -v '^ *+' conftest.er1 >conftest.err
2074   rm -f conftest.er1
2075   cat conftest.err >&5
2076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077   (exit $ac_status); } &&
2078          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080   (eval $ac_try) 2>&5
2081   ac_status=$?
2082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083   (exit $ac_status); }; } &&
2084          { ac_try='test -s conftest.$ac_objext'
2085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086   (eval $ac_try) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; }; then
2090   ac_compiler_gnu=yes
2091 else
2092   echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2094
2095 ac_compiler_gnu=no
2096 fi
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2099
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103 GCC=`test $ac_compiler_gnu = yes && echo yes`
2104 ac_test_CFLAGS=${CFLAGS+set}
2105 ac_save_CFLAGS=$CFLAGS
2106 CFLAGS="-g"
2107 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_g+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h.  */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h.  */
2118
2119 int
2120 main ()
2121 {
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129   (eval $ac_compile) 2>conftest.er1
2130   ac_status=$?
2131   grep -v '^ *+' conftest.er1 >conftest.err
2132   rm -f conftest.er1
2133   cat conftest.err >&5
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); } &&
2136          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138   (eval $ac_try) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; } &&
2142          { ac_try='test -s conftest.$ac_objext'
2143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144   (eval $ac_try) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }; }; then
2148   ac_cv_prog_cc_g=yes
2149 else
2150   echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 ac_cv_prog_cc_g=no
2154 fi
2155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2156 fi
2157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2158 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2159 if test "$ac_test_CFLAGS" = set; then
2160   CFLAGS=$ac_save_CFLAGS
2161 elif test $ac_cv_prog_cc_g = yes; then
2162   if test "$GCC" = yes; then
2163     CFLAGS="-g -O2"
2164   else
2165     CFLAGS="-g"
2166   fi
2167 else
2168   if test "$GCC" = yes; then
2169     CFLAGS="-O2"
2170   else
2171     CFLAGS=
2172   fi
2173 fi
2174 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2175 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   ac_cv_prog_cc_stdc=no
2180 ac_save_CC=$CC
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h.  */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h.  */
2187 #include <stdarg.h>
2188 #include <stdio.h>
2189 #include <sys/types.h>
2190 #include <sys/stat.h>
2191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2192 struct buf { int x; };
2193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194 static char *e (p, i)
2195      char **p;
2196      int i;
2197 {
2198   return p[i];
2199 }
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2201 {
2202   char *s;
2203   va_list v;
2204   va_start (v,p);
2205   s = g (p, va_arg (v,int));
2206   va_end (v);
2207   return s;
2208 }
2209
2210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2211    function prototypes and stuff, but not '\xHH' hex character constants.
2212    These don't provoke an error unfortunately, instead are silently treated
2213    as 'x'.  The following induces an error, until -std1 is added to get
2214    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2215    array size at least.  It's necessary to write '\x00'==0 to get something
2216    that's true only with -std1.  */
2217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2218
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2223 int argc;
2224 char **argv;
2225 int
2226 main ()
2227 {
2228 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 # Don't try gcc -ansi; that turns off useful extensions and
2234 # breaks some systems' header files.
2235 # AIX                   -qlanglvl=ansi
2236 # Ultrix and OSF/1      -std1
2237 # HP-UX 10.20 and later -Ae
2238 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2239 # SVR4                  -Xc -D__EXTENSIONS__
2240 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2241 do
2242   CC="$ac_save_CC $ac_arg"
2243   rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>conftest.er1
2246   ac_status=$?
2247   grep -v '^ *+' conftest.er1 >conftest.err
2248   rm -f conftest.er1
2249   cat conftest.err >&5
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); } &&
2252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254   (eval $ac_try) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); }; } &&
2258          { ac_try='test -s conftest.$ac_objext'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; }; then
2264   ac_cv_prog_cc_stdc=$ac_arg
2265 break
2266 else
2267   echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 fi
2271 rm -f conftest.err conftest.$ac_objext
2272 done
2273 rm -f conftest.$ac_ext conftest.$ac_objext
2274 CC=$ac_save_CC
2275
2276 fi
2277
2278 case "x$ac_cv_prog_cc_stdc" in
2279   x|xno)
2280     echo "$as_me:$LINENO: result: none needed" >&5
2281 echo "${ECHO_T}none needed" >&6 ;;
2282   *)
2283     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285     CC="$CC $ac_cv_prog_cc_stdc" ;;
2286 esac
2287
2288 # Some people use a C++ compiler to compile C.  Since we use `exit',
2289 # in C++ we need to declare it.  In case someone uses the same compiler
2290 # for both compiling C and C++ we need to have the C++ compiler decide
2291 # the declaration of exit, since it's the most demanding environment.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #ifndef __cplusplus
2294   choke me
2295 #endif
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>conftest.er1
2300   ac_status=$?
2301   grep -v '^ *+' conftest.er1 >conftest.err
2302   rm -f conftest.er1
2303   cat conftest.err >&5
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); } &&
2306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308   (eval $ac_try) 2>&5
2309   ac_status=$?
2310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311   (exit $ac_status); }; } &&
2312          { ac_try='test -s conftest.$ac_objext'
2313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314   (eval $ac_try) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }; }; then
2318   for ac_declaration in \
2319    '' \
2320    'extern "C" void std::exit (int) throw (); using std::exit;' \
2321    'extern "C" void std::exit (int); using std::exit;' \
2322    'extern "C" void exit (int) throw ();' \
2323    'extern "C" void exit (int);' \
2324    'void exit (int);'
2325 do
2326   cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332 $ac_declaration
2333 #include <stdlib.h>
2334 int
2335 main ()
2336 {
2337 exit (42);
2338   ;
2339   return 0;
2340 }
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344   (eval $ac_compile) 2>conftest.er1
2345   ac_status=$?
2346   grep -v '^ *+' conftest.er1 >conftest.err
2347   rm -f conftest.er1
2348   cat conftest.err >&5
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); } &&
2351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353   (eval $ac_try) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; } &&
2357          { ac_try='test -s conftest.$ac_objext'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; }; then
2363   :
2364 else
2365   echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 continue
2369 fi
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377 $ac_declaration
2378 int
2379 main ()
2380 {
2381 exit (42);
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; } &&
2401          { ac_try='test -s conftest.$ac_objext'
2402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403   (eval $ac_try) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; }; then
2407   break
2408 else
2409   echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 fi
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 rm -f conftest*
2416 if test -n "$ac_declaration"; then
2417   echo '#ifdef __cplusplus' >>confdefs.h
2418   echo $ac_declaration      >>confdefs.h
2419   echo '#endif'             >>confdefs.h
2420 fi
2421
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 fi
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
2434 ac_ext=cc
2435 ac_cpp='$CXXCPP $CPPFLAGS'
2436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2441   do
2442     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CXX+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   if test -n "$CXX"; then
2450   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457   for ac_exec_ext in '' $ac_executable_extensions; do
2458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464 done
2465
2466 fi
2467 fi
2468 CXX=$ac_cv_prog_CXX
2469 if test -n "$CXX"; then
2470   echo "$as_me:$LINENO: result: $CXX" >&5
2471 echo "${ECHO_T}$CXX" >&6
2472 else
2473   echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477     test -n "$CXX" && break
2478   done
2479 fi
2480 if test -z "$CXX"; then
2481   ac_ct_CXX=$CXX
2482   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2483 do
2484   # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$ac_ct_CXX"; then
2492   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501     ac_cv_prog_ac_ct_CXX="$ac_prog"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507
2508 fi
2509 fi
2510 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2511 if test -n "$ac_ct_CXX"; then
2512   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2513 echo "${ECHO_T}$ac_ct_CXX" >&6
2514 else
2515   echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2517 fi
2518
2519   test -n "$ac_ct_CXX" && break
2520 done
2521 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2522
2523   CXX=$ac_ct_CXX
2524 fi
2525
2526
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO:" \
2529      "checking for C++ compiler version" >&5
2530 ac_compiler=`set X $ac_compile; echo $2`
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2532   (eval $ac_compiler --version </dev/null >&5) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2537   (eval $ac_compiler -v </dev/null >&5) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2542   (eval $ac_compiler -V </dev/null >&5) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }
2546
2547 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2548 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2549 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2550   echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552   cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562 #ifndef __GNUC__
2563        choke me
2564 #endif
2565
2566   ;
2567   return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572   (eval $ac_compile) 2>conftest.er1
2573   ac_status=$?
2574   grep -v '^ *+' conftest.er1 >conftest.err
2575   rm -f conftest.er1
2576   cat conftest.err >&5
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); } &&
2579          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_compiler_gnu=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_compiler_gnu=no
2597 fi
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2600
2601 fi
2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CXXFLAGS=${CXXFLAGS+set}
2606 ac_save_CXXFLAGS=$CXXFLAGS
2607 CXXFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h.  */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h.  */
2619
2620 int
2621 main ()
2622 {
2623
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630   (eval $ac_compile) 2>conftest.er1
2631   ac_status=$?
2632   grep -v '^ *+' conftest.er1 >conftest.err
2633   rm -f conftest.er1
2634   cat conftest.err >&5
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } &&
2637          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; } &&
2643          { ac_try='test -s conftest.$ac_objext'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   ac_cv_prog_cxx_g=yes
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 ac_cv_prog_cxx_g=no
2655 fi
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660 if test "$ac_test_CXXFLAGS" = set; then
2661   CXXFLAGS=$ac_save_CXXFLAGS
2662 elif test $ac_cv_prog_cxx_g = yes; then
2663   if test "$GXX" = yes; then
2664     CXXFLAGS="-g -O2"
2665   else
2666     CXXFLAGS="-g"
2667   fi
2668 else
2669   if test "$GXX" = yes; then
2670     CXXFLAGS="-O2"
2671   else
2672     CXXFLAGS=
2673   fi
2674 fi
2675 for ac_declaration in \
2676    '' \
2677    'extern "C" void std::exit (int) throw (); using std::exit;' \
2678    'extern "C" void std::exit (int); using std::exit;' \
2679    'extern "C" void exit (int) throw ();' \
2680    'extern "C" void exit (int);' \
2681    'void exit (int);'
2682 do
2683   cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689 $ac_declaration
2690 #include <stdlib.h>
2691 int
2692 main ()
2693 {
2694 exit (42);
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701   (eval $ac_compile) 2>conftest.er1
2702   ac_status=$?
2703   grep -v '^ *+' conftest.er1 >conftest.err
2704   rm -f conftest.er1
2705   cat conftest.err >&5
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); } &&
2708          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; } &&
2714          { ac_try='test -s conftest.$ac_objext'
2715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; }; then
2720   :
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 continue
2726 fi
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728   cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h.  */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h.  */
2734 $ac_declaration
2735 int
2736 main ()
2737 {
2738 exit (42);
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745   (eval $ac_compile) 2>conftest.er1
2746   ac_status=$?
2747   grep -v '^ *+' conftest.er1 >conftest.err
2748   rm -f conftest.er1
2749   cat conftest.err >&5
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); } &&
2752          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; } &&
2758          { ac_try='test -s conftest.$ac_objext'
2759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }; }; then
2764   break
2765 else
2766   echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769 fi
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772 rm -f conftest*
2773 if test -n "$ac_declaration"; then
2774   echo '#ifdef __cplusplus' >>confdefs.h
2775   echo $ac_declaration      >>confdefs.h
2776   echo '#endif'             >>confdefs.h
2777 fi
2778
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785 if test -n "$ac_tool_prefix"; then
2786   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   if test -n "$CPPBIN"; then
2794   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801   for ac_exec_ext in '' $ac_executable_extensions; do
2802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808 done
2809
2810 fi
2811 fi
2812 CPPBIN=$ac_cv_prog_CPPBIN
2813 if test -n "$CPPBIN"; then
2814   echo "$as_me:$LINENO: result: $CPPBIN" >&5
2815 echo "${ECHO_T}$CPPBIN" >&6
2816 else
2817   echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2819 fi
2820
2821 fi
2822 if test -z "$ac_cv_prog_CPPBIN"; then
2823   ac_ct_CPPBIN=$CPPBIN
2824   # Extract the first word of "cpp", so it can be a program name with args.
2825 set dummy cpp; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   if test -n "$ac_ct_CPPBIN"; then
2832   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841     ac_cv_prog_ac_ct_CPPBIN="cpp"
2842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847
2848   test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2849 fi
2850 fi
2851 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2852 if test -n "$ac_ct_CPPBIN"; then
2853   echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2854 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2855 else
2856   echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2858 fi
2859
2860   CPPBIN=$ac_ct_CPPBIN
2861 else
2862   CPPBIN="$ac_cv_prog_CPPBIN"
2863 fi
2864
2865
2866 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2867 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2868 if test "${wine_cv_toolsdir+set}" = set; then
2869   echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871   if test -z "$with_wine_tools"; then
2872      if test "$cross_compiling" = "yes"; then
2873        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2874 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2875    { (exit 1); exit 1; }; }
2876      else
2877        wine_cv_toolsdir="\$(TOPOBJDIR)"
2878      fi
2879    elif test -d "$with_wine_tools/tools/winebuild"; then
2880      case $with_wine_tools in
2881        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2882        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2883      esac
2884    else
2885      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2886 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2887    { (exit 1); exit 1; }; }
2888    fi
2889 fi
2890 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2891 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2892 TOOLSDIR=$wine_cv_toolsdir
2893
2894
2895
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905   CPP=
2906 fi
2907 if test -z "$CPP"; then
2908   if test "${ac_cv_prog_CPP+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911       # Double quotes because CPP needs to be expanded
2912     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2913     do
2914       ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2916 do
2917   # Use a header file that comes with gcc, so configuring glibc
2918   # with a fresh cross-compiler works.
2919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920   # <limits.h> exists even on freestanding compilers.
2921   # On the NeXT, cc -E runs the code through the compiler's parser,
2922   # not just through cpp. "Syntax error" is here to catch this case.
2923   cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934                      Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } >/dev/null; then
2944   if test -s conftest.err; then
2945     ac_cpp_err=$ac_c_preproc_warn_flag
2946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   :
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959   # Broken: fails on valid input.
2960 continue
2961 fi
2962 rm -f conftest.err conftest.$ac_ext
2963
2964   # OK, works on sane cases.  Now check whether non-existent headers
2965   # can be detected and how.
2966   cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } >/dev/null; then
2982   if test -s conftest.err; then
2983     ac_cpp_err=$ac_c_preproc_warn_flag
2984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985   else
2986     ac_cpp_err=
2987   fi
2988 else
2989   ac_cpp_err=yes
2990 fi
2991 if test -z "$ac_cpp_err"; then
2992   # Broken: success on invalid input.
2993 continue
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998   # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3001 fi
3002 rm -f conftest.err conftest.$ac_ext
3003
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008   break
3009 fi
3010
3011     done
3012     ac_cv_prog_CPP=$CPP
3013
3014 fi
3015   CPP=$ac_cv_prog_CPP
3016 else
3017   ac_cv_prog_CPP=$CPP
3018 fi
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3023 do
3024   # Use a header file that comes with gcc, so configuring glibc
3025   # with a fresh cross-compiler works.
3026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027   # <limits.h> exists even on freestanding compilers.
3028   # On the NeXT, cc -E runs the code through the compiler's parser,
3029   # not just through cpp. "Syntax error" is here to catch this case.
3030   cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h.  */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h.  */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041                      Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } >/dev/null; then
3051   if test -s conftest.err; then
3052     ac_cpp_err=$ac_c_preproc_warn_flag
3053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054   else
3055     ac_cpp_err=
3056   fi
3057 else
3058   ac_cpp_err=yes
3059 fi
3060 if test -z "$ac_cpp_err"; then
3061   :
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066   # Broken: fails on valid input.
3067 continue
3068 fi
3069 rm -f conftest.err conftest.$ac_ext
3070
3071   # OK, works on sane cases.  Now check whether non-existent headers
3072   # can be detected and how.
3073   cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } >/dev/null; then
3089   if test -s conftest.err; then
3090     ac_cpp_err=$ac_c_preproc_warn_flag
3091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092   else
3093     ac_cpp_err=
3094   fi
3095 else
3096   ac_cpp_err=yes
3097 fi
3098 if test -z "$ac_cpp_err"; then
3099   # Broken: success on invalid input.
3100 continue
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105   # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3108 fi
3109 rm -f conftest.err conftest.$ac_ext
3110
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3115   :
3116 else
3117   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121    { (exit 1); exit 1; }; }
3122 fi
3123
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
3130
3131
3132 if test "x$ac_path_x_has_been_run" != xyes; then
3133   echo "$as_me:$LINENO: checking for X" >&5
3134 echo $ECHO_N "checking for X... $ECHO_C" >&6
3135
3136 ac_path_x_has_been_run=yes
3137
3138 # Check whether --with-x or --without-x was given.
3139 if test "${with_x+set}" = set; then
3140   withval="$with_x"
3141
3142 fi;
3143 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3144 if test "x$with_x" = xno; then
3145   # The user explicitly disabled X.
3146   have_x=disabled
3147 else
3148   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3149     # Both variables are already set.
3150     have_x=yes
3151   else
3152     if test "${ac_cv_have_x+set}" = set; then
3153   echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155   # One or both of the vars are not set, and there is no cached value.
3156 ac_x_includes=no ac_x_libraries=no
3157 rm -fr conftest.dir
3158 if mkdir conftest.dir; then
3159   cd conftest.dir
3160   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3161   cat >Imakefile <<'_ACEOF'
3162 acfindx:
3163         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3164 _ACEOF
3165   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3166     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3167     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3168     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3169     for ac_extension in a so sl; do
3170       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3171          test -f $ac_im_libdir/libX11.$ac_extension; then
3172         ac_im_usrlibdir=$ac_im_libdir; break
3173       fi
3174     done
3175     # Screen out bogus values from the imake configuration.  They are
3176     # bogus both because they are the default anyway, and because
3177     # using them would break gcc on systems where it needs fixed includes.
3178     case $ac_im_incroot in
3179         /usr/include) ;;
3180         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3181     esac
3182     case $ac_im_usrlibdir in
3183         /usr/lib | /lib) ;;
3184         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3185     esac
3186   fi
3187   cd ..
3188   rm -fr conftest.dir
3189 fi
3190
3191 # Standard set of common directories for X headers.
3192 # Check X11 before X11Rn because it is often a symlink to the current release.
3193 ac_x_header_dirs='
3194 /usr/X11/include
3195 /usr/X11R6/include
3196 /usr/X11R5/include
3197 /usr/X11R4/include
3198
3199 /usr/include/X11
3200 /usr/include/X11R6
3201 /usr/include/X11R5
3202 /usr/include/X11R4
3203
3204 /usr/local/X11/include
3205 /usr/local/X11R6/include
3206 /usr/local/X11R5/include
3207 /usr/local/X11R4/include
3208
3209 /usr/local/include/X11
3210 /usr/local/include/X11R6
3211 /usr/local/include/X11R5
3212 /usr/local/include/X11R4
3213
3214 /usr/X386/include
3215 /usr/x386/include
3216 /usr/XFree86/include/X11
3217
3218 /usr/include
3219 /usr/local/include
3220 /usr/unsupported/include
3221 /usr/athena/include
3222 /usr/local/x11r5/include
3223 /usr/lpp/Xamples/include
3224
3225 /usr/openwin/include
3226 /usr/openwin/share/include'
3227
3228 if test "$ac_x_includes" = no; then
3229   # Guess where to find include files, by looking for a specified header file.
3230   # First, try using that file with no special directory specified.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #include <X11/Intrinsic.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null; then
3247   if test -s conftest.err; then
3248     ac_cpp_err=$ac_c_preproc_warn_flag
3249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250   else
3251     ac_cpp_err=
3252   fi
3253 else
3254   ac_cpp_err=yes
3255 fi
3256 if test -z "$ac_cpp_err"; then
3257   # We can compile using X headers with no special include directory.
3258 ac_x_includes=
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   for ac_dir in $ac_x_header_dirs; do
3264   if test -r "$ac_dir/X11/Intrinsic.h"; then
3265     ac_x_includes=$ac_dir
3266     break
3267   fi
3268 done
3269 fi
3270 rm -f conftest.err conftest.$ac_ext
3271 fi # $ac_x_includes = no
3272
3273 if test "$ac_x_libraries" = no; then
3274   # Check for the libraries.
3275   # See if we find them without any special options.
3276   # Don't add to $LIBS permanently.
3277   ac_save_LIBS=$LIBS
3278   LIBS="-lXt $LIBS"
3279   cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285 #include <X11/Intrinsic.h>
3286 int
3287 main ()
3288 {
3289 XtMalloc (0)
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.$ac_objext conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296   (eval $ac_link) 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } &&
3303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305   (eval $ac_try) 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; } &&
3309          { ac_try='test -s conftest$ac_exeext'
3310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311   (eval $ac_try) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; }; then
3315   LIBS=$ac_save_LIBS
3316 # We can link X programs with no special library path.
3317 ac_x_libraries=
3318 else
3319   echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 LIBS=$ac_save_LIBS
3323 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3324 do
3325   # Don't even attempt the hair of trying to link an X program!
3326   for ac_extension in a so sl; do
3327     if test -r $ac_dir/libXt.$ac_extension; then
3328       ac_x_libraries=$ac_dir
3329       break 2
3330     fi
3331   done
3332 done
3333 fi
3334 rm -f conftest.err conftest.$ac_objext \
3335       conftest$ac_exeext conftest.$ac_ext
3336 fi # $ac_x_libraries = no
3337
3338 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3339   # Didn't find X anywhere.  Cache the known absence of X.
3340   ac_cv_have_x="have_x=no"
3341 else
3342   # Record where we found X for the cache.
3343   ac_cv_have_x="have_x=yes \
3344                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3345 fi
3346 fi
3347
3348   fi
3349   eval "$ac_cv_have_x"
3350 fi # $with_x != no
3351
3352 if test "$have_x" != yes; then
3353   echo "$as_me:$LINENO: result: $have_x" >&5
3354 echo "${ECHO_T}$have_x" >&6
3355   no_x=yes
3356 else
3357   # If each of the values was on the command line, it overrides each guess.
3358   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3359   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3360   # Update the cache value to reflect the command line values.
3361   ac_cv_have_x="have_x=yes \
3362                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3363   # It might be that x_includes is empty (headers are found in the
3364   # standard search path. Then output the corresponding message
3365   ac_out_x_includes=$x_includes
3366   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3367   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3368 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3369 fi
3370
3371 fi
3372 if test "$no_x" = yes; then
3373   # Not all programs may use this symbol, but it does not hurt to define it.
3374
3375 cat >>confdefs.h <<\_ACEOF
3376 #define X_DISPLAY_MISSING 1
3377 _ACEOF
3378
3379   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3380 else
3381   if test -n "$x_includes"; then
3382     X_CFLAGS="$X_CFLAGS -I$x_includes"
3383   fi
3384
3385   # It would also be nice to do this for all -L options, not just this one.
3386   if test -n "$x_libraries"; then
3387     X_LIBS="$X_LIBS -L$x_libraries"
3388     # For Solaris; some versions of Sun CC require a space after -R and
3389     # others require no space.  Words are not sufficient . . . .
3390     case `(uname -sr) 2>/dev/null` in
3391     "SunOS 5"*)
3392       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3393 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3394       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3395       cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401
3402 int
3403 main ()
3404 {
3405
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412   (eval $ac_link) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; } &&
3425          { ac_try='test -s conftest$ac_exeext'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   ac_R_nospace=yes
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 ac_R_nospace=no
3437 fi
3438 rm -f conftest.err conftest.$ac_objext \
3439       conftest$ac_exeext conftest.$ac_ext
3440       if test $ac_R_nospace = yes; then
3441         echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443         X_LIBS="$X_LIBS -R$x_libraries"
3444       else
3445         LIBS="$ac_xsave_LIBS -R $x_libraries"
3446         cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452
3453 int
3454 main ()
3455 {
3456
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.$ac_objext conftest$ac_exeext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3463   (eval $ac_link) 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } &&
3470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472   (eval $ac_try) 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; } &&
3476          { ac_try='test -s conftest$ac_exeext'
3477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478   (eval $ac_try) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }; }; then
3482   ac_R_space=yes
3483 else
3484   echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 ac_R_space=no
3488 fi
3489 rm -f conftest.err conftest.$ac_objext \
3490       conftest$ac_exeext conftest.$ac_ext
3491         if test $ac_R_space = yes; then
3492           echo "$as_me:$LINENO: result: yes" >&5
3493 echo "${ECHO_T}yes" >&6
3494           X_LIBS="$X_LIBS -R $x_libraries"
3495         else
3496           echo "$as_me:$LINENO: result: neither works" >&5
3497 echo "${ECHO_T}neither works" >&6
3498         fi
3499       fi
3500       LIBS=$ac_xsave_LIBS
3501     esac
3502   fi
3503
3504   # Check for system-dependent libraries X programs must link with.
3505   # Do this before checking for the system-independent R6 libraries
3506   # (-lICE), since we may need -lsocket or whatever for X linking.
3507
3508   if test "$ISC" = yes; then
3509     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3510   else
3511     # Martyn Johnson says this is needed for Ultrix, if the X
3512     # libraries were built with DECnet support.  And Karl Berry says
3513     # the Alpha needs dnet_stub (dnet does not exist).
3514     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3515     cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h.  */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h.  */
3521
3522 /* Override any gcc2 internal prototype to avoid an error.  */
3523 #ifdef __cplusplus
3524 extern "C"
3525 #endif
3526 /* We use char because int might match the return type of a gcc2
3527    builtin and then its argument prototype would still apply.  */
3528 char XOpenDisplay ();
3529 int
3530 main ()
3531 {
3532 XOpenDisplay ();
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext conftest$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539   (eval $ac_link) 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; } &&
3552          { ac_try='test -s conftest$ac_exeext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   :
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3564 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3565 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   ac_check_lib_save_LIBS=$LIBS
3569 LIBS="-ldnet  $LIBS"
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576
3577 /* Override any gcc2 internal prototype to avoid an error.  */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 /* We use char because int might match the return type of a gcc2
3582    builtin and then its argument prototype would still apply.  */
3583 char dnet_ntoa ();
3584 int
3585 main ()
3586 {
3587 dnet_ntoa ();
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 rm -f conftest.$ac_objext conftest$ac_exeext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594   (eval $ac_link) 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } &&
3601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603   (eval $ac_try) 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; } &&
3607          { ac_try='test -s conftest$ac_exeext'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; }; then
3613   ac_cv_lib_dnet_dnet_ntoa=yes
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 ac_cv_lib_dnet_dnet_ntoa=no
3619 fi
3620 rm -f conftest.err conftest.$ac_objext \
3621       conftest$ac_exeext conftest.$ac_ext
3622 LIBS=$ac_check_lib_save_LIBS
3623 fi
3624 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3625 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3626 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3627   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3628 fi
3629
3630     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3631       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3632 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3633 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   ac_check_lib_save_LIBS=$LIBS
3637 LIBS="-ldnet_stub  $LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644
3645 /* Override any gcc2 internal prototype to avoid an error.  */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 /* We use char because int might match the return type of a gcc2
3650    builtin and then its argument prototype would still apply.  */
3651 char dnet_ntoa ();
3652 int
3653 main ()
3654 {
3655 dnet_ntoa ();
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662   (eval $ac_link) 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; } &&
3675          { ac_try='test -s conftest$ac_exeext'
3676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677   (eval $ac_try) 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; }; then
3681   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3682 else
3683   echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 ac_cv_lib_dnet_stub_dnet_ntoa=no
3687 fi
3688 rm -f conftest.err conftest.$ac_objext \
3689       conftest$ac_exeext conftest.$ac_ext
3690 LIBS=$ac_check_lib_save_LIBS
3691 fi
3692 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3693 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3694 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3695   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3696 fi
3697
3698     fi
3699 fi
3700 rm -f conftest.err conftest.$ac_objext \
3701       conftest$ac_exeext conftest.$ac_ext
3702     LIBS="$ac_xsave_LIBS"
3703
3704     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3705     # to get the SysV transport functions.
3706     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3707     # needs -lnsl.
3708     # The nsl library prevents programs from opening the X display
3709     # on Irix 5.2, according to T.E. Dickey.
3710     # The functions gethostbyname, getservbyname, and inet_addr are
3711     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3712     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3713 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3714 if test "${ac_cv_func_gethostbyname+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h.  */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h.  */
3723 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3725 #define gethostbyname innocuous_gethostbyname
3726
3727 /* System header to define __stub macros and hopefully few prototypes,
3728     which can conflict with char gethostbyname (); below.
3729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730     <limits.h> exists even on freestanding compilers.  */
3731
3732 #ifdef __STDC__
3733 # include <limits.h>
3734 #else
3735 # include <assert.h>
3736 #endif
3737
3738 #undef gethostbyname
3739
3740 /* Override any gcc2 internal prototype to avoid an error.  */
3741 #ifdef __cplusplus
3742 extern "C"
3743 {
3744 #endif
3745 /* We use char because int might match the return type of a gcc2
3746    builtin and then its argument prototype would still apply.  */
3747 char gethostbyname ();
3748 /* The GNU C library defines this for functions which it implements
3749     to always fail with ENOSYS.  Some functions are actually named
3750     something starting with __ and the normal name is an alias.  */
3751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3752 choke me
3753 #else
3754 char (*f) () = gethostbyname;
3755 #endif
3756 #ifdef __cplusplus
3757 }
3758 #endif
3759
3760 int
3761 main ()
3762 {
3763 return f != gethostbyname;
3764   ;
3765   return 0;
3766 }
3767 _ACEOF
3768 rm -f conftest.$ac_objext conftest$ac_exeext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770   (eval $ac_link) 2>conftest.er1
3771   ac_status=$?
3772   grep -v '^ *+' conftest.er1 >conftest.err
3773   rm -f conftest.er1
3774   cat conftest.err >&5
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } &&
3777          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest$ac_exeext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   ac_cv_func_gethostbyname=yes
3790 else
3791   echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 ac_cv_func_gethostbyname=no
3795 fi
3796 rm -f conftest.err conftest.$ac_objext \
3797       conftest$ac_exeext conftest.$ac_ext
3798 fi
3799 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3800 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3801
3802     if test $ac_cv_func_gethostbyname = no; then
3803       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3804 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3805 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   ac_check_lib_save_LIBS=$LIBS
3809 LIBS="-lnsl  $LIBS"
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816
3817 /* Override any gcc2 internal prototype to avoid an error.  */
3818 #ifdef __cplusplus
3819 extern "C"
3820 #endif
3821 /* We use char because int might match the return type of a gcc2
3822    builtin and then its argument prototype would still apply.  */
3823 char gethostbyname ();
3824 int
3825 main ()
3826 {
3827 gethostbyname ();
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834   (eval $ac_link) 2>conftest.er1
3835   ac_status=$?
3836   grep -v '^ *+' conftest.er1 >conftest.err
3837   rm -f conftest.er1
3838   cat conftest.err >&5
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); } &&
3841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843   (eval $ac_try) 2>&5
3844   ac_status=$?
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); }; } &&
3847          { ac_try='test -s conftest$ac_exeext'
3848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849   (eval $ac_try) 2>&5
3850   ac_status=$?
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); }; }; then
3853   ac_cv_lib_nsl_gethostbyname=yes
3854 else
3855   echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858 ac_cv_lib_nsl_gethostbyname=no
3859 fi
3860 rm -f conftest.err conftest.$ac_objext \
3861       conftest$ac_exeext conftest.$ac_ext
3862 LIBS=$ac_check_lib_save_LIBS
3863 fi
3864 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3866 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3867   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3868 fi
3869
3870       if test $ac_cv_lib_nsl_gethostbyname = no; then
3871         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3872 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3873 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   ac_check_lib_save_LIBS=$LIBS
3877 LIBS="-lbsd  $LIBS"
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884
3885 /* Override any gcc2 internal prototype to avoid an error.  */
3886 #ifdef __cplusplus
3887 extern "C"
3888 #endif
3889 /* We use char because int might match the return type of a gcc2
3890    builtin and then its argument prototype would still apply.  */
3891 char gethostbyname ();
3892 int
3893 main ()
3894 {
3895 gethostbyname ();
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902   (eval $ac_link) 2>conftest.er1
3903   ac_status=$?
3904   grep -v '^ *+' conftest.er1 >conftest.err
3905   rm -f conftest.er1
3906   cat conftest.err >&5
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); } &&
3909          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911   (eval $ac_try) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); }; } &&
3915          { ac_try='test -s conftest$ac_exeext'
3916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917   (eval $ac_try) 2>&5
3918   ac_status=$?
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); }; }; then
3921   ac_cv_lib_bsd_gethostbyname=yes
3922 else
3923   echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 ac_cv_lib_bsd_gethostbyname=no
3927 fi
3928 rm -f conftest.err conftest.$ac_objext \
3929       conftest$ac_exeext conftest.$ac_ext
3930 LIBS=$ac_check_lib_save_LIBS
3931 fi
3932 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3933 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3934 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3935   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3936 fi
3937
3938       fi
3939     fi
3940
3941     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3942     # socket/setsockopt and other routines are undefined under SCO ODT
3943     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3944     # on later versions), says Simon Leinen: it contains gethostby*
3945     # variants that don't use the name server (or something).  -lsocket
3946     # must be given before -lnsl if both are needed.  We assume that
3947     # if connect needs -lnsl, so does gethostbyname.
3948     echo "$as_me:$LINENO: checking for connect" >&5
3949 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3950 if test "${ac_cv_func_connect+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h.  */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h.  */
3959 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3961 #define connect innocuous_connect
3962
3963 /* System header to define __stub macros and hopefully few prototypes,
3964     which can conflict with char connect (); below.
3965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966     <limits.h> exists even on freestanding compilers.  */
3967
3968 #ifdef __STDC__
3969 # include <limits.h>
3970 #else
3971 # include <assert.h>
3972 #endif
3973
3974 #undef connect
3975
3976 /* Override any gcc2 internal prototype to avoid an error.  */
3977 #ifdef __cplusplus
3978 extern "C"
3979 {
3980 #endif
3981 /* We use char because int might match the return type of a gcc2
3982    builtin and then its argument prototype would still apply.  */
3983 char connect ();
3984 /* The GNU C library defines this for functions which it implements
3985     to always fail with ENOSYS.  Some functions are actually named
3986     something starting with __ and the normal name is an alias.  */
3987 #if defined (__stub_connect) || defined (__stub___connect)
3988 choke me
3989 #else
3990 char (*f) () = connect;
3991 #endif
3992 #ifdef __cplusplus
3993 }
3994 #endif
3995
3996 int
3997 main ()
3998 {
3999 return f != connect;
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006   (eval $ac_link) 2>conftest.er1
4007   ac_status=$?
4008   grep -v '^ *+' conftest.er1 >conftest.err
4009   rm -f conftest.er1
4010   cat conftest.err >&5
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } &&
4013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015   (eval $ac_try) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }; } &&
4019          { ac_try='test -s conftest$ac_exeext'
4020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021   (eval $ac_try) 2>&5
4022   ac_status=$?
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); }; }; then
4025   ac_cv_func_connect=yes
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 ac_cv_func_connect=no
4031 fi
4032 rm -f conftest.err conftest.$ac_objext \
4033       conftest$ac_exeext conftest.$ac_ext
4034 fi
4035 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4036 echo "${ECHO_T}$ac_cv_func_connect" >&6
4037
4038     if test $ac_cv_func_connect = no; then
4039       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4040 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4041 if test "${ac_cv_lib_socket_connect+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   ac_check_lib_save_LIBS=$LIBS
4045 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052
4053 /* Override any gcc2 internal prototype to avoid an error.  */
4054 #ifdef __cplusplus
4055 extern "C"
4056 #endif
4057 /* We use char because int might match the return type of a gcc2
4058    builtin and then its argument prototype would still apply.  */
4059 char connect ();
4060 int
4061 main ()
4062 {
4063 connect ();
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest.$ac_objext conftest$ac_exeext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070   (eval $ac_link) 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } &&
4077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; } &&
4083          { ac_try='test -s conftest$ac_exeext'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; }; then
4089   ac_cv_lib_socket_connect=yes
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 ac_cv_lib_socket_connect=no
4095 fi
4096 rm -f conftest.err conftest.$ac_objext \
4097       conftest$ac_exeext conftest.$ac_ext
4098 LIBS=$ac_check_lib_save_LIBS
4099 fi
4100 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4101 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4102 if test $ac_cv_lib_socket_connect = yes; then
4103   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4104 fi
4105
4106     fi
4107
4108     # Guillermo Gomez says -lposix is necessary on A/UX.
4109     echo "$as_me:$LINENO: checking for remove" >&5
4110 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4111 if test "${ac_cv_func_remove+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4122 #define remove innocuous_remove
4123
4124 /* System header to define __stub macros and hopefully few prototypes,
4125     which can conflict with char remove (); below.
4126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127     <limits.h> exists even on freestanding compilers.  */
4128
4129 #ifdef __STDC__
4130 # include <limits.h>
4131 #else
4132 # include <assert.h>
4133 #endif
4134
4135 #undef remove
4136
4137 /* Override any gcc2 internal prototype to avoid an error.  */
4138 #ifdef __cplusplus
4139 extern "C"
4140 {
4141 #endif
4142 /* We use char because int might match the return type of a gcc2
4143    builtin and then its argument prototype would still apply.  */
4144 char remove ();
4145 /* The GNU C library defines this for functions which it implements
4146     to always fail with ENOSYS.  Some functions are actually named
4147     something starting with __ and the normal name is an alias.  */
4148 #if defined (__stub_remove) || defined (__stub___remove)
4149 choke me
4150 #else
4151 char (*f) () = remove;
4152 #endif
4153 #ifdef __cplusplus
4154 }
4155 #endif
4156
4157 int
4158 main ()
4159 {
4160 return f != remove;
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167   (eval $ac_link) 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } &&
4174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176   (eval $ac_try) 2>&5
4177   ac_status=$?
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); }; } &&
4180          { ac_try='test -s conftest$ac_exeext'
4181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182   (eval $ac_try) 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; }; then
4186   ac_cv_func_remove=yes
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 ac_cv_func_remove=no
4192 fi
4193 rm -f conftest.err conftest.$ac_objext \
4194       conftest$ac_exeext conftest.$ac_ext
4195 fi
4196 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4197 echo "${ECHO_T}$ac_cv_func_remove" >&6
4198
4199     if test $ac_cv_func_remove = no; then
4200       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4201 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4202 if test "${ac_cv_lib_posix_remove+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   ac_check_lib_save_LIBS=$LIBS
4206 LIBS="-lposix  $LIBS"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213
4214 /* Override any gcc2 internal prototype to avoid an error.  */
4215 #ifdef __cplusplus
4216 extern "C"
4217 #endif
4218 /* We use char because int might match the return type of a gcc2
4219    builtin and then its argument prototype would still apply.  */
4220 char remove ();
4221 int
4222 main ()
4223 {
4224 remove ();
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231   (eval $ac_link) 2>conftest.er1
4232   ac_status=$?
4233   grep -v '^ *+' conftest.er1 >conftest.err
4234   rm -f conftest.er1
4235   cat conftest.err >&5
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } &&
4238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; } &&
4244          { ac_try='test -s conftest$ac_exeext'
4245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246   (eval $ac_try) 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; }; then
4250   ac_cv_lib_posix_remove=yes
4251 else
4252   echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 ac_cv_lib_posix_remove=no
4256 fi
4257 rm -f conftest.err conftest.$ac_objext \
4258       conftest$ac_exeext conftest.$ac_ext
4259 LIBS=$ac_check_lib_save_LIBS
4260 fi
4261 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4262 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4263 if test $ac_cv_lib_posix_remove = yes; then
4264   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4265 fi
4266
4267     fi
4268
4269     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4270     echo "$as_me:$LINENO: checking for shmat" >&5
4271 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4272 if test "${ac_cv_func_shmat+set}" = set; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275   cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4283 #define shmat innocuous_shmat
4284
4285 /* System header to define __stub macros and hopefully few prototypes,
4286     which can conflict with char shmat (); below.
4287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288     <limits.h> exists even on freestanding compilers.  */
4289
4290 #ifdef __STDC__
4291 # include <limits.h>
4292 #else
4293 # include <assert.h>
4294 #endif
4295
4296 #undef shmat
4297
4298 /* Override any gcc2 internal prototype to avoid an error.  */
4299 #ifdef __cplusplus
4300 extern "C"
4301 {
4302 #endif
4303 /* We use char because int might match the return type of a gcc2
4304    builtin and then its argument prototype would still apply.  */
4305 char shmat ();
4306 /* The GNU C library defines this for functions which it implements
4307     to always fail with ENOSYS.  Some functions are actually named
4308     something starting with __ and the normal name is an alias.  */
4309 #if defined (__stub_shmat) || defined (__stub___shmat)
4310 choke me
4311 #else
4312 char (*f) () = shmat;
4313 #endif
4314 #ifdef __cplusplus
4315 }
4316 #endif
4317
4318 int
4319 main ()
4320 {
4321 return f != shmat;
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328   (eval $ac_link) 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } &&
4335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; } &&
4341          { ac_try='test -s conftest$ac_exeext'
4342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343   (eval $ac_try) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   ac_cv_func_shmat=yes
4348 else
4349   echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 ac_cv_func_shmat=no
4353 fi
4354 rm -f conftest.err conftest.$ac_objext \
4355       conftest$ac_exeext conftest.$ac_ext
4356 fi
4357 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4358 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4359
4360     if test $ac_cv_func_shmat = no; then
4361       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4362 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4363 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   ac_check_lib_save_LIBS=$LIBS
4367 LIBS="-lipc  $LIBS"
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374
4375 /* Override any gcc2 internal prototype to avoid an error.  */
4376 #ifdef __cplusplus
4377 extern "C"
4378 #endif
4379 /* We use char because int might match the return type of a gcc2
4380    builtin and then its argument prototype would still apply.  */
4381 char shmat ();
4382 int
4383 main ()
4384 {
4385 shmat ();
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392   (eval $ac_link) 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } &&
4399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401   (eval $ac_try) 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; } &&
4405          { ac_try='test -s conftest$ac_exeext'
4406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407   (eval $ac_try) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; }; then
4411   ac_cv_lib_ipc_shmat=yes
4412 else
4413   echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ac_cv_lib_ipc_shmat=no
4417 fi
4418 rm -f conftest.err conftest.$ac_objext \
4419       conftest$ac_exeext conftest.$ac_ext
4420 LIBS=$ac_check_lib_save_LIBS
4421 fi
4422 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4423 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4424 if test $ac_cv_lib_ipc_shmat = yes; then
4425   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4426 fi
4427
4428     fi
4429   fi
4430
4431   # Check for libraries that X11R6 Xt/Xaw programs need.
4432   ac_save_LDFLAGS=$LDFLAGS
4433   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4434   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4435   # check for ICE first), but we must link in the order -lSM -lICE or
4436   # we get undefined symbols.  So assume we have SM if we have ICE.
4437   # These have to be linked with before -lX11, unlike the other
4438   # libraries we check for below, so use a different variable.
4439   # John Interrante, Karl Berry
4440   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4441 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4442 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   ac_check_lib_save_LIBS=$LIBS
4446 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453
4454 /* Override any gcc2 internal prototype to avoid an error.  */
4455 #ifdef __cplusplus
4456 extern "C"
4457 #endif
4458 /* We use char because int might match the return type of a gcc2
4459    builtin and then its argument prototype would still apply.  */
4460 char IceConnectionNumber ();
4461 int
4462 main ()
4463 {
4464 IceConnectionNumber ();
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 rm -f conftest.$ac_objext conftest$ac_exeext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4471   (eval $ac_link) 2>conftest.er1
4472   ac_status=$?
4473   grep -v '^ *+' conftest.er1 >conftest.err
4474   rm -f conftest.er1
4475   cat conftest.err >&5
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); } &&
4478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; } &&
4484          { ac_try='test -s conftest$ac_exeext'
4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486   (eval $ac_try) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   ac_cv_lib_ICE_IceConnectionNumber=yes
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 ac_cv_lib_ICE_IceConnectionNumber=no
4496 fi
4497 rm -f conftest.err conftest.$ac_objext \
4498       conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4500 fi
4501 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4502 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4503 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4504   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4505 fi
4506
4507   LDFLAGS=$ac_save_LDFLAGS
4508
4509 fi
4510
4511 for ac_prog in flex lex
4512 do
4513   # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_prog_LEX+set}" = set; then
4518   echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520   if test -n "$LEX"; then
4521   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528   for ac_exec_ext in '' $ac_executable_extensions; do
4529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530     ac_cv_prog_LEX="$ac_prog"
4531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535 done
4536
4537 fi
4538 fi
4539 LEX=$ac_cv_prog_LEX
4540 if test -n "$LEX"; then
4541   echo "$as_me:$LINENO: result: $LEX" >&5
4542 echo "${ECHO_T}$LEX" >&6
4543 else
4544   echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546 fi
4547
4548   test -n "$LEX" && break
4549 done
4550 test -n "$LEX" || LEX=":"
4551
4552 if test -z "$LEXLIB"
4553 then
4554   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4555 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4556 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   ac_check_lib_save_LIBS=$LIBS
4560 LIBS="-lfl  $LIBS"
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567
4568 /* Override any gcc2 internal prototype to avoid an error.  */
4569 #ifdef __cplusplus
4570 extern "C"
4571 #endif
4572 /* We use char because int might match the return type of a gcc2
4573    builtin and then its argument prototype would still apply.  */
4574 char yywrap ();
4575 int
4576 main ()
4577 {
4578 yywrap ();
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext conftest$ac_exeext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585   (eval $ac_link) 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } &&
4592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594   (eval $ac_try) 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }; } &&
4598          { ac_try='test -s conftest$ac_exeext'
4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   ac_cv_lib_fl_yywrap=yes
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 ac_cv_lib_fl_yywrap=no
4610 fi
4611 rm -f conftest.err conftest.$ac_objext \
4612       conftest$ac_exeext conftest.$ac_ext
4613 LIBS=$ac_check_lib_save_LIBS
4614 fi
4615 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4616 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4617 if test $ac_cv_lib_fl_yywrap = yes; then
4618   LEXLIB="-lfl"
4619 else
4620   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4621 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4622 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-ll  $LIBS"
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633
4634 /* Override any gcc2 internal prototype to avoid an error.  */
4635 #ifdef __cplusplus
4636 extern "C"
4637 #endif
4638 /* We use char because int might match the return type of a gcc2
4639    builtin and then its argument prototype would still apply.  */
4640 char yywrap ();
4641 int
4642 main ()
4643 {
4644 yywrap ();
4645   ;
4646   return 0;
4647 }
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651   (eval $ac_link) 2>conftest.er1
4652   ac_status=$?
4653   grep -v '^ *+' conftest.er1 >conftest.err
4654   rm -f conftest.er1
4655   cat conftest.err >&5
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } &&
4658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; } &&
4664          { ac_try='test -s conftest$ac_exeext'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   ac_cv_lib_l_yywrap=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675 ac_cv_lib_l_yywrap=no
4676 fi
4677 rm -f conftest.err conftest.$ac_objext \
4678       conftest$ac_exeext conftest.$ac_ext
4679 LIBS=$ac_check_lib_save_LIBS
4680 fi
4681 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4682 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4683 if test $ac_cv_lib_l_yywrap = yes; then
4684   LEXLIB="-ll"
4685 fi
4686
4687 fi
4688
4689 fi
4690
4691 if test "x$LEX" != "x:"; then
4692   echo "$as_me:$LINENO: checking lex output file root" >&5
4693 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4694 if test "${ac_cv_prog_lex_root+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   # The minimal lex program is just a single line: %%.  But some broken lexes
4698 # (Solaris, I think it was) want two %% lines, so accommodate them.
4699 cat >conftest.l <<_ACEOF
4700 %%
4701 %%
4702 _ACEOF
4703 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4704   (eval $LEX conftest.l) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }
4708 if test -f lex.yy.c; then
4709   ac_cv_prog_lex_root=lex.yy
4710 elif test -f lexyy.c; then
4711   ac_cv_prog_lex_root=lexyy
4712 else
4713   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4714 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4715    { (exit 1); exit 1; }; }
4716 fi
4717 fi
4718 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4719 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4720 rm -f conftest.l
4721 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4722
4723 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4724 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4725 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   # POSIX says lex can declare yytext either as a pointer or an array; the
4729 # default is implementation-dependent. Figure out which it is, since
4730 # not all implementations provide the %pointer and %array declarations.
4731 ac_cv_prog_lex_yytext_pointer=no
4732 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4733 ac_save_LIBS=$LIBS
4734 LIBS="$LIBS $LEXLIB"
4735 cat >conftest.$ac_ext <<_ACEOF
4736 `cat $LEX_OUTPUT_ROOT.c`
4737 _ACEOF
4738 rm -f conftest.$ac_objext conftest$ac_exeext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740   (eval $ac_link) 2>conftest.er1
4741   ac_status=$?
4742   grep -v '^ *+' conftest.er1 >conftest.err
4743   rm -f conftest.er1
4744   cat conftest.err >&5
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); } &&
4747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749   (eval $ac_try) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); }; } &&
4753          { ac_try='test -s conftest$ac_exeext'
4754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755   (eval $ac_try) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   ac_cv_prog_lex_yytext_pointer=yes
4760 else
4761   echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 fi
4765 rm -f conftest.err conftest.$ac_objext \
4766       conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_save_LIBS
4768 rm -f "${LEX_OUTPUT_ROOT}.c"
4769
4770 fi
4771 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4772 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4773 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4774
4775 cat >>confdefs.h <<\_ACEOF
4776 #define YYTEXT_POINTER 1
4777 _ACEOF
4778
4779 fi
4780
4781 fi
4782
4783 for ac_prog in $LEX flex lex
4784 do
4785   # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_XLEX+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   if test -n "$XLEX"; then
4793   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800   for ac_exec_ext in '' $ac_executable_extensions; do
4801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802     ac_cv_prog_XLEX="$ac_prog"
4803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807 done
4808
4809 fi
4810 fi
4811 XLEX=$ac_cv_prog_XLEX
4812 if test -n "$XLEX"; then
4813   echo "$as_me:$LINENO: result: $XLEX" >&5
4814 echo "${ECHO_T}$XLEX" >&6
4815 else
4816   echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4818 fi
4819
4820   test -n "$XLEX" && break
4821 done
4822 test -n "$XLEX" || XLEX="none"
4823
4824 if test "$XLEX" = "none"
4825 then
4826   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4827 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4828    { (exit 1); exit 1; }; }
4829 fi
4830
4831 for ac_prog in bison
4832 do
4833   # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4837 if test "${ac_cv_prog_BISON+set}" = set; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   if test -n "$BISON"; then
4841   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848   for ac_exec_ext in '' $ac_executable_extensions; do
4849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850     ac_cv_prog_BISON="$ac_prog"
4851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852     break 2
4853   fi
4854 done
4855 done
4856
4857 fi
4858 fi
4859 BISON=$ac_cv_prog_BISON
4860 if test -n "$BISON"; then
4861   echo "$as_me:$LINENO: result: $BISON" >&5
4862 echo "${ECHO_T}$BISON" >&6
4863 else
4864   echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4866 fi
4867
4868   test -n "$BISON" && break
4869 done
4870 test -n "$BISON" || BISON="none"
4871
4872 if test "$BISON" = "none"
4873 then
4874   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4875 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4876    { (exit 1); exit 1; }; }
4877 fi
4878
4879 if test -n "$ac_tool_prefix"; then
4880   for ac_prog in gas as
4881   do
4882     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_AS+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   if test -n "$AS"; then
4890   ac_cv_prog_AS="$AS" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897   for ac_exec_ext in '' $ac_executable_extensions; do
4898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904 done
4905
4906 fi
4907 fi
4908 AS=$ac_cv_prog_AS
4909 if test -n "$AS"; then
4910   echo "$as_me:$LINENO: result: $AS" >&5
4911 echo "${ECHO_T}$AS" >&6
4912 else
4913   echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4915 fi
4916
4917     test -n "$AS" && break
4918   done
4919 fi
4920 if test -z "$AS"; then
4921   ac_ct_AS=$AS
4922   for ac_prog in gas as
4923 do
4924   # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   if test -n "$ac_ct_AS"; then
4932   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937   IFS=$as_save_IFS
4938   test -z "$as_dir" && as_dir=.
4939   for ac_exec_ext in '' $ac_executable_extensions; do
4940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941     ac_cv_prog_ac_ct_AS="$ac_prog"
4942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943     break 2
4944   fi
4945 done
4946 done
4947
4948 fi
4949 fi
4950 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4951 if test -n "$ac_ct_AS"; then
4952   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4953 echo "${ECHO_T}$ac_ct_AS" >&6
4954 else
4955   echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6
4957 fi
4958
4959   test -n "$ac_ct_AS" && break
4960 done
4961 test -n "$ac_ct_AS" || ac_ct_AS="as"
4962
4963   AS=$ac_ct_AS
4964 fi
4965
4966 if test -n "$ac_tool_prefix"; then
4967   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4968 set dummy ${ac_tool_prefix}ld; ac_word=$2
4969 echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971 if test "${ac_cv_prog_LD+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   if test -n "$LD"; then
4975   ac_cv_prog_LD="$LD" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982   for ac_exec_ext in '' $ac_executable_extensions; do
4983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984     ac_cv_prog_LD="${ac_tool_prefix}ld"
4985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986     break 2
4987   fi
4988 done
4989 done
4990
4991 fi
4992 fi
4993 LD=$ac_cv_prog_LD
4994 if test -n "$LD"; then
4995   echo "$as_me:$LINENO: result: $LD" >&5
4996 echo "${ECHO_T}$LD" >&6
4997 else
4998   echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5000 fi
5001
5002 fi
5003 if test -z "$ac_cv_prog_LD"; then
5004   ac_ct_LD=$LD
5005   # Extract the first word of "ld", so it can be a program name with args.
5006 set dummy ld; ac_word=$2
5007 echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   if test -n "$ac_ct_LD"; then
5013   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020   for ac_exec_ext in '' $ac_executable_extensions; do
5021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022     ac_cv_prog_ac_ct_LD="ld"
5023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027 done
5028
5029   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5030 fi
5031 fi
5032 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5033 if test -n "$ac_ct_LD"; then
5034   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5035 echo "${ECHO_T}$ac_ct_LD" >&6
5036 else
5037   echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5039 fi
5040
5041   LD=$ac_ct_LD
5042 else
5043   LD="$ac_cv_prog_LD"
5044 fi
5045
5046 if test -n "$ac_tool_prefix"; then
5047   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}ar; ac_word=$2
5049 echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051 if test "${ac_cv_prog_AR+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   if test -n "$AR"; then
5055   ac_cv_prog_AR="$AR" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   for ac_exec_ext in '' $ac_executable_extensions; do
5063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064     ac_cv_prog_AR="${ac_tool_prefix}ar"
5065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069 done
5070
5071 fi
5072 fi
5073 AR=$ac_cv_prog_AR
5074 if test -n "$AR"; then
5075   echo "$as_me:$LINENO: result: $AR" >&5
5076 echo "${ECHO_T}$AR" >&6
5077 else
5078   echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5080 fi
5081
5082 fi
5083 if test -z "$ac_cv_prog_AR"; then
5084   ac_ct_AR=$AR
5085   # Extract the first word of "ar", so it can be a program name with args.
5086 set dummy ar; ac_word=$2
5087 echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5090   echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092   if test -n "$ac_ct_AR"; then
5093   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098   IFS=$as_save_IFS
5099   test -z "$as_dir" && as_dir=.
5100   for ac_exec_ext in '' $ac_executable_extensions; do
5101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102     ac_cv_prog_ac_ct_AR="ar"
5103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104     break 2
5105   fi
5106 done
5107 done
5108
5109   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5110 fi
5111 fi
5112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5113 if test -n "$ac_ct_AR"; then
5114   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5115 echo "${ECHO_T}$ac_ct_AR" >&6
5116 else
5117   echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5119 fi
5120
5121   AR=$ac_ct_AR
5122 else
5123   AR="$ac_cv_prog_AR"
5124 fi
5125
5126 if test -n "$ac_tool_prefix"; then
5127   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_RANLIB+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   if test -n "$RANLIB"; then
5135   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142   for ac_exec_ext in '' $ac_executable_extensions; do
5143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149 done
5150
5151 fi
5152 fi
5153 RANLIB=$ac_cv_prog_RANLIB
5154 if test -n "$RANLIB"; then
5155   echo "$as_me:$LINENO: result: $RANLIB" >&5
5156 echo "${ECHO_T}$RANLIB" >&6
5157 else
5158   echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5160 fi
5161
5162 fi
5163 if test -z "$ac_cv_prog_RANLIB"; then
5164   ac_ct_RANLIB=$RANLIB
5165   # Extract the first word of "ranlib", so it can be a program name with args.
5166 set dummy ranlib; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   if test -n "$ac_ct_RANLIB"; then
5173   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180   for ac_exec_ext in '' $ac_executable_extensions; do
5181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182     ac_cv_prog_ac_ct_RANLIB="ranlib"
5183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187 done
5188
5189   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5190 fi
5191 fi
5192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5193 if test -n "$ac_ct_RANLIB"; then
5194   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5195 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5196 else
5197   echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5199 fi
5200
5201   RANLIB=$ac_ct_RANLIB
5202 else
5203   RANLIB="$ac_cv_prog_RANLIB"
5204 fi
5205
5206 if test -n "$ac_tool_prefix"; then
5207   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5208 set dummy ${ac_tool_prefix}strip; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_STRIP+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   if test -n "$STRIP"; then
5215   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222   for ac_exec_ext in '' $ac_executable_extensions; do
5223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229 done
5230
5231 fi
5232 fi
5233 STRIP=$ac_cv_prog_STRIP
5234 if test -n "$STRIP"; then
5235   echo "$as_me:$LINENO: result: $STRIP" >&5
5236 echo "${ECHO_T}$STRIP" >&6
5237 else
5238   echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5240 fi
5241
5242 fi
5243 if test -z "$ac_cv_prog_STRIP"; then
5244   ac_ct_STRIP=$STRIP
5245   # Extract the first word of "strip", so it can be a program name with args.
5246 set dummy strip; ac_word=$2
5247 echo "$as_me:$LINENO: checking for $ac_word" >&5
5248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5249 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5250   echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252   if test -n "$ac_ct_STRIP"; then
5253   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258   IFS=$as_save_IFS
5259   test -z "$as_dir" && as_dir=.
5260   for ac_exec_ext in '' $ac_executable_extensions; do
5261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262     ac_cv_prog_ac_ct_STRIP="strip"
5263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267 done
5268
5269   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5270 fi
5271 fi
5272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5273 if test -n "$ac_ct_STRIP"; then
5274   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5275 echo "${ECHO_T}$ac_ct_STRIP" >&6
5276 else
5277   echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5279 fi
5280
5281   STRIP=$ac_ct_STRIP
5282 else
5283   STRIP="$ac_cv_prog_STRIP"
5284 fi
5285
5286 if test -n "$ac_tool_prefix"; then
5287   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}windres; ac_word=$2
5289 echo "$as_me:$LINENO: checking for $ac_word" >&5
5290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5291 if test "${ac_cv_prog_WINDRES+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   if test -n "$WINDRES"; then
5295   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300   IFS=$as_save_IFS
5301   test -z "$as_dir" && as_dir=.
5302   for ac_exec_ext in '' $ac_executable_extensions; do
5303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306     break 2
5307   fi
5308 done
5309 done
5310
5311 fi
5312 fi
5313 WINDRES=$ac_cv_prog_WINDRES
5314 if test -n "$WINDRES"; then
5315   echo "$as_me:$LINENO: result: $WINDRES" >&5
5316 echo "${ECHO_T}$WINDRES" >&6
5317 else
5318   echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5320 fi
5321
5322 fi
5323 if test -z "$ac_cv_prog_WINDRES"; then
5324   ac_ct_WINDRES=$WINDRES
5325   # Extract the first word of "windres", so it can be a program name with args.
5326 set dummy windres; ac_word=$2
5327 echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   if test -n "$ac_ct_WINDRES"; then
5333   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338   IFS=$as_save_IFS
5339   test -z "$as_dir" && as_dir=.
5340   for ac_exec_ext in '' $ac_executable_extensions; do
5341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342     ac_cv_prog_ac_ct_WINDRES="windres"
5343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344     break 2
5345   fi
5346 done
5347 done
5348
5349   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5350 fi
5351 fi
5352 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5353 if test -n "$ac_ct_WINDRES"; then
5354   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5355 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5356 else
5357   echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6
5359 fi
5360
5361   WINDRES=$ac_ct_WINDRES
5362 else
5363   WINDRES="$ac_cv_prog_WINDRES"
5364 fi
5365
5366 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5368 LN_S=$as_ln_s
5369 if test "$LN_S" = "ln -s"; then
5370   echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5372 else
5373   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5374 echo "${ECHO_T}no, using $LN_S" >&6
5375 fi
5376
5377 echo "$as_me:$LINENO: checking whether ln works" >&5
5378 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5379 rm -f conf$$ conf$$.file
5380 echo >conf$$.file
5381 if ln conf$$.file conf$$ 2>/dev/null; then
5382   LN=ln
5383
5384   echo "$as_me:$LINENO: result: yes" >&5
5385 echo "${ECHO_T}yes" >&6
5386 else
5387   LN="cp -p"
5388
5389   echo "$as_me:$LINENO: result: no, using $LN" >&5
5390 echo "${ECHO_T}no, using $LN" >&6
5391 fi
5392 rm -f conf$$ conf$$.file
5393 echo "$as_me:$LINENO: checking for egrep" >&5
5394 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5395 if test "${ac_cv_prog_egrep+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5399     then ac_cv_prog_egrep='grep -E'
5400     else ac_cv_prog_egrep='egrep'
5401     fi
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5404 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5405  EGREP=$ac_cv_prog_egrep
5406
5407
5408 # Extract the first word of "ldconfig", so it can be a program name with args.
5409 set dummy ldconfig; ac_word=$2
5410 echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5412 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   case $LDCONFIG in
5416   [\\/]* | ?:[\\/]*)
5417   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5418   ;;
5419   *)
5420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in /sbin /usr/sbin $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425   for ac_exec_ext in '' $ac_executable_extensions; do
5426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432 done
5433
5434   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5435   ;;
5436 esac
5437 fi
5438 LDCONFIG=$ac_cv_path_LDCONFIG
5439
5440 if test -n "$LDCONFIG"; then
5441   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5442 echo "${ECHO_T}$LDCONFIG" >&6
5443 else
5444   echo "$as_me:$LINENO: result: no" >&5
5445 echo "${ECHO_T}no" >&6
5446 fi
5447
5448 # Find a good install program.  We prefer a C program (faster),
5449 # so one script is as good as another.  But avoid the broken or
5450 # incompatible versions:
5451 # SysV /etc/install, /usr/sbin/install
5452 # SunOS /usr/etc/install
5453 # IRIX /sbin/install
5454 # AIX /bin/install
5455 # AmigaOS /C/install, which installs bootblocks on floppy discs
5456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5459 # OS/2's system install, which has a completely different semantic
5460 # ./install, which can be erroneously created by make from ./install.sh.
5461 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5462 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5463 if test -z "$INSTALL"; then
5464 if test "${ac_cv_path_install+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472   # Account for people who put trailing slashes in PATH elements.
5473 case $as_dir/ in
5474   ./ | .// | /cC/* | \
5475   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5476   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5477   /usr/ucb/* ) ;;
5478   *)
5479     # OSF1 and SCO ODT 3.0 have their own names for install.
5480     # Don't use installbsd from OSF since it installs stuff as root
5481     # by default.
5482     for ac_prog in ginstall scoinst install; do
5483       for ac_exec_ext in '' $ac_executable_extensions; do
5484         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5485           if test $ac_prog = install &&
5486             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5487             # AIX install.  It has an incompatible calling convention.
5488             :
5489           elif test $ac_prog = install &&
5490             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5491             # program-specific install script used by HP pwplus--don't use.
5492             :
5493           else
5494             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5495             break 3
5496           fi
5497         fi
5498       done
5499     done
5500     ;;
5501 esac
5502 done
5503
5504
5505 fi
5506   if test "${ac_cv_path_install+set}" = set; then
5507     INSTALL=$ac_cv_path_install
5508   else
5509     # As a last resort, use the slow shell script.  We don't cache a
5510     # path for INSTALL within a source directory, because that will
5511     # break other packages using the cache if that directory is
5512     # removed, or if the path is relative.
5513     INSTALL=$ac_install_sh
5514   fi
5515 fi
5516 echo "$as_me:$LINENO: result: $INSTALL" >&5
5517 echo "${ECHO_T}$INSTALL" >&6
5518
5519 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5520 # It thinks the first close brace ends the variable substitution.
5521 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5522
5523 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5524
5525 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5526
5527 case "$INSTALL" in
5528   [\\/$]* | ?:[\\/]* ) ;;
5529   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5530 esac
5531
5532 for ac_prog in lclint lint
5533 do
5534   # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_prog_LINT+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   if test -n "$LINT"; then
5542   ac_cv_prog_LINT="$LINT" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549   for ac_exec_ext in '' $ac_executable_extensions; do
5550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551     ac_cv_prog_LINT="$ac_prog"
5552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556 done
5557
5558 fi
5559 fi
5560 LINT=$ac_cv_prog_LINT
5561 if test -n "$LINT"; then
5562   echo "$as_me:$LINENO: result: $LINT" >&5
5563 echo "${ECHO_T}$LINT" >&6
5564 else
5565   echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5567 fi
5568
5569   test -n "$LINT" && break
5570 done
5571
5572 if test "$LINT" = "lint"
5573 then
5574   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5575   fi
5576
5577
5578
5579 for ac_prog in docbook2html db2html
5580 do
5581   # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5585 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   if test -n "$DB2HTML"; then
5589   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596   for ac_exec_ext in '' $ac_executable_extensions; do
5597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598     ac_cv_prog_DB2HTML="$ac_prog"
5599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603 done
5604
5605 fi
5606 fi
5607 DB2HTML=$ac_cv_prog_DB2HTML
5608 if test -n "$DB2HTML"; then
5609   echo "$as_me:$LINENO: result: $DB2HTML" >&5
5610 echo "${ECHO_T}$DB2HTML" >&6
5611 else
5612   echo "$as_me:$LINENO: result: no" >&5
5613 echo "${ECHO_T}no" >&6
5614 fi
5615
5616   test -n "$DB2HTML" && break
5617 done
5618 test -n "$DB2HTML" || DB2HTML="false"
5619
5620 for ac_prog in docbook2pdf db2pdf
5621 do
5622   # Extract the first word of "$ac_prog", so it can be a program name with args.
5623 set dummy $ac_prog; ac_word=$2
5624 echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   if test -n "$DB2PDF"; then
5630   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637   for ac_exec_ext in '' $ac_executable_extensions; do
5638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639     ac_cv_prog_DB2PDF="$ac_prog"
5640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644 done
5645
5646 fi
5647 fi
5648 DB2PDF=$ac_cv_prog_DB2PDF
5649 if test -n "$DB2PDF"; then
5650   echo "$as_me:$LINENO: result: $DB2PDF" >&5
5651 echo "${ECHO_T}$DB2PDF" >&6
5652 else
5653   echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5655 fi
5656
5657   test -n "$DB2PDF" && break
5658 done
5659 test -n "$DB2PDF" || DB2PDF="false"
5660
5661 for ac_prog in docbook2ps db2ps
5662 do
5663   # Extract the first word of "$ac_prog", so it can be a program name with args.
5664 set dummy $ac_prog; ac_word=$2
5665 echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667 if test "${ac_cv_prog_DB2PS+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   if test -n "$DB2PS"; then
5671   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676   IFS=$as_save_IFS
5677   test -z "$as_dir" && as_dir=.
5678   for ac_exec_ext in '' $ac_executable_extensions; do
5679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680     ac_cv_prog_DB2PS="$ac_prog"
5681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682     break 2
5683   fi
5684 done
5685 done
5686
5687 fi
5688 fi
5689 DB2PS=$ac_cv_prog_DB2PS
5690 if test -n "$DB2PS"; then
5691   echo "$as_me:$LINENO: result: $DB2PS" >&5
5692 echo "${ECHO_T}$DB2PS" >&6
5693 else
5694   echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6
5696 fi
5697
5698   test -n "$DB2PS" && break
5699 done
5700 test -n "$DB2PS" || DB2PS="false"
5701
5702 for ac_prog in docbook2txt db2txt
5703 do
5704   # Extract the first word of "$ac_prog", so it can be a program name with args.
5705 set dummy $ac_prog; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   if test -n "$DB2TXT"; then
5712   ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719   for ac_exec_ext in '' $ac_executable_extensions; do
5720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721     ac_cv_prog_DB2TXT="$ac_prog"
5722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726 done
5727
5728 fi
5729 fi
5730 DB2TXT=$ac_cv_prog_DB2TXT
5731 if test -n "$DB2TXT"; then
5732   echo "$as_me:$LINENO: result: $DB2TXT" >&5
5733 echo "${ECHO_T}$DB2TXT" >&6
5734 else
5735   echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6
5737 fi
5738
5739   test -n "$DB2TXT" && break
5740 done
5741 test -n "$DB2TXT" || DB2TXT="false"
5742
5743 for ac_prog in fontforge
5744 do
5745   # Extract the first word of "$ac_prog", so it can be a program name with args.
5746 set dummy $ac_prog; ac_word=$2
5747 echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5749 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$FONTFORGE"; then
5753   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760   for ac_exec_ext in '' $ac_executable_extensions; do
5761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762     ac_cv_prog_FONTFORGE="$ac_prog"
5763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767 done
5768
5769 fi
5770 fi
5771 FONTFORGE=$ac_cv_prog_FONTFORGE
5772 if test -n "$FONTFORGE"; then
5773   echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5774 echo "${ECHO_T}$FONTFORGE" >&6
5775 else
5776   echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6
5778 fi
5779
5780   test -n "$FONTFORGE" && break
5781 done
5782 test -n "$FONTFORGE" || FONTFORGE="false"
5783
5784
5785
5786
5787 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5788 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5789 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   ac_check_lib_save_LIBS=$LIBS
5793 LIBS="-li386  $LIBS"
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h.  */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h.  */
5800
5801 /* Override any gcc2 internal prototype to avoid an error.  */
5802 #ifdef __cplusplus
5803 extern "C"
5804 #endif
5805 /* We use char because int might match the return type of a gcc2
5806    builtin and then its argument prototype would still apply.  */
5807 char i386_set_ldt ();
5808 int
5809 main ()
5810 {
5811 i386_set_ldt ();
5812   ;
5813   return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext conftest$ac_exeext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5818   (eval $ac_link) 2>conftest.er1
5819   ac_status=$?
5820   grep -v '^ *+' conftest.er1 >conftest.err
5821   rm -f conftest.er1
5822   cat conftest.err >&5
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); } &&
5825          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; } &&
5831          { ac_try='test -s conftest$ac_exeext'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; }; then
5837   ac_cv_lib_i386_i386_set_ldt=yes
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_cv_lib_i386_i386_set_ldt=no
5843 fi
5844 rm -f conftest.err conftest.$ac_objext \
5845       conftest$ac_exeext conftest.$ac_ext
5846 LIBS=$ac_check_lib_save_LIBS
5847 fi
5848 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5849 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5850 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5851   cat >>confdefs.h <<_ACEOF
5852 #define HAVE_LIBI386 1
5853 _ACEOF
5854
5855   LIBS="-li386 $LIBS"
5856
5857 fi
5858
5859
5860 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5861 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5862 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   ac_check_lib_save_LIBS=$LIBS
5866 LIBS="-lossaudio  $LIBS"
5867 cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h.  */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h.  */
5873
5874 /* Override any gcc2 internal prototype to avoid an error.  */
5875 #ifdef __cplusplus
5876 extern "C"
5877 #endif
5878 /* We use char because int might match the return type of a gcc2
5879    builtin and then its argument prototype would still apply.  */
5880 char _oss_ioctl ();
5881 int
5882 main ()
5883 {
5884 _oss_ioctl ();
5885   ;
5886   return 0;
5887 }
5888 _ACEOF
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5891   (eval $ac_link) 2>conftest.er1
5892   ac_status=$?
5893   grep -v '^ *+' conftest.er1 >conftest.err
5894   rm -f conftest.er1
5895   cat conftest.err >&5
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } &&
5898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; } &&
5904          { ac_try='test -s conftest$ac_exeext'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; }; then
5910   ac_cv_lib_ossaudio__oss_ioctl=yes
5911 else
5912   echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5914
5915 ac_cv_lib_ossaudio__oss_ioctl=no
5916 fi
5917 rm -f conftest.err conftest.$ac_objext \
5918       conftest$ac_exeext conftest.$ac_ext
5919 LIBS=$ac_check_lib_save_LIBS
5920 fi
5921 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5922 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5923 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5924   cat >>confdefs.h <<_ACEOF
5925 #define HAVE_LIBOSSAUDIO 1
5926 _ACEOF
5927
5928   LIBS="-lossaudio $LIBS"
5929
5930 fi
5931
5932
5933 for ac_func in iswalnum
5934 do
5935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5936 echo "$as_me:$LINENO: checking for $ac_func" >&5
5937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5938 if eval "test \"\${$as_ac_var+set}\" = set"; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h.  */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h.  */
5947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5949 #define $ac_func innocuous_$ac_func
5950
5951 /* System header to define __stub macros and hopefully few prototypes,
5952     which can conflict with char $ac_func (); below.
5953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5954     <limits.h> exists even on freestanding compilers.  */
5955
5956 #ifdef __STDC__
5957 # include <limits.h>
5958 #else
5959 # include <assert.h>
5960 #endif
5961
5962 #undef $ac_func
5963
5964 /* Override any gcc2 internal prototype to avoid an error.  */
5965 #ifdef __cplusplus
5966 extern "C"
5967 {
5968 #endif
5969 /* We use char because int might match the return type of a gcc2
5970    builtin and then its argument prototype would still apply.  */
5971 char $ac_func ();
5972 /* The GNU C library defines this for functions which it implements
5973     to always fail with ENOSYS.  Some functions are actually named
5974     something starting with __ and the normal name is an alias.  */
5975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5976 choke me
5977 #else
5978 char (*f) () = $ac_func;
5979 #endif
5980 #ifdef __cplusplus
5981 }
5982 #endif
5983
5984 int
5985 main ()
5986 {
5987 return f != $ac_func;
5988   ;
5989   return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5994   (eval $ac_link) 2>conftest.er1
5995   ac_status=$?
5996   grep -v '^ *+' conftest.er1 >conftest.err
5997   rm -f conftest.er1
5998   cat conftest.err >&5
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); } &&
6001          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003   (eval $ac_try) 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; } &&
6007          { ac_try='test -s conftest$ac_exeext'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; }; then
6013   eval "$as_ac_var=yes"
6014 else
6015   echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 eval "$as_ac_var=no"
6019 fi
6020 rm -f conftest.err conftest.$ac_objext \
6021       conftest$ac_exeext conftest.$ac_ext
6022 fi
6023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6025 if test `eval echo '${'$as_ac_var'}'` = yes; then
6026   cat >>confdefs.h <<_ACEOF
6027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6028 _ACEOF
6029
6030 else
6031
6032 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6033 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6034 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   ac_check_lib_save_LIBS=$LIBS
6038 LIBS="-lw  $LIBS"
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h.  */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h.  */
6045
6046 /* Override any gcc2 internal prototype to avoid an error.  */
6047 #ifdef __cplusplus
6048 extern "C"
6049 #endif
6050 /* We use char because int might match the return type of a gcc2
6051    builtin and then its argument prototype would still apply.  */
6052 char iswalnum ();
6053 int
6054 main ()
6055 {
6056 iswalnum ();
6057   ;
6058   return 0;
6059 }
6060 _ACEOF
6061 rm -f conftest.$ac_objext conftest$ac_exeext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6063   (eval $ac_link) 2>conftest.er1
6064   ac_status=$?
6065   grep -v '^ *+' conftest.er1 >conftest.err
6066   rm -f conftest.er1
6067   cat conftest.err >&5
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); } &&
6070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072   (eval $ac_try) 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; } &&
6076          { ac_try='test -s conftest$ac_exeext'
6077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078   (eval $ac_try) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; }; then
6082   ac_cv_lib_w_iswalnum=yes
6083 else
6084   echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087 ac_cv_lib_w_iswalnum=no
6088 fi
6089 rm -f conftest.err conftest.$ac_objext \
6090       conftest$ac_exeext conftest.$ac_ext
6091 LIBS=$ac_check_lib_save_LIBS
6092 fi
6093 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6094 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6095 if test $ac_cv_lib_w_iswalnum = yes; then
6096   cat >>confdefs.h <<_ACEOF
6097 #define HAVE_LIBW 1
6098 _ACEOF
6099
6100   LIBS="-lw $LIBS"
6101
6102 fi
6103
6104 fi
6105 done
6106
6107
6108 for ac_func in gethostbyname
6109 do
6110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6111 echo "$as_me:$LINENO: checking for $ac_func" >&5
6112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6113 if eval "test \"\${$as_ac_var+set}\" = set"; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h.  */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h.  */
6122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6124 #define $ac_func innocuous_$ac_func
6125
6126 /* System header to define __stub macros and hopefully few prototypes,
6127     which can conflict with char $ac_func (); below.
6128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6129     <limits.h> exists even on freestanding compilers.  */
6130
6131 #ifdef __STDC__
6132 # include <limits.h>
6133 #else
6134 # include <assert.h>
6135 #endif
6136
6137 #undef $ac_func
6138
6139 /* Override any gcc2 internal prototype to avoid an error.  */
6140 #ifdef __cplusplus
6141 extern "C"
6142 {
6143 #endif
6144 /* We use char because int might match the return type of a gcc2
6145    builtin and then its argument prototype would still apply.  */
6146 char $ac_func ();
6147 /* The GNU C library defines this for functions which it implements
6148     to always fail with ENOSYS.  Some functions are actually named
6149     something starting with __ and the normal name is an alias.  */
6150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6151 choke me
6152 #else
6153 char (*f) () = $ac_func;
6154 #endif
6155 #ifdef __cplusplus
6156 }
6157 #endif
6158
6159 int
6160 main ()
6161 {
6162 return f != $ac_func;
6163   ;
6164   return 0;
6165 }
6166 _ACEOF
6167 rm -f conftest.$ac_objext conftest$ac_exeext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169   (eval $ac_link) 2>conftest.er1
6170   ac_status=$?
6171   grep -v '^ *+' conftest.er1 >conftest.err
6172   rm -f conftest.er1
6173   cat conftest.err >&5
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; } &&
6182          { ac_try='test -s conftest$ac_exeext'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; }; then
6188   eval "$as_ac_var=yes"
6189 else
6190   echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 eval "$as_ac_var=no"
6194 fi
6195 rm -f conftest.err conftest.$ac_objext \
6196       conftest$ac_exeext conftest.$ac_ext
6197 fi
6198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6200 if test `eval echo '${'$as_ac_var'}'` = yes; then
6201   cat >>confdefs.h <<_ACEOF
6202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6203 _ACEOF
6204
6205 else
6206
6207 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6208 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6209 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6210   echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212   ac_check_lib_save_LIBS=$LIBS
6213 LIBS="-lnsl  $LIBS"
6214 cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h.  */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h.  */
6220
6221 /* Override any gcc2 internal prototype to avoid an error.  */
6222 #ifdef __cplusplus
6223 extern "C"
6224 #endif
6225 /* We use char because int might match the return type of a gcc2
6226    builtin and then its argument prototype would still apply.  */
6227 char gethostbyname ();
6228 int
6229 main ()
6230 {
6231 gethostbyname ();
6232   ;
6233   return 0;
6234 }
6235 _ACEOF
6236 rm -f conftest.$ac_objext conftest$ac_exeext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6238   (eval $ac_link) 2>conftest.er1
6239   ac_status=$?
6240   grep -v '^ *+' conftest.er1 >conftest.err
6241   rm -f conftest.er1
6242   cat conftest.err >&5
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); } &&
6245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; } &&
6251          { ac_try='test -s conftest$ac_exeext'
6252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253   (eval $ac_try) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }; }; then
6257   ac_cv_lib_nsl_gethostbyname=yes
6258 else
6259   echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 ac_cv_lib_nsl_gethostbyname=no
6263 fi
6264 rm -f conftest.err conftest.$ac_objext \
6265       conftest$ac_exeext conftest.$ac_ext
6266 LIBS=$ac_check_lib_save_LIBS
6267 fi
6268 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6269 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6270 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6271   cat >>confdefs.h <<_ACEOF
6272 #define HAVE_LIBNSL 1
6273 _ACEOF
6274
6275   LIBS="-lnsl $LIBS"
6276
6277 fi
6278
6279 fi
6280 done
6281
6282
6283 for ac_func in connect
6284 do
6285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6286 echo "$as_me:$LINENO: checking for $ac_func" >&5
6287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6288 if eval "test \"\${$as_ac_var+set}\" = set"; then
6289   echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291   cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h.  */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h.  */
6297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6299 #define $ac_func innocuous_$ac_func
6300
6301 /* System header to define __stub macros and hopefully few prototypes,
6302     which can conflict with char $ac_func (); below.
6303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6304     <limits.h> exists even on freestanding compilers.  */
6305
6306 #ifdef __STDC__
6307 # include <limits.h>
6308 #else
6309 # include <assert.h>
6310 #endif
6311
6312 #undef $ac_func
6313
6314 /* Override any gcc2 internal prototype to avoid an error.  */
6315 #ifdef __cplusplus
6316 extern "C"
6317 {
6318 #endif
6319 /* We use char because int might match the return type of a gcc2
6320    builtin and then its argument prototype would still apply.  */
6321 char $ac_func ();
6322 /* The GNU C library defines this for functions which it implements
6323     to always fail with ENOSYS.  Some functions are actually named
6324     something starting with __ and the normal name is an alias.  */
6325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6326 choke me
6327 #else
6328 char (*f) () = $ac_func;
6329 #endif
6330 #ifdef __cplusplus
6331 }
6332 #endif
6333
6334 int
6335 main ()
6336 {
6337 return f != $ac_func;
6338   ;
6339   return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest.$ac_objext conftest$ac_exeext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6344   (eval $ac_link) 2>conftest.er1
6345   ac_status=$?
6346   grep -v '^ *+' conftest.er1 >conftest.err
6347   rm -f conftest.er1
6348   cat conftest.err >&5
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); } &&
6351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353   (eval $ac_try) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; } &&
6357          { ac_try='test -s conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363   eval "$as_ac_var=yes"
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 eval "$as_ac_var=no"
6369 fi
6370 rm -f conftest.err conftest.$ac_objext \
6371       conftest$ac_exeext conftest.$ac_ext
6372 fi
6373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6375 if test `eval echo '${'$as_ac_var'}'` = yes; then
6376   cat >>confdefs.h <<_ACEOF
6377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6378 _ACEOF
6379
6380 else
6381
6382 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6383 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6384 if test "${ac_cv_lib_socket_connect+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   ac_check_lib_save_LIBS=$LIBS
6388 LIBS="-lsocket  $LIBS"
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h.  */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h.  */
6395
6396 /* Override any gcc2 internal prototype to avoid an error.  */
6397 #ifdef __cplusplus
6398 extern "C"
6399 #endif
6400 /* We use char because int might match the return type of a gcc2
6401    builtin and then its argument prototype would still apply.  */
6402 char connect ();
6403 int
6404 main ()
6405 {
6406 connect ();
6407   ;
6408   return 0;
6409 }
6410 _ACEOF
6411 rm -f conftest.$ac_objext conftest$ac_exeext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6413   (eval $ac_link) 2>conftest.er1
6414   ac_status=$?
6415   grep -v '^ *+' conftest.er1 >conftest.err
6416   rm -f conftest.er1
6417   cat conftest.err >&5
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } &&
6420          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; } &&
6426          { ac_try='test -s conftest$ac_exeext'
6427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428   (eval $ac_try) 2>&5
6429   ac_status=$?
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); }; }; then
6432   ac_cv_lib_socket_connect=yes
6433 else
6434   echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6436
6437 ac_cv_lib_socket_connect=no
6438 fi
6439 rm -f conftest.err conftest.$ac_objext \
6440       conftest$ac_exeext conftest.$ac_ext
6441 LIBS=$ac_check_lib_save_LIBS
6442 fi
6443 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6444 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6445 if test $ac_cv_lib_socket_connect = yes; then
6446   cat >>confdefs.h <<_ACEOF
6447 #define HAVE_LIBSOCKET 1
6448 _ACEOF
6449
6450   LIBS="-lsocket $LIBS"
6451
6452 fi
6453
6454 fi
6455 done
6456
6457
6458 for ac_func in inet_aton
6459 do
6460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6461 echo "$as_me:$LINENO: checking for $ac_func" >&5
6462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6463 if eval "test \"\${$as_ac_var+set}\" = set"; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6474 #define $ac_func innocuous_$ac_func
6475
6476 /* System header to define __stub macros and hopefully few prototypes,
6477     which can conflict with char $ac_func (); below.
6478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6479     <limits.h> exists even on freestanding compilers.  */
6480
6481 #ifdef __STDC__
6482 # include <limits.h>
6483 #else
6484 # include <assert.h>
6485 #endif
6486
6487 #undef $ac_func
6488
6489 /* Override any gcc2 internal prototype to avoid an error.  */
6490 #ifdef __cplusplus
6491 extern "C"
6492 {
6493 #endif
6494 /* We use char because int might match the return type of a gcc2
6495    builtin and then its argument prototype would still apply.  */
6496 char $ac_func ();
6497 /* The GNU C library defines this for functions which it implements
6498     to always fail with ENOSYS.  Some functions are actually named
6499     something starting with __ and the normal name is an alias.  */
6500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6501 choke me
6502 #else
6503 char (*f) () = $ac_func;
6504 #endif
6505 #ifdef __cplusplus
6506 }
6507 #endif
6508
6509 int
6510 main ()
6511 {
6512 return f != $ac_func;
6513   ;
6514   return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519   (eval $ac_link) 2>conftest.er1
6520   ac_status=$?
6521   grep -v '^ *+' conftest.er1 >conftest.err
6522   rm -f conftest.er1
6523   cat conftest.err >&5
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); } &&
6526          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528   (eval $ac_try) 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }; } &&
6532          { ac_try='test -s conftest$ac_exeext'
6533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534   (eval $ac_try) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); }; }; then
6538   eval "$as_ac_var=yes"
6539 else
6540   echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6542
6543 eval "$as_ac_var=no"
6544 fi
6545 rm -f conftest.err conftest.$ac_objext \
6546       conftest$ac_exeext conftest.$ac_ext
6547 fi
6548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6550 if test `eval echo '${'$as_ac_var'}'` = yes; then
6551   cat >>confdefs.h <<_ACEOF
6552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6553 _ACEOF
6554
6555 else
6556
6557 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6558 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6559 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   ac_check_lib_save_LIBS=$LIBS
6563 LIBS="-lresolv  $LIBS"
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570
6571 /* Override any gcc2 internal prototype to avoid an error.  */
6572 #ifdef __cplusplus
6573 extern "C"
6574 #endif
6575 /* We use char because int might match the return type of a gcc2
6576    builtin and then its argument prototype would still apply.  */
6577 char inet_aton ();
6578 int
6579 main ()
6580 {
6581 inet_aton ();
6582   ;
6583   return 0;
6584 }
6585 _ACEOF
6586 rm -f conftest.$ac_objext conftest$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588   (eval $ac_link) 2>conftest.er1
6589   ac_status=$?
6590   grep -v '^ *+' conftest.er1 >conftest.err
6591   rm -f conftest.er1
6592   cat conftest.err >&5
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); } &&
6595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597   (eval $ac_try) 2>&5
6598   ac_status=$?
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); }; } &&
6601          { ac_try='test -s conftest$ac_exeext'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; }; then
6607   ac_cv_lib_resolv_inet_aton=yes
6608 else
6609   echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6611
6612 ac_cv_lib_resolv_inet_aton=no
6613 fi
6614 rm -f conftest.err conftest.$ac_objext \
6615       conftest$ac_exeext conftest.$ac_ext
6616 LIBS=$ac_check_lib_save_LIBS
6617 fi
6618 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6619 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6620 if test $ac_cv_lib_resolv_inet_aton = yes; then
6621   cat >>confdefs.h <<_ACEOF
6622 #define HAVE_LIBRESOLV 1
6623 _ACEOF
6624
6625   LIBS="-lresolv $LIBS"
6626
6627 fi
6628
6629 fi
6630 done
6631
6632
6633 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6634 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6635 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   ac_check_lib_save_LIBS=$LIBS
6639 LIBS="-lxpg4  $LIBS"
6640 cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h.  */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h.  */
6646
6647 /* Override any gcc2 internal prototype to avoid an error.  */
6648 #ifdef __cplusplus
6649 extern "C"
6650 #endif
6651 /* We use char because int might match the return type of a gcc2
6652    builtin and then its argument prototype would still apply.  */
6653 char _xpg4_setrunelocale ();
6654 int
6655 main ()
6656 {
6657 _xpg4_setrunelocale ();
6658   ;
6659   return 0;
6660 }
6661 _ACEOF
6662 rm -f conftest.$ac_objext conftest$ac_exeext
6663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6664   (eval $ac_link) 2>conftest.er1
6665   ac_status=$?
6666   grep -v '^ *+' conftest.er1 >conftest.err
6667   rm -f conftest.er1
6668   cat conftest.err >&5
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); } &&
6671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673   (eval $ac_try) 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }; } &&
6677          { ac_try='test -s conftest$ac_exeext'
6678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679   (eval $ac_try) 2>&5
6680   ac_status=$?
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); }; }; then
6683   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6684 else
6685   echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6689 fi
6690 rm -f conftest.err conftest.$ac_objext \
6691       conftest$ac_exeext conftest.$ac_ext
6692 LIBS=$ac_check_lib_save_LIBS
6693 fi
6694 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6695 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6696 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6697   cat >>confdefs.h <<_ACEOF
6698 #define HAVE_LIBXPG4 1
6699 _ACEOF
6700
6701   LIBS="-lxpg4 $LIBS"
6702
6703 fi
6704
6705
6706 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6707 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6708 if test "${ac_cv_lib_poll_poll+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   ac_check_lib_save_LIBS=$LIBS
6712 LIBS="-lpoll  $LIBS"
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h.  */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h.  */
6719
6720 /* Override any gcc2 internal prototype to avoid an error.  */
6721 #ifdef __cplusplus
6722 extern "C"
6723 #endif
6724 /* We use char because int might match the return type of a gcc2
6725    builtin and then its argument prototype would still apply.  */
6726 char poll ();
6727 int
6728 main ()
6729 {
6730 poll ();
6731   ;
6732   return 0;
6733 }
6734 _ACEOF
6735 rm -f conftest.$ac_objext conftest$ac_exeext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6737   (eval $ac_link) 2>conftest.er1
6738   ac_status=$?
6739   grep -v '^ *+' conftest.er1 >conftest.err
6740   rm -f conftest.er1
6741   cat conftest.err >&5
6742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743   (exit $ac_status); } &&
6744          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746   (eval $ac_try) 2>&5
6747   ac_status=$?
6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749   (exit $ac_status); }; } &&
6750          { ac_try='test -s conftest$ac_exeext'
6751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752   (eval $ac_try) 2>&5
6753   ac_status=$?
6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755   (exit $ac_status); }; }; then
6756   ac_cv_lib_poll_poll=yes
6757 else
6758   echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6760
6761 ac_cv_lib_poll_poll=no
6762 fi
6763 rm -f conftest.err conftest.$ac_objext \
6764       conftest$ac_exeext conftest.$ac_ext
6765 LIBS=$ac_check_lib_save_LIBS
6766 fi
6767 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6768 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6769 if test $ac_cv_lib_poll_poll = yes; then
6770   cat >>confdefs.h <<_ACEOF
6771 #define HAVE_LIBPOLL 1
6772 _ACEOF
6773
6774   LIBS="-lpoll $LIBS"
6775
6776 fi
6777
6778
6779 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6780 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6781 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   ac_check_lib_save_LIBS=$LIBS
6785 LIBS="-lresolv  $LIBS"
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h.  */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h.  */
6792
6793 /* Override any gcc2 internal prototype to avoid an error.  */
6794 #ifdef __cplusplus
6795 extern "C"
6796 #endif
6797 /* We use char because int might match the return type of a gcc2
6798    builtin and then its argument prototype would still apply.  */
6799 char res_9_init ();
6800 int
6801 main ()
6802 {
6803 res_9_init ();
6804   ;
6805   return 0;
6806 }
6807 _ACEOF
6808 rm -f conftest.$ac_objext conftest$ac_exeext
6809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6810   (eval $ac_link) 2>conftest.er1
6811   ac_status=$?
6812   grep -v '^ *+' conftest.er1 >conftest.err
6813   rm -f conftest.er1
6814   cat conftest.err >&5
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); } &&
6817          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819   (eval $ac_try) 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); }; } &&
6823          { ac_try='test -s conftest$ac_exeext'
6824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825   (eval $ac_try) 2>&5
6826   ac_status=$?
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); }; }; then
6829   ac_cv_lib_resolv_res_9_init=yes
6830 else
6831   echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6833
6834 ac_cv_lib_resolv_res_9_init=no
6835 fi
6836 rm -f conftest.err conftest.$ac_objext \
6837       conftest$ac_exeext conftest.$ac_ext
6838 LIBS=$ac_check_lib_save_LIBS
6839 fi
6840 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6841 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6842 if test $ac_cv_lib_resolv_res_9_init = yes; then
6843   cat >>confdefs.h <<_ACEOF
6844 #define HAVE_LIBRESOLV 1
6845 _ACEOF
6846
6847   LIBS="-lresolv $LIBS"
6848
6849 fi
6850
6851 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6852 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6853 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   ac_check_lib_save_LIBS=$LIBS
6857 LIBS="-lpthread  $LIBS"
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h.  */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h.  */
6864
6865 /* Override any gcc2 internal prototype to avoid an error.  */
6866 #ifdef __cplusplus
6867 extern "C"
6868 #endif
6869 /* We use char because int might match the return type of a gcc2
6870    builtin and then its argument prototype would still apply.  */
6871 char pthread_create ();
6872 int
6873 main ()
6874 {
6875 pthread_create ();
6876   ;
6877   return 0;
6878 }
6879 _ACEOF
6880 rm -f conftest.$ac_objext conftest$ac_exeext
6881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6882   (eval $ac_link) 2>conftest.er1
6883   ac_status=$?
6884   grep -v '^ *+' conftest.er1 >conftest.err
6885   rm -f conftest.er1
6886   cat conftest.err >&5
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); } &&
6889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891   (eval $ac_try) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; } &&
6895          { ac_try='test -s conftest$ac_exeext'
6896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897   (eval $ac_try) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; }; then
6901   ac_cv_lib_pthread_pthread_create=yes
6902 else
6903   echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906 ac_cv_lib_pthread_pthread_create=no
6907 fi
6908 rm -f conftest.err conftest.$ac_objext \
6909       conftest$ac_exeext conftest.$ac_ext
6910 LIBS=$ac_check_lib_save_LIBS
6911 fi
6912 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6913 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6914 if test $ac_cv_lib_pthread_pthread_create = yes; then
6915   LIBPTHREAD="-lpthread"
6916
6917 fi
6918
6919
6920
6921
6922 XFILES=""
6923
6924 OPENGLFILES=""
6925
6926 GLU32FILES=""
6927
6928 OPENGL_LIBS=""
6929 if test "$have_x" = "yes"
6930 then
6931     XLIB="-lXext -lX11"
6932     ac_save_CPPFLAGS="$CPPFLAGS"
6933     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6934
6935         echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6936 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6937 if test "${ac_cv_header_stdc+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946 #include <stdlib.h>
6947 #include <stdarg.h>
6948 #include <string.h>
6949 #include <float.h>
6950
6951 int
6952 main ()
6953 {
6954
6955   ;
6956   return 0;
6957 }
6958 _ACEOF
6959 rm -f conftest.$ac_objext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961   (eval $ac_compile) 2>conftest.er1
6962   ac_status=$?
6963   grep -v '^ *+' conftest.er1 >conftest.err
6964   rm -f conftest.er1
6965   cat conftest.err >&5
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); } &&
6968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970   (eval $ac_try) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); }; } &&
6974          { ac_try='test -s conftest.$ac_objext'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; }; then
6980   ac_cv_header_stdc=yes
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 ac_cv_header_stdc=no
6986 fi
6987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6988
6989 if test $ac_cv_header_stdc = yes; then
6990   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6991   cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997 #include <string.h>
6998
6999 _ACEOF
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001   $EGREP "memchr" >/dev/null 2>&1; then
7002   :
7003 else
7004   ac_cv_header_stdc=no
7005 fi
7006 rm -f conftest*
7007
7008 fi
7009
7010 if test $ac_cv_header_stdc = yes; then
7011   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7012   cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h.  */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h.  */
7018 #include <stdlib.h>
7019
7020 _ACEOF
7021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7022   $EGREP "free" >/dev/null 2>&1; then
7023   :
7024 else
7025   ac_cv_header_stdc=no
7026 fi
7027 rm -f conftest*
7028
7029 fi
7030
7031 if test $ac_cv_header_stdc = yes; then
7032   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7033   if test "$cross_compiling" = yes; then
7034   :
7035 else
7036   cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <ctype.h>
7043 #if ((' ' & 0x0FF) == 0x020)
7044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7046 #else
7047 # define ISLOWER(c) \
7048                    (('a' <= (c) && (c) <= 'i') \
7049                      || ('j' <= (c) && (c) <= 'r') \
7050                      || ('s' <= (c) && (c) <= 'z'))
7051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7052 #endif
7053
7054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7055 int
7056 main ()
7057 {
7058   int i;
7059   for (i = 0; i < 256; i++)
7060     if (XOR (islower (i), ISLOWER (i))
7061         || toupper (i) != TOUPPER (i))
7062       exit(2);
7063   exit (0);
7064 }
7065 _ACEOF
7066 rm -f conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068   (eval $ac_link) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073   (eval $ac_try) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; }; then
7077   :
7078 else
7079   echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 ( exit $ac_status )
7084 ac_cv_header_stdc=no
7085 fi
7086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7087 fi
7088 fi
7089 fi
7090 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7091 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7092 if test $ac_cv_header_stdc = yes; then
7093
7094 cat >>confdefs.h <<\_ACEOF
7095 #define STDC_HEADERS 1
7096 _ACEOF
7097
7098 fi
7099
7100 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7111                   inttypes.h stdint.h unistd.h
7112 do
7113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7114 echo "$as_me:$LINENO: checking for $ac_header" >&5
7115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7117   echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119   cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h.  */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h.  */
7125 $ac_includes_default
7126
7127 #include <$ac_header>
7128 _ACEOF
7129 rm -f conftest.$ac_objext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7131   (eval $ac_compile) 2>conftest.er1
7132   ac_status=$?
7133   grep -v '^ *+' conftest.er1 >conftest.err
7134   rm -f conftest.er1
7135   cat conftest.err >&5
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); } &&
7138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140   (eval $ac_try) 2>&5
7141   ac_status=$?
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); }; } &&
7144          { ac_try='test -s conftest.$ac_objext'
7145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146   (eval $ac_try) 2>&5
7147   ac_status=$?
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); }; }; then
7150   eval "$as_ac_Header=yes"
7151 else
7152   echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7154
7155 eval "$as_ac_Header=no"
7156 fi
7157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7158 fi
7159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7162   cat >>confdefs.h <<_ACEOF
7163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7164 _ACEOF
7165
7166 fi
7167
7168 done
7169
7170
7171
7172 for ac_header in X11/Xlib.h
7173 do
7174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7176   echo "$as_me:$LINENO: checking for $ac_header" >&5
7177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 fi
7181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7183 else
7184   # Is the header compilable?
7185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h.  */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h.  */
7193 $ac_includes_default
7194 #include <$ac_header>
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198   (eval $ac_compile) 2>conftest.er1
7199   ac_status=$?
7200   grep -v '^ *+' conftest.er1 >conftest.err
7201   rm -f conftest.er1
7202   cat conftest.err >&5
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } &&
7205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207   (eval $ac_try) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; } &&
7211          { ac_try='test -s conftest.$ac_objext'
7212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213   (eval $ac_try) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); }; }; then
7217   ac_header_compiler=yes
7218 else
7219   echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7221
7222 ac_header_compiler=no
7223 fi
7224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7226 echo "${ECHO_T}$ac_header_compiler" >&6
7227
7228 # Is the header present?
7229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7231 cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h.  */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h.  */
7237 #include <$ac_header>
7238 _ACEOF
7239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7241   ac_status=$?
7242   grep -v '^ *+' conftest.er1 >conftest.err
7243   rm -f conftest.er1
7244   cat conftest.err >&5
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); } >/dev/null; then
7247   if test -s conftest.err; then
7248     ac_cpp_err=$ac_c_preproc_warn_flag
7249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7250   else
7251     ac_cpp_err=
7252   fi
7253 else
7254   ac_cpp_err=yes
7255 fi
7256 if test -z "$ac_cpp_err"; then
7257   ac_header_preproc=yes
7258 else
7259   echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7261
7262   ac_header_preproc=no
7263 fi
7264 rm -f conftest.err conftest.$ac_ext
7265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7266 echo "${ECHO_T}$ac_header_preproc" >&6
7267
7268 # So?  What about this header?
7269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7270   yes:no: )
7271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7275     ac_header_preproc=yes
7276     ;;
7277   no:yes:* )
7278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7290     (
7291       cat <<\_ASBOX
7292 ## ------------------------------------ ##
7293 ## Report this to wine-devel@winehq.org ##
7294 ## ------------------------------------ ##
7295 _ASBOX
7296     ) |
7297       sed "s/^/$as_me: WARNING:     /" >&2
7298     ;;
7299 esac
7300 echo "$as_me:$LINENO: checking for $ac_header" >&5
7301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   eval "$as_ac_Header=\$ac_header_preproc"
7306 fi
7307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7309
7310 fi
7311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7312   cat >>confdefs.h <<_ACEOF
7313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7314 _ACEOF
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326 for ac_header in X11/XKBlib.h \
7327                           X11/Xutil.h \
7328                           X11/extensions/shape.h \
7329                           X11/extensions/XInput.h \
7330                           X11/extensions/XShm.h \
7331                           X11/extensions/Xrandr.h \
7332                           X11/extensions/Xrender.h \
7333                           X11/extensions/Xvlib.h \
7334                           X11/extensions/xf86dga.h \
7335                           X11/extensions/xf86vmode.h
7336 do
7337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7338 echo "$as_me:$LINENO: checking for $ac_header" >&5
7339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7341   echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343   cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h.  */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h.  */
7349 #include <X11/Xlib.h>
7350                           #ifdef HAVE_X11_XUTIL_H
7351                           # include <X11/Xutil.h>
7352                           #endif
7353
7354 #include <$ac_header>
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358   (eval $ac_compile) 2>conftest.er1
7359   ac_status=$?
7360   grep -v '^ *+' conftest.er1 >conftest.err
7361   rm -f conftest.er1
7362   cat conftest.err >&5
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } &&
7365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367   (eval $ac_try) 2>&5
7368   ac_status=$?
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); }; } &&
7371          { ac_try='test -s conftest.$ac_objext'
7372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373   (eval $ac_try) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); }; }; then
7377   eval "$as_ac_Header=yes"
7378 else
7379   echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.$ac_ext >&5
7381
7382 eval "$as_ac_Header=no"
7383 fi
7384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7385 fi
7386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7389   cat >>confdefs.h <<_ACEOF
7390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391 _ACEOF
7392
7393 fi
7394
7395 done
7396
7397
7398                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7399         then
7400               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7401 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7402 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   ac_check_lib_save_LIBS=$LIBS
7406 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h.  */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h.  */
7413
7414 /* Override any gcc2 internal prototype to avoid an error.  */
7415 #ifdef __cplusplus
7416 extern "C"
7417 #endif
7418 /* We use char because int might match the return type of a gcc2
7419    builtin and then its argument prototype would still apply.  */
7420 char XkbQueryExtension ();
7421 int
7422 main ()
7423 {
7424 XkbQueryExtension ();
7425   ;
7426   return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest.$ac_objext conftest$ac_exeext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431   (eval $ac_link) 2>conftest.er1
7432   ac_status=$?
7433   grep -v '^ *+' conftest.er1 >conftest.err
7434   rm -f conftest.er1
7435   cat conftest.err >&5
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); } &&
7438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440   (eval $ac_try) 2>&5
7441   ac_status=$?
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); }; } &&
7444          { ac_try='test -s conftest$ac_exeext'
7445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446   (eval $ac_try) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }; }; then
7450   ac_cv_lib_X11_XkbQueryExtension=yes
7451 else
7452   echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 ac_cv_lib_X11_XkbQueryExtension=no
7456 fi
7457 rm -f conftest.err conftest.$ac_objext \
7458       conftest$ac_exeext conftest.$ac_ext
7459 LIBS=$ac_check_lib_save_LIBS
7460 fi
7461 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7462 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7463 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7464
7465 cat >>confdefs.h <<\_ACEOF
7466 #define HAVE_XKB 1
7467 _ACEOF
7468
7469 fi
7470
7471         fi
7472
7473                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7474         then
7475               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7476 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7477 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7478   echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480   ac_check_lib_save_LIBS=$LIBS
7481 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7482 cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h.  */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h.  */
7488
7489 /* Override any gcc2 internal prototype to avoid an error.  */
7490 #ifdef __cplusplus
7491 extern "C"
7492 #endif
7493 /* We use char because int might match the return type of a gcc2
7494    builtin and then its argument prototype would still apply.  */
7495 char XShmQueryExtension ();
7496 int
7497 main ()
7498 {
7499 XShmQueryExtension ();
7500   ;
7501   return 0;
7502 }
7503 _ACEOF
7504 rm -f conftest.$ac_objext conftest$ac_exeext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7506   (eval $ac_link) 2>conftest.er1
7507   ac_status=$?
7508   grep -v '^ *+' conftest.er1 >conftest.err
7509   rm -f conftest.er1
7510   cat conftest.err >&5
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); } &&
7513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515   (eval $ac_try) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; } &&
7519          { ac_try='test -s conftest$ac_exeext'
7520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521   (eval $ac_try) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; }; then
7525   ac_cv_lib_Xext_XShmQueryExtension=yes
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 ac_cv_lib_Xext_XShmQueryExtension=no
7531 fi
7532 rm -f conftest.err conftest.$ac_objext \
7533       conftest$ac_exeext conftest.$ac_ext
7534 LIBS=$ac_check_lib_save_LIBS
7535 fi
7536 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7537 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7538 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7539
7540 cat >>confdefs.h <<\_ACEOF
7541 #define HAVE_LIBXXSHM 1
7542 _ACEOF
7543
7544 fi
7545
7546         fi
7547
7548                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7549         then
7550               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7551 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7552 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   ac_check_lib_save_LIBS=$LIBS
7556 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h.  */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h.  */
7563
7564 /* Override any gcc2 internal prototype to avoid an error.  */
7565 #ifdef __cplusplus
7566 extern "C"
7567 #endif
7568 /* We use char because int might match the return type of a gcc2
7569    builtin and then its argument prototype would still apply.  */
7570 char XShapeQueryExtension ();
7571 int
7572 main ()
7573 {
7574 XShapeQueryExtension ();
7575   ;
7576   return 0;
7577 }
7578 _ACEOF
7579 rm -f conftest.$ac_objext conftest$ac_exeext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581   (eval $ac_link) 2>conftest.er1
7582   ac_status=$?
7583   grep -v '^ *+' conftest.er1 >conftest.err
7584   rm -f conftest.er1
7585   cat conftest.err >&5
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); } &&
7588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590   (eval $ac_try) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }; } &&
7594          { ac_try='test -s conftest$ac_exeext'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; }; then
7600   ac_cv_lib_Xext_XShapeQueryExtension=yes
7601 else
7602   echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7604
7605 ac_cv_lib_Xext_XShapeQueryExtension=no
7606 fi
7607 rm -f conftest.err conftest.$ac_objext \
7608       conftest$ac_exeext conftest.$ac_ext
7609 LIBS=$ac_check_lib_save_LIBS
7610 fi
7611 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7612 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7613 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7614
7615 cat >>confdefs.h <<\_ACEOF
7616 #define HAVE_LIBXSHAPE 1
7617 _ACEOF
7618
7619 fi
7620
7621         fi
7622
7623                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7624         then
7625               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7626 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7627 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   ac_check_lib_save_LIBS=$LIBS
7631 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h.  */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h.  */
7638
7639 /* Override any gcc2 internal prototype to avoid an error.  */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 /* We use char because int might match the return type of a gcc2
7644    builtin and then its argument prototype would still apply.  */
7645 char XDGAQueryExtension ();
7646 int
7647 main ()
7648 {
7649 XDGAQueryExtension ();
7650   ;
7651   return 0;
7652 }
7653 _ACEOF
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656   (eval $ac_link) 2>conftest.er1
7657   ac_status=$?
7658   grep -v '^ *+' conftest.er1 >conftest.err
7659   rm -f conftest.er1
7660   cat conftest.err >&5
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } &&
7663          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665   (eval $ac_try) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); }; } &&
7669          { ac_try='test -s conftest$ac_exeext'
7670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671   (eval $ac_try) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7681 fi
7682 rm -f conftest.err conftest.$ac_objext \
7683       conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7685 fi
7686 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7687 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7688 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7689
7690 cat >>confdefs.h <<\_ACEOF
7691 #define HAVE_LIBXXF86DGA2 1
7692 _ACEOF
7693
7694                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7695
7696 else
7697                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7698 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7699 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   ac_check_lib_save_LIBS=$LIBS
7703 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7704                    $LIBS"
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h.  */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h.  */
7711
7712 /* Override any gcc2 internal prototype to avoid an error.  */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 /* We use char because int might match the return type of a gcc2
7717    builtin and then its argument prototype would still apply.  */
7718 char XF86DGAQueryExtension ();
7719 int
7720 main ()
7721 {
7722 XF86DGAQueryExtension ();
7723   ;
7724   return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729   (eval $ac_link) 2>conftest.er1
7730   ac_status=$?
7731   grep -v '^ *+' conftest.er1 >conftest.err
7732   rm -f conftest.er1
7733   cat conftest.err >&5
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); } &&
7736          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738   (eval $ac_try) 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; } &&
7742          { ac_try='test -s conftest$ac_exeext'
7743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744   (eval $ac_try) 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); }; }; then
7748   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7749 else
7750   echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7752
7753 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7754 fi
7755 rm -f conftest.err conftest.$ac_objext \
7756       conftest$ac_exeext conftest.$ac_ext
7757 LIBS=$ac_check_lib_save_LIBS
7758 fi
7759 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7760 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7761 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7762
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_LIBXXF86DGA 1
7765 _ACEOF
7766
7767                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7768
7769 fi
7770
7771
7772 fi
7773
7774         fi
7775
7776                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7777         then
7778                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7779 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7780 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   ac_check_lib_save_LIBS=$LIBS
7784 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791
7792 /* Override any gcc2 internal prototype to avoid an error.  */
7793 #ifdef __cplusplus
7794 extern "C"
7795 #endif
7796 /* We use char because int might match the return type of a gcc2
7797    builtin and then its argument prototype would still apply.  */
7798 char XF86VidModeQueryExtension ();
7799 int
7800 main ()
7801 {
7802 XF86VidModeQueryExtension ();
7803   ;
7804   return 0;
7805 }
7806 _ACEOF
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809   (eval $ac_link) 2>conftest.er1
7810   ac_status=$?
7811   grep -v '^ *+' conftest.er1 >conftest.err
7812   rm -f conftest.er1
7813   cat conftest.err >&5
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); } &&
7816          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818   (eval $ac_try) 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; } &&
7822          { ac_try='test -s conftest$ac_exeext'
7823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824   (eval $ac_try) 2>&5
7825   ac_status=$?
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); }; }; then
7828   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7829 else
7830   echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7832
7833 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7834 fi
7835 rm -f conftest.err conftest.$ac_objext \
7836       conftest$ac_exeext conftest.$ac_ext
7837 LIBS=$ac_check_lib_save_LIBS
7838 fi
7839 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7840 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7841 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7842
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_LIBXXF86VM 1
7845 _ACEOF
7846
7847                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7848
7849 fi
7850
7851         fi
7852
7853                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7854         then
7855                 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861 #include <X11/Xlib.h>
7862 #include <X11/extensions/Xrandr.h>
7863 int
7864 main ()
7865 {
7866 static typeof(XRRSetScreenConfigAndRate) * func;
7867   ;
7868   return 0;
7869 }
7870 _ACEOF
7871 rm -f conftest.$ac_objext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873   (eval $ac_compile) 2>conftest.er1
7874   ac_status=$?
7875   grep -v '^ *+' conftest.er1 >conftest.err
7876   rm -f conftest.er1
7877   cat conftest.err >&5
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } &&
7880          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; } &&
7886          { ac_try='test -s conftest.$ac_objext'
7887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888   (eval $ac_try) 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_LIBXRANDR 1
7895 _ACEOF
7896
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 fi
7902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7903         fi
7904
7905                 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7906         then
7907                 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7908 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7909 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912   ac_check_lib_save_LIBS=$LIBS
7913 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920
7921 /* Override any gcc2 internal prototype to avoid an error.  */
7922 #ifdef __cplusplus
7923 extern "C"
7924 #endif
7925 /* We use char because int might match the return type of a gcc2
7926    builtin and then its argument prototype would still apply.  */
7927 char XvShmCreateImage ();
7928 int
7929 main ()
7930 {
7931 XvShmCreateImage ();
7932   ;
7933   return 0;
7934 }
7935 _ACEOF
7936 rm -f conftest.$ac_objext conftest$ac_exeext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7938   (eval $ac_link) 2>conftest.er1
7939   ac_status=$?
7940   grep -v '^ *+' conftest.er1 >conftest.err
7941   rm -f conftest.er1
7942   cat conftest.err >&5
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } &&
7945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947   (eval $ac_try) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; } &&
7951          { ac_try='test -s conftest$ac_exeext'
7952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953   (eval $ac_try) 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); }; }; then
7957   ac_cv_lib_Xv_XvShmCreateImage=yes
7958 else
7959   echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 ac_cv_lib_Xv_XvShmCreateImage=no
7963 fi
7964 rm -f conftest.err conftest.$ac_objext \
7965       conftest$ac_exeext conftest.$ac_ext
7966 LIBS=$ac_check_lib_save_LIBS
7967 fi
7968 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7969 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7970 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7971
7972 cat >>confdefs.h <<\_ACEOF
7973 #define HAVE_XVIDEO 1
7974 _ACEOF
7975
7976                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7977
7978 fi
7979
7980         fi
7981
7982
7983 fi
7984
7985 done
7986
7987         if test "x$with_opengl" != "xno"
7988     then
7989         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7990         then
7991             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7992 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7993 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7994 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7995    { (exit 1); exit 1; }; }
7996         fi
7997
7998
7999
8000 for ac_header in GL/gl.h GL/glx.h
8001 do
8002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8004   echo "$as_me:$LINENO: checking for $ac_header" >&5
8005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 fi
8009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8011 else
8012   # Is the header compilable?
8013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h.  */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h.  */
8021 $ac_includes_default
8022 #include <$ac_header>
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8026   (eval $ac_compile) 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035   (eval $ac_try) 2>&5
8036   ac_status=$?
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); }; } &&
8039          { ac_try='test -s conftest.$ac_objext'
8040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041   (eval $ac_try) 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); }; }; then
8045   ac_header_compiler=yes
8046 else
8047   echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050 ac_header_compiler=no
8051 fi
8052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8054 echo "${ECHO_T}$ac_header_compiler" >&6
8055
8056 # Is the header present?
8057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8059 cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h.  */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h.  */
8065 #include <$ac_header>
8066 _ACEOF
8067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8069   ac_status=$?
8070   grep -v '^ *+' conftest.er1 >conftest.err
8071   rm -f conftest.er1
8072   cat conftest.err >&5
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } >/dev/null; then
8075   if test -s conftest.err; then
8076     ac_cpp_err=$ac_c_preproc_warn_flag
8077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8078   else
8079     ac_cpp_err=
8080   fi
8081 else
8082   ac_cpp_err=yes
8083 fi
8084 if test -z "$ac_cpp_err"; then
8085   ac_header_preproc=yes
8086 else
8087   echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8089
8090   ac_header_preproc=no
8091 fi
8092 rm -f conftest.err conftest.$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8094 echo "${ECHO_T}$ac_header_preproc" >&6
8095
8096 # So?  What about this header?
8097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8098   yes:no: )
8099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8103     ac_header_preproc=yes
8104     ;;
8105   no:yes:* )
8106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8118     (
8119       cat <<\_ASBOX
8120 ## ------------------------------------ ##
8121 ## Report this to wine-devel@winehq.org ##
8122 ## ------------------------------------ ##
8123 _ASBOX
8124     ) |
8125       sed "s/^/$as_me: WARNING:     /" >&2
8126     ;;
8127 esac
8128 echo "$as_me:$LINENO: checking for $ac_header" >&5
8129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8131   echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133   eval "$as_ac_Header=\$ac_header_preproc"
8134 fi
8135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8137
8138 fi
8139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8140   cat >>confdefs.h <<_ACEOF
8141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8142 _ACEOF
8143
8144 fi
8145
8146 done
8147
8148         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8149         then
8150
8151 for ac_header in GL/glext.h
8152 do
8153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8154 echo "$as_me:$LINENO: checking for $ac_header" >&5
8155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8157   echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159   cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h.  */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h.  */
8165 #include <GL/glx.h>
8166
8167 #include <$ac_header>
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171   (eval $ac_compile) 2>conftest.er1
8172   ac_status=$?
8173   grep -v '^ *+' conftest.er1 >conftest.err
8174   rm -f conftest.er1
8175   cat conftest.err >&5
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } &&
8178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180   (eval $ac_try) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; } &&
8184          { ac_try='test -s conftest.$ac_objext'
8185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   eval "$as_ac_Header=yes"
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 eval "$as_ac_Header=no"
8196 fi
8197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8198 fi
8199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8202   cat >>confdefs.h <<_ACEOF
8203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8204 _ACEOF
8205
8206 fi
8207
8208 done
8209
8210                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8211 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8212 if test "${wine_cv_opengl_version_OK+set}" = set; then
8213   echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215   cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h.  */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h.  */
8221 #include <GL/gl.h>
8222 int
8223 main ()
8224 {
8225 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8226   ;
8227   return 0;
8228 }
8229 _ACEOF
8230 rm -f conftest.$ac_objext
8231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8232   (eval $ac_compile) 2>conftest.er1
8233   ac_status=$?
8234   grep -v '^ *+' conftest.er1 >conftest.err
8235   rm -f conftest.er1
8236   cat conftest.err >&5
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } &&
8239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241   (eval $ac_try) 2>&5
8242   ac_status=$?
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); }; } &&
8245          { ac_try='test -s conftest.$ac_objext'
8246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247   (eval $ac_try) 2>&5
8248   ac_status=$?
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); }; }; then
8251   wine_cv_opengl_version_OK="yes"
8252 else
8253   echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8255
8256 wine_cv_opengl_version_OK="no"
8257
8258 fi
8259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8260
8261 fi
8262 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8263 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8264
8265             if test "$wine_cv_opengl_version_OK" = "yes"
8266             then
8267                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8268 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8269 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272   ac_check_lib_save_LIBS=$LIBS
8273 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8274 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280
8281 /* Override any gcc2 internal prototype to avoid an error.  */
8282 #ifdef __cplusplus
8283 extern "C"
8284 #endif
8285 /* We use char because int might match the return type of a gcc2
8286    builtin and then its argument prototype would still apply.  */
8287 char glXCreateContext ();
8288 int
8289 main ()
8290 {
8291 glXCreateContext ();
8292   ;
8293   return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298   (eval $ac_link) 2>conftest.er1
8299   ac_status=$?
8300   grep -v '^ *+' conftest.er1 >conftest.err
8301   rm -f conftest.er1
8302   cat conftest.err >&5
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); } &&
8305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307   (eval $ac_try) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; } &&
8311          { ac_try='test -s conftest$ac_exeext'
8312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313   (eval $ac_try) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; }; then
8317   ac_cv_lib_GL_glXCreateContext=yes
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ac_cv_lib_GL_glXCreateContext=no
8323 fi
8324 rm -f conftest.err conftest.$ac_objext \
8325       conftest$ac_exeext conftest.$ac_ext
8326 LIBS=$ac_check_lib_save_LIBS
8327 fi
8328 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8329 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8330 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8331   OPENGL_LIBS="-lGL"
8332
8333 fi
8334
8335
8336                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8337                 then
8338                         OPENGLFILES='$(OPENGLFILES)'
8339
8340 cat >>confdefs.h <<\_ACEOF
8341 #define HAVE_OPENGL 1
8342 _ACEOF
8343
8344
8345                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8346 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8347 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   ac_check_lib_save_LIBS=$LIBS
8351 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358
8359 /* Override any gcc2 internal prototype to avoid an error.  */
8360 #ifdef __cplusplus
8361 extern "C"
8362 #endif
8363 /* We use char because int might match the return type of a gcc2
8364    builtin and then its argument prototype would still apply.  */
8365 char glXGetProcAddressARB ();
8366 int
8367 main ()
8368 {
8369 glXGetProcAddressARB ();
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376   (eval $ac_link) 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; } &&
8389          { ac_try='test -s conftest$ac_exeext'
8390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391   (eval $ac_try) 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); }; }; then
8395   ac_cv_lib_GL_glXGetProcAddressARB=yes
8396 else
8397   echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400 ac_cv_lib_GL_glXGetProcAddressARB=no
8401 fi
8402 rm -f conftest.err conftest.$ac_objext \
8403       conftest$ac_exeext conftest.$ac_ext
8404 LIBS=$ac_check_lib_save_LIBS
8405 fi
8406 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8407 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8408 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8409
8410 cat >>confdefs.h <<\_ACEOF
8411 #define HAVE_GLX_GETPROCADDRESS 1
8412 _ACEOF
8413
8414 fi
8415
8416
8417                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8418                         then
8419                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8420 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8421 if test "${wine_cv_extension_prototypes+set}" = set; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430 #include <GL/gl.h>
8431                                                   #ifdef HAVE_GL_GLEXT_H
8432                                                   # include <GL/glext.h>
8433                                                   #endif
8434
8435 int
8436 main ()
8437 {
8438 PFNGLCOLORTABLEEXTPROC test_proc;
8439   ;
8440   return 0;
8441 }
8442 _ACEOF
8443 rm -f conftest.$ac_objext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8445   (eval $ac_compile) 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; } &&
8458          { ac_try='test -s conftest.$ac_objext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   wine_cv_extension_prototypes="yes"
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 wine_cv_extension_prototypes="no"
8470
8471 fi
8472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8473
8474 fi
8475 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8476 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8477                                 if test "$wine_cv_extension_prototypes" = "yes"
8478                                 then
8479
8480 cat >>confdefs.h <<\_ACEOF
8481 #define HAVE_GLEXT_PROTOTYPES 1
8482 _ACEOF
8483
8484                                 fi
8485                         fi
8486
8487                 fi
8488                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8489 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8490 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8491   echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493   ac_check_lib_save_LIBS=$LIBS
8494 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8495                  $LIBS"
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502
8503 /* Override any gcc2 internal prototype to avoid an error.  */
8504 #ifdef __cplusplus
8505 extern "C"
8506 #endif
8507 /* We use char because int might match the return type of a gcc2
8508    builtin and then its argument prototype would still apply.  */
8509 char gluLookAt ();
8510 int
8511 main ()
8512 {
8513 gluLookAt ();
8514   ;
8515   return 0;
8516 }
8517 _ACEOF
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8520   (eval $ac_link) 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } &&
8527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529   (eval $ac_try) 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); }; } &&
8533          { ac_try='test -s conftest$ac_exeext'
8534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535   (eval $ac_try) 2>&5
8536   ac_status=$?
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); }; }; then
8539   ac_cv_lib_GLU_gluLookAt=yes
8540 else
8541   echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8543
8544 ac_cv_lib_GLU_gluLookAt=no
8545 fi
8546 rm -f conftest.err conftest.$ac_objext \
8547       conftest$ac_exeext conftest.$ac_ext
8548 LIBS=$ac_check_lib_save_LIBS
8549 fi
8550 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8551 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8552 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8553   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8554                              GLU32FILES='$(GLU32FILES)'
8555
8556 fi
8557
8558              fi
8559
8560                           echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8561 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8562 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8563   echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565   ac_check_lib_save_LIBS=$LIBS
8566 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h.  */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h.  */
8573
8574 /* Override any gcc2 internal prototype to avoid an error.  */
8575 #ifdef __cplusplus
8576 extern "C"
8577 #endif
8578 /* We use char because int might match the return type of a gcc2
8579    builtin and then its argument prototype would still apply.  */
8580 char glutMainLoop ();
8581 int
8582 main ()
8583 {
8584 glutMainLoop ();
8585   ;
8586   return 0;
8587 }
8588 _ACEOF
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591   (eval $ac_link) 2>conftest.er1
8592   ac_status=$?
8593   grep -v '^ *+' conftest.er1 >conftest.err
8594   rm -f conftest.er1
8595   cat conftest.err >&5
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); } &&
8598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600   (eval $ac_try) 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; } &&
8604          { ac_try='test -s conftest$ac_exeext'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; }; then
8610   ac_cv_lib_glut_glutMainLoop=yes
8611 else
8612   echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615 ac_cv_lib_glut_glutMainLoop=no
8616 fi
8617 rm -f conftest.err conftest.$ac_objext \
8618       conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_lib_save_LIBS
8620 fi
8621 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8622 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8623 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8624   GLUT_LIBS="-lglut -lXmu -lXi"
8625
8626                         GLUT32FILES='$(GLUT32FILES)'
8627
8628 fi
8629
8630          fi
8631     fi
8632
8633         NASLIBS=""
8634
8635
8636 for ac_header in audio/audiolib.h
8637 do
8638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8640   echo "$as_me:$LINENO: checking for $ac_header" >&5
8641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8643   echo $ECHO_N "(cached) $ECHO_C" >&6
8644 fi
8645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8647 else
8648   # Is the header compilable?
8649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h.  */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h.  */
8657 $ac_includes_default
8658 #include <$ac_header>
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8662   (eval $ac_compile) 2>conftest.er1
8663   ac_status=$?
8664   grep -v '^ *+' conftest.er1 >conftest.err
8665   rm -f conftest.er1
8666   cat conftest.err >&5
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); } &&
8669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671   (eval $ac_try) 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; } &&
8675          { ac_try='test -s conftest.$ac_objext'
8676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677   (eval $ac_try) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); }; }; then
8681   ac_header_compiler=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686 ac_header_compiler=no
8687 fi
8688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8690 echo "${ECHO_T}$ac_header_compiler" >&6
8691
8692 # Is the header present?
8693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8695 cat >conftest.$ac_ext <<_ACEOF
8696 /* confdefs.h.  */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h.  */
8701 #include <$ac_header>
8702 _ACEOF
8703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8705   ac_status=$?
8706   grep -v '^ *+' conftest.er1 >conftest.err
8707   rm -f conftest.er1
8708   cat conftest.err >&5
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } >/dev/null; then
8711   if test -s conftest.err; then
8712     ac_cpp_err=$ac_c_preproc_warn_flag
8713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8714   else
8715     ac_cpp_err=
8716   fi
8717 else
8718   ac_cpp_err=yes
8719 fi
8720 if test -z "$ac_cpp_err"; then
8721   ac_header_preproc=yes
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726   ac_header_preproc=no
8727 fi
8728 rm -f conftest.err conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8730 echo "${ECHO_T}$ac_header_preproc" >&6
8731
8732 # So?  What about this header?
8733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8734   yes:no: )
8735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8739     ac_header_preproc=yes
8740     ;;
8741   no:yes:* )
8742     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8744     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8745 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8746     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8748     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8749 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8752     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8754     (
8755       cat <<\_ASBOX
8756 ## ------------------------------------ ##
8757 ## Report this to wine-devel@winehq.org ##
8758 ## ------------------------------------ ##
8759 _ASBOX
8760     ) |
8761       sed "s/^/$as_me: WARNING:     /" >&2
8762     ;;
8763 esac
8764 echo "$as_me:$LINENO: checking for $ac_header" >&5
8765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   eval "$as_ac_Header=\$ac_header_preproc"
8770 fi
8771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773
8774 fi
8775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8776   cat >>confdefs.h <<_ACEOF
8777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778 _ACEOF
8779
8780 for ac_header in audio/soundlib.h
8781 do
8782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8783 echo "$as_me:$LINENO: checking for $ac_header" >&5
8784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788   cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h.  */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h.  */
8794 #include <audio/audiolib.h>
8795
8796 #include <$ac_header>
8797 _ACEOF
8798 rm -f conftest.$ac_objext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800   (eval $ac_compile) 2>conftest.er1
8801   ac_status=$?
8802   grep -v '^ *+' conftest.er1 >conftest.err
8803   rm -f conftest.er1
8804   cat conftest.err >&5
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } &&
8807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809   (eval $ac_try) 2>&5
8810   ac_status=$?
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); }; } &&
8813          { ac_try='test -s conftest.$ac_objext'
8814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815   (eval $ac_try) 2>&5
8816   ac_status=$?
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); }; }; then
8819   eval "$as_ac_Header=yes"
8820 else
8821   echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824 eval "$as_ac_Header=no"
8825 fi
8826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8827 fi
8828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8831   cat >>confdefs.h <<_ACEOF
8832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8833 _ACEOF
8834
8835 fi
8836
8837 done
8838
8839           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8840 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8841 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844   ac_check_lib_save_LIBS=$LIBS
8845 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h.  */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h.  */
8852
8853 /* Override any gcc2 internal prototype to avoid an error.  */
8854 #ifdef __cplusplus
8855 extern "C"
8856 #endif
8857 /* We use char because int might match the return type of a gcc2
8858    builtin and then its argument prototype would still apply.  */
8859 char AuCreateFlow ();
8860 int
8861 main ()
8862 {
8863 AuCreateFlow ();
8864   ;
8865   return 0;
8866 }
8867 _ACEOF
8868 rm -f conftest.$ac_objext conftest$ac_exeext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8870   (eval $ac_link) 2>conftest.er1
8871   ac_status=$?
8872   grep -v '^ *+' conftest.er1 >conftest.err
8873   rm -f conftest.er1
8874   cat conftest.err >&5
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); } &&
8877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879   (eval $ac_try) 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); }; } &&
8883          { ac_try='test -s conftest$ac_exeext'
8884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885   (eval $ac_try) 2>&5
8886   ac_status=$?
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); }; }; then
8889   ac_cv_lib_audio_AuCreateFlow=yes
8890 else
8891   echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894 ac_cv_lib_audio_AuCreateFlow=no
8895 fi
8896 rm -f conftest.err conftest.$ac_objext \
8897       conftest$ac_exeext conftest.$ac_ext
8898 LIBS=$ac_check_lib_save_LIBS
8899 fi
8900 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8901 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8902 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8903
8904 cat >>confdefs.h <<\_ACEOF
8905 #define HAVE_NAS 1
8906 _ACEOF
8907
8908                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8909 fi
8910
8911 fi
8912
8913 done
8914
8915
8916     CPPFLAGS="$ac_save_CPPFLAGS"
8917     XFILES='$(XFILES)'
8918 else
8919     XLIB=""
8920     X_CFLAGS=""
8921     X_LIBS=""
8922 fi
8923
8924 CURSESLIBS=""
8925 if test "x$with_curses" != "xno"
8926 then
8927
8928 for ac_header in ncurses.h
8929 do
8930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8932   echo "$as_me:$LINENO: checking for $ac_header" >&5
8933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8935   echo $ECHO_N "(cached) $ECHO_C" >&6
8936 fi
8937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8939 else
8940   # Is the header compilable?
8941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949 $ac_includes_default
8950 #include <$ac_header>
8951 _ACEOF
8952 rm -f conftest.$ac_objext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8954   (eval $ac_compile) 2>conftest.er1
8955   ac_status=$?
8956   grep -v '^ *+' conftest.er1 >conftest.err
8957   rm -f conftest.er1
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } &&
8961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; } &&
8967          { ac_try='test -s conftest.$ac_objext'
8968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969   (eval $ac_try) 2>&5
8970   ac_status=$?
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); }; }; then
8973   ac_header_compiler=yes
8974 else
8975   echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8977
8978 ac_header_compiler=no
8979 fi
8980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982 echo "${ECHO_T}$ac_header_compiler" >&6
8983
8984 # Is the header present?
8985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h.  */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h.  */
8993 #include <$ac_header>
8994 _ACEOF
8995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8997   ac_status=$?
8998   grep -v '^ *+' conftest.er1 >conftest.err
8999   rm -f conftest.er1
9000   cat conftest.err >&5
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } >/dev/null; then
9003   if test -s conftest.err; then
9004     ac_cpp_err=$ac_c_preproc_warn_flag
9005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9006   else
9007     ac_cpp_err=
9008   fi
9009 else
9010   ac_cpp_err=yes
9011 fi
9012 if test -z "$ac_cpp_err"; then
9013   ac_header_preproc=yes
9014 else
9015   echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018   ac_header_preproc=no
9019 fi
9020 rm -f conftest.err conftest.$ac_ext
9021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9022 echo "${ECHO_T}$ac_header_preproc" >&6
9023
9024 # So?  What about this header?
9025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9026   yes:no: )
9027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9031     ac_header_preproc=yes
9032     ;;
9033   no:yes:* )
9034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9046     (
9047       cat <<\_ASBOX
9048 ## ------------------------------------ ##
9049 ## Report this to wine-devel@winehq.org ##
9050 ## ------------------------------------ ##
9051 _ASBOX
9052     ) |
9053       sed "s/^/$as_me: WARNING:     /" >&2
9054     ;;
9055 esac
9056 echo "$as_me:$LINENO: checking for $ac_header" >&5
9057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9059   echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061   eval "$as_ac_Header=\$ac_header_preproc"
9062 fi
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9065
9066 fi
9067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9068   cat >>confdefs.h <<_ACEOF
9069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9070 _ACEOF
9071  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9072 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9073 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9074   echo $ECHO_N "(cached) $ECHO_C" >&6
9075 else
9076   ac_check_lib_save_LIBS=$LIBS
9077 LIBS="-lncurses  $LIBS"
9078 cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h.  */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h.  */
9084
9085 /* Override any gcc2 internal prototype to avoid an error.  */
9086 #ifdef __cplusplus
9087 extern "C"
9088 #endif
9089 /* We use char because int might match the return type of a gcc2
9090    builtin and then its argument prototype would still apply.  */
9091 char waddch ();
9092 int
9093 main ()
9094 {
9095 waddch ();
9096   ;
9097   return 0;
9098 }
9099 _ACEOF
9100 rm -f conftest.$ac_objext conftest$ac_exeext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102   (eval $ac_link) 2>conftest.er1
9103   ac_status=$?
9104   grep -v '^ *+' conftest.er1 >conftest.err
9105   rm -f conftest.er1
9106   cat conftest.err >&5
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); } &&
9109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; } &&
9115          { ac_try='test -s conftest$ac_exeext'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; }; then
9121   ac_cv_lib_ncurses_waddch=yes
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 ac_cv_lib_ncurses_waddch=no
9127 fi
9128 rm -f conftest.err conftest.$ac_objext \
9129       conftest$ac_exeext conftest.$ac_ext
9130 LIBS=$ac_check_lib_save_LIBS
9131 fi
9132 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9133 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9134 if test $ac_cv_lib_ncurses_waddch = yes; then
9135
9136 cat >>confdefs.h <<\_ACEOF
9137 #define HAVE_LIBNCURSES 1
9138 _ACEOF
9139
9140              CURSESLIBS="-lncurses"
9141 else
9142
9143 for ac_header in curses.h
9144 do
9145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9147   echo "$as_me:$LINENO: checking for $ac_header" >&5
9148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9150   echo $ECHO_N "(cached) $ECHO_C" >&6
9151 fi
9152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9154 else
9155   # Is the header compilable?
9156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164 $ac_includes_default
9165 #include <$ac_header>
9166 _ACEOF
9167 rm -f conftest.$ac_objext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9169   (eval $ac_compile) 2>conftest.er1
9170   ac_status=$?
9171   grep -v '^ *+' conftest.er1 >conftest.err
9172   rm -f conftest.er1
9173   cat conftest.err >&5
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); } &&
9176          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178   (eval $ac_try) 2>&5
9179   ac_status=$?
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); }; } &&
9182          { ac_try='test -s conftest.$ac_objext'
9183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184   (eval $ac_try) 2>&5
9185   ac_status=$?
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); }; }; then
9188   ac_header_compiler=yes
9189 else
9190   echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9192
9193 ac_header_compiler=no
9194 fi
9195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9197 echo "${ECHO_T}$ac_header_compiler" >&6
9198
9199 # Is the header present?
9200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208 #include <$ac_header>
9209 _ACEOF
9210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9212   ac_status=$?
9213   grep -v '^ *+' conftest.er1 >conftest.err
9214   rm -f conftest.er1
9215   cat conftest.err >&5
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); } >/dev/null; then
9218   if test -s conftest.err; then
9219     ac_cpp_err=$ac_c_preproc_warn_flag
9220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9221   else
9222     ac_cpp_err=
9223   fi
9224 else
9225   ac_cpp_err=yes
9226 fi
9227 if test -z "$ac_cpp_err"; then
9228   ac_header_preproc=yes
9229 else
9230   echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9232
9233   ac_header_preproc=no
9234 fi
9235 rm -f conftest.err conftest.$ac_ext
9236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9237 echo "${ECHO_T}$ac_header_preproc" >&6
9238
9239 # So?  What about this header?
9240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9241   yes:no: )
9242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9246     ac_header_preproc=yes
9247     ;;
9248   no:yes:* )
9249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9261     (
9262       cat <<\_ASBOX
9263 ## ------------------------------------ ##
9264 ## Report this to wine-devel@winehq.org ##
9265 ## ------------------------------------ ##
9266 _ASBOX
9267     ) |
9268       sed "s/^/$as_me: WARNING:     /" >&2
9269     ;;
9270 esac
9271 echo "$as_me:$LINENO: checking for $ac_header" >&5
9272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   eval "$as_ac_Header=\$ac_header_preproc"
9277 fi
9278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9280
9281 fi
9282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9283   cat >>confdefs.h <<_ACEOF
9284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9285 _ACEOF
9286  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9287 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9288 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   ac_check_lib_save_LIBS=$LIBS
9292 LIBS="-lcurses  $LIBS"
9293 cat >conftest.$ac_ext <<_ACEOF
9294 /* confdefs.h.  */
9295 _ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h.  */
9299
9300 /* Override any gcc2 internal prototype to avoid an error.  */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 /* We use char because int might match the return type of a gcc2
9305    builtin and then its argument prototype would still apply.  */
9306 char waddch ();
9307 int
9308 main ()
9309 {
9310 waddch ();
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 rm -f conftest.$ac_objext conftest$ac_exeext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317   (eval $ac_link) 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } &&
9324          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); }; } &&
9330          { ac_try='test -s conftest$ac_exeext'
9331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332   (eval $ac_try) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); }; }; then
9336   ac_cv_lib_curses_waddch=yes
9337 else
9338   echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9340
9341 ac_cv_lib_curses_waddch=no
9342 fi
9343 rm -f conftest.err conftest.$ac_objext \
9344       conftest$ac_exeext conftest.$ac_ext
9345 LIBS=$ac_check_lib_save_LIBS
9346 fi
9347 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9348 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9349 if test $ac_cv_lib_curses_waddch = yes; then
9350
9351 cat >>confdefs.h <<\_ACEOF
9352 #define HAVE_LIBCURSES 1
9353 _ACEOF
9354
9355                       CURSESLIBS="-lcurses"
9356 fi
9357
9358 fi
9359
9360 done
9361
9362 fi
9363
9364 fi
9365
9366 done
9367
9368     saved_libs="$LIBS"
9369     LIBS="$CURSESLIBS $LIBS"
9370
9371
9372 for ac_func in getbkgd resizeterm
9373 do
9374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9375 echo "$as_me:$LINENO: checking for $ac_func" >&5
9376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9377 if eval "test \"\${$as_ac_var+set}\" = set"; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9388 #define $ac_func innocuous_$ac_func
9389
9390 /* System header to define __stub macros and hopefully few prototypes,
9391     which can conflict with char $ac_func (); below.
9392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9393     <limits.h> exists even on freestanding compilers.  */
9394
9395 #ifdef __STDC__
9396 # include <limits.h>
9397 #else
9398 # include <assert.h>
9399 #endif
9400
9401 #undef $ac_func
9402
9403 /* Override any gcc2 internal prototype to avoid an error.  */
9404 #ifdef __cplusplus
9405 extern "C"
9406 {
9407 #endif
9408 /* We use char because int might match the return type of a gcc2
9409    builtin and then its argument prototype would still apply.  */
9410 char $ac_func ();
9411 /* The GNU C library defines this for functions which it implements
9412     to always fail with ENOSYS.  Some functions are actually named
9413     something starting with __ and the normal name is an alias.  */
9414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9415 choke me
9416 #else
9417 char (*f) () = $ac_func;
9418 #endif
9419 #ifdef __cplusplus
9420 }
9421 #endif
9422
9423 int
9424 main ()
9425 {
9426 return f != $ac_func;
9427   ;
9428   return 0;
9429 }
9430 _ACEOF
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433   (eval $ac_link) 2>conftest.er1
9434   ac_status=$?
9435   grep -v '^ *+' conftest.er1 >conftest.err
9436   rm -f conftest.er1
9437   cat conftest.err >&5
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } &&
9440          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442   (eval $ac_try) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; } &&
9446          { ac_try='test -s conftest$ac_exeext'
9447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448   (eval $ac_try) 2>&5
9449   ac_status=$?
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); }; }; then
9452   eval "$as_ac_var=yes"
9453 else
9454   echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9456
9457 eval "$as_ac_var=no"
9458 fi
9459 rm -f conftest.err conftest.$ac_objext \
9460       conftest$ac_exeext conftest.$ac_ext
9461 fi
9462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9464 if test `eval echo '${'$as_ac_var'}'` = yes; then
9465   cat >>confdefs.h <<_ACEOF
9466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9467 _ACEOF
9468
9469 fi
9470 done
9471
9472     LIBS="$saved_libs"
9473 fi
9474
9475
9476 # Extract the first word of "sane-config", so it can be a program name with args.
9477 set dummy sane-config; ac_word=$2
9478 echo "$as_me:$LINENO: checking for $ac_word" >&5
9479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9480 if test "${ac_cv_prog_sane_devel+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483   if test -n "$sane_devel"; then
9484   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9485 else
9486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9487 for as_dir in $PATH
9488 do
9489   IFS=$as_save_IFS
9490   test -z "$as_dir" && as_dir=.
9491   for ac_exec_ext in '' $ac_executable_extensions; do
9492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9493     ac_cv_prog_sane_devel="sane-config"
9494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9495     break 2
9496   fi
9497 done
9498 done
9499
9500   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9501 fi
9502 fi
9503 sane_devel=$ac_cv_prog_sane_devel
9504 if test -n "$sane_devel"; then
9505   echo "$as_me:$LINENO: result: $sane_devel" >&5
9506 echo "${ECHO_T}$sane_devel" >&6
9507 else
9508   echo "$as_me:$LINENO: result: no" >&5
9509 echo "${ECHO_T}no" >&6
9510 fi
9511
9512 if test "$sane_devel" = "no"
9513 then
9514     SANELIBS=""
9515     SANEINCL=""
9516 else
9517     SANELIBS="`$sane_devel --libs`"
9518     SANEINCL="`$sane_devel --cflags`"
9519     ac_save_CPPFLAGS="$CPPFLAGS"
9520     ac_save_LIBS="$LIBS"
9521     CPPFLAGS="$CPPFLAGS $SANEINCL"
9522     LIBS="$LIBS $SANELIBS"
9523     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9524   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9525 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9526 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9527   echo $ECHO_N "(cached) $ECHO_C" >&6
9528 fi
9529 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9530 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9531 else
9532   # Is the header compilable?
9533 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9534 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h.  */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h.  */
9541 $ac_includes_default
9542 #include <sane/sane.h>
9543 _ACEOF
9544 rm -f conftest.$ac_objext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9546   (eval $ac_compile) 2>conftest.er1
9547   ac_status=$?
9548   grep -v '^ *+' conftest.er1 >conftest.err
9549   rm -f conftest.er1
9550   cat conftest.err >&5
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); } &&
9553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555   (eval $ac_try) 2>&5
9556   ac_status=$?
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); }; } &&
9559          { ac_try='test -s conftest.$ac_objext'
9560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561   (eval $ac_try) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); }; }; then
9565   ac_header_compiler=yes
9566 else
9567   echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9569
9570 ac_header_compiler=no
9571 fi
9572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9574 echo "${ECHO_T}$ac_header_compiler" >&6
9575
9576 # Is the header present?
9577 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9578 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h.  */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h.  */
9585 #include <sane/sane.h>
9586 _ACEOF
9587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9589   ac_status=$?
9590   grep -v '^ *+' conftest.er1 >conftest.err
9591   rm -f conftest.er1
9592   cat conftest.err >&5
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); } >/dev/null; then
9595   if test -s conftest.err; then
9596     ac_cpp_err=$ac_c_preproc_warn_flag
9597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9598   else
9599     ac_cpp_err=
9600   fi
9601 else
9602   ac_cpp_err=yes
9603 fi
9604 if test -z "$ac_cpp_err"; then
9605   ac_header_preproc=yes
9606 else
9607   echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610   ac_header_preproc=no
9611 fi
9612 rm -f conftest.err conftest.$ac_ext
9613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9614 echo "${ECHO_T}$ac_header_preproc" >&6
9615
9616 # So?  What about this header?
9617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9618   yes:no: )
9619     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9620 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9621     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9622 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9623     ac_header_preproc=yes
9624     ;;
9625   no:yes:* )
9626     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9627 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9628     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
9629 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
9630     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9631 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9632     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
9633 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9634     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9635 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9636     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9637 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9638     (
9639       cat <<\_ASBOX
9640 ## ------------------------------------ ##
9641 ## Report this to wine-devel@winehq.org ##
9642 ## ------------------------------------ ##
9643 _ASBOX
9644     ) |
9645       sed "s/^/$as_me: WARNING:     /" >&2
9646     ;;
9647 esac
9648 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9649 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9650 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   ac_cv_header_sane_sane_h=$ac_header_preproc
9654 fi
9655 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9656 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9657
9658 fi
9659 if test $ac_cv_header_sane_sane_h = yes; then
9660   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9661 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9662 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9663   echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665   ac_check_lib_save_LIBS=$LIBS
9666 LIBS="-lsane  $LIBS"
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h.  */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h.  */
9673
9674 /* Override any gcc2 internal prototype to avoid an error.  */
9675 #ifdef __cplusplus
9676 extern "C"
9677 #endif
9678 /* We use char because int might match the return type of a gcc2
9679    builtin and then its argument prototype would still apply.  */
9680 char sane_open ();
9681 int
9682 main ()
9683 {
9684 sane_open ();
9685   ;
9686   return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest.$ac_objext conftest$ac_exeext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691   (eval $ac_link) 2>conftest.er1
9692   ac_status=$?
9693   grep -v '^ *+' conftest.er1 >conftest.err
9694   rm -f conftest.er1
9695   cat conftest.err >&5
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); } &&
9698          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700   (eval $ac_try) 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; } &&
9704          { ac_try='test -s conftest$ac_exeext'
9705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706   (eval $ac_try) 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); }; }; then
9710   ac_cv_lib_sane_sane_open=yes
9711 else
9712   echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715 ac_cv_lib_sane_sane_open=no
9716 fi
9717 rm -f conftest.err conftest.$ac_objext \
9718       conftest$ac_exeext conftest.$ac_ext
9719 LIBS=$ac_check_lib_save_LIBS
9720 fi
9721 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9722 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9723 if test $ac_cv_lib_sane_sane_open = yes; then
9724
9725 cat >>confdefs.h <<\_ACEOF
9726 #define HAVE_SANE 1
9727 _ACEOF
9728
9729 else
9730   SANELIBS=""
9731                                   SANEINCL=""
9732 fi
9733
9734 else
9735   SANELIBS=""
9736                     SANEINCL=""
9737 fi
9738
9739
9740     LIBS="$ac_save_LIBS"
9741     CPPFLAGS="$ac_save_CPPFLAGS"
9742 fi
9743
9744
9745
9746
9747 for ac_header in unicode/ubidi.h
9748 do
9749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9751   echo "$as_me:$LINENO: checking for $ac_header" >&5
9752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9754   echo $ECHO_N "(cached) $ECHO_C" >&6
9755 fi
9756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9758 else
9759   # Is the header compilable?
9760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h.  */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h.  */
9768 $ac_includes_default
9769 #include <$ac_header>
9770 _ACEOF
9771 rm -f conftest.$ac_objext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9773   (eval $ac_compile) 2>conftest.er1
9774   ac_status=$?
9775   grep -v '^ *+' conftest.er1 >conftest.err
9776   rm -f conftest.er1
9777   cat conftest.err >&5
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); } &&
9780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782   (eval $ac_try) 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); }; } &&
9786          { ac_try='test -s conftest.$ac_objext'
9787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788   (eval $ac_try) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; }; then
9792   ac_header_compiler=yes
9793 else
9794   echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9796
9797 ac_header_compiler=no
9798 fi
9799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9801 echo "${ECHO_T}$ac_header_compiler" >&6
9802
9803 # Is the header present?
9804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h.  */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h.  */
9812 #include <$ac_header>
9813 _ACEOF
9814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9816   ac_status=$?
9817   grep -v '^ *+' conftest.er1 >conftest.err
9818   rm -f conftest.er1
9819   cat conftest.err >&5
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } >/dev/null; then
9822   if test -s conftest.err; then
9823     ac_cpp_err=$ac_c_preproc_warn_flag
9824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9825   else
9826     ac_cpp_err=
9827   fi
9828 else
9829   ac_cpp_err=yes
9830 fi
9831 if test -z "$ac_cpp_err"; then
9832   ac_header_preproc=yes
9833 else
9834   echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837   ac_header_preproc=no
9838 fi
9839 rm -f conftest.err conftest.$ac_ext
9840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9841 echo "${ECHO_T}$ac_header_preproc" >&6
9842
9843 # So?  What about this header?
9844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9845   yes:no: )
9846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9850     ac_header_preproc=yes
9851     ;;
9852   no:yes:* )
9853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9865     (
9866       cat <<\_ASBOX
9867 ## ------------------------------------ ##
9868 ## Report this to wine-devel@winehq.org ##
9869 ## ------------------------------------ ##
9870 _ASBOX
9871     ) |
9872       sed "s/^/$as_me: WARNING:     /" >&2
9873     ;;
9874 esac
9875 echo "$as_me:$LINENO: checking for $ac_header" >&5
9876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880   eval "$as_ac_Header=\$ac_header_preproc"
9881 fi
9882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9884
9885 fi
9886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9887   cat >>confdefs.h <<_ACEOF
9888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9889 _ACEOF
9890
9891 fi
9892
9893 done
9894
9895 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9896 then
9897     saved_libs="$LIBS"
9898     ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9899     ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9900     ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9901     echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9902 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
9903     LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9904     cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h.  */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h.  */
9910 #include <unicode/ubidi.h>
9911 int
9912 main ()
9913 {
9914 ubidi_open()
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921   (eval $ac_link) 2>conftest.er1
9922   ac_status=$?
9923   grep -v '^ *+' conftest.er1 >conftest.err
9924   rm -f conftest.er1
9925   cat conftest.err >&5
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } &&
9928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930   (eval $ac_try) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; } &&
9934          { ac_try='test -s conftest$ac_exeext'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; }; then
9940
9941 cat >>confdefs.h <<\_ACEOF
9942 #define HAVE_ICU 1
9943 _ACEOF
9944
9945                  ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9946
9947                  echo "$as_me:$LINENO: result: yes" >&5
9948 echo "${ECHO_T}yes" >&6
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 echo "$as_me:$LINENO: result: no" >&5
9954 echo "${ECHO_T}no" >&6
9955 fi
9956 rm -f conftest.err conftest.$ac_objext \
9957       conftest$ac_exeext conftest.$ac_ext
9958     LIBS="$saved_libs"
9959 fi
9960
9961 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9962 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9963 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9964   echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966   ac_check_lib_save_LIBS=$LIBS
9967 LIBS="-lfreetype $X_LIBS $LIBS"
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h.  */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h.  */
9974
9975 /* Override any gcc2 internal prototype to avoid an error.  */
9976 #ifdef __cplusplus
9977 extern "C"
9978 #endif
9979 /* We use char because int might match the return type of a gcc2
9980    builtin and then its argument prototype would still apply.  */
9981 char FT_Init_FreeType ();
9982 int
9983 main ()
9984 {
9985 FT_Init_FreeType ();
9986   ;
9987   return 0;
9988 }
9989 _ACEOF
9990 rm -f conftest.$ac_objext conftest$ac_exeext
9991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9992   (eval $ac_link) 2>conftest.er1
9993   ac_status=$?
9994   grep -v '^ *+' conftest.er1 >conftest.err
9995   rm -f conftest.er1
9996   cat conftest.err >&5
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); } &&
9999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001   (eval $ac_try) 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; } &&
10005          { ac_try='test -s conftest$ac_exeext'
10006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007   (eval $ac_try) 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; }; then
10011   ac_cv_lib_freetype_FT_Init_FreeType=yes
10012 else
10013   echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016 ac_cv_lib_freetype_FT_Init_FreeType=no
10017 fi
10018 rm -f conftest.err conftest.$ac_objext \
10019       conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_check_lib_save_LIBS
10021 fi
10022 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10023 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10024 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10025   ft_lib=yes
10026 else
10027   ft_lib=no
10028 fi
10029
10030 if test "$ft_lib" = "no"
10031 then
10032     FREETYPELIBS=""
10033     FREETYPEINCL=""
10034     wine_cv_msg_freetype=no
10035 else
10036     # Extract the first word of "freetype-config", so it can be a program name with args.
10037 set dummy freetype-config; ac_word=$2
10038 echo "$as_me:$LINENO: checking for $ac_word" >&5
10039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10040 if test "${ac_cv_prog_ft_devel+set}" = set; then
10041   echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043   if test -n "$ft_devel"; then
10044   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10045 else
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10048 do
10049   IFS=$as_save_IFS
10050   test -z "$as_dir" && as_dir=.
10051   for ac_exec_ext in '' $ac_executable_extensions; do
10052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053     ac_cv_prog_ft_devel="freetype-config"
10054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10055     break 2
10056   fi
10057 done
10058 done
10059
10060   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10061 fi
10062 fi
10063 ft_devel=$ac_cv_prog_ft_devel
10064 if test -n "$ft_devel"; then
10065   echo "$as_me:$LINENO: result: $ft_devel" >&5
10066 echo "${ECHO_T}$ft_devel" >&6
10067 else
10068   echo "$as_me:$LINENO: result: no" >&5
10069 echo "${ECHO_T}no" >&6
10070 fi
10071
10072     if test "$ft_devel" = "no"
10073     then
10074         # Extract the first word of "freetype2-config", so it can be a program name with args.
10075 set dummy freetype2-config; ac_word=$2
10076 echo "$as_me:$LINENO: checking for $ac_word" >&5
10077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10078 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   if test -n "$ft_devel2"; then
10082   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10083 else
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10086 do
10087   IFS=$as_save_IFS
10088   test -z "$as_dir" && as_dir=.
10089   for ac_exec_ext in '' $ac_executable_extensions; do
10090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10091     ac_cv_prog_ft_devel2="freetype2-config"
10092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10093     break 2
10094   fi
10095 done
10096 done
10097
10098   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10099 fi
10100 fi
10101 ft_devel2=$ac_cv_prog_ft_devel2
10102 if test -n "$ft_devel2"; then
10103   echo "$as_me:$LINENO: result: $ft_devel2" >&5
10104 echo "${ECHO_T}$ft_devel2" >&6
10105 else
10106   echo "$as_me:$LINENO: result: no" >&5
10107 echo "${ECHO_T}no" >&6
10108 fi
10109
10110         if test "$ft_devel2" = "freetype2-config"
10111         then
10112                 ft_devel=$ft_devel2
10113         fi
10114     fi
10115     if test "$ft_devel" = "no"
10116     then
10117         FREETYPELIBS=""
10118         FREETYPEINCL=""
10119         wine_cv_msg_freetype=yes
10120     else
10121         FREETYPELIBS=`$ft_devel --libs`
10122         FREETYPEINCL=`$ft_devel --cflags`
10123         ac_save_CPPFLAGS="$CPPFLAGS"
10124         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135 for ac_header in ft2build.h \
10136                          freetype/freetype.h \
10137                          freetype/ftglyph.h \
10138                          freetype/tttables.h \
10139                          freetype/ftnames.h \
10140                          freetype/ftsnames.h \
10141                          freetype/ttnameid.h \
10142                          freetype/ftoutln.h \
10143                          freetype/ftwinfnt.h \
10144                          freetype/internal/sfnt.h
10145 do
10146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10147 echo "$as_me:$LINENO: checking for $ac_header" >&5
10148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152   cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h.  */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h.  */
10158 #if HAVE_FT2BUILD_H
10159                           #include <ft2build.h>
10160                           #endif
10161
10162 #include <$ac_header>
10163 _ACEOF
10164 rm -f conftest.$ac_objext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166   (eval $ac_compile) 2>conftest.er1
10167   ac_status=$?
10168   grep -v '^ *+' conftest.er1 >conftest.err
10169   rm -f conftest.er1
10170   cat conftest.err >&5
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } &&
10173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175   (eval $ac_try) 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; } &&
10179          { ac_try='test -s conftest.$ac_objext'
10180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181   (eval $ac_try) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); }; }; then
10185   eval "$as_ac_Header=yes"
10186 else
10187   echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 eval "$as_ac_Header=no"
10191 fi
10192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10193 fi
10194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10197   cat >>confdefs.h <<_ACEOF
10198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10199 _ACEOF
10200
10201 fi
10202
10203 done
10204
10205         cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h.  */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h.  */
10211 #include <ft2build.h>
10212                     #include <freetype/fttrigon.h>
10213 _ACEOF
10214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10216   ac_status=$?
10217   grep -v '^ *+' conftest.er1 >conftest.err
10218   rm -f conftest.er1
10219   cat conftest.err >&5
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); } >/dev/null; then
10222   if test -s conftest.err; then
10223     ac_cpp_err=$ac_c_preproc_warn_flag
10224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10225   else
10226     ac_cpp_err=
10227   fi
10228 else
10229   ac_cpp_err=yes
10230 fi
10231 if test -z "$ac_cpp_err"; then
10232
10233 cat >>confdefs.h <<\_ACEOF
10234 #define HAVE_FREETYPE_FTTRIGON_H 1
10235 _ACEOF
10236
10237                     wine_cv_fttrigon=yes
10238 else
10239   echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242   wine_cv_fttrigon=no
10243 fi
10244 rm -f conftest.err conftest.$ac_ext
10245         CPPFLAGS="$ac_save_CPPFLAGS"
10246                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10247         then
10248
10249 cat >>confdefs.h <<\_ACEOF
10250 #define HAVE_FREETYPE 1
10251 _ACEOF
10252
10253             wine_cv_msg_freetype=no
10254         else
10255             FREETYPELIBS=""
10256             FREETYPEINCL=""
10257             wine_cv_msg_freetype=yes
10258         fi
10259     fi
10260 fi
10261
10262
10263
10264 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10265 then
10266   FONTSSUBDIRS="fonts"
10267
10268 fi
10269
10270 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10271 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10272 if test "${ac_cv_c_ppdev+set}" = set; then
10273   echo $ECHO_N "(cached) $ECHO_C" >&6
10274 else
10275   cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h.  */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h.  */
10281 #include <linux/ppdev.h>
10282 int
10283 main ()
10284 {
10285 ioctl (1,PPCLAIM,0)
10286   ;
10287   return 0;
10288 }
10289 _ACEOF
10290 rm -f conftest.$ac_objext
10291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10292   (eval $ac_compile) 2>conftest.er1
10293   ac_status=$?
10294   grep -v '^ *+' conftest.er1 >conftest.err
10295   rm -f conftest.er1
10296   cat conftest.err >&5
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); } &&
10299          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301   (eval $ac_try) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; } &&
10305          { ac_try='test -s conftest.$ac_objext'
10306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307   (eval $ac_try) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; }; then
10311   ac_cv_c_ppdev="yes"
10312 else
10313   echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316 ac_cv_c_ppdev="no"
10317 fi
10318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10319
10320 fi
10321 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10322 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10323 if test "$ac_cv_c_ppdev" = "yes"
10324 then
10325
10326 cat >>confdefs.h <<\_ACEOF
10327 #define HAVE_PPDEV 1
10328 _ACEOF
10329
10330 fi
10331
10332 echo "$as_me:$LINENO: checking for va_copy" >&5
10333 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10334 if test "${ac_cv_c_va_copy+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h.  */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h.  */
10343 #include <stdarg.h>
10344 int
10345 main ()
10346 {
10347 va_list ap1, ap2;
10348     va_copy(ap1,ap2);
10349
10350   ;
10351   return 0;
10352 }
10353 _ACEOF
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10356   (eval $ac_link) 2>conftest.er1
10357   ac_status=$?
10358   grep -v '^ *+' conftest.er1 >conftest.err
10359   rm -f conftest.er1
10360   cat conftest.err >&5
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); } &&
10363          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365   (eval $ac_try) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; } &&
10369          { ac_try='test -s conftest$ac_exeext'
10370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371   (eval $ac_try) 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; }; then
10375   ac_cv_c_va_copy="yes"
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 ac_cv_c_va_copy="no"
10381 fi
10382 rm -f conftest.err conftest.$ac_objext \
10383       conftest$ac_exeext conftest.$ac_ext
10384
10385 fi
10386 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10387 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10388 if test "$ac_cv_c_va_copy" = "yes"
10389 then
10390
10391 cat >>confdefs.h <<\_ACEOF
10392 #define HAVE_VA_COPY 1
10393 _ACEOF
10394
10395 fi
10396 echo "$as_me:$LINENO: checking for __va_copy" >&5
10397 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10398 if test "${ac_cv_c___va_copy+set}" = set; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401   cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h.  */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h.  */
10407 #include <stdarg.h>
10408 int
10409 main ()
10410 {
10411 va_list ap1, ap2;
10412     __va_copy(ap1,ap2);
10413
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420   (eval $ac_link) 2>conftest.er1
10421   ac_status=$?
10422   grep -v '^ *+' conftest.er1 >conftest.err
10423   rm -f conftest.er1
10424   cat conftest.err >&5
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } &&
10427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429   (eval $ac_try) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; } &&
10433          { ac_try='test -s conftest$ac_exeext'
10434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435   (eval $ac_try) 2>&5
10436   ac_status=$?
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); }; }; then
10439   ac_cv_c___va_copy="yes"
10440 else
10441   echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10443
10444 ac_cv_c___va_copy="no"
10445 fi
10446 rm -f conftest.err conftest.$ac_objext \
10447       conftest$ac_exeext conftest.$ac_ext
10448
10449 fi
10450 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10451 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10452 if test "$ac_cv_c___va_copy" = "yes"
10453 then
10454
10455 cat >>confdefs.h <<\_ACEOF
10456 #define HAVE___VA_COPY 1
10457 _ACEOF
10458
10459 fi
10460
10461 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10462 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10463 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466   cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h.  */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h.  */
10472 #include <setjmp.h>
10473 int
10474 main ()
10475 {
10476 sigjmp_buf buf;
10477     sigsetjmp( buf, 1 );
10478     siglongjmp( buf, 1 );
10479   ;
10480   return 0;
10481 }
10482 _ACEOF
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10485   (eval $ac_link) 2>conftest.er1
10486   ac_status=$?
10487   grep -v '^ *+' conftest.er1 >conftest.err
10488   rm -f conftest.er1
10489   cat conftest.err >&5
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); } &&
10492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494   (eval $ac_try) 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); }; } &&
10498          { ac_try='test -s conftest$ac_exeext'
10499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500   (eval $ac_try) 2>&5
10501   ac_status=$?
10502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503   (exit $ac_status); }; }; then
10504   ac_cv_c_sigsetjmp="yes"
10505 else
10506   echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509 ac_cv_c_sigsetjmp="no"
10510 fi
10511 rm -f conftest.err conftest.$ac_objext \
10512       conftest$ac_exeext conftest.$ac_ext
10513
10514 fi
10515 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10516 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10517 if test "$ac_cv_c_sigsetjmp" = "yes"
10518 then
10519
10520 cat >>confdefs.h <<\_ACEOF
10521 #define HAVE_SIGSETJMP 1
10522 _ACEOF
10523
10524 fi
10525
10526 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10527 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10528 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10529   echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531   cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h.  */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h.  */
10537 #define _GNU_SOURCE
10538 #include <pthread.h>
10539
10540 int
10541 main ()
10542 {
10543 if ((pthread_rwlock_t *) 0)
10544   return 0;
10545 if (sizeof (pthread_rwlock_t))
10546   return 0;
10547   ;
10548   return 0;
10549 }
10550 _ACEOF
10551 rm -f conftest.$ac_objext
10552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10553   (eval $ac_compile) 2>conftest.er1
10554   ac_status=$?
10555   grep -v '^ *+' conftest.er1 >conftest.err
10556   rm -f conftest.er1
10557   cat conftest.err >&5
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } &&
10560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562   (eval $ac_try) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); }; } &&
10566          { ac_try='test -s conftest.$ac_objext'
10567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568   (eval $ac_try) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; }; then
10572   ac_cv_type_pthread_rwlock_t=yes
10573 else
10574   echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 ac_cv_type_pthread_rwlock_t=no
10578 fi
10579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10580 fi
10581 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10582 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10583 if test $ac_cv_type_pthread_rwlock_t = yes; then
10584
10585 cat >>confdefs.h <<_ACEOF
10586 #define HAVE_PTHREAD_RWLOCK_T 1
10587 _ACEOF
10588
10589
10590 fi
10591 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10592 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10593 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10594   echo $ECHO_N "(cached) $ECHO_C" >&6
10595 else
10596   cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 #define _GNU_SOURCE
10603 #include <pthread.h>
10604
10605 int
10606 main ()
10607 {
10608 if ((pthread_rwlockattr_t *) 0)
10609   return 0;
10610 if (sizeof (pthread_rwlockattr_t))
10611   return 0;
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 rm -f conftest.$ac_objext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618   (eval $ac_compile) 2>conftest.er1
10619   ac_status=$?
10620   grep -v '^ *+' conftest.er1 >conftest.err
10621   rm -f conftest.er1
10622   cat conftest.err >&5
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } &&
10625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; } &&
10631          { ac_try='test -s conftest.$ac_objext'
10632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633   (eval $ac_try) 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; }; then
10637   ac_cv_type_pthread_rwlockattr_t=yes
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 ac_cv_type_pthread_rwlockattr_t=no
10643 fi
10644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10645 fi
10646 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10647 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10648 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10649
10650 cat >>confdefs.h <<_ACEOF
10651 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10652 _ACEOF
10653
10654
10655 fi
10656
10657
10658 ac_save_LIBS="$LIBS"
10659 LIBS="$LIBS $LIBPTHREAD"
10660
10661
10662
10663 for ac_func in \
10664         pthread_getattr_np \
10665         pthread_get_stackaddr_np \
10666         pthread_get_stacksize_np \
10667
10668 do
10669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670 echo "$as_me:$LINENO: checking for $ac_func" >&5
10671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10672 if eval "test \"\${$as_ac_var+set}\" = set"; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675   cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10683 #define $ac_func innocuous_$ac_func
10684
10685 /* System header to define __stub macros and hopefully few prototypes,
10686     which can conflict with char $ac_func (); below.
10687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688     <limits.h> exists even on freestanding compilers.  */
10689
10690 #ifdef __STDC__
10691 # include <limits.h>
10692 #else
10693 # include <assert.h>
10694 #endif
10695
10696 #undef $ac_func
10697
10698 /* Override any gcc2 internal prototype to avoid an error.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 {
10702 #endif
10703 /* We use char because int might match the return type of a gcc2
10704    builtin and then its argument prototype would still apply.  */
10705 char $ac_func ();
10706 /* The GNU C library defines this for functions which it implements
10707     to always fail with ENOSYS.  Some functions are actually named
10708     something starting with __ and the normal name is an alias.  */
10709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10710 choke me
10711 #else
10712 char (*f) () = $ac_func;
10713 #endif
10714 #ifdef __cplusplus
10715 }
10716 #endif
10717
10718 int
10719 main ()
10720 {
10721 return f != $ac_func;
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728   (eval $ac_link) 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } &&
10735          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737   (eval $ac_try) 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; } &&
10741          { ac_try='test -s conftest$ac_exeext'
10742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743   (eval $ac_try) 2>&5
10744   ac_status=$?
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); }; }; then
10747   eval "$as_ac_var=yes"
10748 else
10749   echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 eval "$as_ac_var=no"
10753 fi
10754 rm -f conftest.err conftest.$ac_objext \
10755       conftest$ac_exeext conftest.$ac_ext
10756 fi
10757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10759 if test `eval echo '${'$as_ac_var'}'` = yes; then
10760   cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10762 _ACEOF
10763
10764 fi
10765 done
10766
10767 LIBS="$ac_save_LIBS"
10768
10769
10770
10771
10772 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10773 do
10774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10776   echo "$as_me:$LINENO: checking for $ac_header" >&5
10777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10779   echo $ECHO_N "(cached) $ECHO_C" >&6
10780 fi
10781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10783 else
10784   # Is the header compilable?
10785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10787 cat >conftest.$ac_ext <<_ACEOF
10788 /* confdefs.h.  */
10789 _ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h.  */
10793 $ac_includes_default
10794 #include <$ac_header>
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10798   (eval $ac_compile) 2>conftest.er1
10799   ac_status=$?
10800   grep -v '^ *+' conftest.er1 >conftest.err
10801   rm -f conftest.er1
10802   cat conftest.err >&5
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); } &&
10805          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807   (eval $ac_try) 2>&5
10808   ac_status=$?
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); }; } &&
10811          { ac_try='test -s conftest.$ac_objext'
10812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813   (eval $ac_try) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); }; }; then
10817   ac_header_compiler=yes
10818 else
10819   echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 ac_header_compiler=no
10823 fi
10824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10826 echo "${ECHO_T}$ac_header_compiler" >&6
10827
10828 # Is the header present?
10829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837 #include <$ac_header>
10838 _ACEOF
10839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10841   ac_status=$?
10842   grep -v '^ *+' conftest.er1 >conftest.err
10843   rm -f conftest.er1
10844   cat conftest.err >&5
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); } >/dev/null; then
10847   if test -s conftest.err; then
10848     ac_cpp_err=$ac_c_preproc_warn_flag
10849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10850   else
10851     ac_cpp_err=
10852   fi
10853 else
10854   ac_cpp_err=yes
10855 fi
10856 if test -z "$ac_cpp_err"; then
10857   ac_header_preproc=yes
10858 else
10859   echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862   ac_header_preproc=no
10863 fi
10864 rm -f conftest.err conftest.$ac_ext
10865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10866 echo "${ECHO_T}$ac_header_preproc" >&6
10867
10868 # So?  What about this header?
10869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10870   yes:no: )
10871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10875     ac_header_preproc=yes
10876     ;;
10877   no:yes:* )
10878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10880     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10881 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10882     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10884     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10885 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10888     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10890     (
10891       cat <<\_ASBOX
10892 ## ------------------------------------ ##
10893 ## Report this to wine-devel@winehq.org ##
10894 ## ------------------------------------ ##
10895 _ASBOX
10896     ) |
10897       sed "s/^/$as_me: WARNING:     /" >&2
10898     ;;
10899 esac
10900 echo "$as_me:$LINENO: checking for $ac_header" >&5
10901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10903   echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905   eval "$as_ac_Header=\$ac_header_preproc"
10906 fi
10907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10909
10910 fi
10911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10912   cat >>confdefs.h <<_ACEOF
10913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10914 _ACEOF
10915  break
10916 fi
10917
10918 done
10919
10920
10921 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10922 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10923 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10924   echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926   cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932
10933         #if defined(HAVE_SYS_SOUNDCARD_H)
10934                 #include <sys/soundcard.h>
10935         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10936                 #include <machine/soundcard.h>
10937         #elif defined(HAVE_SOUNDCARD_H)
10938                 #include <soundcard.h>
10939         #endif
10940
10941 int
10942 main ()
10943 {
10944
10945
10946 /* check for one of the Open Sound System specific SNDCTL_ defines */
10947 #if !defined(SNDCTL_DSP_STEREO)
10948 #error No open sound system
10949 #endif
10950
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 rm -f conftest.$ac_objext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10957   (eval $ac_compile) 2>conftest.er1
10958   ac_status=$?
10959   grep -v '^ *+' conftest.er1 >conftest.err
10960   rm -f conftest.er1
10961   cat conftest.err >&5
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); } &&
10964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966   (eval $ac_try) 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; } &&
10970          { ac_try='test -s conftest.$ac_objext'
10971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972   (eval $ac_try) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }; }; then
10976   ac_cv_c_opensoundsystem="yes"
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 ac_cv_c_opensoundsystem="no"
10982 fi
10983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10984 fi
10985 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10986 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10987
10988 if test "$ac_cv_c_opensoundsystem" = "yes"
10989 then
10990
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_OSS 1
10993 _ACEOF
10994
10995 fi
10996
10997 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10998 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10999 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11000   echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002   cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008
11009         #if defined(HAVE_SYS_SOUNDCARD_H)
11010                 #include <sys/soundcard.h>
11011         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11012                 #include <machine/soundcard.h>
11013         #elif defined(HAVE_SOUNDCARD_H)
11014                 #include <soundcard.h>
11015         #endif
11016
11017 int
11018 main ()
11019 {
11020
11021
11022 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11023 #if !defined(SNDCTL_SEQ_SYNC)
11024 #error No open sound system MIDI interface
11025 #endif
11026
11027   ;
11028   return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11033   (eval $ac_compile) 2>conftest.er1
11034   ac_status=$?
11035   grep -v '^ *+' conftest.er1 >conftest.err
11036   rm -f conftest.er1
11037   cat conftest.err >&5
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } &&
11040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; } &&
11046          { ac_try='test -s conftest.$ac_objext'
11047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048   (eval $ac_try) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }; }; then
11052   ac_cv_c_opensoundsystem_midi="yes"
11053 else
11054   echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11056
11057 ac_cv_c_opensoundsystem_midi="no"
11058 fi
11059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11060 fi
11061 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11062 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11063
11064 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11065 then
11066
11067 cat >>confdefs.h <<\_ACEOF
11068 #define HAVE_OSS_MIDI 1
11069 _ACEOF
11070
11071 fi
11072
11073 # Extract the first word of "artsc-config", so it can be a program name with args.
11074 set dummy artsc-config; ac_word=$2
11075 echo "$as_me:$LINENO: checking for $ac_word" >&5
11076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11077 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11078   echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080   case $ARTSCCONFIG in
11081   [\\/]* | ?:[\\/]*)
11082   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11083   ;;
11084   *)
11085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086 for as_dir in $PATH
11087 do
11088   IFS=$as_save_IFS
11089   test -z "$as_dir" && as_dir=.
11090   for ac_exec_ext in '' $ac_executable_extensions; do
11091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11092     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11094     break 2
11095   fi
11096 done
11097 done
11098
11099   ;;
11100 esac
11101 fi
11102 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11103
11104 if test -n "$ARTSCCONFIG"; then
11105   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11106 echo "${ECHO_T}$ARTSCCONFIG" >&6
11107 else
11108   echo "$as_me:$LINENO: result: no" >&5
11109 echo "${ECHO_T}no" >&6
11110 fi
11111
11112 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11113 then
11114     ARTSC_CFLAGS=""
11115     for i in `$ARTSCCONFIG --cflags`
11116     do
11117       case "$i" in
11118         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11119       esac
11120     done
11121     ARTSC_LIBS=`$ARTSCCONFIG --libs`
11122     save_CFLAGS="$CFLAGS"
11123     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11124     cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h.  */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h.  */
11130 #include <artsc.h>
11131 int
11132 main ()
11133 {
11134 arts_stream_t stream;
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11141   (eval $ac_compile) 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150   (eval $ac_try) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; } &&
11154          { ac_try='test -s conftest.$ac_objext'
11155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156   (eval $ac_try) 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); }; }; then
11160   ARTSLIBS=$ARTSC_LIBS
11161
11162          ARTSINCL=$ARTSC_CFLAGS
11163
11164
11165 cat >>confdefs.h <<\_ACEOF
11166 #define HAVE_ARTS 1
11167 _ACEOF
11168
11169 else
11170   echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 fi
11174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11175     CFLAGS="$save_CFLAGS"
11176 fi
11177
11178 ALSALIBS=""
11179
11180
11181
11182 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11183 do
11184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11186   echo "$as_me:$LINENO: checking for $ac_header" >&5
11187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 fi
11191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11193 else
11194   # Is the header compilable?
11195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h.  */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h.  */
11203 $ac_includes_default
11204 #include <$ac_header>
11205 _ACEOF
11206 rm -f conftest.$ac_objext
11207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208   (eval $ac_compile) 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } &&
11215          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217   (eval $ac_try) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; } &&
11221          { ac_try='test -s conftest.$ac_objext'
11222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11223   (eval $ac_try) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); }; }; then
11227   ac_header_compiler=yes
11228 else
11229   echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11231
11232 ac_header_compiler=no
11233 fi
11234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236 echo "${ECHO_T}$ac_header_compiler" >&6
11237
11238 # Is the header present?
11239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247 #include <$ac_header>
11248 _ACEOF
11249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11251   ac_status=$?
11252   grep -v '^ *+' conftest.er1 >conftest.err
11253   rm -f conftest.er1
11254   cat conftest.err >&5
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); } >/dev/null; then
11257   if test -s conftest.err; then
11258     ac_cpp_err=$ac_c_preproc_warn_flag
11259     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11260   else
11261     ac_cpp_err=
11262   fi
11263 else
11264   ac_cpp_err=yes
11265 fi
11266 if test -z "$ac_cpp_err"; then
11267   ac_header_preproc=yes
11268 else
11269   echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11271
11272   ac_header_preproc=no
11273 fi
11274 rm -f conftest.err conftest.$ac_ext
11275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11276 echo "${ECHO_T}$ac_header_preproc" >&6
11277
11278 # So?  What about this header?
11279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11280   yes:no: )
11281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11285     ac_header_preproc=yes
11286     ;;
11287   no:yes:* )
11288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11300     (
11301       cat <<\_ASBOX
11302 ## ------------------------------------ ##
11303 ## Report this to wine-devel@winehq.org ##
11304 ## ------------------------------------ ##
11305 _ASBOX
11306     ) |
11307       sed "s/^/$as_me: WARNING:     /" >&2
11308     ;;
11309 esac
11310 echo "$as_me:$LINENO: checking for $ac_header" >&5
11311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11313   echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315   eval "$as_ac_Header=\$ac_header_preproc"
11316 fi
11317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11319
11320 fi
11321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11322   cat >>confdefs.h <<_ACEOF
11323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11324 _ACEOF
11325  break
11326 fi
11327
11328 done
11329
11330 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11331 then
11332     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11333 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11334 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11335   echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337   ac_check_lib_save_LIBS=$LIBS
11338 LIBS="-lasound  $LIBS"
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h.  */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h.  */
11345
11346 /* Override any gcc2 internal prototype to avoid an error.  */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 /* We use char because int might match the return type of a gcc2
11351    builtin and then its argument prototype would still apply.  */
11352 char snd_pcm_open ();
11353 int
11354 main ()
11355 {
11356 snd_pcm_open ();
11357   ;
11358   return 0;
11359 }
11360 _ACEOF
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11363   (eval $ac_link) 2>conftest.er1
11364   ac_status=$?
11365   grep -v '^ *+' conftest.er1 >conftest.err
11366   rm -f conftest.er1
11367   cat conftest.err >&5
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); } &&
11370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372   (eval $ac_try) 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); }; } &&
11376          { ac_try='test -s conftest$ac_exeext'
11377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378   (eval $ac_try) 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); }; }; then
11382   ac_cv_lib_asound_snd_pcm_open=yes
11383 else
11384   echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11386
11387 ac_cv_lib_asound_snd_pcm_open=no
11388 fi
11389 rm -f conftest.err conftest.$ac_objext \
11390       conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11392 fi
11393 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11394 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11395 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11396
11397 cat >>confdefs.h <<\_ACEOF
11398 #define HAVE_ALSA 1
11399 _ACEOF
11400
11401         ALSALIBS="-lasound"
11402 fi
11403
11404 fi
11405
11406
11407 AUDIOIOLIBS=""
11408
11409
11410 for ac_header in libaudioio.h
11411 do
11412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11414   echo "$as_me:$LINENO: checking for $ac_header" >&5
11415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11417   echo $ECHO_N "(cached) $ECHO_C" >&6
11418 fi
11419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11421 else
11422   # Is the header compilable?
11423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431 $ac_includes_default
11432 #include <$ac_header>
11433 _ACEOF
11434 rm -f conftest.$ac_objext
11435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11436   (eval $ac_compile) 2>conftest.er1
11437   ac_status=$?
11438   grep -v '^ *+' conftest.er1 >conftest.err
11439   rm -f conftest.er1
11440   cat conftest.err >&5
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); } &&
11443          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445   (eval $ac_try) 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); }; } &&
11449          { ac_try='test -s conftest.$ac_objext'
11450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451   (eval $ac_try) 2>&5
11452   ac_status=$?
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); }; }; then
11455   ac_header_compiler=yes
11456 else
11457   echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460 ac_header_compiler=no
11461 fi
11462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11464 echo "${ECHO_T}$ac_header_compiler" >&6
11465
11466 # Is the header present?
11467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11469 cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h.  */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h.  */
11475 #include <$ac_header>
11476 _ACEOF
11477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11479   ac_status=$?
11480   grep -v '^ *+' conftest.er1 >conftest.err
11481   rm -f conftest.er1
11482   cat conftest.err >&5
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } >/dev/null; then
11485   if test -s conftest.err; then
11486     ac_cpp_err=$ac_c_preproc_warn_flag
11487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11488   else
11489     ac_cpp_err=
11490   fi
11491 else
11492   ac_cpp_err=yes
11493 fi
11494 if test -z "$ac_cpp_err"; then
11495   ac_header_preproc=yes
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500   ac_header_preproc=no
11501 fi
11502 rm -f conftest.err conftest.$ac_ext
11503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11504 echo "${ECHO_T}$ac_header_preproc" >&6
11505
11506 # So?  What about this header?
11507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11508   yes:no: )
11509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11513     ac_header_preproc=yes
11514     ;;
11515   no:yes:* )
11516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11528     (
11529       cat <<\_ASBOX
11530 ## ------------------------------------ ##
11531 ## Report this to wine-devel@winehq.org ##
11532 ## ------------------------------------ ##
11533 _ASBOX
11534     ) |
11535       sed "s/^/$as_me: WARNING:     /" >&2
11536     ;;
11537 esac
11538 echo "$as_me:$LINENO: checking for $ac_header" >&5
11539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   eval "$as_ac_Header=\$ac_header_preproc"
11544 fi
11545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11547
11548 fi
11549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11550   cat >>confdefs.h <<_ACEOF
11551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11552 _ACEOF
11553  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11554 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11555 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11556   echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558   ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-laudioio  $LIBS"
11560 cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566
11567 /* Override any gcc2 internal prototype to avoid an error.  */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 /* We use char because int might match the return type of a gcc2
11572    builtin and then its argument prototype would still apply.  */
11573 char AudioIOGetVersion ();
11574 int
11575 main ()
11576 {
11577 AudioIOGetVersion ();
11578   ;
11579   return 0;
11580 }
11581 _ACEOF
11582 rm -f conftest.$ac_objext conftest$ac_exeext
11583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11584   (eval $ac_link) 2>conftest.er1
11585   ac_status=$?
11586   grep -v '^ *+' conftest.er1 >conftest.err
11587   rm -f conftest.er1
11588   cat conftest.err >&5
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); } &&
11591          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593   (eval $ac_try) 2>&5
11594   ac_status=$?
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); }; } &&
11597          { ac_try='test -s conftest$ac_exeext'
11598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599   (eval $ac_try) 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); }; }; then
11603   ac_cv_lib_audioio_AudioIOGetVersion=yes
11604 else
11605   echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11607
11608 ac_cv_lib_audioio_AudioIOGetVersion=no
11609 fi
11610 rm -f conftest.err conftest.$ac_objext \
11611       conftest$ac_exeext conftest.$ac_ext
11612 LIBS=$ac_check_lib_save_LIBS
11613 fi
11614 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11615 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11616 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11617   AUDIOIOLIBS="-laudioio"
11618
11619 cat >>confdefs.h <<\_ACEOF
11620 #define HAVE_LIBAUDIOIO 1
11621 _ACEOF
11622
11623 fi
11624
11625 fi
11626
11627 done
11628
11629
11630
11631
11632 for ac_header in capi20.h
11633 do
11634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11636   echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 fi
11641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11643 else
11644   # Is the header compilable?
11645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h.  */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h.  */
11653 $ac_includes_default
11654 #include <$ac_header>
11655 _ACEOF
11656 rm -f conftest.$ac_objext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11658   (eval $ac_compile) 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } &&
11665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667   (eval $ac_try) 2>&5
11668   ac_status=$?
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); }; } &&
11671          { ac_try='test -s conftest.$ac_objext'
11672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673   (eval $ac_try) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; }; then
11677   ac_header_compiler=yes
11678 else
11679   echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682 ac_header_compiler=no
11683 fi
11684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11686 echo "${ECHO_T}$ac_header_compiler" >&6
11687
11688 # Is the header present?
11689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11691 cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h.  */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h.  */
11697 #include <$ac_header>
11698 _ACEOF
11699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } >/dev/null; then
11707   if test -s conftest.err; then
11708     ac_cpp_err=$ac_c_preproc_warn_flag
11709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11710   else
11711     ac_cpp_err=
11712   fi
11713 else
11714   ac_cpp_err=yes
11715 fi
11716 if test -z "$ac_cpp_err"; then
11717   ac_header_preproc=yes
11718 else
11719   echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722   ac_header_preproc=no
11723 fi
11724 rm -f conftest.err conftest.$ac_ext
11725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11726 echo "${ECHO_T}$ac_header_preproc" >&6
11727
11728 # So?  What about this header?
11729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11730   yes:no: )
11731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11735     ac_header_preproc=yes
11736     ;;
11737   no:yes:* )
11738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11750     (
11751       cat <<\_ASBOX
11752 ## ------------------------------------ ##
11753 ## Report this to wine-devel@winehq.org ##
11754 ## ------------------------------------ ##
11755 _ASBOX
11756     ) |
11757       sed "s/^/$as_me: WARNING:     /" >&2
11758     ;;
11759 esac
11760 echo "$as_me:$LINENO: checking for $ac_header" >&5
11761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11763   echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765   eval "$as_ac_Header=\$ac_header_preproc"
11766 fi
11767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11769
11770 fi
11771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11772   cat >>confdefs.h <<_ACEOF
11773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11774 _ACEOF
11775
11776
11777 for ac_header in linux/capi.h
11778 do
11779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11781   echo "$as_me:$LINENO: checking for $ac_header" >&5
11782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11784   echo $ECHO_N "(cached) $ECHO_C" >&6
11785 fi
11786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11788 else
11789   # Is the header compilable?
11790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11792 cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h.  */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h.  */
11798 $ac_includes_default
11799 #include <$ac_header>
11800 _ACEOF
11801 rm -f conftest.$ac_objext
11802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11803   (eval $ac_compile) 2>conftest.er1
11804   ac_status=$?
11805   grep -v '^ *+' conftest.er1 >conftest.err
11806   rm -f conftest.er1
11807   cat conftest.err >&5
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } &&
11810          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812   (eval $ac_try) 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; } &&
11816          { ac_try='test -s conftest.$ac_objext'
11817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818   (eval $ac_try) 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; }; then
11822   ac_header_compiler=yes
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827 ac_header_compiler=no
11828 fi
11829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11831 echo "${ECHO_T}$ac_header_compiler" >&6
11832
11833 # Is the header present?
11834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11836 cat >conftest.$ac_ext <<_ACEOF
11837 /* confdefs.h.  */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h.  */
11842 #include <$ac_header>
11843 _ACEOF
11844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11846   ac_status=$?
11847   grep -v '^ *+' conftest.er1 >conftest.err
11848   rm -f conftest.er1
11849   cat conftest.err >&5
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } >/dev/null; then
11852   if test -s conftest.err; then
11853     ac_cpp_err=$ac_c_preproc_warn_flag
11854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11855   else
11856     ac_cpp_err=
11857   fi
11858 else
11859   ac_cpp_err=yes
11860 fi
11861 if test -z "$ac_cpp_err"; then
11862   ac_header_preproc=yes
11863 else
11864   echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11866
11867   ac_header_preproc=no
11868 fi
11869 rm -f conftest.err conftest.$ac_ext
11870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11871 echo "${ECHO_T}$ac_header_preproc" >&6
11872
11873 # So?  What about this header?
11874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11875   yes:no: )
11876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11880     ac_header_preproc=yes
11881     ;;
11882   no:yes:* )
11883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11895     (
11896       cat <<\_ASBOX
11897 ## ------------------------------------ ##
11898 ## Report this to wine-devel@winehq.org ##
11899 ## ------------------------------------ ##
11900 _ASBOX
11901     ) |
11902       sed "s/^/$as_me: WARNING:     /" >&2
11903     ;;
11904 esac
11905 echo "$as_me:$LINENO: checking for $ac_header" >&5
11906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11908   echo $ECHO_N "(cached) $ECHO_C" >&6
11909 else
11910   eval "$as_ac_Header=\$ac_header_preproc"
11911 fi
11912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11914
11915 fi
11916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11917   cat >>confdefs.h <<_ACEOF
11918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11919 _ACEOF
11920
11921                 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11922 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11923 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11924   echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926   ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-lcapi20  $LIBS"
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h.  */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h.  */
11934
11935 /* Override any gcc2 internal prototype to avoid an error.  */
11936 #ifdef __cplusplus
11937 extern "C"
11938 #endif
11939 /* We use char because int might match the return type of a gcc2
11940    builtin and then its argument prototype would still apply.  */
11941 char capi20_register ();
11942 int
11943 main ()
11944 {
11945 capi20_register ();
11946   ;
11947   return 0;
11948 }
11949 _ACEOF
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11952   (eval $ac_link) 2>conftest.er1
11953   ac_status=$?
11954   grep -v '^ *+' conftest.er1 >conftest.err
11955   rm -f conftest.er1
11956   cat conftest.err >&5
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); } &&
11959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961   (eval $ac_try) 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; } &&
11965          { ac_try='test -s conftest$ac_exeext'
11966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967   (eval $ac_try) 2>&5
11968   ac_status=$?
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); }; }; then
11971   ac_cv_lib_capi20_capi20_register=yes
11972 else
11973   echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976 ac_cv_lib_capi20_capi20_register=no
11977 fi
11978 rm -f conftest.err conftest.$ac_objext \
11979       conftest$ac_exeext conftest.$ac_ext
11980 LIBS=$ac_check_lib_save_LIBS
11981 fi
11982 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
11983 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
11984 if test $ac_cv_lib_capi20_capi20_register = yes; then
11985
11986
11987 cat >>confdefs.h <<\_ACEOF
11988 #define HAVE_CAPI4LINUX 1
11989 _ACEOF
11990
11991                         CAPI4LINUXLIBS="-lcapi20"
11992
11993
11994 fi
11995
11996
11997 fi
11998
11999 done
12000
12001
12002 fi
12003
12004 done
12005
12006
12007
12008 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12009 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12010 if test "${ac_cv_mmap64_works+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   if test "$cross_compiling" = yes; then
12014   ac_cv_mmap64_works="no"
12015 else
12016   cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h.  */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h.  */
12022
12023                 #define _FILE_OFFSET_BITS 64
12024                 #include <stdio.h>
12025                 #include <unistd.h>
12026                 #include <fcntl.h>
12027                 #include <sys/mman.h>
12028                 #include <errno.h>
12029
12030                 int main(int argc,char **argv) {
12031                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12032                         if (fd == -1) exit(1);
12033
12034                         unlink("conftest.map");
12035
12036                         write(fd,"test",4);
12037
12038                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12039                             (errno == EINVAL)
12040                         ) {
12041                                 exit(1);
12042                         }
12043                         close(fd);
12044                         fprintf(stderr,"success!\n");
12045                         exit(0);
12046                 }
12047
12048
12049 _ACEOF
12050 rm -f conftest$ac_exeext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12052   (eval $ac_link) 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057   (eval $ac_try) 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); }; }; then
12061   ac_cv_mmap64_works="yes"
12062 else
12063   echo "$as_me: program exited with status $ac_status" >&5
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12066
12067 ( exit $ac_status )
12068 ac_cv_mmap64_works="no"
12069 fi
12070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12071 fi
12072 fi
12073 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12074 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12075
12076 if test "$ac_cv_mmap64_works" = "yes"
12077 then
12078
12079 cat >>confdefs.h <<\_ACEOF
12080 #define _FILE_OFFSET_BITS 64
12081 _ACEOF
12082
12083 fi
12084
12085
12086 EXTRACFLAGS=""
12087
12088 if test "x${GCC}" = "xyes"
12089 then
12090   EXTRACFLAGS="-Wall -pipe"
12091
12092     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12093 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12094 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12095   echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097   if test "$cross_compiling" = yes; then
12098   ac_cv_c_gcc_strength_bug="yes"
12099 else
12100   cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106
12107 int     L[4] = {0,1,2,3};
12108 int main(void) {
12109   static int Array[3];
12110   unsigned int B = 3;
12111   int i;
12112   for(i=0; i<B; i++) Array[i] = i - 3;
12113   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12114   L[i] = 4;
12115
12116   exit( Array[1] != -2 || L[2] != 3);
12117 }
12118 _ACEOF
12119 rm -f conftest$ac_exeext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12121   (eval $ac_link) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126   (eval $ac_try) 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; }; then
12130   ac_cv_c_gcc_strength_bug="no"
12131 else
12132   echo "$as_me: program exited with status $ac_status" >&5
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12135
12136 ( exit $ac_status )
12137 ac_cv_c_gcc_strength_bug="yes"
12138 fi
12139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12140 fi
12141 fi
12142 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12143 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12144   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12145   then
12146     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12147   fi
12148
12149     echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12150 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12151 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   ac_wine_try_cflags_saved=$CFLAGS
12155 CFLAGS="$CFLAGS -fshort-wchar"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12162
12163 int
12164 main ()
12165 {
12166
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 rm -f conftest.$ac_objext conftest$ac_exeext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12173   (eval $ac_link) 2>conftest.er1
12174   ac_status=$?
12175   grep -v '^ *+' conftest.er1 >conftest.err
12176   rm -f conftest.er1
12177   cat conftest.err >&5
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } &&
12180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182   (eval $ac_try) 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; } &&
12186          { ac_try='test -s conftest$ac_exeext'
12187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188   (eval $ac_try) 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; }; then
12192   ac_cv_c_gcc_fshort_wchar="yes"
12193 else
12194   echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197 ac_cv_c_gcc_fshort_wchar="no"
12198 fi
12199 rm -f conftest.err conftest.$ac_objext \
12200       conftest$ac_exeext conftest.$ac_ext
12201 CFLAGS=$ac_wine_try_cflags_saved
12202 fi
12203 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12204 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12205   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12206   then
12207
12208 cat >>confdefs.h <<\_ACEOF
12209 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12210 _ACEOF
12211
12212   fi
12213
12214     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12215 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12216 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12217   echo $ECHO_N "(cached) $ECHO_C" >&6
12218 else
12219   ac_wine_try_cflags_saved=$CFLAGS
12220 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12221 cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h.  */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h.  */
12227
12228 int
12229 main ()
12230 {
12231
12232   ;
12233   return 0;
12234 }
12235 _ACEOF
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12238   (eval $ac_link) 2>conftest.er1
12239   ac_status=$?
12240   grep -v '^ *+' conftest.er1 >conftest.err
12241   rm -f conftest.er1
12242   cat conftest.err >&5
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); } &&
12245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247   (eval $ac_try) 2>&5
12248   ac_status=$?
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); }; } &&
12251          { ac_try='test -s conftest$ac_exeext'
12252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253   (eval $ac_try) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; }; then
12257   ac_cv_c_gcc_stack_boundary="yes"
12258 else
12259   echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12261
12262 ac_cv_c_gcc_stack_boundary="no"
12263 fi
12264 rm -f conftest.err conftest.$ac_objext \
12265       conftest$ac_exeext conftest.$ac_ext
12266 CFLAGS=$ac_wine_try_cflags_saved
12267 fi
12268 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12269 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12270   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12271   then
12272     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12273   fi
12274
12275     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12276 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12277 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12278   echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280   ac_wine_try_cflags_saved=$CFLAGS
12281 CFLAGS="$CFLAGS -fno-strict-aliasing"
12282 cat >conftest.$ac_ext <<_ACEOF
12283 /* confdefs.h.  */
12284 _ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h.  */
12288
12289 int
12290 main ()
12291 {
12292
12293   ;
12294   return 0;
12295 }
12296 _ACEOF
12297 rm -f conftest.$ac_objext conftest$ac_exeext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299   (eval $ac_link) 2>conftest.er1
12300   ac_status=$?
12301   grep -v '^ *+' conftest.er1 >conftest.err
12302   rm -f conftest.er1
12303   cat conftest.err >&5
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } &&
12306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308   (eval $ac_try) 2>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); }; } &&
12312          { ac_try='test -s conftest$ac_exeext'
12313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314   (eval $ac_try) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); }; }; then
12318   ac_cv_c_gcc_no_strict_aliasing="yes"
12319 else
12320   echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12322
12323 ac_cv_c_gcc_no_strict_aliasing="no"
12324 fi
12325 rm -f conftest.err conftest.$ac_objext \
12326       conftest$ac_exeext conftest.$ac_ext
12327 CFLAGS=$ac_wine_try_cflags_saved
12328 fi
12329 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12330 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12331   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12332   then
12333     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12334   fi
12335
12336     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12337 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12338 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   ac_wine_try_cflags_saved=$CFLAGS
12342 CFLAGS="$CFLAGS -gstabs+"
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349
12350 int
12351 main ()
12352 {
12353
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360   (eval $ac_link) 2>conftest.er1
12361   ac_status=$?
12362   grep -v '^ *+' conftest.er1 >conftest.err
12363   rm -f conftest.er1
12364   cat conftest.err >&5
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } &&
12367          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369   (eval $ac_try) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; } &&
12373          { ac_try='test -s conftest$ac_exeext'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; }; then
12379   ac_cv_c_gcc_gstabs="yes"
12380 else
12381   echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 ac_cv_c_gcc_gstabs="no"
12385 fi
12386 rm -f conftest.err conftest.$ac_objext \
12387       conftest$ac_exeext conftest.$ac_ext
12388 CFLAGS=$ac_wine_try_cflags_saved
12389 fi
12390 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12391 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12392   if test "$ac_cv_c_gcc_gstabs" = "yes"
12393   then
12394     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12395   fi
12396
12397     saved_CFLAGS="$CFLAGS"
12398   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12399   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12400 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12401 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12402   echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404   cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410 #include <string.h>
12411 int
12412 main ()
12413 {
12414
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12421   (eval $ac_compile) 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } &&
12428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430   (eval $ac_try) 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; } &&
12434          { ac_try='test -s conftest.$ac_objext'
12435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436   (eval $ac_try) 2>&5
12437   ac_status=$?
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); }; }; then
12440   ac_cv_c_string_h_warnings=no
12441 else
12442   echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12444
12445 ac_cv_c_string_h_warnings=yes
12446 fi
12447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12448 fi
12449 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12450 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12451   CFLAGS="$saved_CFLAGS"
12452   if test "$ac_cv_c_string_h_warnings" = "no"
12453   then
12454     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12455   fi
12456 fi
12457
12458
12459 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12460 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12461 if test "${ac_cv_asm_func_def+set}" = set; then
12462   echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464   cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h.  */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h.  */
12470 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"); }
12471
12472 int
12473 main ()
12474 {
12475
12476   ;
12477   return 0;
12478 }
12479 _ACEOF
12480 rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482   (eval $ac_link) 2>conftest.er1
12483   ac_status=$?
12484   grep -v '^ *+' conftest.er1 >conftest.err
12485   rm -f conftest.er1
12486   cat conftest.err >&5
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } &&
12489          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491   (eval $ac_try) 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; } &&
12495          { ac_try='test -s conftest$ac_exeext'
12496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497   (eval $ac_try) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); }; }; then
12501   ac_cv_asm_func_def=".def"
12502 else
12503   echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12513
12514 int
12515 main ()
12516 {
12517
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 rm -f conftest.$ac_objext conftest$ac_exeext
12523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12524   (eval $ac_link) 2>conftest.er1
12525   ac_status=$?
12526   grep -v '^ *+' conftest.er1 >conftest.err
12527   rm -f conftest.er1
12528   cat conftest.err >&5
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); } &&
12531          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } &&
12537          { ac_try='test -s conftest$ac_exeext'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; }; then
12543   ac_cv_asm_func_def=".type @function"
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h.  */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h.  */
12554 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12555
12556 int
12557 main ()
12558 {
12559
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566   (eval $ac_link) 2>conftest.er1
12567   ac_status=$?
12568   grep -v '^ *+' conftest.er1 >conftest.err
12569   rm -f conftest.er1
12570   cat conftest.err >&5
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); } &&
12573          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575   (eval $ac_try) 2>&5
12576   ac_status=$?
12577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578   (exit $ac_status); }; } &&
12579          { ac_try='test -s conftest$ac_exeext'
12580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581   (eval $ac_try) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); }; }; then
12585   ac_cv_asm_func_def=".type 2"
12586 else
12587   echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12589
12590 ac_cv_asm_func_def="unknown"
12591 fi
12592 rm -f conftest.err conftest.$ac_objext \
12593       conftest$ac_exeext conftest.$ac_ext
12594 fi
12595 rm -f conftest.err conftest.$ac_objext \
12596       conftest$ac_exeext conftest.$ac_ext
12597 fi
12598 rm -f conftest.err conftest.$ac_objext \
12599       conftest$ac_exeext conftest.$ac_ext
12600 fi
12601 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12602 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12603
12604
12605
12606 case "$ac_cv_asm_func_def" in
12607   ".def")
12608      cat >>confdefs.h <<\_ACEOF
12609 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12610 _ACEOF
12611  ;;
12612   ".type @function")
12613      cat >>confdefs.h <<\_ACEOF
12614 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12615 _ACEOF
12616  ;;
12617   ".type 2")
12618      cat >>confdefs.h <<\_ACEOF
12619 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12620 _ACEOF
12621  ;;
12622   *)
12623      cat >>confdefs.h <<\_ACEOF
12624 #define __ASM_FUNC(name) ""
12625 _ACEOF
12626  ;;
12627 esac
12628
12629
12630 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12631 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12632 if test "${ac_cv_c_extern_prefix+set}" = set; then
12633   echo $ECHO_N "(cached) $ECHO_C" >&6
12634 else
12635   cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h.  */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h.  */
12641 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12642 extern int ac_test;
12643 int
12644 main ()
12645 {
12646 if (ac_test) return 1
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653   (eval $ac_link) 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } &&
12660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662   (eval $ac_try) 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); }; } &&
12666          { ac_try='test -s conftest$ac_exeext'
12667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668   (eval $ac_try) 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; }; then
12672   ac_cv_c_extern_prefix="yes"
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ac_cv_c_extern_prefix="no"
12678 fi
12679 rm -f conftest.err conftest.$ac_objext \
12680       conftest$ac_exeext conftest.$ac_ext
12681 fi
12682 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12683 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12684
12685
12686
12687 if test "$ac_cv_c_extern_prefix" = "yes"
12688 then
12689   cat >>confdefs.h <<\_ACEOF
12690 #define __ASM_NAME(name) "_" name
12691 _ACEOF
12692
12693 else
12694   cat >>confdefs.h <<\_ACEOF
12695 #define __ASM_NAME(name) name
12696 _ACEOF
12697
12698 fi
12699
12700
12701 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12702 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12703 if test "${ac_cv_c_asm_string+set}" = set; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706   cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h.  */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h.  */
12712 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12713
12714 int
12715 main ()
12716 {
12717
12718   ;
12719   return 0;
12720 }
12721 _ACEOF
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12724   (eval $ac_link) 2>conftest.er1
12725   ac_status=$?
12726   grep -v '^ *+' conftest.er1 >conftest.err
12727   rm -f conftest.er1
12728   cat conftest.err >&5
12729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); } &&
12731          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733   (eval $ac_try) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; } &&
12737          { ac_try='test -s conftest$ac_exeext'
12738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739   (eval $ac_try) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; }; then
12743   ac_cv_c_asm_string=".string"
12744 else
12745   echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12755
12756 int
12757 main ()
12758 {
12759
12760   ;
12761   return 0;
12762 }
12763 _ACEOF
12764 rm -f conftest.$ac_objext conftest$ac_exeext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12766   (eval $ac_link) 2>conftest.er1
12767   ac_status=$?
12768   grep -v '^ *+' conftest.er1 >conftest.err
12769   rm -f conftest.er1
12770   cat conftest.err >&5
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); } &&
12773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775   (eval $ac_try) 2>&5
12776   ac_status=$?
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); }; } &&
12779          { ac_try='test -s conftest$ac_exeext'
12780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781   (eval $ac_try) 2>&5
12782   ac_status=$?
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); }; }; then
12785   ac_cv_c_asm_string=".asciz"
12786 else
12787   echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.$ac_ext >&5
12789
12790 cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h.  */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h.  */
12796 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12797
12798 int
12799 main ()
12800 {
12801
12802   ;
12803   return 0;
12804 }
12805 _ACEOF
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12808   (eval $ac_link) 2>conftest.er1
12809   ac_status=$?
12810   grep -v '^ *+' conftest.er1 >conftest.err
12811   rm -f conftest.er1
12812   cat conftest.err >&5
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } &&
12815          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817   (eval $ac_try) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); }; } &&
12821          { ac_try='test -s conftest$ac_exeext'
12822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823   (eval $ac_try) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); }; }; then
12827   ac_cv_c_asm_string=".ascii"
12828 else
12829   echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12831
12832 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12833 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12834    { (exit 1); exit 1; }; }
12835 fi
12836 rm -f conftest.err conftest.$ac_objext \
12837       conftest$ac_exeext conftest.$ac_ext
12838 fi
12839 rm -f conftest.err conftest.$ac_objext \
12840       conftest$ac_exeext conftest.$ac_ext
12841 fi
12842 rm -f conftest.err conftest.$ac_objext \
12843       conftest$ac_exeext conftest.$ac_ext
12844 fi
12845 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12846 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12847
12848
12849 cat >>confdefs.h <<_ACEOF
12850 #define __ASM_STRING "$ac_cv_c_asm_string"
12851 _ACEOF
12852
12853
12854
12855 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12856 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
12857 if test "${ac_cv_c_asm_short+set}" = set; then
12858   echo $ECHO_N "(cached) $ECHO_C" >&6
12859 else
12860   cat >conftest.$ac_ext <<_ACEOF
12861 /* confdefs.h.  */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h.  */
12866 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
12867
12868 int
12869 main ()
12870 {
12871
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 rm -f conftest.$ac_objext conftest$ac_exeext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12878   (eval $ac_link) 2>conftest.er1
12879   ac_status=$?
12880   grep -v '^ *+' conftest.er1 >conftest.err
12881   rm -f conftest.er1
12882   cat conftest.err >&5
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } &&
12885          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887   (eval $ac_try) 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; } &&
12891          { ac_try='test -s conftest$ac_exeext'
12892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893   (eval $ac_try) 2>&5
12894   ac_status=$?
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); }; }; then
12897   ac_cv_c_asm_short=".short"
12898 else
12899   echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12901
12902 cat >conftest.$ac_ext <<_ACEOF
12903 /* confdefs.h.  */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h.  */
12908 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
12909
12910 int
12911 main ()
12912 {
12913
12914   ;
12915   return 0;
12916 }
12917 _ACEOF
12918 rm -f conftest.$ac_objext conftest$ac_exeext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920   (eval $ac_link) 2>conftest.er1
12921   ac_status=$?
12922   grep -v '^ *+' conftest.er1 >conftest.err
12923   rm -f conftest.er1
12924   cat conftest.err >&5
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } &&
12927          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929   (eval $ac_try) 2>&5
12930   ac_status=$?
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); }; } &&
12933          { ac_try='test -s conftest$ac_exeext'
12934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935   (eval $ac_try) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); }; }; then
12939   ac_cv_c_asm_short=".half"
12940 else
12941   echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12943
12944 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
12945 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
12946    { (exit 1); exit 1; }; }
12947 fi
12948 rm -f conftest.err conftest.$ac_objext \
12949       conftest$ac_exeext conftest.$ac_ext
12950 fi
12951 rm -f conftest.err conftest.$ac_objext \
12952       conftest$ac_exeext conftest.$ac_ext
12953 fi
12954 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
12955 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
12956
12957
12958 cat >>confdefs.h <<_ACEOF
12959 #define __ASM_SHORT "$ac_cv_c_asm_short"
12960 _ACEOF
12961
12962
12963
12964 echo "$as_me:$LINENO: checking for .size in assembler" >&5
12965 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
12966 if test "${ac_cv_c_asm_size+set}" = set; then
12967   echo $ECHO_N "(cached) $ECHO_C" >&6
12968 else
12969   cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h.  */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h.  */
12975 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
12976
12977 int
12978 main ()
12979 {
12980
12981   ;
12982   return 0;
12983 }
12984 _ACEOF
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12987   (eval $ac_link) 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } &&
12994          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996   (eval $ac_try) 2>&5
12997   ac_status=$?
12998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999   (exit $ac_status); }; } &&
13000          { ac_try='test -s conftest$ac_exeext'
13001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002   (eval $ac_try) 2>&5
13003   ac_status=$?
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); }; }; then
13006   ac_cv_c_asm_size="yes"
13007 else
13008   echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 ac_cv_c_asm_size="no"
13012 fi
13013 rm -f conftest.err conftest.$ac_objext \
13014       conftest$ac_exeext conftest.$ac_ext
13015 fi
13016 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13017 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13018
13019 if test "$ac_cv_c_asm_size" = "yes"
13020 then
13021
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_ASM_DOT_SIZE 1
13024 _ACEOF
13025
13026 fi
13027
13028
13029 DLLEXT=""
13030
13031 DLLFLAGS="-D_REENTRANT"
13032
13033 DLLIBS=""
13034
13035 LDSHARED=""
13036
13037 LDDLLFLAGS=""
13038
13039 LIBEXT="so"
13040
13041 IMPLIBEXT="def"
13042
13043
13044 case $host_os in
13045   cygwin*|mingw32*)
13046     if test -n "$ac_tool_prefix"; then
13047   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13048 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13049 echo "$as_me:$LINENO: checking for $ac_word" >&5
13050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13051 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13052   echo $ECHO_N "(cached) $ECHO_C" >&6
13053 else
13054   if test -n "$DLLTOOL"; then
13055   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13056 else
13057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058 for as_dir in $PATH
13059 do
13060   IFS=$as_save_IFS
13061   test -z "$as_dir" && as_dir=.
13062   for ac_exec_ext in '' $ac_executable_extensions; do
13063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13064     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13066     break 2
13067   fi
13068 done
13069 done
13070
13071 fi
13072 fi
13073 DLLTOOL=$ac_cv_prog_DLLTOOL
13074 if test -n "$DLLTOOL"; then
13075   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13076 echo "${ECHO_T}$DLLTOOL" >&6
13077 else
13078   echo "$as_me:$LINENO: result: no" >&5
13079 echo "${ECHO_T}no" >&6
13080 fi
13081
13082 fi
13083 if test -z "$ac_cv_prog_DLLTOOL"; then
13084   ac_ct_DLLTOOL=$DLLTOOL
13085   # Extract the first word of "dlltool", so it can be a program name with args.
13086 set dummy dlltool; ac_word=$2
13087 echo "$as_me:$LINENO: checking for $ac_word" >&5
13088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13089 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13090   echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092   if test -n "$ac_ct_DLLTOOL"; then
13093   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13094 else
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13097 do
13098   IFS=$as_save_IFS
13099   test -z "$as_dir" && as_dir=.
13100   for ac_exec_ext in '' $ac_executable_extensions; do
13101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13102     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13104     break 2
13105   fi
13106 done
13107 done
13108
13109   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13110 fi
13111 fi
13112 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13113 if test -n "$ac_ct_DLLTOOL"; then
13114   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13115 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13116 else
13117   echo "$as_me:$LINENO: result: no" >&5
13118 echo "${ECHO_T}no" >&6
13119 fi
13120
13121   DLLTOOL=$ac_ct_DLLTOOL
13122 else
13123   DLLTOOL="$ac_cv_prog_DLLTOOL"
13124 fi
13125
13126     if test -n "$ac_tool_prefix"; then
13127   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13128 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13129 echo "$as_me:$LINENO: checking for $ac_word" >&5
13130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13131 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13132   echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134   if test -n "$DLLWRAP"; then
13135   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13136 else
13137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138 for as_dir in $PATH
13139 do
13140   IFS=$as_save_IFS
13141   test -z "$as_dir" && as_dir=.
13142   for ac_exec_ext in '' $ac_executable_extensions; do
13143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13144     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13146     break 2
13147   fi
13148 done
13149 done
13150
13151 fi
13152 fi
13153 DLLWRAP=$ac_cv_prog_DLLWRAP
13154 if test -n "$DLLWRAP"; then
13155   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13156 echo "${ECHO_T}$DLLWRAP" >&6
13157 else
13158   echo "$as_me:$LINENO: result: no" >&5
13159 echo "${ECHO_T}no" >&6
13160 fi
13161
13162 fi
13163 if test -z "$ac_cv_prog_DLLWRAP"; then
13164   ac_ct_DLLWRAP=$DLLWRAP
13165   # Extract the first word of "dllwrap", so it can be a program name with args.
13166 set dummy dllwrap; ac_word=$2
13167 echo "$as_me:$LINENO: checking for $ac_word" >&5
13168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13169 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   if test -n "$ac_ct_DLLWRAP"; then
13173   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13174 else
13175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176 for as_dir in $PATH
13177 do
13178   IFS=$as_save_IFS
13179   test -z "$as_dir" && as_dir=.
13180   for ac_exec_ext in '' $ac_executable_extensions; do
13181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13182     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13184     break 2
13185   fi
13186 done
13187 done
13188
13189   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13190 fi
13191 fi
13192 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13193 if test -n "$ac_ct_DLLWRAP"; then
13194   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13195 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13196 else
13197   echo "$as_me:$LINENO: result: no" >&5
13198 echo "${ECHO_T}no" >&6
13199 fi
13200
13201   DLLWRAP=$ac_ct_DLLWRAP
13202 else
13203   DLLWRAP="$ac_cv_prog_DLLWRAP"
13204 fi
13205
13206     if test "$DLLWRAP" = "false"; then
13207       LIBEXT="a"
13208     else
13209             LIBEXT="dll"
13210     fi
13211     IMPLIBEXT="a"
13212         WIN16_FILES=""
13213     WIN16_INSTALL=""
13214     ;;
13215   *)
13216
13217 for ac_header in dlfcn.h
13218 do
13219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13221   echo "$as_me:$LINENO: checking for $ac_header" >&5
13222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13224   echo $ECHO_N "(cached) $ECHO_C" >&6
13225 fi
13226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13228 else
13229   # Is the header compilable?
13230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238 $ac_includes_default
13239 #include <$ac_header>
13240 _ACEOF
13241 rm -f conftest.$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243   (eval $ac_compile) 2>conftest.er1
13244   ac_status=$?
13245   grep -v '^ *+' conftest.er1 >conftest.err
13246   rm -f conftest.er1
13247   cat conftest.err >&5
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); } &&
13250          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252   (eval $ac_try) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; } &&
13256          { ac_try='test -s conftest.$ac_objext'
13257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258   (eval $ac_try) 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; }; then
13262   ac_header_compiler=yes
13263 else
13264   echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13266
13267 ac_header_compiler=no
13268 fi
13269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13271 echo "${ECHO_T}$ac_header_compiler" >&6
13272
13273 # Is the header present?
13274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h.  */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h.  */
13282 #include <$ac_header>
13283 _ACEOF
13284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } >/dev/null; then
13292   if test -s conftest.err; then
13293     ac_cpp_err=$ac_c_preproc_warn_flag
13294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13295   else
13296     ac_cpp_err=
13297   fi
13298 else
13299   ac_cpp_err=yes
13300 fi
13301 if test -z "$ac_cpp_err"; then
13302   ac_header_preproc=yes
13303 else
13304   echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307   ac_header_preproc=no
13308 fi
13309 rm -f conftest.err conftest.$ac_ext
13310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13311 echo "${ECHO_T}$ac_header_preproc" >&6
13312
13313 # So?  What about this header?
13314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13315   yes:no: )
13316     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13320     ac_header_preproc=yes
13321     ;;
13322   no:yes:* )
13323     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13325     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13326 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13327     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13329     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13330 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13333     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13335     (
13336       cat <<\_ASBOX
13337 ## ------------------------------------ ##
13338 ## Report this to wine-devel@winehq.org ##
13339 ## ------------------------------------ ##
13340 _ASBOX
13341     ) |
13342       sed "s/^/$as_me: WARNING:     /" >&2
13343     ;;
13344 esac
13345 echo "$as_me:$LINENO: checking for $ac_header" >&5
13346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13348   echo $ECHO_N "(cached) $ECHO_C" >&6
13349 else
13350   eval "$as_ac_Header=\$ac_header_preproc"
13351 fi
13352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13354
13355 fi
13356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13357   cat >>confdefs.h <<_ACEOF
13358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13359 _ACEOF
13360
13361 for ac_func in dlopen
13362 do
13363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13364 echo "$as_me:$LINENO: checking for $ac_func" >&5
13365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13366 if eval "test \"\${$as_ac_var+set}\" = set"; then
13367   echo $ECHO_N "(cached) $ECHO_C" >&6
13368 else
13369   cat >conftest.$ac_ext <<_ACEOF
13370 /* confdefs.h.  */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h.  */
13375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13377 #define $ac_func innocuous_$ac_func
13378
13379 /* System header to define __stub macros and hopefully few prototypes,
13380     which can conflict with char $ac_func (); below.
13381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13382     <limits.h> exists even on freestanding compilers.  */
13383
13384 #ifdef __STDC__
13385 # include <limits.h>
13386 #else
13387 # include <assert.h>
13388 #endif
13389
13390 #undef $ac_func
13391
13392 /* Override any gcc2 internal prototype to avoid an error.  */
13393 #ifdef __cplusplus
13394 extern "C"
13395 {
13396 #endif
13397 /* We use char because int might match the return type of a gcc2
13398    builtin and then its argument prototype would still apply.  */
13399 char $ac_func ();
13400 /* The GNU C library defines this for functions which it implements
13401     to always fail with ENOSYS.  Some functions are actually named
13402     something starting with __ and the normal name is an alias.  */
13403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13404 choke me
13405 #else
13406 char (*f) () = $ac_func;
13407 #endif
13408 #ifdef __cplusplus
13409 }
13410 #endif
13411
13412 int
13413 main ()
13414 {
13415 return f != $ac_func;
13416   ;
13417   return 0;
13418 }
13419 _ACEOF
13420 rm -f conftest.$ac_objext conftest$ac_exeext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13422   (eval $ac_link) 2>conftest.er1
13423   ac_status=$?
13424   grep -v '^ *+' conftest.er1 >conftest.err
13425   rm -f conftest.er1
13426   cat conftest.err >&5
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } &&
13429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431   (eval $ac_try) 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; } &&
13435          { ac_try='test -s conftest$ac_exeext'
13436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437   (eval $ac_try) 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); }; }; then
13441   eval "$as_ac_var=yes"
13442 else
13443   echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 eval "$as_ac_var=no"
13447 fi
13448 rm -f conftest.err conftest.$ac_objext \
13449       conftest$ac_exeext conftest.$ac_ext
13450 fi
13451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13453 if test `eval echo '${'$as_ac_var'}'` = yes; then
13454   cat >>confdefs.h <<_ACEOF
13455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13456 _ACEOF
13457
13458 else
13459   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13462   echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464   ac_check_lib_save_LIBS=$LIBS
13465 LIBS="-ldl  $LIBS"
13466 cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h.  */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h.  */
13472
13473 /* Override any gcc2 internal prototype to avoid an error.  */
13474 #ifdef __cplusplus
13475 extern "C"
13476 #endif
13477 /* We use char because int might match the return type of a gcc2
13478    builtin and then its argument prototype would still apply.  */
13479 char dlopen ();
13480 int
13481 main ()
13482 {
13483 dlopen ();
13484   ;
13485   return 0;
13486 }
13487 _ACEOF
13488 rm -f conftest.$ac_objext conftest$ac_exeext
13489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13490   (eval $ac_link) 2>conftest.er1
13491   ac_status=$?
13492   grep -v '^ *+' conftest.er1 >conftest.err
13493   rm -f conftest.er1
13494   cat conftest.err >&5
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); } &&
13497          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; } &&
13503          { ac_try='test -s conftest$ac_exeext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_lib_dl_dlopen=yes
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_cv_lib_dl_dlopen=no
13515 fi
13516 rm -f conftest.err conftest.$ac_objext \
13517       conftest$ac_exeext conftest.$ac_ext
13518 LIBS=$ac_check_lib_save_LIBS
13519 fi
13520 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13522 if test $ac_cv_lib_dl_dlopen = yes; then
13523
13524 cat >>confdefs.h <<\_ACEOF
13525 #define HAVE_DLOPEN 1
13526 _ACEOF
13527
13528                           DLLIBS="-ldl"
13529 else
13530   LIBEXT="a"
13531 fi
13532
13533 fi
13534 done
13535
13536 else
13537   LIBEXT="a"
13538 fi
13539
13540 done
13541
13542
13543     if test "$LIBEXT" = "so"
13544     then
13545       DLLFLAGS="$DLLFLAGS -fPIC"
13546       DLLEXT=".so"
13547       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13548 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13549 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13550   echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552   ac_wine_try_cflags_saved=$CFLAGS
13553 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560
13561 int
13562 main ()
13563 {
13564
13565   ;
13566   return 0;
13567 }
13568 _ACEOF
13569 rm -f conftest.$ac_objext conftest$ac_exeext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13571   (eval $ac_link) 2>conftest.er1
13572   ac_status=$?
13573   grep -v '^ *+' conftest.er1 >conftest.err
13574   rm -f conftest.er1
13575   cat conftest.err >&5
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } &&
13578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; } &&
13584          { ac_try='test -s conftest$ac_exeext'
13585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586   (eval $ac_try) 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); }; }; then
13590   ac_cv_c_dll_gnuelf="yes"
13591 else
13592   echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13594
13595 ac_cv_c_dll_gnuelf="no"
13596 fi
13597 rm -f conftest.err conftest.$ac_objext \
13598       conftest$ac_exeext conftest.$ac_ext
13599 CFLAGS=$ac_wine_try_cflags_saved
13600 fi
13601 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13602 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13603       if test "$ac_cv_c_dll_gnuelf" = "yes"
13604       then
13605         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13606         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13607         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13608 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13609 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13610   echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612   ac_wine_try_cflags_saved=$CFLAGS
13613 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h.  */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h.  */
13620
13621 int
13622 main ()
13623 {
13624
13625   ;
13626   return 0;
13627 }
13628 _ACEOF
13629 rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631   (eval $ac_link) 2>conftest.er1
13632   ac_status=$?
13633   grep -v '^ *+' conftest.er1 >conftest.err
13634   rm -f conftest.er1
13635   cat conftest.err >&5
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); } &&
13638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640   (eval $ac_try) 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); }; } &&
13644          { ac_try='test -s conftest$ac_exeext'
13645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646   (eval $ac_try) 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); }; }; then
13650   ac_cv_c_dll_zdefs="yes"
13651 else
13652   echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13654
13655 ac_cv_c_dll_zdefs="no"
13656 fi
13657 rm -f conftest.err conftest.$ac_objext \
13658       conftest$ac_exeext conftest.$ac_ext
13659 CFLAGS=$ac_wine_try_cflags_saved
13660 fi
13661 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13662 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13663         if test "$ac_cv_c_dll_zdefs" = "yes"
13664         then
13665           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13666         fi
13667
13668         echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13669 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13670 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13671   echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673   ac_wine_try_cflags_saved=$CFLAGS
13674 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13675 cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h.  */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h.  */
13681
13682 int
13683 main ()
13684 {
13685
13686   ;
13687   return 0;
13688 }
13689 _ACEOF
13690 rm -f conftest.$ac_objext conftest$ac_exeext
13691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13692   (eval $ac_link) 2>conftest.er1
13693   ac_status=$?
13694   grep -v '^ *+' conftest.er1 >conftest.err
13695   rm -f conftest.er1
13696   cat conftest.err >&5
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); } &&
13699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; } &&
13705          { ac_try='test -s conftest$ac_exeext'
13706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707   (eval $ac_try) 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; }; then
13711   ac_cv_c_dll_init_fini="yes"
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 ac_cv_c_dll_init_fini="no"
13717 fi
13718 rm -f conftest.err conftest.$ac_objext \
13719       conftest$ac_exeext conftest.$ac_ext
13720 CFLAGS=$ac_wine_try_cflags_saved
13721 fi
13722 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13723 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13724         if test "$ac_cv_c_dll_init_fini" = "yes"
13725         then
13726           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13727         fi
13728
13729         echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13730 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13731 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   echo '{ global: *; };' >conftest.map
13735            ac_wine_try_cflags_saved=$CFLAGS
13736 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13737 cat >conftest.$ac_ext <<_ACEOF
13738 /* confdefs.h.  */
13739 _ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h.  */
13743
13744 int
13745 main ()
13746 {
13747
13748   ;
13749   return 0;
13750 }
13751 _ACEOF
13752 rm -f conftest.$ac_objext conftest$ac_exeext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13754   (eval $ac_link) 2>conftest.er1
13755   ac_status=$?
13756   grep -v '^ *+' conftest.er1 >conftest.err
13757   rm -f conftest.er1
13758   cat conftest.err >&5
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); } &&
13761          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; } &&
13767          { ac_try='test -s conftest$ac_exeext'
13768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769   (eval $ac_try) 2>&5
13770   ac_status=$?
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); }; }; then
13773   ac_cv_c_ld_version_scripts="yes"
13774 else
13775   echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 ac_cv_c_ld_version_scripts="no"
13779 fi
13780 rm -f conftest.err conftest.$ac_objext \
13781       conftest$ac_exeext conftest.$ac_ext
13782 CFLAGS=$ac_wine_try_cflags_saved
13783            rm -f conftest.map
13784 fi
13785 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13786 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13787         if test "$ac_cv_c_ld_version_scripts" = "yes"
13788         then
13789           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13790         fi
13791
13792         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13793 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13794 if test "${ac_cv_c_export_dynamic+set}" = set; then
13795   echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797   ac_wine_try_cflags_saved=$CFLAGS
13798 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h.  */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h.  */
13805
13806 int
13807 main ()
13808 {
13809
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816   (eval $ac_link) 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } &&
13823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825   (eval $ac_try) 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); }; } &&
13829          { ac_try='test -s conftest$ac_exeext'
13830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831   (eval $ac_try) 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; }; then
13835   ac_cv_c_export_dynamic="yes"
13836 else
13837   echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840 ac_cv_c_export_dynamic="no"
13841 fi
13842 rm -f conftest.err conftest.$ac_objext \
13843       conftest$ac_exeext conftest.$ac_ext
13844 CFLAGS=$ac_wine_try_cflags_saved
13845 fi
13846 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13847 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13848         if test "$ac_cv_c_export_dynamic" = "yes"
13849         then
13850           LDEXECFLAGS="-Wl,--export-dynamic"
13851
13852         fi
13853
13854         case $host_cpu in
13855           *i[3456789]86*)
13856             echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
13857 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
13858 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   ac_wine_try_cflags_saved=$CFLAGS
13862 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
13863 cat >conftest.$ac_ext <<_ACEOF
13864 /* confdefs.h.  */
13865 _ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h.  */
13869
13870 int
13871 main ()
13872 {
13873
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13880   (eval $ac_link) 2>conftest.er1
13881   ac_status=$?
13882   grep -v '^ *+' conftest.er1 >conftest.err
13883   rm -f conftest.er1
13884   cat conftest.err >&5
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); } &&
13887          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; } &&
13893          { ac_try='test -s conftest$ac_exeext'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; }; then
13899   ac_cv_ld_reloc_exec="yes"
13900 else
13901   echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904 ac_cv_ld_reloc_exec="no"
13905 fi
13906 rm -f conftest.err conftest.$ac_objext \
13907       conftest$ac_exeext conftest.$ac_ext
13908 CFLAGS=$ac_wine_try_cflags_saved
13909 fi
13910 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13911 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13912             if test "$ac_cv_ld_reloc_exec" = "yes"
13913             then
13914               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
13915             fi
13916             ;;
13917         esac
13918
13919       else
13920         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13921 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13922 if test "${ac_cv_c_dll_unixware+set}" = set; then
13923   echo $ECHO_N "(cached) $ECHO_C" >&6
13924 else
13925   ac_wine_try_cflags_saved=$CFLAGS
13926 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13927 cat >conftest.$ac_ext <<_ACEOF
13928 /* confdefs.h.  */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h.  */
13933
13934 int
13935 main ()
13936 {
13937
13938   ;
13939   return 0;
13940 }
13941 _ACEOF
13942 rm -f conftest.$ac_objext conftest$ac_exeext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13944   (eval $ac_link) 2>conftest.er1
13945   ac_status=$?
13946   grep -v '^ *+' conftest.er1 >conftest.err
13947   rm -f conftest.er1
13948   cat conftest.err >&5
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } &&
13951          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953   (eval $ac_try) 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; } &&
13957          { ac_try='test -s conftest$ac_exeext'
13958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959   (eval $ac_try) 2>&5
13960   ac_status=$?
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); }; }; then
13963   ac_cv_c_dll_unixware="yes"
13964 else
13965   echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 ac_cv_c_dll_unixware="no"
13969 fi
13970 rm -f conftest.err conftest.$ac_objext \
13971       conftest$ac_exeext conftest.$ac_ext
13972 CFLAGS=$ac_wine_try_cflags_saved
13973 fi
13974 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13975 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13976         if test "$ac_cv_c_dll_unixware" = "yes"
13977         then
13978           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13979           LDDLLFLAGS="-Wl,-G,-B,symbolic"
13980
13981         else
13982           echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13983 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13984 if test "${ac_cv_c_dll_macho+set}" = set; then
13985   echo $ECHO_N "(cached) $ECHO_C" >&6
13986 else
13987   ac_wine_try_cflags_saved=$CFLAGS
13988 CFLAGS="$CFLAGS -bundle"
13989 cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h.  */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h.  */
13995
13996 int
13997 main ()
13998 {
13999
14000   ;
14001   return 0;
14002 }
14003 _ACEOF
14004 rm -f conftest.$ac_objext conftest$ac_exeext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14006   (eval $ac_link) 2>conftest.er1
14007   ac_status=$?
14008   grep -v '^ *+' conftest.er1 >conftest.err
14009   rm -f conftest.er1
14010   cat conftest.err >&5
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); } &&
14013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015   (eval $ac_try) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; } &&
14019          { ac_try='test -s conftest$ac_exeext'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; }; then
14025   ac_cv_c_dll_macho="yes"
14026 else
14027   echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14029
14030 ac_cv_c_dll_macho="no"
14031 fi
14032 rm -f conftest.err conftest.$ac_objext \
14033       conftest$ac_exeext conftest.$ac_ext
14034 CFLAGS=$ac_wine_try_cflags_saved
14035 fi
14036 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14037 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14038           if test "$ac_cv_c_dll_macho" = "yes"
14039           then
14040             LIBEXT="dylib"
14041             LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14042             LDSHARED="\$(CC) -dynamiclib"
14043             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14044             STRIP="$STRIP -u -r"
14045                         LDEXECFLAGS="-seg1addr 0x120000"
14046
14047                         LDLIBWINEFLAGS="-seg1addr 0x140000"
14048
14049                     COREFOUNDATIONLIB="-framework CoreFoundation"
14050
14051             IOKITLIB="-framework IOKit"
14052
14053                     IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB"
14054           fi
14055         fi
14056       fi
14057     fi
14058
14059         CROSSTEST=""
14060
14061     if test "$cross_compiling" = "no"
14062     then
14063       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14064 do
14065   # Extract the first word of "$ac_prog", so it can be a program name with args.
14066 set dummy $ac_prog; ac_word=$2
14067 echo "$as_me:$LINENO: checking for $ac_word" >&5
14068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14069 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14070   echo $ECHO_N "(cached) $ECHO_C" >&6
14071 else
14072   if test -n "$CROSSCC"; then
14073   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14074 else
14075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076 for as_dir in $PATH
14077 do
14078   IFS=$as_save_IFS
14079   test -z "$as_dir" && as_dir=.
14080   for ac_exec_ext in '' $ac_executable_extensions; do
14081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14082     ac_cv_prog_CROSSCC="$ac_prog"
14083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14084     break 2
14085   fi
14086 done
14087 done
14088
14089 fi
14090 fi
14091 CROSSCC=$ac_cv_prog_CROSSCC
14092 if test -n "$CROSSCC"; then
14093   echo "$as_me:$LINENO: result: $CROSSCC" >&5
14094 echo "${ECHO_T}$CROSSCC" >&6
14095 else
14096   echo "$as_me:$LINENO: result: no" >&5
14097 echo "${ECHO_T}no" >&6
14098 fi
14099
14100   test -n "$CROSSCC" && break
14101 done
14102 test -n "$CROSSCC" || CROSSCC="false"
14103
14104       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14105 do
14106   # Extract the first word of "$ac_prog", so it can be a program name with args.
14107 set dummy $ac_prog; ac_word=$2
14108 echo "$as_me:$LINENO: checking for $ac_word" >&5
14109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14110 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14111   echo $ECHO_N "(cached) $ECHO_C" >&6
14112 else
14113   if test -n "$DLLTOOL"; then
14114   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14115 else
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $PATH
14118 do
14119   IFS=$as_save_IFS
14120   test -z "$as_dir" && as_dir=.
14121   for ac_exec_ext in '' $ac_executable_extensions; do
14122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123     ac_cv_prog_DLLTOOL="$ac_prog"
14124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14125     break 2
14126   fi
14127 done
14128 done
14129
14130 fi
14131 fi
14132 DLLTOOL=$ac_cv_prog_DLLTOOL
14133 if test -n "$DLLTOOL"; then
14134   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14135 echo "${ECHO_T}$DLLTOOL" >&6
14136 else
14137   echo "$as_me:$LINENO: result: no" >&5
14138 echo "${ECHO_T}no" >&6
14139 fi
14140
14141   test -n "$DLLTOOL" && break
14142 done
14143 test -n "$DLLTOOL" || DLLTOOL="false"
14144
14145       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14146 do
14147   # Extract the first word of "$ac_prog", so it can be a program name with args.
14148 set dummy $ac_prog; ac_word=$2
14149 echo "$as_me:$LINENO: checking for $ac_word" >&5
14150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14151 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14152   echo $ECHO_N "(cached) $ECHO_C" >&6
14153 else
14154   if test -n "$CROSSWINDRES"; then
14155   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14156 else
14157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14158 for as_dir in $PATH
14159 do
14160   IFS=$as_save_IFS
14161   test -z "$as_dir" && as_dir=.
14162   for ac_exec_ext in '' $ac_executable_extensions; do
14163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14164     ac_cv_prog_CROSSWINDRES="$ac_prog"
14165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14166     break 2
14167   fi
14168 done
14169 done
14170
14171 fi
14172 fi
14173 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14174 if test -n "$CROSSWINDRES"; then
14175   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14176 echo "${ECHO_T}$CROSSWINDRES" >&6
14177 else
14178   echo "$as_me:$LINENO: result: no" >&5
14179 echo "${ECHO_T}no" >&6
14180 fi
14181
14182   test -n "$CROSSWINDRES" && break
14183 done
14184 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14185
14186       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14187     fi
14188     ;;
14189 esac
14190
14191 if test "$LIBEXT" = "a"; then
14192   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14193 It is currently not possible to build Wine without shared library
14194 (.so) support to allow transparent switch between .so and .dll files.
14195 If you are using Linux, you will need a newer binutils.
14196 " >&5
14197 echo "$as_me: error: could not find a way to build shared libraries.
14198 It is currently not possible to build Wine without shared library
14199 (.so) support to allow transparent switch between .so and .dll files.
14200 If you are using Linux, you will need a newer binutils.
14201 " >&2;}
14202    { (exit 1); exit 1; }; }
14203 fi
14204
14205 case $build_os in
14206   cygwin*|mingw32*)
14207     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14208  ;;
14209   darwin*|macosx*)
14210     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14211  ;;
14212   *)
14213     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14214  ;;
14215 esac
14216
14217 case $host_os in
14218   mingw32*)
14219     CRTLIBS="-lmsvcrt"
14220
14221     SOCKETLIBS="-lws2_32"
14222
14223     ;;
14224 esac
14225
14226 case $host_os in
14227   linux*)
14228     WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14229
14230     MAIN_BINARY="wine-glibc"
14231
14232     ;;
14233   darwin*)
14234     WINE_BINARIES="wine-pthread"
14235
14236     MAIN_BINARY="wine-pthread"
14237
14238     ;;
14239   *)
14240     WINE_BINARIES="wine-kthread"
14241
14242     MAIN_BINARY="wine-kthread"
14243
14244     ;;
14245 esac
14246
14247
14248 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14249 then
14250   # Extract the first word of "ldd", so it can be a program name with args.
14251 set dummy ldd; ac_word=$2
14252 echo "$as_me:$LINENO: checking for $ac_word" >&5
14253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14254 if test "${ac_cv_path_LDD+set}" = set; then
14255   echo $ECHO_N "(cached) $ECHO_C" >&6
14256 else
14257   case $LDD in
14258   [\\/]* | ?:[\\/]*)
14259   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14260   ;;
14261   *)
14262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14263 as_dummy="/sbin:/usr/sbin:$PATH"
14264 for as_dir in $as_dummy
14265 do
14266   IFS=$as_save_IFS
14267   test -z "$as_dir" && as_dir=.
14268   for ac_exec_ext in '' $ac_executable_extensions; do
14269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14270     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14272     break 2
14273   fi
14274 done
14275 done
14276
14277   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14278   ;;
14279 esac
14280 fi
14281 LDD=$ac_cv_path_LDD
14282
14283 if test -n "$LDD"; then
14284   echo "$as_me:$LINENO: result: $LDD" >&5
14285 echo "${ECHO_T}$LDD" >&6
14286 else
14287   echo "$as_me:$LINENO: result: no" >&5
14288 echo "${ECHO_T}no" >&6
14289 fi
14290
14291
14292 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14293 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14294 if test "${ac_cv_lib_soname_X11+set}" = set; then
14295   echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297   ac_get_soname_save_LIBS=$LIBS
14298 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14299   cat >conftest.$ac_ext <<_ACEOF
14300 /* confdefs.h.  */
14301 _ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h.  */
14305
14306 /* Override any gcc2 internal prototype to avoid an error.  */
14307 #ifdef __cplusplus
14308 extern "C"
14309 #endif
14310 /* We use char because int might match the return type of a gcc2
14311    builtin and then its argument prototype would still apply.  */
14312 char XCreateWindow ();
14313 int
14314 main ()
14315 {
14316 XCreateWindow ();
14317   ;
14318   return 0;
14319 }
14320 _ACEOF
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14323   (eval $ac_link) 2>conftest.er1
14324   ac_status=$?
14325   grep -v '^ *+' conftest.er1 >conftest.err
14326   rm -f conftest.er1
14327   cat conftest.err >&5
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); } &&
14330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332   (eval $ac_try) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; } &&
14336          { ac_try='test -s conftest$ac_exeext'
14337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338   (eval $ac_try) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; }; then
14342   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^       ]*\).*$/\1/"`
14343   if test "x$ac_cv_lib_soname_X11" = "x"
14344   then
14345      ac_cv_lib_soname_X11="libX11.$LIBEXT"
14346   fi
14347 else
14348   echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14352 fi
14353 rm -f conftest.err conftest.$ac_objext \
14354       conftest$ac_exeext conftest.$ac_ext
14355   LIBS=$ac_get_soname_save_LIBS
14356 fi
14357 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14358 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14359 if test "x$ac_cv_lib_soname_X11" != xNONE
14360 then
14361 cat >>confdefs.h <<_ACEOF
14362 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14363 _ACEOF
14364 fi
14365
14366 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14367 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14368 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14369   echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371   ac_get_soname_save_LIBS=$LIBS
14372 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14373   cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h.  */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h.  */
14379
14380 /* Override any gcc2 internal prototype to avoid an error.  */
14381 #ifdef __cplusplus
14382 extern "C"
14383 #endif
14384 /* We use char because int might match the return type of a gcc2
14385    builtin and then its argument prototype would still apply.  */
14386 char XextCreateExtension ();
14387 int
14388 main ()
14389 {
14390 XextCreateExtension ();
14391   ;
14392   return 0;
14393 }
14394 _ACEOF
14395 rm -f conftest.$ac_objext conftest$ac_exeext
14396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14397   (eval $ac_link) 2>conftest.er1
14398   ac_status=$?
14399   grep -v '^ *+' conftest.er1 >conftest.err
14400   rm -f conftest.er1
14401   cat conftest.err >&5
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); } &&
14404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406   (eval $ac_try) 2>&5
14407   ac_status=$?
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); }; } &&
14410          { ac_try='test -s conftest$ac_exeext'
14411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412   (eval $ac_try) 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); }; }; then
14416   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^    ]*\).*$/\1/"`
14417   if test "x$ac_cv_lib_soname_Xext" = "x"
14418   then
14419      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14420   fi
14421 else
14422   echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14426 fi
14427 rm -f conftest.err conftest.$ac_objext \
14428       conftest$ac_exeext conftest.$ac_ext
14429   LIBS=$ac_get_soname_save_LIBS
14430 fi
14431 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14432 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14433 if test "x$ac_cv_lib_soname_Xext" != xNONE
14434 then
14435 cat >>confdefs.h <<_ACEOF
14436 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14437 _ACEOF
14438 fi
14439
14440 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14441 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14442 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14443   echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445   ac_get_soname_save_LIBS=$LIBS
14446 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14447   cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h.  */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h.  */
14453
14454 /* Override any gcc2 internal prototype to avoid an error.  */
14455 #ifdef __cplusplus
14456 extern "C"
14457 #endif
14458 /* We use char because int might match the return type of a gcc2
14459    builtin and then its argument prototype would still apply.  */
14460 char XOpenDevice ();
14461 int
14462 main ()
14463 {
14464 XOpenDevice ();
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext conftest$ac_exeext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14471   (eval $ac_link) 2>conftest.er1
14472   ac_status=$?
14473   grep -v '^ *+' conftest.er1 >conftest.err
14474   rm -f conftest.er1
14475   cat conftest.err >&5
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } &&
14478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480   (eval $ac_try) 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); }; } &&
14484          { ac_try='test -s conftest$ac_exeext'
14485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486   (eval $ac_try) 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; }; then
14490   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^  ]*\).*$/\1/"`
14491   if test "x$ac_cv_lib_soname_Xi" = "x"
14492   then
14493      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14494   fi
14495 else
14496   echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14498
14499 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14500 fi
14501 rm -f conftest.err conftest.$ac_objext \
14502       conftest$ac_exeext conftest.$ac_ext
14503   LIBS=$ac_get_soname_save_LIBS
14504 fi
14505 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14506 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14507 if test "x$ac_cv_lib_soname_Xi" != xNONE
14508 then
14509 cat >>confdefs.h <<_ACEOF
14510 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14511 _ACEOF
14512 fi
14513
14514 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14515 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14516 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519   ac_get_soname_save_LIBS=$LIBS
14520 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14521   cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h.  */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h.  */
14527
14528 /* Override any gcc2 internal prototype to avoid an error.  */
14529 #ifdef __cplusplus
14530 extern "C"
14531 #endif
14532 /* We use char because int might match the return type of a gcc2
14533    builtin and then its argument prototype would still apply.  */
14534 char XRenderQueryExtension ();
14535 int
14536 main ()
14537 {
14538 XRenderQueryExtension ();
14539   ;
14540   return 0;
14541 }
14542 _ACEOF
14543 rm -f conftest.$ac_objext conftest$ac_exeext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14545   (eval $ac_link) 2>conftest.er1
14546   ac_status=$?
14547   grep -v '^ *+' conftest.er1 >conftest.err
14548   rm -f conftest.er1
14549   cat conftest.err >&5
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); } &&
14552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554   (eval $ac_try) 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); }; } &&
14558          { ac_try='test -s conftest$ac_exeext'
14559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560   (eval $ac_try) 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); }; }; then
14564   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^   ]*\).*$/\1/"`
14565   if test "x$ac_cv_lib_soname_Xrender" = "x"
14566   then
14567      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14568   fi
14569 else
14570   echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14574 fi
14575 rm -f conftest.err conftest.$ac_objext \
14576       conftest$ac_exeext conftest.$ac_ext
14577   LIBS=$ac_get_soname_save_LIBS
14578 fi
14579 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14580 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14581 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14582 then
14583 cat >>confdefs.h <<_ACEOF
14584 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14585 _ACEOF
14586 fi
14587
14588 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14589 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14590 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14591   echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593   ac_get_soname_save_LIBS=$LIBS
14594 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14595   cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h.  */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h.  */
14601
14602 /* Override any gcc2 internal prototype to avoid an error.  */
14603 #ifdef __cplusplus
14604 extern "C"
14605 #endif
14606 /* We use char because int might match the return type of a gcc2
14607    builtin and then its argument prototype would still apply.  */
14608 char XRRQueryExtension ();
14609 int
14610 main ()
14611 {
14612 XRRQueryExtension ();
14613   ;
14614   return 0;
14615 }
14616 _ACEOF
14617 rm -f conftest.$ac_objext conftest$ac_exeext
14618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14619   (eval $ac_link) 2>conftest.er1
14620   ac_status=$?
14621   grep -v '^ *+' conftest.er1 >conftest.err
14622   rm -f conftest.er1
14623   cat conftest.err >&5
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); } &&
14626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628   (eval $ac_try) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); }; } &&
14632          { ac_try='test -s conftest$ac_exeext'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; }; then
14638   ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^      ]*\).*$/\1/"`
14639   if test "x$ac_cv_lib_soname_Xrandr" = "x"
14640   then
14641      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14642   fi
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14648 fi
14649 rm -f conftest.err conftest.$ac_objext \
14650       conftest$ac_exeext conftest.$ac_ext
14651   LIBS=$ac_get_soname_save_LIBS
14652 fi
14653 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14654 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14655 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14656 then
14657 cat >>confdefs.h <<_ACEOF
14658 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14659 _ACEOF
14660 fi
14661
14662 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14663 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14664 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14665   echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667   ac_get_soname_save_LIBS=$LIBS
14668 LIBS="-lfreetype $X_LIBS $LIBS"
14669   cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h.  */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h.  */
14675
14676 /* Override any gcc2 internal prototype to avoid an error.  */
14677 #ifdef __cplusplus
14678 extern "C"
14679 #endif
14680 /* We use char because int might match the return type of a gcc2
14681    builtin and then its argument prototype would still apply.  */
14682 char FT_Init_FreeType ();
14683 int
14684 main ()
14685 {
14686 FT_Init_FreeType ();
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 rm -f conftest.$ac_objext conftest$ac_exeext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14693   (eval $ac_link) 2>conftest.er1
14694   ac_status=$?
14695   grep -v '^ *+' conftest.er1 >conftest.err
14696   rm -f conftest.er1
14697   cat conftest.err >&5
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } &&
14700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702   (eval $ac_try) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; } &&
14706          { ac_try='test -s conftest$ac_exeext'
14707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708   (eval $ac_try) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; }; then
14712   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^        ]*\).*$/\1/"`
14713   if test "x$ac_cv_lib_soname_freetype" = "x"
14714   then
14715      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14716   fi
14717 else
14718   echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14722 fi
14723 rm -f conftest.err conftest.$ac_objext \
14724       conftest$ac_exeext conftest.$ac_ext
14725   LIBS=$ac_get_soname_save_LIBS
14726 fi
14727 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14728 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14729 if test "x$ac_cv_lib_soname_freetype" != xNONE
14730 then
14731 cat >>confdefs.h <<_ACEOF
14732 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14733 _ACEOF
14734 fi
14735
14736 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14737 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14738 if test "${ac_cv_lib_soname_GL+set}" = set; then
14739   echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741   ac_get_soname_save_LIBS=$LIBS
14742 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14743   cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h.  */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h.  */
14749
14750 /* Override any gcc2 internal prototype to avoid an error.  */
14751 #ifdef __cplusplus
14752 extern "C"
14753 #endif
14754 /* We use char because int might match the return type of a gcc2
14755    builtin and then its argument prototype would still apply.  */
14756 char glXQueryExtension ();
14757 int
14758 main ()
14759 {
14760 glXQueryExtension ();
14761   ;
14762   return 0;
14763 }
14764 _ACEOF
14765 rm -f conftest.$ac_objext conftest$ac_exeext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14767   (eval $ac_link) 2>conftest.er1
14768   ac_status=$?
14769   grep -v '^ *+' conftest.er1 >conftest.err
14770   rm -f conftest.er1
14771   cat conftest.err >&5
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); } &&
14774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776   (eval $ac_try) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; } &&
14780          { ac_try='test -s conftest$ac_exeext'
14781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782   (eval $ac_try) 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); }; }; then
14786   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^  ]*\).*$/\1/"`
14787   if test "x$ac_cv_lib_soname_GL" = "x"
14788   then
14789      ac_cv_lib_soname_GL="libGL.$LIBEXT"
14790   fi
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14796 fi
14797 rm -f conftest.err conftest.$ac_objext \
14798       conftest$ac_exeext conftest.$ac_ext
14799   LIBS=$ac_get_soname_save_LIBS
14800 fi
14801 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14802 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14803 if test "x$ac_cv_lib_soname_GL" != xNONE
14804 then
14805 cat >>confdefs.h <<_ACEOF
14806 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14807 _ACEOF
14808 fi
14809
14810 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14811 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14812 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14813   echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815   ac_get_soname_save_LIBS=$LIBS
14816 LIBS="-ltxc_dxtn  $LIBS"
14817   cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h.  */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h.  */
14823
14824 /* Override any gcc2 internal prototype to avoid an error.  */
14825 #ifdef __cplusplus
14826 extern "C"
14827 #endif
14828 /* We use char because int might match the return type of a gcc2
14829    builtin and then its argument prototype would still apply.  */
14830 char fetch_2d_texel_rgba_dxt1 ();
14831 int
14832 main ()
14833 {
14834 fetch_2d_texel_rgba_dxt1 ();
14835   ;
14836   return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext conftest$ac_exeext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14841   (eval $ac_link) 2>conftest.er1
14842   ac_status=$?
14843   grep -v '^ *+' conftest.er1 >conftest.err
14844   rm -f conftest.er1
14845   cat conftest.err >&5
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); } &&
14848          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850   (eval $ac_try) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; } &&
14854          { ac_try='test -s conftest$ac_exeext'
14855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856   (eval $ac_try) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); }; }; then
14860   ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^        ]*\).*$/\1/"`
14861   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14862   then
14863      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14864   fi
14865 else
14866   echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14868
14869 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14870 fi
14871 rm -f conftest.err conftest.$ac_objext \
14872       conftest$ac_exeext conftest.$ac_ext
14873   LIBS=$ac_get_soname_save_LIBS
14874 fi
14875 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14876 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14877 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
14878 then
14879 cat >>confdefs.h <<_ACEOF
14880 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14881 _ACEOF
14882 fi
14883
14884 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14885 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14886 if test "${ac_cv_lib_soname_cups+set}" = set; then
14887   echo $ECHO_N "(cached) $ECHO_C" >&6
14888 else
14889   ac_get_soname_save_LIBS=$LIBS
14890 LIBS="-lcups  $LIBS"
14891   cat >conftest.$ac_ext <<_ACEOF
14892 /* confdefs.h.  */
14893 _ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h.  */
14897
14898 /* Override any gcc2 internal prototype to avoid an error.  */
14899 #ifdef __cplusplus
14900 extern "C"
14901 #endif
14902 /* We use char because int might match the return type of a gcc2
14903    builtin and then its argument prototype would still apply.  */
14904 char cupsGetDefault ();
14905 int
14906 main ()
14907 {
14908 cupsGetDefault ();
14909   ;
14910   return 0;
14911 }
14912 _ACEOF
14913 rm -f conftest.$ac_objext conftest$ac_exeext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915   (eval $ac_link) 2>conftest.er1
14916   ac_status=$?
14917   grep -v '^ *+' conftest.er1 >conftest.err
14918   rm -f conftest.er1
14919   cat conftest.err >&5
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); } &&
14922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924   (eval $ac_try) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); }; } &&
14928          { ac_try='test -s conftest$ac_exeext'
14929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930   (eval $ac_try) 2>&5
14931   ac_status=$?
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); }; }; then
14934   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^    ]*\).*$/\1/"`
14935   if test "x$ac_cv_lib_soname_cups" = "x"
14936   then
14937      ac_cv_lib_soname_cups="libcups.$LIBEXT"
14938   fi
14939 else
14940   echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14942
14943 ac_cv_lib_soname_cups="libcups.$LIBEXT"
14944 fi
14945 rm -f conftest.err conftest.$ac_objext \
14946       conftest$ac_exeext conftest.$ac_ext
14947   LIBS=$ac_get_soname_save_LIBS
14948 fi
14949 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14950 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14951 if test "x$ac_cv_lib_soname_cups" != xNONE
14952 then
14953 cat >>confdefs.h <<_ACEOF
14954 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14955 _ACEOF
14956 fi
14957
14958 echo "$as_me:$LINENO: checking for -ljack soname" >&5
14959 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14960 if test "${ac_cv_lib_soname_jack+set}" = set; then
14961   echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963   ac_get_soname_save_LIBS=$LIBS
14964 LIBS="-ljack  $LIBS"
14965   cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971
14972 /* Override any gcc2 internal prototype to avoid an error.  */
14973 #ifdef __cplusplus
14974 extern "C"
14975 #endif
14976 /* We use char because int might match the return type of a gcc2
14977    builtin and then its argument prototype would still apply.  */
14978 char jack_client_new ();
14979 int
14980 main ()
14981 {
14982 jack_client_new ();
14983   ;
14984   return 0;
14985 }
14986 _ACEOF
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14989   (eval $ac_link) 2>conftest.er1
14990   ac_status=$?
14991   grep -v '^ *+' conftest.er1 >conftest.err
14992   rm -f conftest.er1
14993   cat conftest.err >&5
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); } &&
14996          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998   (eval $ac_try) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); }; } &&
15002          { ac_try='test -s conftest$ac_exeext'
15003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004   (eval $ac_try) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; }; then
15008   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^    ]*\).*$/\1/"`
15009   if test "x$ac_cv_lib_soname_jack" = "x"
15010   then
15011      ac_cv_lib_soname_jack="libjack.$LIBEXT"
15012   fi
15013 else
15014   echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15016
15017 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15018 fi
15019 rm -f conftest.err conftest.$ac_objext \
15020       conftest$ac_exeext conftest.$ac_ext
15021   LIBS=$ac_get_soname_save_LIBS
15022 fi
15023 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15024 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15025 if test "x$ac_cv_lib_soname_jack" != xNONE
15026 then
15027 cat >>confdefs.h <<_ACEOF
15028 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15029 _ACEOF
15030 fi
15031
15032 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15033 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15034 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15035   echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15037   ac_get_soname_save_LIBS=$LIBS
15038 LIBS="-lfontconfig  $LIBS"
15039   cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h.  */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h.  */
15045
15046 /* Override any gcc2 internal prototype to avoid an error.  */
15047 #ifdef __cplusplus
15048 extern "C"
15049 #endif
15050 /* We use char because int might match the return type of a gcc2
15051    builtin and then its argument prototype would still apply.  */
15052 char FcInit ();
15053 int
15054 main ()
15055 {
15056 FcInit ();
15057   ;
15058   return 0;
15059 }
15060 _ACEOF
15061 rm -f conftest.$ac_objext conftest$ac_exeext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15063   (eval $ac_link) 2>conftest.er1
15064   ac_status=$?
15065   grep -v '^ *+' conftest.er1 >conftest.err
15066   rm -f conftest.er1
15067   cat conftest.err >&5
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); } &&
15070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072   (eval $ac_try) 2>&5
15073   ac_status=$?
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); }; } &&
15076          { ac_try='test -s conftest$ac_exeext'
15077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078   (eval $ac_try) 2>&5
15079   ac_status=$?
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); }; }; then
15082   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^  ]*\).*$/\1/"`
15083   if test "x$ac_cv_lib_soname_fontconfig" = "x"
15084   then
15085      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15086   fi
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15092 fi
15093 rm -f conftest.err conftest.$ac_objext \
15094       conftest$ac_exeext conftest.$ac_ext
15095   LIBS=$ac_get_soname_save_LIBS
15096 fi
15097 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15098 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15099 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15100 then
15101 cat >>confdefs.h <<_ACEOF
15102 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15103 _ACEOF
15104 fi
15105
15106 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15107 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15108 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15109   echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111   ac_get_soname_save_LIBS=$LIBS
15112 LIBS="-lssl  $LIBS"
15113   cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h.  */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h.  */
15119
15120 /* Override any gcc2 internal prototype to avoid an error.  */
15121 #ifdef __cplusplus
15122 extern "C"
15123 #endif
15124 /* We use char because int might match the return type of a gcc2
15125    builtin and then its argument prototype would still apply.  */
15126 char SSL_library_init ();
15127 int
15128 main ()
15129 {
15130 SSL_library_init ();
15131   ;
15132   return 0;
15133 }
15134 _ACEOF
15135 rm -f conftest.$ac_objext conftest$ac_exeext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15137   (eval $ac_link) 2>conftest.er1
15138   ac_status=$?
15139   grep -v '^ *+' conftest.er1 >conftest.err
15140   rm -f conftest.er1
15141   cat conftest.err >&5
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); } &&
15144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146   (eval $ac_try) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); }; } &&
15150          { ac_try='test -s conftest$ac_exeext'
15151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152   (eval $ac_try) 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; }; then
15156   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^       ]*\).*$/\1/"`
15157   if test "x$ac_cv_lib_soname_ssl" = "x"
15158   then
15159      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15160   fi
15161 else
15162   echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15164
15165 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15166 fi
15167 rm -f conftest.err conftest.$ac_objext \
15168       conftest$ac_exeext conftest.$ac_ext
15169   LIBS=$ac_get_soname_save_LIBS
15170 fi
15171 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15172 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15173 if test "x$ac_cv_lib_soname_ssl" != xNONE
15174 then
15175 cat >>confdefs.h <<_ACEOF
15176 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15177 _ACEOF
15178 fi
15179
15180 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15181 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15182 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   ac_get_soname_save_LIBS=$LIBS
15186 LIBS="-lcrypto  $LIBS"
15187   cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h.  */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h.  */
15193
15194 /* Override any gcc2 internal prototype to avoid an error.  */
15195 #ifdef __cplusplus
15196 extern "C"
15197 #endif
15198 /* We use char because int might match the return type of a gcc2
15199    builtin and then its argument prototype would still apply.  */
15200 char BIO_new_socket ();
15201 int
15202 main ()
15203 {
15204 BIO_new_socket ();
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15211   (eval $ac_link) 2>conftest.er1
15212   ac_status=$?
15213   grep -v '^ *+' conftest.er1 >conftest.err
15214   rm -f conftest.er1
15215   cat conftest.err >&5
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); } &&
15218          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220   (eval $ac_try) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); }; } &&
15224          { ac_try='test -s conftest$ac_exeext'
15225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226   (eval $ac_try) 2>&5
15227   ac_status=$?
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); }; }; then
15230   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^      ]*\).*$/\1/"`
15231   if test "x$ac_cv_lib_soname_crypto" = "x"
15232   then
15233      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15234   fi
15235 else
15236   echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15240 fi
15241 rm -f conftest.err conftest.$ac_objext \
15242       conftest$ac_exeext conftest.$ac_ext
15243   LIBS=$ac_get_soname_save_LIBS
15244 fi
15245 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15246 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15247 if test "x$ac_cv_lib_soname_crypto" != xNONE
15248 then
15249 cat >>confdefs.h <<_ACEOF
15250 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15251 _ACEOF
15252 fi
15253
15254 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15255 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15256 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259   ac_get_soname_save_LIBS=$LIBS
15260 LIBS="-lncurses  $LIBS"
15261   cat >conftest.$ac_ext <<_ACEOF
15262 /* confdefs.h.  */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h.  */
15267
15268 /* Override any gcc2 internal prototype to avoid an error.  */
15269 #ifdef __cplusplus
15270 extern "C"
15271 #endif
15272 /* We use char because int might match the return type of a gcc2
15273    builtin and then its argument prototype would still apply.  */
15274 char waddch ();
15275 int
15276 main ()
15277 {
15278 waddch ();
15279   ;
15280   return 0;
15281 }
15282 _ACEOF
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15285   (eval $ac_link) 2>conftest.er1
15286   ac_status=$?
15287   grep -v '^ *+' conftest.er1 >conftest.err
15288   rm -f conftest.er1
15289   cat conftest.err >&5
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); } &&
15292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294   (eval $ac_try) 2>&5
15295   ac_status=$?
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); }; } &&
15298          { ac_try='test -s conftest$ac_exeext'
15299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300   (eval $ac_try) 2>&5
15301   ac_status=$?
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   (exit $ac_status); }; }; then
15304   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^   ]*\).*$/\1/"`
15305   if test "x$ac_cv_lib_soname_ncurses" = "x"
15306   then
15307      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15308   fi
15309 else
15310   echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15314 fi
15315 rm -f conftest.err conftest.$ac_objext \
15316       conftest$ac_exeext conftest.$ac_ext
15317   LIBS=$ac_get_soname_save_LIBS
15318 fi
15319 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15320 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15321 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15322 then
15323 cat >>confdefs.h <<_ACEOF
15324 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15325 _ACEOF
15326 fi
15327
15328 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15329 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15330 if test "${ac_cv_lib_soname_curses+set}" = set; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333   ac_get_soname_save_LIBS=$LIBS
15334 LIBS="-lcurses  $LIBS"
15335   cat >conftest.$ac_ext <<_ACEOF
15336 /* confdefs.h.  */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h.  */
15341
15342 /* Override any gcc2 internal prototype to avoid an error.  */
15343 #ifdef __cplusplus
15344 extern "C"
15345 #endif
15346 /* We use char because int might match the return type of a gcc2
15347    builtin and then its argument prototype would still apply.  */
15348 char waddch ();
15349 int
15350 main ()
15351 {
15352 waddch ();
15353   ;
15354   return 0;
15355 }
15356 _ACEOF
15357 rm -f conftest.$ac_objext conftest$ac_exeext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15359   (eval $ac_link) 2>conftest.er1
15360   ac_status=$?
15361   grep -v '^ *+' conftest.er1 >conftest.err
15362   rm -f conftest.er1
15363   cat conftest.err >&5
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } &&
15366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368   (eval $ac_try) 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); }; } &&
15372          { ac_try='test -s conftest$ac_exeext'
15373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374   (eval $ac_try) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); }; }; then
15378   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^      ]*\).*$/\1/"`
15379   if test "x$ac_cv_lib_soname_curses" = "x"
15380   then
15381      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15382   fi
15383 else
15384   echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15388 fi
15389 rm -f conftest.err conftest.$ac_objext \
15390       conftest$ac_exeext conftest.$ac_ext
15391   LIBS=$ac_get_soname_save_LIBS
15392 fi
15393 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15394 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15395 if test "x$ac_cv_lib_soname_curses" != xNONE
15396 then
15397 cat >>confdefs.h <<_ACEOF
15398 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15399 _ACEOF
15400 fi
15401
15402 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15403 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15404 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15405   echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407   ac_get_soname_save_LIBS=$LIBS
15408 LIBS="-ljpeg  $LIBS"
15409   cat >conftest.$ac_ext <<_ACEOF
15410 /* confdefs.h.  */
15411 _ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h.  */
15415
15416 /* Override any gcc2 internal prototype to avoid an error.  */
15417 #ifdef __cplusplus
15418 extern "C"
15419 #endif
15420 /* We use char because int might match the return type of a gcc2
15421    builtin and then its argument prototype would still apply.  */
15422 char jpeg_start_decompress ();
15423 int
15424 main ()
15425 {
15426 jpeg_start_decompress ();
15427   ;
15428   return 0;
15429 }
15430 _ACEOF
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433   (eval $ac_link) 2>conftest.er1
15434   ac_status=$?
15435   grep -v '^ *+' conftest.er1 >conftest.err
15436   rm -f conftest.er1
15437   cat conftest.err >&5
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); } &&
15440          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442   (eval $ac_try) 2>&5
15443   ac_status=$?
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); }; } &&
15446          { ac_try='test -s conftest$ac_exeext'
15447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448   (eval $ac_try) 2>&5
15449   ac_status=$?
15450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451   (exit $ac_status); }; }; then
15452   ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^    ]*\).*$/\1/"`
15453   if test "x$ac_cv_lib_soname_jpeg" = "x"
15454   then
15455      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15456   fi
15457 else
15458   echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15462 fi
15463 rm -f conftest.err conftest.$ac_objext \
15464       conftest$ac_exeext conftest.$ac_ext
15465   LIBS=$ac_get_soname_save_LIBS
15466 fi
15467 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15468 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15469 if test "x$ac_cv_lib_soname_jpeg" != xNONE
15470 then
15471 cat >>confdefs.h <<_ACEOF
15472 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15473 _ACEOF
15474 fi
15475
15476 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15477 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15478 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15479   echo $ECHO_N "(cached) $ECHO_C" >&6
15480 else
15481   ac_get_soname_save_LIBS=$LIBS
15482 LIBS="-lungif  $LIBS"
15483   cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h.  */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h.  */
15489
15490 /* Override any gcc2 internal prototype to avoid an error.  */
15491 #ifdef __cplusplus
15492 extern "C"
15493 #endif
15494 /* We use char because int might match the return type of a gcc2
15495    builtin and then its argument prototype would still apply.  */
15496 char DGifOpen ();
15497 int
15498 main ()
15499 {
15500 DGifOpen ();
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 rm -f conftest.$ac_objext conftest$ac_exeext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15507   (eval $ac_link) 2>conftest.er1
15508   ac_status=$?
15509   grep -v '^ *+' conftest.er1 >conftest.err
15510   rm -f conftest.er1
15511   cat conftest.err >&5
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } &&
15514          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516   (eval $ac_try) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; } &&
15520          { ac_try='test -s conftest$ac_exeext'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; }; then
15526   ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^         ]*\).*$/\1/"`
15527   if test "x$ac_cv_lib_soname_ungif" = "x"
15528   then
15529      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15530   fi
15531 else
15532   echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15534
15535 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15536 fi
15537 rm -f conftest.err conftest.$ac_objext \
15538       conftest$ac_exeext conftest.$ac_ext
15539   LIBS=$ac_get_soname_save_LIBS
15540 fi
15541 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15542 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15543 if test "x$ac_cv_lib_soname_ungif" != xNONE
15544 then
15545 cat >>confdefs.h <<_ACEOF
15546 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15547 _ACEOF
15548 fi
15549 fi
15550
15551
15552
15553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15554 # for constant arguments.  Useless!
15555 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15556 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15557 if test "${ac_cv_working_alloca_h+set}" = set; then
15558   echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560   cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h.  */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h.  */
15566 #include <alloca.h>
15567 int
15568 main ()
15569 {
15570 char *p = (char *) alloca (2 * sizeof (int));
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext conftest$ac_exeext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15577   (eval $ac_link) 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586   (eval $ac_try) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; } &&
15590          { ac_try='test -s conftest$ac_exeext'
15591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592   (eval $ac_try) 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); }; }; then
15596   ac_cv_working_alloca_h=yes
15597 else
15598   echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 ac_cv_working_alloca_h=no
15602 fi
15603 rm -f conftest.err conftest.$ac_objext \
15604       conftest$ac_exeext conftest.$ac_ext
15605 fi
15606 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15607 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15608 if test $ac_cv_working_alloca_h = yes; then
15609
15610 cat >>confdefs.h <<\_ACEOF
15611 #define HAVE_ALLOCA_H 1
15612 _ACEOF
15613
15614 fi
15615
15616 echo "$as_me:$LINENO: checking for alloca" >&5
15617 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15618 if test "${ac_cv_func_alloca_works+set}" = set; then
15619   echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621   cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h.  */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h.  */
15627 #ifdef __GNUC__
15628 # define alloca __builtin_alloca
15629 #else
15630 # ifdef _MSC_VER
15631 #  include <malloc.h>
15632 #  define alloca _alloca
15633 # else
15634 #  if HAVE_ALLOCA_H
15635 #   include <alloca.h>
15636 #  else
15637 #   ifdef _AIX
15638  #pragma alloca
15639 #   else
15640 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15641 char *alloca ();
15642 #    endif
15643 #   endif
15644 #  endif
15645 # endif
15646 #endif
15647
15648 int
15649 main ()
15650 {
15651 char *p = (char *) alloca (1);
15652   ;
15653   return 0;
15654 }
15655 _ACEOF
15656 rm -f conftest.$ac_objext conftest$ac_exeext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15658   (eval $ac_link) 2>conftest.er1
15659   ac_status=$?
15660   grep -v '^ *+' conftest.er1 >conftest.err
15661   rm -f conftest.er1
15662   cat conftest.err >&5
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; } &&
15671          { ac_try='test -s conftest$ac_exeext'
15672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673   (eval $ac_try) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); }; }; then
15677   ac_cv_func_alloca_works=yes
15678 else
15679   echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 ac_cv_func_alloca_works=no
15683 fi
15684 rm -f conftest.err conftest.$ac_objext \
15685       conftest$ac_exeext conftest.$ac_ext
15686 fi
15687 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15688 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15689
15690 if test $ac_cv_func_alloca_works = yes; then
15691
15692 cat >>confdefs.h <<\_ACEOF
15693 #define HAVE_ALLOCA 1
15694 _ACEOF
15695
15696 else
15697   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15698 # that cause trouble.  Some versions do not even contain alloca or
15699 # contain a buggy version.  If you still want to use their alloca,
15700 # use ar to extract alloca.o from them instead of compiling alloca.c.
15701
15702 ALLOCA=alloca.$ac_objext
15703
15704 cat >>confdefs.h <<\_ACEOF
15705 #define C_ALLOCA 1
15706 _ACEOF
15707
15708
15709 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15710 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15711 if test "${ac_cv_os_cray+set}" = set; then
15712   echo $ECHO_N "(cached) $ECHO_C" >&6
15713 else
15714   cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h.  */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h.  */
15720 #if defined(CRAY) && ! defined(CRAY2)
15721 webecray
15722 #else
15723 wenotbecray
15724 #endif
15725
15726 _ACEOF
15727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15728   $EGREP "webecray" >/dev/null 2>&1; then
15729   ac_cv_os_cray=yes
15730 else
15731   ac_cv_os_cray=no
15732 fi
15733 rm -f conftest*
15734
15735 fi
15736 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15737 echo "${ECHO_T}$ac_cv_os_cray" >&6
15738 if test $ac_cv_os_cray = yes; then
15739   for ac_func in _getb67 GETB67 getb67; do
15740     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15741 echo "$as_me:$LINENO: checking for $ac_func" >&5
15742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15743 if eval "test \"\${$as_ac_var+set}\" = set"; then
15744   echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746   cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h.  */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h.  */
15752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15754 #define $ac_func innocuous_$ac_func
15755
15756 /* System header to define __stub macros and hopefully few prototypes,
15757     which can conflict with char $ac_func (); below.
15758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15759     <limits.h> exists even on freestanding compilers.  */
15760
15761 #ifdef __STDC__
15762 # include <limits.h>
15763 #else
15764 # include <assert.h>
15765 #endif
15766
15767 #undef $ac_func
15768
15769 /* Override any gcc2 internal prototype to avoid an error.  */
15770 #ifdef __cplusplus
15771 extern "C"
15772 {
15773 #endif
15774 /* We use char because int might match the return type of a gcc2
15775    builtin and then its argument prototype would still apply.  */
15776 char $ac_func ();
15777 /* The GNU C library defines this for functions which it implements
15778     to always fail with ENOSYS.  Some functions are actually named
15779     something starting with __ and the normal name is an alias.  */
15780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15781 choke me
15782 #else
15783 char (*f) () = $ac_func;
15784 #endif
15785 #ifdef __cplusplus
15786 }
15787 #endif
15788
15789 int
15790 main ()
15791 {
15792 return f != $ac_func;
15793   ;
15794   return 0;
15795 }
15796 _ACEOF
15797 rm -f conftest.$ac_objext conftest$ac_exeext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799   (eval $ac_link) 2>conftest.er1
15800   ac_status=$?
15801   grep -v '^ *+' conftest.er1 >conftest.err
15802   rm -f conftest.er1
15803   cat conftest.err >&5
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); } &&
15806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808   (eval $ac_try) 2>&5
15809   ac_status=$?
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); }; } &&
15812          { ac_try='test -s conftest$ac_exeext'
15813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814   (eval $ac_try) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); }; }; then
15818   eval "$as_ac_var=yes"
15819 else
15820   echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15822
15823 eval "$as_ac_var=no"
15824 fi
15825 rm -f conftest.err conftest.$ac_objext \
15826       conftest$ac_exeext conftest.$ac_ext
15827 fi
15828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15830 if test `eval echo '${'$as_ac_var'}'` = yes; then
15831
15832 cat >>confdefs.h <<_ACEOF
15833 #define CRAY_STACKSEG_END $ac_func
15834 _ACEOF
15835
15836     break
15837 fi
15838
15839   done
15840 fi
15841
15842 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15843 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15844 if test "${ac_cv_c_stack_direction+set}" = set; then
15845   echo $ECHO_N "(cached) $ECHO_C" >&6
15846 else
15847   if test "$cross_compiling" = yes; then
15848   ac_cv_c_stack_direction=0
15849 else
15850   cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h.  */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h.  */
15856 int
15857 find_stack_direction ()
15858 {
15859   static char *addr = 0;
15860   auto char dummy;
15861   if (addr == 0)
15862     {
15863       addr = &dummy;
15864       return find_stack_direction ();
15865     }
15866   else
15867     return (&dummy > addr) ? 1 : -1;
15868 }
15869
15870 int
15871 main ()
15872 {
15873   exit (find_stack_direction () < 0);
15874 }
15875 _ACEOF
15876 rm -f conftest$ac_exeext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15878   (eval $ac_link) 2>&5
15879   ac_status=$?
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883   (eval $ac_try) 2>&5
15884   ac_status=$?
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); }; }; then
15887   ac_cv_c_stack_direction=1
15888 else
15889   echo "$as_me: program exited with status $ac_status" >&5
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 ( exit $ac_status )
15894 ac_cv_c_stack_direction=-1
15895 fi
15896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15897 fi
15898 fi
15899 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15900 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15901
15902 cat >>confdefs.h <<_ACEOF
15903 #define STACK_DIRECTION $ac_cv_c_stack_direction
15904 _ACEOF
15905
15906
15907 fi
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966 for ac_func in \
15967         _lwp_create \
15968         _lwp_self \
15969         _pclose \
15970         _popen \
15971         _snprintf \
15972         _spawnvp \
15973         _stricmp \
15974         _strnicmp \
15975         _vsnprintf \
15976         chsize \
15977         clone \
15978         finite \
15979         fpclass \
15980         fstatfs \
15981         fstatvfs \
15982         ftruncate \
15983         ftruncate64 \
15984         futimes \
15985         getnetbyaddr \
15986         getnetbyname \
15987         getopt_long \
15988         getpagesize \
15989         getprotobyname \
15990         getprotobynumber \
15991         getpwuid \
15992         getservbyport \
15993         gettid \
15994         gettimeofday \
15995         inet_network \
15996         lseek64 \
15997         lstat \
15998         memmove \
15999         mmap \
16000         pclose \
16001         popen \
16002         pread \
16003         pwrite \
16004         readlink \
16005         rfork \
16006         select \
16007         sendmsg \
16008         settimeofday \
16009         sigaltstack \
16010         snprintf \
16011         spawnvp \
16012         statfs \
16013         statvfs \
16014         strcasecmp \
16015         strerror \
16016         strncasecmp \
16017         tcgetattr \
16018         timegm \
16019         usleep \
16020         vfscanf \
16021         vsnprintf \
16022         wait4 \
16023         waitpid \
16024
16025 do
16026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16027 echo "$as_me:$LINENO: checking for $ac_func" >&5
16028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16029 if eval "test \"\${$as_ac_var+set}\" = set"; then
16030   echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16032   cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h.  */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h.  */
16038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16040 #define $ac_func innocuous_$ac_func
16041
16042 /* System header to define __stub macros and hopefully few prototypes,
16043     which can conflict with char $ac_func (); below.
16044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16045     <limits.h> exists even on freestanding compilers.  */
16046
16047 #ifdef __STDC__
16048 # include <limits.h>
16049 #else
16050 # include <assert.h>
16051 #endif
16052
16053 #undef $ac_func
16054
16055 /* Override any gcc2 internal prototype to avoid an error.  */
16056 #ifdef __cplusplus
16057 extern "C"
16058 {
16059 #endif
16060 /* We use char because int might match the return type of a gcc2
16061    builtin and then its argument prototype would still apply.  */
16062 char $ac_func ();
16063 /* The GNU C library defines this for functions which it implements
16064     to always fail with ENOSYS.  Some functions are actually named
16065     something starting with __ and the normal name is an alias.  */
16066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16067 choke me
16068 #else
16069 char (*f) () = $ac_func;
16070 #endif
16071 #ifdef __cplusplus
16072 }
16073 #endif
16074
16075 int
16076 main ()
16077 {
16078 return f != $ac_func;
16079   ;
16080   return 0;
16081 }
16082 _ACEOF
16083 rm -f conftest.$ac_objext conftest$ac_exeext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16085   (eval $ac_link) 2>conftest.er1
16086   ac_status=$?
16087   grep -v '^ *+' conftest.er1 >conftest.err
16088   rm -f conftest.er1
16089   cat conftest.err >&5
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); } &&
16092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094   (eval $ac_try) 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); }; } &&
16098          { ac_try='test -s conftest$ac_exeext'
16099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100   (eval $ac_try) 2>&5
16101   ac_status=$?
16102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103   (exit $ac_status); }; }; then
16104   eval "$as_ac_var=yes"
16105 else
16106   echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109 eval "$as_ac_var=no"
16110 fi
16111 rm -f conftest.err conftest.$ac_objext \
16112       conftest$ac_exeext conftest.$ac_ext
16113 fi
16114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16116 if test `eval echo '${'$as_ac_var'}'` = yes; then
16117   cat >>confdefs.h <<_ACEOF
16118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16119 _ACEOF
16120
16121 fi
16122 done
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
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213 for ac_header in \
16214         arpa/inet.h \
16215         arpa/nameser.h \
16216         cups/cups.h \
16217         direct.h \
16218         elf.h \
16219         float.h \
16220         fontconfig/fontconfig.h \
16221         getopt.h \
16222         gif_lib.h \
16223         ieeefp.h \
16224         io.h \
16225         jack/jack.h \
16226         jpeglib.h \
16227         libio.h \
16228         libutil.h \
16229         link.h \
16230         linux/cdrom.h \
16231         linux/hdreg.h \
16232         linux/input.h \
16233         linux/ioctl.h \
16234         linux/joystick.h \
16235         linux/major.h \
16236         linux/param.h \
16237         linux/serial.h \
16238         linux/ucdrom.h \
16239         machine/cpu.h \
16240         mntent.h \
16241         netdb.h \
16242         netinet/in.h \
16243         netinet/in_systm.h \
16244         netinet/tcp.h \
16245         netinet/tcp_fsm.h \
16246         openssl/ssl.h \
16247         process.h \
16248         pthread.h \
16249         pty.h \
16250         pwd.h \
16251         regex.h \
16252         sched.h \
16253         scsi/sg.h \
16254         scsi/scsi.h \
16255         scsi/scsi_ioctl.h \
16256         socket.h \
16257         stdint.h \
16258         strings.h \
16259         sys/cdio.h \
16260         sys/elf32.h \
16261         sys/errno.h \
16262         sys/exec_elf.h \
16263         sys/file.h \
16264         sys/filio.h \
16265         sys/inttypes.h \
16266         sys/ioctl.h \
16267         sys/ipc.h \
16268         sys/link.h \
16269         sys/lwp.h \
16270         sys/mman.h \
16271         sys/modem.h \
16272         sys/msg.h \
16273         sys/param.h \
16274         sys/poll.h \
16275         sys/ptrace.h \
16276         sys/reg.h \
16277         sys/scsiio.h \
16278         sys/shm.h \
16279         sys/signal.h \
16280         sys/socket.h \
16281         sys/sockio.h \
16282         sys/statfs.h \
16283         sys/statvfs.h \
16284         sys/strtio.h \
16285         sys/syscall.h \
16286         sys/sysctl.h \
16287         sys/time.h \
16288         sys/times.h \
16289         sys/uio.h \
16290         sys/un.h \
16291         sys/v86.h \
16292         sys/v86intr.h \
16293         sys/vfs.h \
16294         sys/vm86.h \
16295         sys/wait.h \
16296         syscall.h \
16297         termios.h \
16298         unistd.h \
16299         utime.h \
16300         valgrind/memcheck.h
16301
16302 do
16303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16305   echo "$as_me:$LINENO: checking for $ac_header" >&5
16306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16308   echo $ECHO_N "(cached) $ECHO_C" >&6
16309 fi
16310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16312 else
16313   # Is the header compilable?
16314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16316 cat >conftest.$ac_ext <<_ACEOF
16317 /* confdefs.h.  */
16318 _ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h.  */
16322 $ac_includes_default
16323 #include <$ac_header>
16324 _ACEOF
16325 rm -f conftest.$ac_objext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327   (eval $ac_compile) 2>conftest.er1
16328   ac_status=$?
16329   grep -v '^ *+' conftest.er1 >conftest.err
16330   rm -f conftest.er1
16331   cat conftest.err >&5
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); } &&
16334          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336   (eval $ac_try) 2>&5
16337   ac_status=$?
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); }; } &&
16340          { ac_try='test -s conftest.$ac_objext'
16341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342   (eval $ac_try) 2>&5
16343   ac_status=$?
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); }; }; then
16346   ac_header_compiler=yes
16347 else
16348   echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16350
16351 ac_header_compiler=no
16352 fi
16353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16355 echo "${ECHO_T}$ac_header_compiler" >&6
16356
16357 # Is the header present?
16358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16360 cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h.  */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h.  */
16366 #include <$ac_header>
16367 _ACEOF
16368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16369   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16370   ac_status=$?
16371   grep -v '^ *+' conftest.er1 >conftest.err
16372   rm -f conftest.er1
16373   cat conftest.err >&5
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); } >/dev/null; then
16376   if test -s conftest.err; then
16377     ac_cpp_err=$ac_c_preproc_warn_flag
16378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16379   else
16380     ac_cpp_err=
16381   fi
16382 else
16383   ac_cpp_err=yes
16384 fi
16385 if test -z "$ac_cpp_err"; then
16386   ac_header_preproc=yes
16387 else
16388   echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16390
16391   ac_header_preproc=no
16392 fi
16393 rm -f conftest.err conftest.$ac_ext
16394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16395 echo "${ECHO_T}$ac_header_preproc" >&6
16396
16397 # So?  What about this header?
16398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16399   yes:no: )
16400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16404     ac_header_preproc=yes
16405     ;;
16406   no:yes:* )
16407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16409     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16410 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16411     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16413     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16414 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16417     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16419     (
16420       cat <<\_ASBOX
16421 ## ------------------------------------ ##
16422 ## Report this to wine-devel@winehq.org ##
16423 ## ------------------------------------ ##
16424 _ASBOX
16425     ) |
16426       sed "s/^/$as_me: WARNING:     /" >&2
16427     ;;
16428 esac
16429 echo "$as_me:$LINENO: checking for $ac_header" >&5
16430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   eval "$as_ac_Header=\$ac_header_preproc"
16435 fi
16436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16438
16439 fi
16440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16441   cat >>confdefs.h <<_ACEOF
16442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16443 _ACEOF
16444
16445 fi
16446
16447 done
16448
16449 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16450 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16451 if test "${ac_cv_header_stat_broken+set}" = set; then
16452   echo $ECHO_N "(cached) $ECHO_C" >&6
16453 else
16454   cat >conftest.$ac_ext <<_ACEOF
16455 /* confdefs.h.  */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h.  */
16460 #include <sys/types.h>
16461 #include <sys/stat.h>
16462
16463 #if defined(S_ISBLK) && defined(S_IFDIR)
16464 # if S_ISBLK (S_IFDIR)
16465 You lose.
16466 # endif
16467 #endif
16468
16469 #if defined(S_ISBLK) && defined(S_IFCHR)
16470 # if S_ISBLK (S_IFCHR)
16471 You lose.
16472 # endif
16473 #endif
16474
16475 #if defined(S_ISLNK) && defined(S_IFREG)
16476 # if S_ISLNK (S_IFREG)
16477 You lose.
16478 # endif
16479 #endif
16480
16481 #if defined(S_ISSOCK) && defined(S_IFREG)
16482 # if S_ISSOCK (S_IFREG)
16483 You lose.
16484 # endif
16485 #endif
16486
16487 _ACEOF
16488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16489   $EGREP "You lose" >/dev/null 2>&1; then
16490   ac_cv_header_stat_broken=yes
16491 else
16492   ac_cv_header_stat_broken=no
16493 fi
16494 rm -f conftest*
16495
16496 fi
16497 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16498 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16499 if test $ac_cv_header_stat_broken = yes; then
16500
16501 cat >>confdefs.h <<\_ACEOF
16502 #define STAT_MACROS_BROKEN 1
16503 _ACEOF
16504
16505 fi
16506
16507
16508
16509
16510
16511 for ac_header in sys/mount.h sys/user.h
16512 do
16513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16514 echo "$as_me:$LINENO: checking for $ac_header" >&5
16515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16517   echo $ECHO_N "(cached) $ECHO_C" >&6
16518 else
16519   cat >conftest.$ac_ext <<_ACEOF
16520 /* confdefs.h.  */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h.  */
16525 #include <sys/types.h>
16526      #if HAVE_SYS_PARAM_H
16527      # include <sys/param.h>
16528      #endif
16529
16530 #include <$ac_header>
16531 _ACEOF
16532 rm -f conftest.$ac_objext
16533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16534   (eval $ac_compile) 2>conftest.er1
16535   ac_status=$?
16536   grep -v '^ *+' conftest.er1 >conftest.err
16537   rm -f conftest.er1
16538   cat conftest.err >&5
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); } &&
16541          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543   (eval $ac_try) 2>&5
16544   ac_status=$?
16545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546   (exit $ac_status); }; } &&
16547          { ac_try='test -s conftest.$ac_objext'
16548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549   (eval $ac_try) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; }; then
16553   eval "$as_ac_Header=yes"
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558 eval "$as_ac_Header=no"
16559 fi
16560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16561 fi
16562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16565   cat >>confdefs.h <<_ACEOF
16566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16567 _ACEOF
16568
16569 fi
16570
16571 done
16572
16573
16574
16575
16576
16577
16578
16579 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16580 do
16581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16582 echo "$as_me:$LINENO: checking for $ac_header" >&5
16583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16585   echo $ECHO_N "(cached) $ECHO_C" >&6
16586 else
16587   cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h.  */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h.  */
16593 #include <sys/types.h>
16594      #if HAVE_SYS_SOCKET_H
16595      # include <sys/socket.h>
16596      #endif
16597
16598 #include <$ac_header>
16599 _ACEOF
16600 rm -f conftest.$ac_objext
16601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16602   (eval $ac_compile) 2>conftest.er1
16603   ac_status=$?
16604   grep -v '^ *+' conftest.er1 >conftest.err
16605   rm -f conftest.er1
16606   cat conftest.err >&5
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); } &&
16609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611   (eval $ac_try) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; } &&
16615          { ac_try='test -s conftest.$ac_objext'
16616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617   (eval $ac_try) 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); }; }; then
16621   eval "$as_ac_Header=yes"
16622 else
16623   echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16625
16626 eval "$as_ac_Header=no"
16627 fi
16628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16629 fi
16630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16633   cat >>confdefs.h <<_ACEOF
16634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16635 _ACEOF
16636
16637 fi
16638
16639 done
16640
16641
16642
16643 for ac_header in resolv.h
16644 do
16645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16646 echo "$as_me:$LINENO: checking for $ac_header" >&5
16647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h.  */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h.  */
16657 #include <sys/types.h>
16658      #if HAVE_SYS_SOCKET_H
16659      # include <sys/socket.h>
16660      #endif
16661      #if HAVE_NETINET_IN_H
16662      # include <netinet/in.h>
16663      #endif
16664      #if HAVE_ARPA_NAMESER_H
16665      # include <arpa/nameser.h>
16666      #endif
16667
16668 #include <$ac_header>
16669 _ACEOF
16670 rm -f conftest.$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672   (eval $ac_compile) 2>conftest.er1
16673   ac_status=$?
16674   grep -v '^ *+' conftest.er1 >conftest.err
16675   rm -f conftest.er1
16676   cat conftest.err >&5
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); } &&
16679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681   (eval $ac_try) 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; } &&
16685          { ac_try='test -s conftest.$ac_objext'
16686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687   (eval $ac_try) 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; }; then
16691   eval "$as_ac_Header=yes"
16692 else
16693   echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16695
16696 eval "$as_ac_Header=no"
16697 fi
16698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16699 fi
16700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16703   cat >>confdefs.h <<_ACEOF
16704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16705 _ACEOF
16706
16707 fi
16708
16709 done
16710
16711
16712
16713 for ac_header in netinet/ip.h
16714 do
16715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16716 echo "$as_me:$LINENO: checking for $ac_header" >&5
16717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16719   echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721   cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727 #include <sys/types.h>
16728      #if HAVE_SYS_SOCKET_H
16729      # include <sys/socket.h>
16730      #endif
16731      #if HAVE_NETINET_IN_SYSTM_H
16732      # include <netinet/in_systm.h>
16733      #endif
16734
16735 #include <$ac_header>
16736 _ACEOF
16737 rm -f conftest.$ac_objext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16739   (eval $ac_compile) 2>conftest.er1
16740   ac_status=$?
16741   grep -v '^ *+' conftest.er1 >conftest.err
16742   rm -f conftest.er1
16743   cat conftest.err >&5
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); } &&
16746          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748   (eval $ac_try) 2>&5
16749   ac_status=$?
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); }; } &&
16752          { ac_try='test -s conftest.$ac_objext'
16753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754   (eval $ac_try) 2>&5
16755   ac_status=$?
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); }; }; then
16758   eval "$as_ac_Header=yes"
16759 else
16760   echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16762
16763 eval "$as_ac_Header=no"
16764 fi
16765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16766 fi
16767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16770   cat >>confdefs.h <<_ACEOF
16771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16772 _ACEOF
16773
16774 fi
16775
16776 done
16777
16778
16779
16780 for ac_header in ucontext.h
16781 do
16782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16783 echo "$as_me:$LINENO: checking for $ac_header" >&5
16784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16786   echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788   cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h.  */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h.  */
16794 #include <signal.h>
16795
16796 #include <$ac_header>
16797 _ACEOF
16798 rm -f conftest.$ac_objext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16800   (eval $ac_compile) 2>conftest.er1
16801   ac_status=$?
16802   grep -v '^ *+' conftest.er1 >conftest.err
16803   rm -f conftest.er1
16804   cat conftest.err >&5
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); } &&
16807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809   (eval $ac_try) 2>&5
16810   ac_status=$?
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); }; } &&
16813          { ac_try='test -s conftest.$ac_objext'
16814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815   (eval $ac_try) 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); }; }; then
16819   eval "$as_ac_Header=yes"
16820 else
16821   echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16823
16824 eval "$as_ac_Header=no"
16825 fi
16826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16827 fi
16828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16831   cat >>confdefs.h <<_ACEOF
16832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16833 _ACEOF
16834
16835 fi
16836
16837 done
16838
16839
16840
16841 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16842 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16843 if test "${ac_cv_c_ipx_gnu+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     #ifdef HAVE_SYS_SOCKET_H
16854     # include <sys/socket.h>
16855     #endif
16856     #include <netipx/ipx.h>
16857 int
16858 main ()
16859 {
16860 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16861   ;
16862   return 0;
16863 }
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   ac_cv_c_ipx_gnu="yes"
16887 else
16888   echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 ac_cv_c_ipx_gnu="no"
16892 fi
16893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16894
16895 fi
16896 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16897 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16898 if test "$ac_cv_c_ipx_gnu" = "yes"
16899 then
16900
16901 cat >>confdefs.h <<\_ACEOF
16902 #define HAVE_IPX_GNU 1
16903 _ACEOF
16904
16905 fi
16906
16907 if test "$ac_cv_c_ipx_gnu" = "no"
16908 then
16909  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16910 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16911 if test "${ac_cv_c_ipx_linux+set}" = set; then
16912   echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914   cat >conftest.$ac_ext <<_ACEOF
16915 /* confdefs.h.  */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h.  */
16920 #include <sys/types.h>
16921      #ifdef HAVE_SYS_SOCKET_H
16922      # include <sys/socket.h>
16923      #endif
16924      #include <asm/types.h>
16925      #include <linux/ipx.h>
16926 int
16927 main ()
16928 {
16929 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16930   ;
16931   return 0;
16932 }
16933 _ACEOF
16934 rm -f conftest.$ac_objext
16935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16936   (eval $ac_compile) 2>conftest.er1
16937   ac_status=$?
16938   grep -v '^ *+' conftest.er1 >conftest.err
16939   rm -f conftest.er1
16940   cat conftest.err >&5
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); } &&
16943          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945   (eval $ac_try) 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; } &&
16949          { ac_try='test -s conftest.$ac_objext'
16950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951   (eval $ac_try) 2>&5
16952   ac_status=$?
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); }; }; then
16955   ac_cv_c_ipx_linux="yes"
16956 else
16957   echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16959
16960 ac_cv_c_ipx_linux="no"
16961 fi
16962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16963
16964 fi
16965 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16966 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16967   if test "$ac_cv_c_ipx_linux" = "yes"
16968   then
16969
16970 cat >>confdefs.h <<\_ACEOF
16971 #define HAVE_IPX_LINUX 1
16972 _ACEOF
16973
16974   fi
16975 fi
16976
16977
16978 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16979 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16980 if test "${ac_cv_c_const+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
16990 int
16991 main ()
16992 {
16993 /* FIXME: Include the comments suggested by Paul. */
16994 #ifndef __cplusplus
16995   /* Ultrix mips cc rejects this.  */
16996   typedef int charset[2];
16997   const charset x;
16998   /* SunOS 4.1.1 cc rejects this.  */
16999   char const *const *ccp;
17000   char **p;
17001   /* NEC SVR4.0.2 mips cc rejects this.  */
17002   struct point {int x, y;};
17003   static struct point const zero = {0,0};
17004   /* AIX XL C 1.02.0.0 rejects this.
17005      It does not let you subtract one const X* pointer from another in
17006      an arm of an if-expression whose if-part is not a constant
17007      expression */
17008   const char *g = "string";
17009   ccp = &g + (g ? g-g : 0);
17010   /* HPUX 7.0 cc rejects these. */
17011   ++ccp;
17012   p = (char**) ccp;
17013   ccp = (char const *const *) p;
17014   { /* SCO 3.2v4 cc rejects this.  */
17015     char *t;
17016     char const *s = 0 ? (char *) 0 : (char const *) 0;
17017
17018     *t++ = 0;
17019   }
17020   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17021     int x[] = {25, 17};
17022     const int *foo = &x[0];
17023     ++foo;
17024   }
17025   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17026     typedef const int *iptr;
17027     iptr p = 0;
17028     ++p;
17029   }
17030   { /* AIX XL C 1.02.0.0 rejects this saying
17031        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17032     struct s { int j; const int *ap[3]; };
17033     struct s *b; b->j = 5;
17034   }
17035   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17036     const int foo = 10;
17037   }
17038 #endif
17039
17040   ;
17041   return 0;
17042 }
17043 _ACEOF
17044 rm -f conftest.$ac_objext
17045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17046   (eval $ac_compile) 2>conftest.er1
17047   ac_status=$?
17048   grep -v '^ *+' conftest.er1 >conftest.err
17049   rm -f conftest.er1
17050   cat conftest.err >&5
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); } &&
17053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055   (eval $ac_try) 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); }; } &&
17059          { ac_try='test -s conftest.$ac_objext'
17060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061   (eval $ac_try) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; }; then
17065   ac_cv_c_const=yes
17066 else
17067   echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 ac_cv_c_const=no
17071 fi
17072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17073 fi
17074 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17075 echo "${ECHO_T}$ac_cv_c_const" >&6
17076 if test $ac_cv_c_const = no; then
17077
17078 cat >>confdefs.h <<\_ACEOF
17079 #define const
17080 _ACEOF
17081
17082 fi
17083
17084 echo "$as_me:$LINENO: checking for inline" >&5
17085 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17086 if test "${ac_cv_c_inline+set}" = set; then
17087   echo $ECHO_N "(cached) $ECHO_C" >&6
17088 else
17089   ac_cv_c_inline=no
17090 for ac_kw in inline __inline__ __inline; do
17091   cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h.  */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h.  */
17097 #ifndef __cplusplus
17098 typedef int foo_t;
17099 static $ac_kw foo_t static_foo () {return 0; }
17100 $ac_kw foo_t foo () {return 0; }
17101 #endif
17102
17103 _ACEOF
17104 rm -f conftest.$ac_objext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17106   (eval $ac_compile) 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } &&
17113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115   (eval $ac_try) 2>&5
17116   ac_status=$?
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); }; } &&
17119          { ac_try='test -s conftest.$ac_objext'
17120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121   (eval $ac_try) 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; }; then
17125   ac_cv_c_inline=$ac_kw; break
17126 else
17127   echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 fi
17131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17132 done
17133
17134 fi
17135 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17136 echo "${ECHO_T}$ac_cv_c_inline" >&6
17137
17138
17139 case $ac_cv_c_inline in
17140   inline | yes) ;;
17141   *)
17142     case $ac_cv_c_inline in
17143       no) ac_val=;;
17144       *) ac_val=$ac_cv_c_inline;;
17145     esac
17146     cat >>confdefs.h <<_ACEOF
17147 #ifndef __cplusplus
17148 #define inline $ac_val
17149 #endif
17150 _ACEOF
17151     ;;
17152 esac
17153
17154 echo "$as_me:$LINENO: checking for mode_t" >&5
17155 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17156 if test "${ac_cv_type_mode_t+set}" = set; then
17157   echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159   cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h.  */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h.  */
17165 $ac_includes_default
17166 int
17167 main ()
17168 {
17169 if ((mode_t *) 0)
17170   return 0;
17171 if (sizeof (mode_t))
17172   return 0;
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 rm -f conftest.$ac_objext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17179   (eval $ac_compile) 2>conftest.er1
17180   ac_status=$?
17181   grep -v '^ *+' conftest.er1 >conftest.err
17182   rm -f conftest.er1
17183   cat conftest.err >&5
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); } &&
17186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188   (eval $ac_try) 2>&5
17189   ac_status=$?
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); }; } &&
17192          { ac_try='test -s conftest.$ac_objext'
17193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194   (eval $ac_try) 2>&5
17195   ac_status=$?
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); }; }; then
17198   ac_cv_type_mode_t=yes
17199 else
17200   echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17202
17203 ac_cv_type_mode_t=no
17204 fi
17205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17206 fi
17207 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17208 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17209 if test $ac_cv_type_mode_t = yes; then
17210
17211 cat >>confdefs.h <<_ACEOF
17212 #define HAVE_MODE_T 1
17213 _ACEOF
17214
17215
17216 fi
17217 echo "$as_me:$LINENO: checking for off_t" >&5
17218 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17219 if test "${ac_cv_type_off_t+set}" = set; then
17220   echo $ECHO_N "(cached) $ECHO_C" >&6
17221 else
17222   cat >conftest.$ac_ext <<_ACEOF
17223 /* confdefs.h.  */
17224 _ACEOF
17225 cat confdefs.h >>conftest.$ac_ext
17226 cat >>conftest.$ac_ext <<_ACEOF
17227 /* end confdefs.h.  */
17228 $ac_includes_default
17229 int
17230 main ()
17231 {
17232 if ((off_t *) 0)
17233   return 0;
17234 if (sizeof (off_t))
17235   return 0;
17236   ;
17237   return 0;
17238 }
17239 _ACEOF
17240 rm -f conftest.$ac_objext
17241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17242   (eval $ac_compile) 2>conftest.er1
17243   ac_status=$?
17244   grep -v '^ *+' conftest.er1 >conftest.err
17245   rm -f conftest.er1
17246   cat conftest.err >&5
17247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248   (exit $ac_status); } &&
17249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251   (eval $ac_try) 2>&5
17252   ac_status=$?
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); }; } &&
17255          { ac_try='test -s conftest.$ac_objext'
17256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257   (eval $ac_try) 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; }; then
17261   ac_cv_type_off_t=yes
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 ac_cv_type_off_t=no
17267 fi
17268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17269 fi
17270 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17271 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17272 if test $ac_cv_type_off_t = yes; then
17273
17274 cat >>confdefs.h <<_ACEOF
17275 #define HAVE_OFF_T 1
17276 _ACEOF
17277
17278
17279 fi
17280 echo "$as_me:$LINENO: checking for pid_t" >&5
17281 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17282 if test "${ac_cv_type_pid_t+set}" = set; then
17283   echo $ECHO_N "(cached) $ECHO_C" >&6
17284 else
17285   cat >conftest.$ac_ext <<_ACEOF
17286 /* confdefs.h.  */
17287 _ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h.  */
17291 $ac_includes_default
17292 int
17293 main ()
17294 {
17295 if ((pid_t *) 0)
17296   return 0;
17297 if (sizeof (pid_t))
17298   return 0;
17299   ;
17300   return 0;
17301 }
17302 _ACEOF
17303 rm -f conftest.$ac_objext
17304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17305   (eval $ac_compile) 2>conftest.er1
17306   ac_status=$?
17307   grep -v '^ *+' conftest.er1 >conftest.err
17308   rm -f conftest.er1
17309   cat conftest.err >&5
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); } &&
17312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314   (eval $ac_try) 2>&5
17315   ac_status=$?
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); }; } &&
17318          { ac_try='test -s conftest.$ac_objext'
17319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320   (eval $ac_try) 2>&5
17321   ac_status=$?
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); }; }; then
17324   ac_cv_type_pid_t=yes
17325 else
17326   echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17328
17329 ac_cv_type_pid_t=no
17330 fi
17331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17332 fi
17333 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17334 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17335 if test $ac_cv_type_pid_t = yes; then
17336
17337 cat >>confdefs.h <<_ACEOF
17338 #define HAVE_PID_T 1
17339 _ACEOF
17340
17341
17342 fi
17343 echo "$as_me:$LINENO: checking for size_t" >&5
17344 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17345 if test "${ac_cv_type_size_t+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348   cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354 $ac_includes_default
17355 int
17356 main ()
17357 {
17358 if ((size_t *) 0)
17359   return 0;
17360 if (sizeof (size_t))
17361   return 0;
17362   ;
17363   return 0;
17364 }
17365 _ACEOF
17366 rm -f conftest.$ac_objext
17367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17368   (eval $ac_compile) 2>conftest.er1
17369   ac_status=$?
17370   grep -v '^ *+' conftest.er1 >conftest.err
17371   rm -f conftest.er1
17372   cat conftest.err >&5
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); } &&
17375          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377   (eval $ac_try) 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; } &&
17381          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17387   ac_cv_type_size_t=yes
17388 else
17389   echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392 ac_cv_type_size_t=no
17393 fi
17394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17395 fi
17396 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17397 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17398 if test $ac_cv_type_size_t = yes; then
17399
17400 cat >>confdefs.h <<_ACEOF
17401 #define HAVE_SIZE_T 1
17402 _ACEOF
17403
17404
17405 fi
17406 echo "$as_me:$LINENO: checking for ssize_t" >&5
17407 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17408 if test "${ac_cv_type_ssize_t+set}" = set; then
17409   echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411   cat >conftest.$ac_ext <<_ACEOF
17412 /* confdefs.h.  */
17413 _ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h.  */
17417 $ac_includes_default
17418 int
17419 main ()
17420 {
17421 if ((ssize_t *) 0)
17422   return 0;
17423 if (sizeof (ssize_t))
17424   return 0;
17425   ;
17426   return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17431   (eval $ac_compile) 2>conftest.er1
17432   ac_status=$?
17433   grep -v '^ *+' conftest.er1 >conftest.err
17434   rm -f conftest.er1
17435   cat conftest.err >&5
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); } &&
17438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440   (eval $ac_try) 2>&5
17441   ac_status=$?
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); }; } &&
17444          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17450   ac_cv_type_ssize_t=yes
17451 else
17452   echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17454
17455 ac_cv_type_ssize_t=no
17456 fi
17457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17458 fi
17459 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17460 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17461 if test $ac_cv_type_ssize_t = yes; then
17462
17463 cat >>confdefs.h <<_ACEOF
17464 #define HAVE_SSIZE_T 1
17465 _ACEOF
17466
17467
17468 fi
17469 echo "$as_me:$LINENO: checking for socklen_t" >&5
17470 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17471 if test "${ac_cv_type_socklen_t+set}" = set; then
17472   echo $ECHO_N "(cached) $ECHO_C" >&6
17473 else
17474   cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480 $ac_includes_default
17481 int
17482 main ()
17483 {
17484 if ((socklen_t *) 0)
17485   return 0;
17486 if (sizeof (socklen_t))
17487   return 0;
17488   ;
17489   return 0;
17490 }
17491 _ACEOF
17492 rm -f conftest.$ac_objext
17493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17494   (eval $ac_compile) 2>conftest.er1
17495   ac_status=$?
17496   grep -v '^ *+' conftest.er1 >conftest.err
17497   rm -f conftest.er1
17498   cat conftest.err >&5
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); } &&
17501          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503   (eval $ac_try) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); }; } &&
17507          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17513   ac_cv_type_socklen_t=yes
17514 else
17515   echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 ac_cv_type_socklen_t=no
17519 fi
17520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17521 fi
17522 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17523 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17524 if test $ac_cv_type_socklen_t = yes; then
17525
17526 cat >>confdefs.h <<_ACEOF
17527 #define HAVE_SOCKLEN_T 1
17528 _ACEOF
17529
17530
17531 fi
17532 echo "$as_me:$LINENO: checking for long long" >&5
17533 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17534 if test "${ac_cv_type_long_long+set}" = set; then
17535   echo $ECHO_N "(cached) $ECHO_C" >&6
17536 else
17537   cat >conftest.$ac_ext <<_ACEOF
17538 /* confdefs.h.  */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h.  */
17543 $ac_includes_default
17544 int
17545 main ()
17546 {
17547 if ((long long *) 0)
17548   return 0;
17549 if (sizeof (long long))
17550   return 0;
17551   ;
17552   return 0;
17553 }
17554 _ACEOF
17555 rm -f conftest.$ac_objext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17557   (eval $ac_compile) 2>conftest.er1
17558   ac_status=$?
17559   grep -v '^ *+' conftest.er1 >conftest.err
17560   rm -f conftest.er1
17561   cat conftest.err >&5
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); } &&
17564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17576   ac_cv_type_long_long=yes
17577 else
17578   echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 ac_cv_type_long_long=no
17582 fi
17583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17584 fi
17585 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17586 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17587 if test $ac_cv_type_long_long = yes; then
17588
17589 cat >>confdefs.h <<_ACEOF
17590 #define HAVE_LONG_LONG 1
17591 _ACEOF
17592
17593
17594 fi
17595 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17596 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17597 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17598   echo $ECHO_N "(cached) $ECHO_C" >&6
17599 else
17600   cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h.  */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h.  */
17606 $ac_includes_default
17607 int
17608 main ()
17609 {
17610 if ((fsblkcnt_t *) 0)
17611   return 0;
17612 if (sizeof (fsblkcnt_t))
17613   return 0;
17614   ;
17615   return 0;
17616 }
17617 _ACEOF
17618 rm -f conftest.$ac_objext
17619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17620   (eval $ac_compile) 2>conftest.er1
17621   ac_status=$?
17622   grep -v '^ *+' conftest.er1 >conftest.err
17623   rm -f conftest.er1
17624   cat conftest.err >&5
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); } &&
17627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; } &&
17633          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17639   ac_cv_type_fsblkcnt_t=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ac_cv_type_fsblkcnt_t=no
17645 fi
17646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17647 fi
17648 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17649 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17650 if test $ac_cv_type_fsblkcnt_t = yes; then
17651
17652 cat >>confdefs.h <<_ACEOF
17653 #define HAVE_FSBLKCNT_T 1
17654 _ACEOF
17655
17656
17657 fi
17658 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17659 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17660 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17661   echo $ECHO_N "(cached) $ECHO_C" >&6
17662 else
17663   cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h.  */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h.  */
17669 $ac_includes_default
17670 int
17671 main ()
17672 {
17673 if ((fsfilcnt_t *) 0)
17674   return 0;
17675 if (sizeof (fsfilcnt_t))
17676   return 0;
17677   ;
17678   return 0;
17679 }
17680 _ACEOF
17681 rm -f conftest.$ac_objext
17682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17683   (eval $ac_compile) 2>conftest.er1
17684   ac_status=$?
17685   grep -v '^ *+' conftest.er1 >conftest.err
17686   rm -f conftest.er1
17687   cat conftest.err >&5
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); } &&
17690          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692   (eval $ac_try) 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; } &&
17696          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17702   ac_cv_type_fsfilcnt_t=yes
17703 else
17704   echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707 ac_cv_type_fsfilcnt_t=no
17708 fi
17709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17710 fi
17711 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17712 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17713 if test $ac_cv_type_fsfilcnt_t = yes; then
17714
17715 cat >>confdefs.h <<_ACEOF
17716 #define HAVE_FSFILCNT_T 1
17717 _ACEOF
17718
17719
17720 fi
17721
17722
17723 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17724 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17725 if test "${wine_cv_linux_input_h+set}" = set; then
17726   echo $ECHO_N "(cached) $ECHO_C" >&6
17727 else
17728   cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h.  */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h.  */
17734
17735             #include <linux/input.h>
17736
17737 int
17738 main ()
17739 {
17740
17741             int foo = EVIOCGBIT(EV_ABS,42);
17742             int bar = BTN_PINKIE;
17743             int fortytwo = 42;
17744
17745   ;
17746   return 0;
17747 }
17748 _ACEOF
17749 rm -f conftest.$ac_objext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17751   (eval $ac_compile) 2>conftest.er1
17752   ac_status=$?
17753   grep -v '^ *+' conftest.er1 >conftest.err
17754   rm -f conftest.er1
17755   cat conftest.err >&5
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); } &&
17758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760   (eval $ac_try) 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; } &&
17764          { ac_try='test -s conftest.$ac_objext'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; }; then
17770   wine_cv_linux_input_h=yes
17771 else
17772   echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775 wine_cv_linux_input_h=no
17776 fi
17777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17778
17779 fi
17780 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17781 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17782     if test "$wine_cv_linux_input_h" = "yes"
17783     then
17784
17785 cat >>confdefs.h <<\_ACEOF
17786 #define HAVE_CORRECT_LINUXINPUT_H 1
17787 _ACEOF
17788
17789     fi
17790
17791
17792 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17793 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17794 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17795   echo $ECHO_N "(cached) $ECHO_C" >&6
17796 else
17797   cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h.  */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h.  */
17803
17804 #include <netdb.h>
17805
17806 int
17807 main ()
17808 {
17809
17810     char *name=NULL;
17811     struct hostent he;
17812     struct hostent *result;
17813     char *buf=NULL;
17814     int bufsize=0;
17815     int res,errnr;
17816     char *addr=NULL;
17817     int addrlen=0;
17818     int addrtype=0;
17819     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17820     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17821
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17828   (eval $ac_link) 2>conftest.er1
17829   ac_status=$?
17830   grep -v '^ *+' conftest.er1 >conftest.err
17831   rm -f conftest.er1
17832   cat conftest.err >&5
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); } &&
17835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837   (eval $ac_try) 2>&5
17838   ac_status=$?
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); }; } &&
17841          { ac_try='test -s conftest$ac_exeext'
17842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843   (eval $ac_try) 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; }; then
17847   wine_cv_linux_gethostbyname_r_6=yes
17848 else
17849   echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852 wine_cv_linux_gethostbyname_r_6=no
17853
17854 fi
17855 rm -f conftest.err conftest.$ac_objext \
17856       conftest$ac_exeext conftest.$ac_ext
17857
17858 fi
17859 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17860 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17861    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17862    then
17863
17864 cat >>confdefs.h <<\_ACEOF
17865 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17866 _ACEOF
17867
17868    fi
17869
17870 if test "$ac_cv_header_linux_joystick_h" = "yes"
17871 then
17872    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17873 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17874 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17875   echo $ECHO_N "(cached) $ECHO_C" >&6
17876 else
17877   cat >conftest.$ac_ext <<_ACEOF
17878 /* confdefs.h.  */
17879 _ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h.  */
17883
17884         #include <sys/ioctl.h>
17885         #include <linux/joystick.h>
17886
17887         struct js_event blub;
17888         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17889         #error "no 2.2 header"
17890         #endif
17891
17892 int
17893 main ()
17894 {
17895 /*empty*/
17896   ;
17897   return 0;
17898 }
17899 _ACEOF
17900 rm -f conftest.$ac_objext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17902   (eval $ac_compile) 2>conftest.er1
17903   ac_status=$?
17904   grep -v '^ *+' conftest.er1 >conftest.err
17905   rm -f conftest.er1
17906   cat conftest.err >&5
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); } &&
17909          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911   (eval $ac_try) 2>&5
17912   ac_status=$?
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); }; } &&
17915          { ac_try='test -s conftest.$ac_objext'
17916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917   (eval $ac_try) 2>&5
17918   ac_status=$?
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); }; }; then
17921   wine_cv_linux_joystick_22_api=yes
17922 else
17923   echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926 wine_cv_linux_joystick_22_api=no
17927 fi
17928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17929
17930 fi
17931 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17932 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17933    if test "$wine_cv_linux_joystick_22_api" = "yes"
17934    then
17935
17936 cat >>confdefs.h <<\_ACEOF
17937 #define HAVE_LINUX_22_JOYSTICK_API 1
17938 _ACEOF
17939
17940    fi
17941 fi
17942
17943
17944 if test "$ac_cv_header_sys_vfs_h" = "yes"
17945 then
17946     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17947 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17948 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17949   echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951   cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957
17958         #include <sys/types.h>
17959         #ifdef HAVE_SYS_PARAM_H
17960         # include <sys/param.h>
17961         #endif
17962         #include <sys/vfs.h>
17963
17964 int
17965 main ()
17966 {
17967
17968                 struct statfs stfs;
17969
17970                 memset(&stfs,0,sizeof(stfs));
17971
17972   ;
17973   return 0;
17974 }
17975 _ACEOF
17976 rm -f conftest.$ac_objext
17977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17978   (eval $ac_compile) 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } &&
17985          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987   (eval $ac_try) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); }; } &&
17991          { ac_try='test -s conftest.$ac_objext'
17992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993   (eval $ac_try) 2>&5
17994   ac_status=$?
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); }; }; then
17997   wine_cv_sys_vfs_has_statfs=yes
17998 else
17999   echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18001
18002 wine_cv_sys_vfs_has_statfs=no
18003
18004 fi
18005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18006
18007 fi
18008 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18009 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18010     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18011     then
18012
18013 cat >>confdefs.h <<\_ACEOF
18014 #define STATFS_DEFINED_BY_SYS_VFS 1
18015 _ACEOF
18016
18017     fi
18018 fi
18019
18020 if test "$ac_cv_header_sys_statfs_h" = "yes"
18021 then
18022     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18023 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18024 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18025   echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027   cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033
18034         #include <sys/types.h>
18035         #ifdef HAVE_SYS_PARAM_H
18036         # include <sys/param.h>
18037         #endif
18038         #include <sys/statfs.h>
18039
18040 int
18041 main ()
18042 {
18043
18044                 struct statfs stfs;
18045
18046   ;
18047   return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest.$ac_objext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18052   (eval $ac_compile) 2>conftest.er1
18053   ac_status=$?
18054   grep -v '^ *+' conftest.er1 >conftest.err
18055   rm -f conftest.er1
18056   cat conftest.err >&5
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); } &&
18059          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061   (eval $ac_try) 2>&5
18062   ac_status=$?
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); }; } &&
18065          { ac_try='test -s conftest.$ac_objext'
18066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067   (eval $ac_try) 2>&5
18068   ac_status=$?
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); }; }; then
18071   wine_cv_sys_statfs_has_statfs=yes
18072 else
18073   echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18075
18076 wine_cv_sys_statfs_has_statfs=no
18077
18078 fi
18079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18080
18081 fi
18082 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18083 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18084     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18085     then
18086
18087 cat >>confdefs.h <<\_ACEOF
18088 #define STATFS_DEFINED_BY_SYS_STATFS 1
18089 _ACEOF
18090
18091     fi
18092 fi
18093
18094 if test "$ac_cv_header_sys_mount_h" = "yes"
18095 then
18096     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18097 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18098 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18099   echo $ECHO_N "(cached) $ECHO_C" >&6
18100 else
18101   cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h.  */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h.  */
18107
18108         #include <sys/types.h>
18109         #ifdef HAVE_SYS_PARAM_H
18110         # include <sys/param.h>
18111         #endif
18112         #include <sys/mount.h>
18113
18114 int
18115 main ()
18116 {
18117
18118                 struct statfs stfs;
18119
18120   ;
18121   return 0;
18122 }
18123 _ACEOF
18124 rm -f conftest.$ac_objext
18125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18126   (eval $ac_compile) 2>conftest.er1
18127   ac_status=$?
18128   grep -v '^ *+' conftest.er1 >conftest.err
18129   rm -f conftest.er1
18130   cat conftest.err >&5
18131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132   (exit $ac_status); } &&
18133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135   (eval $ac_try) 2>&5
18136   ac_status=$?
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); }; } &&
18139          { ac_try='test -s conftest.$ac_objext'
18140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141   (eval $ac_try) 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; }; then
18145   wine_cv_sys_mount_has_statfs=yes
18146 else
18147   echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18149
18150 wine_cv_sys_mount_has_statfs=no
18151
18152 fi
18153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18154
18155 fi
18156 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18157 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18158     if test "$wine_cv_sys_mount_has_statfs" = "yes"
18159     then
18160
18161 cat >>confdefs.h <<\_ACEOF
18162 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18163 _ACEOF
18164
18165     fi
18166 fi
18167
18168
18169 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18170 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18171 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18172   echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174   cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180 #include <sys/types.h>
18181 #ifdef HAVE_SYS_PARAM_H
18182 # include <sys/param.h>
18183 #endif
18184 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18185 # include <sys/mount.h>
18186 #else
18187 # ifdef STATFS_DEFINED_BY_SYS_VFS
18188 #  include <sys/vfs.h>
18189 # else
18190 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18191 #   include <sys/statfs.h>
18192 #  endif
18193 # endif
18194 #endif
18195
18196 int
18197 main ()
18198 {
18199 static struct statfs ac_aggr;
18200 if (ac_aggr.f_bfree)
18201 return 0;
18202   ;
18203   return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208   (eval $ac_compile) 2>conftest.er1
18209   ac_status=$?
18210   grep -v '^ *+' conftest.er1 >conftest.err
18211   rm -f conftest.er1
18212   cat conftest.err >&5
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); } &&
18215          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217   (eval $ac_try) 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; } &&
18221          { ac_try='test -s conftest.$ac_objext'
18222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223   (eval $ac_try) 2>&5
18224   ac_status=$?
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); }; }; then
18227   ac_cv_member_struct_statfs_f_bfree=yes
18228 else
18229   echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18231
18232 cat >conftest.$ac_ext <<_ACEOF
18233 /* confdefs.h.  */
18234 _ACEOF
18235 cat confdefs.h >>conftest.$ac_ext
18236 cat >>conftest.$ac_ext <<_ACEOF
18237 /* end confdefs.h.  */
18238 #include <sys/types.h>
18239 #ifdef HAVE_SYS_PARAM_H
18240 # include <sys/param.h>
18241 #endif
18242 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18243 # include <sys/mount.h>
18244 #else
18245 # ifdef STATFS_DEFINED_BY_SYS_VFS
18246 #  include <sys/vfs.h>
18247 # else
18248 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18249 #   include <sys/statfs.h>
18250 #  endif
18251 # endif
18252 #endif
18253
18254 int
18255 main ()
18256 {
18257 static struct statfs ac_aggr;
18258 if (sizeof ac_aggr.f_bfree)
18259 return 0;
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 rm -f conftest.$ac_objext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266   (eval $ac_compile) 2>conftest.er1
18267   ac_status=$?
18268   grep -v '^ *+' conftest.er1 >conftest.err
18269   rm -f conftest.er1
18270   cat conftest.err >&5
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); } &&
18273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275   (eval $ac_try) 2>&5
18276   ac_status=$?
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); }; } &&
18279          { ac_try='test -s conftest.$ac_objext'
18280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281   (eval $ac_try) 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); }; }; then
18285   ac_cv_member_struct_statfs_f_bfree=yes
18286 else
18287   echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18289
18290 ac_cv_member_struct_statfs_f_bfree=no
18291 fi
18292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18293 fi
18294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18295 fi
18296 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18297 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18298 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18299
18300 cat >>confdefs.h <<_ACEOF
18301 #define HAVE_STRUCT_STATFS_F_BFREE 1
18302 _ACEOF
18303
18304
18305 fi
18306 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18307 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18308 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18309   echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311   cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h.  */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h.  */
18317 #include <sys/types.h>
18318 #ifdef HAVE_SYS_PARAM_H
18319 # include <sys/param.h>
18320 #endif
18321 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18322 # include <sys/mount.h>
18323 #else
18324 # ifdef STATFS_DEFINED_BY_SYS_VFS
18325 #  include <sys/vfs.h>
18326 # else
18327 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18328 #   include <sys/statfs.h>
18329 #  endif
18330 # endif
18331 #endif
18332
18333 int
18334 main ()
18335 {
18336 static struct statfs ac_aggr;
18337 if (ac_aggr.f_bavail)
18338 return 0;
18339   ;
18340   return 0;
18341 }
18342 _ACEOF
18343 rm -f conftest.$ac_objext
18344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18345   (eval $ac_compile) 2>conftest.er1
18346   ac_status=$?
18347   grep -v '^ *+' conftest.er1 >conftest.err
18348   rm -f conftest.er1
18349   cat conftest.err >&5
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); } &&
18352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354   (eval $ac_try) 2>&5
18355   ac_status=$?
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); }; } &&
18358          { ac_try='test -s conftest.$ac_objext'
18359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360   (eval $ac_try) 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; }; then
18364   ac_cv_member_struct_statfs_f_bavail=yes
18365 else
18366   echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18368
18369 cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h.  */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h.  */
18375 #include <sys/types.h>
18376 #ifdef HAVE_SYS_PARAM_H
18377 # include <sys/param.h>
18378 #endif
18379 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18380 # include <sys/mount.h>
18381 #else
18382 # ifdef STATFS_DEFINED_BY_SYS_VFS
18383 #  include <sys/vfs.h>
18384 # else
18385 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18386 #   include <sys/statfs.h>
18387 #  endif
18388 # endif
18389 #endif
18390
18391 int
18392 main ()
18393 {
18394 static struct statfs ac_aggr;
18395 if (sizeof ac_aggr.f_bavail)
18396 return 0;
18397   ;
18398   return 0;
18399 }
18400 _ACEOF
18401 rm -f conftest.$ac_objext
18402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18403   (eval $ac_compile) 2>conftest.er1
18404   ac_status=$?
18405   grep -v '^ *+' conftest.er1 >conftest.err
18406   rm -f conftest.er1
18407   cat conftest.err >&5
18408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409   (exit $ac_status); } &&
18410          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412   (eval $ac_try) 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; } &&
18416          { ac_try='test -s conftest.$ac_objext'
18417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418   (eval $ac_try) 2>&5
18419   ac_status=$?
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); }; }; then
18422   ac_cv_member_struct_statfs_f_bavail=yes
18423 else
18424   echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18426
18427 ac_cv_member_struct_statfs_f_bavail=no
18428 fi
18429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18430 fi
18431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18432 fi
18433 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18434 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18435 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18436
18437 cat >>confdefs.h <<_ACEOF
18438 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18439 _ACEOF
18440
18441
18442 fi
18443 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18444 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18445 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18446   echo $ECHO_N "(cached) $ECHO_C" >&6
18447 else
18448   cat >conftest.$ac_ext <<_ACEOF
18449 /* confdefs.h.  */
18450 _ACEOF
18451 cat confdefs.h >>conftest.$ac_ext
18452 cat >>conftest.$ac_ext <<_ACEOF
18453 /* end confdefs.h.  */
18454 #include <sys/types.h>
18455 #ifdef HAVE_SYS_PARAM_H
18456 # include <sys/param.h>
18457 #endif
18458 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18459 # include <sys/mount.h>
18460 #else
18461 # ifdef STATFS_DEFINED_BY_SYS_VFS
18462 #  include <sys/vfs.h>
18463 # else
18464 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18465 #   include <sys/statfs.h>
18466 #  endif
18467 # endif
18468 #endif
18469
18470 int
18471 main ()
18472 {
18473 static struct statfs ac_aggr;
18474 if (ac_aggr.f_frsize)
18475 return 0;
18476   ;
18477   return 0;
18478 }
18479 _ACEOF
18480 rm -f conftest.$ac_objext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18482   (eval $ac_compile) 2>conftest.er1
18483   ac_status=$?
18484   grep -v '^ *+' conftest.er1 >conftest.err
18485   rm -f conftest.er1
18486   cat conftest.err >&5
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); } &&
18489          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491   (eval $ac_try) 2>&5
18492   ac_status=$?
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); }; } &&
18495          { ac_try='test -s conftest.$ac_objext'
18496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497   (eval $ac_try) 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; }; then
18501   ac_cv_member_struct_statfs_f_frsize=yes
18502 else
18503   echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18505
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512 #include <sys/types.h>
18513 #ifdef HAVE_SYS_PARAM_H
18514 # include <sys/param.h>
18515 #endif
18516 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18517 # include <sys/mount.h>
18518 #else
18519 # ifdef STATFS_DEFINED_BY_SYS_VFS
18520 #  include <sys/vfs.h>
18521 # else
18522 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18523 #   include <sys/statfs.h>
18524 #  endif
18525 # endif
18526 #endif
18527
18528 int
18529 main ()
18530 {
18531 static struct statfs ac_aggr;
18532 if (sizeof ac_aggr.f_frsize)
18533 return 0;
18534   ;
18535   return 0;
18536 }
18537 _ACEOF
18538 rm -f conftest.$ac_objext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18540   (eval $ac_compile) 2>conftest.er1
18541   ac_status=$?
18542   grep -v '^ *+' conftest.er1 >conftest.err
18543   rm -f conftest.er1
18544   cat conftest.err >&5
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); } &&
18547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549   (eval $ac_try) 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); }; } &&
18553          { ac_try='test -s conftest.$ac_objext'
18554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555   (eval $ac_try) 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); }; }; then
18559   ac_cv_member_struct_statfs_f_frsize=yes
18560 else
18561   echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564 ac_cv_member_struct_statfs_f_frsize=no
18565 fi
18566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18567 fi
18568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18569 fi
18570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18571 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18572 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18573
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18576 _ACEOF
18577
18578
18579 fi
18580 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18581 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18582 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591 #include <sys/types.h>
18592 #ifdef HAVE_SYS_PARAM_H
18593 # include <sys/param.h>
18594 #endif
18595 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18596 # include <sys/mount.h>
18597 #else
18598 # ifdef STATFS_DEFINED_BY_SYS_VFS
18599 #  include <sys/vfs.h>
18600 # else
18601 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18602 #   include <sys/statfs.h>
18603 #  endif
18604 # endif
18605 #endif
18606
18607 int
18608 main ()
18609 {
18610 static struct statfs ac_aggr;
18611 if (ac_aggr.f_ffree)
18612 return 0;
18613   ;
18614   return 0;
18615 }
18616 _ACEOF
18617 rm -f conftest.$ac_objext
18618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18619   (eval $ac_compile) 2>conftest.er1
18620   ac_status=$?
18621   grep -v '^ *+' conftest.er1 >conftest.err
18622   rm -f conftest.er1
18623   cat conftest.err >&5
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); } &&
18626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628   (eval $ac_try) 2>&5
18629   ac_status=$?
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); }; } &&
18632          { ac_try='test -s conftest.$ac_objext'
18633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634   (eval $ac_try) 2>&5
18635   ac_status=$?
18636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); }; }; then
18638   ac_cv_member_struct_statfs_f_ffree=yes
18639 else
18640   echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642
18643 cat >conftest.$ac_ext <<_ACEOF
18644 /* confdefs.h.  */
18645 _ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h.  */
18649 #include <sys/types.h>
18650 #ifdef HAVE_SYS_PARAM_H
18651 # include <sys/param.h>
18652 #endif
18653 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18654 # include <sys/mount.h>
18655 #else
18656 # ifdef STATFS_DEFINED_BY_SYS_VFS
18657 #  include <sys/vfs.h>
18658 # else
18659 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18660 #   include <sys/statfs.h>
18661 #  endif
18662 # endif
18663 #endif
18664
18665 int
18666 main ()
18667 {
18668 static struct statfs ac_aggr;
18669 if (sizeof ac_aggr.f_ffree)
18670 return 0;
18671   ;
18672   return 0;
18673 }
18674 _ACEOF
18675 rm -f conftest.$ac_objext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18677   (eval $ac_compile) 2>conftest.er1
18678   ac_status=$?
18679   grep -v '^ *+' conftest.er1 >conftest.err
18680   rm -f conftest.er1
18681   cat conftest.err >&5
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); } &&
18684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686   (eval $ac_try) 2>&5
18687   ac_status=$?
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); }; } &&
18690          { ac_try='test -s conftest.$ac_objext'
18691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692   (eval $ac_try) 2>&5
18693   ac_status=$?
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); }; }; then
18696   ac_cv_member_struct_statfs_f_ffree=yes
18697 else
18698   echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18700
18701 ac_cv_member_struct_statfs_f_ffree=no
18702 fi
18703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18704 fi
18705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18706 fi
18707 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18708 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18709 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18710
18711 cat >>confdefs.h <<_ACEOF
18712 #define HAVE_STRUCT_STATFS_F_FFREE 1
18713 _ACEOF
18714
18715
18716 fi
18717 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18718 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18719 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18720   echo $ECHO_N "(cached) $ECHO_C" >&6
18721 else
18722   cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h.  */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h.  */
18728 #include <sys/types.h>
18729 #ifdef HAVE_SYS_PARAM_H
18730 # include <sys/param.h>
18731 #endif
18732 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18733 # include <sys/mount.h>
18734 #else
18735 # ifdef STATFS_DEFINED_BY_SYS_VFS
18736 #  include <sys/vfs.h>
18737 # else
18738 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18739 #   include <sys/statfs.h>
18740 #  endif
18741 # endif
18742 #endif
18743
18744 int
18745 main ()
18746 {
18747 static struct statfs ac_aggr;
18748 if (ac_aggr.f_favail)
18749 return 0;
18750   ;
18751   return 0;
18752 }
18753 _ACEOF
18754 rm -f conftest.$ac_objext
18755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18756   (eval $ac_compile) 2>conftest.er1
18757   ac_status=$?
18758   grep -v '^ *+' conftest.er1 >conftest.err
18759   rm -f conftest.er1
18760   cat conftest.err >&5
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } &&
18763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765   (eval $ac_try) 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; } &&
18769          { ac_try='test -s conftest.$ac_objext'
18770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771   (eval $ac_try) 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); }; }; then
18775   ac_cv_member_struct_statfs_f_favail=yes
18776 else
18777   echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18779
18780 cat >conftest.$ac_ext <<_ACEOF
18781 /* confdefs.h.  */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h.  */
18786 #include <sys/types.h>
18787 #ifdef HAVE_SYS_PARAM_H
18788 # include <sys/param.h>
18789 #endif
18790 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18791 # include <sys/mount.h>
18792 #else
18793 # ifdef STATFS_DEFINED_BY_SYS_VFS
18794 #  include <sys/vfs.h>
18795 # else
18796 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18797 #   include <sys/statfs.h>
18798 #  endif
18799 # endif
18800 #endif
18801
18802 int
18803 main ()
18804 {
18805 static struct statfs ac_aggr;
18806 if (sizeof ac_aggr.f_favail)
18807 return 0;
18808   ;
18809   return 0;
18810 }
18811 _ACEOF
18812 rm -f conftest.$ac_objext
18813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18814   (eval $ac_compile) 2>conftest.er1
18815   ac_status=$?
18816   grep -v '^ *+' conftest.er1 >conftest.err
18817   rm -f conftest.er1
18818   cat conftest.err >&5
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); } &&
18821          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823   (eval $ac_try) 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; } &&
18827          { ac_try='test -s conftest.$ac_objext'
18828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829   (eval $ac_try) 2>&5
18830   ac_status=$?
18831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832   (exit $ac_status); }; }; then
18833   ac_cv_member_struct_statfs_f_favail=yes
18834 else
18835   echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18837
18838 ac_cv_member_struct_statfs_f_favail=no
18839 fi
18840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18841 fi
18842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18843 fi
18844 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18845 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18846 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18847
18848 cat >>confdefs.h <<_ACEOF
18849 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18850 _ACEOF
18851
18852
18853 fi
18854 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18855 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18856 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18857   echo $ECHO_N "(cached) $ECHO_C" >&6
18858 else
18859   cat >conftest.$ac_ext <<_ACEOF
18860 /* confdefs.h.  */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h.  */
18865 #include <sys/types.h>
18866 #ifdef HAVE_SYS_PARAM_H
18867 # include <sys/param.h>
18868 #endif
18869 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18870 # include <sys/mount.h>
18871 #else
18872 # ifdef STATFS_DEFINED_BY_SYS_VFS
18873 #  include <sys/vfs.h>
18874 # else
18875 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18876 #   include <sys/statfs.h>
18877 #  endif
18878 # endif
18879 #endif
18880
18881 int
18882 main ()
18883 {
18884 static struct statfs ac_aggr;
18885 if (ac_aggr.f_namelen)
18886 return 0;
18887   ;
18888   return 0;
18889 }
18890 _ACEOF
18891 rm -f conftest.$ac_objext
18892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18893   (eval $ac_compile) 2>conftest.er1
18894   ac_status=$?
18895   grep -v '^ *+' conftest.er1 >conftest.err
18896   rm -f conftest.er1
18897   cat conftest.err >&5
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); } &&
18900          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902   (eval $ac_try) 2>&5
18903   ac_status=$?
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); }; } &&
18906          { ac_try='test -s conftest.$ac_objext'
18907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908   (eval $ac_try) 2>&5
18909   ac_status=$?
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); }; }; then
18912   ac_cv_member_struct_statfs_f_namelen=yes
18913 else
18914   echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18916
18917 cat >conftest.$ac_ext <<_ACEOF
18918 /* confdefs.h.  */
18919 _ACEOF
18920 cat confdefs.h >>conftest.$ac_ext
18921 cat >>conftest.$ac_ext <<_ACEOF
18922 /* end confdefs.h.  */
18923 #include <sys/types.h>
18924 #ifdef HAVE_SYS_PARAM_H
18925 # include <sys/param.h>
18926 #endif
18927 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18928 # include <sys/mount.h>
18929 #else
18930 # ifdef STATFS_DEFINED_BY_SYS_VFS
18931 #  include <sys/vfs.h>
18932 # else
18933 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18934 #   include <sys/statfs.h>
18935 #  endif
18936 # endif
18937 #endif
18938
18939 int
18940 main ()
18941 {
18942 static struct statfs ac_aggr;
18943 if (sizeof ac_aggr.f_namelen)
18944 return 0;
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 rm -f conftest.$ac_objext
18950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18951   (eval $ac_compile) 2>conftest.er1
18952   ac_status=$?
18953   grep -v '^ *+' conftest.er1 >conftest.err
18954   rm -f conftest.er1
18955   cat conftest.err >&5
18956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957   (exit $ac_status); } &&
18958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960   (eval $ac_try) 2>&5
18961   ac_status=$?
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); }; } &&
18964          { ac_try='test -s conftest.$ac_objext'
18965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966   (eval $ac_try) 2>&5
18967   ac_status=$?
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); }; }; then
18970   ac_cv_member_struct_statfs_f_namelen=yes
18971 else
18972   echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18974
18975 ac_cv_member_struct_statfs_f_namelen=no
18976 fi
18977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18978 fi
18979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18980 fi
18981 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18982 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18983 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18984
18985 cat >>confdefs.h <<_ACEOF
18986 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18987 _ACEOF
18988
18989
18990 fi
18991
18992
18993 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18994 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
18995 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18996   echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998   cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h.  */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h.  */
19004 #ifdef HAVE_SYS_STATVFS_H
19005 #include <sys/statvfs.h>
19006 #endif
19007
19008 int
19009 main ()
19010 {
19011 static struct statvfs ac_aggr;
19012 if (ac_aggr.f_blocks)
19013 return 0;
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19020   (eval $ac_compile) 2>conftest.er1
19021   ac_status=$?
19022   grep -v '^ *+' conftest.er1 >conftest.err
19023   rm -f conftest.er1
19024   cat conftest.err >&5
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } &&
19027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029   (eval $ac_try) 2>&5
19030   ac_status=$?
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); }; } &&
19033          { ac_try='test -s conftest.$ac_objext'
19034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035   (eval $ac_try) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; }; then
19039   ac_cv_member_struct_statvfs_f_blocks=yes
19040 else
19041   echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19043
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h.  */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h.  */
19050 #ifdef HAVE_SYS_STATVFS_H
19051 #include <sys/statvfs.h>
19052 #endif
19053
19054 int
19055 main ()
19056 {
19057 static struct statvfs ac_aggr;
19058 if (sizeof ac_aggr.f_blocks)
19059 return 0;
19060   ;
19061   return 0;
19062 }
19063 _ACEOF
19064 rm -f conftest.$ac_objext
19065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19066   (eval $ac_compile) 2>conftest.er1
19067   ac_status=$?
19068   grep -v '^ *+' conftest.er1 >conftest.err
19069   rm -f conftest.er1
19070   cat conftest.err >&5
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); } &&
19073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075   (eval $ac_try) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; } &&
19079          { ac_try='test -s conftest.$ac_objext'
19080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081   (eval $ac_try) 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; }; then
19085   ac_cv_member_struct_statvfs_f_blocks=yes
19086 else
19087   echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19089
19090 ac_cv_member_struct_statvfs_f_blocks=no
19091 fi
19092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19093 fi
19094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19095 fi
19096 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19097 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19098 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19099
19100 cat >>confdefs.h <<_ACEOF
19101 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19102 _ACEOF
19103
19104
19105 fi
19106
19107
19108 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19109 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19110 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19111   echo $ECHO_N "(cached) $ECHO_C" >&6
19112 else
19113   cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h.  */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h.  */
19119 #include <sys/types.h>
19120 #ifdef HAVE_SYS_SOCKET_H
19121 # include <sys/socket.h>
19122 #endif
19123 #ifdef HAVE_SYS_UN_H
19124 # include <sys/un.h>
19125 #endif
19126
19127 int
19128 main ()
19129 {
19130 static struct msghdr ac_aggr;
19131 if (ac_aggr.msg_accrights)
19132 return 0;
19133   ;
19134   return 0;
19135 }
19136 _ACEOF
19137 rm -f conftest.$ac_objext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19139   (eval $ac_compile) 2>conftest.er1
19140   ac_status=$?
19141   grep -v '^ *+' conftest.er1 >conftest.err
19142   rm -f conftest.er1
19143   cat conftest.err >&5
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); } &&
19146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148   (eval $ac_try) 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); }; } &&
19152          { ac_try='test -s conftest.$ac_objext'
19153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154   (eval $ac_try) 2>&5
19155   ac_status=$?
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); }; }; then
19158   ac_cv_member_struct_msghdr_msg_accrights=yes
19159 else
19160   echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19162
19163 cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h.  */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h.  */
19169 #include <sys/types.h>
19170 #ifdef HAVE_SYS_SOCKET_H
19171 # include <sys/socket.h>
19172 #endif
19173 #ifdef HAVE_SYS_UN_H
19174 # include <sys/un.h>
19175 #endif
19176
19177 int
19178 main ()
19179 {
19180 static struct msghdr ac_aggr;
19181 if (sizeof ac_aggr.msg_accrights)
19182 return 0;
19183   ;
19184   return 0;
19185 }
19186 _ACEOF
19187 rm -f conftest.$ac_objext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19189   (eval $ac_compile) 2>conftest.er1
19190   ac_status=$?
19191   grep -v '^ *+' conftest.er1 >conftest.err
19192   rm -f conftest.er1
19193   cat conftest.err >&5
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); } &&
19196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198   (eval $ac_try) 2>&5
19199   ac_status=$?
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); }; } &&
19202          { ac_try='test -s conftest.$ac_objext'
19203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204   (eval $ac_try) 2>&5
19205   ac_status=$?
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); }; }; then
19208   ac_cv_member_struct_msghdr_msg_accrights=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 ac_cv_member_struct_msghdr_msg_accrights=no
19214 fi
19215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19216 fi
19217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19218 fi
19219 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19220 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19221 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19222
19223 cat >>confdefs.h <<_ACEOF
19224 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19225 _ACEOF
19226
19227
19228 fi
19229 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19230 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19231 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19232   echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234   cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h.  */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h.  */
19240 #include <sys/types.h>
19241 #ifdef HAVE_SYS_SOCKET_H
19242 # include <sys/socket.h>
19243 #endif
19244 #ifdef HAVE_SYS_UN_H
19245 # include <sys/un.h>
19246 #endif
19247
19248 int
19249 main ()
19250 {
19251 static struct sockaddr ac_aggr;
19252 if (ac_aggr.sa_len)
19253 return 0;
19254   ;
19255   return 0;
19256 }
19257 _ACEOF
19258 rm -f conftest.$ac_objext
19259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260   (eval $ac_compile) 2>conftest.er1
19261   ac_status=$?
19262   grep -v '^ *+' conftest.er1 >conftest.err
19263   rm -f conftest.er1
19264   cat conftest.err >&5
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } &&
19267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269   (eval $ac_try) 2>&5
19270   ac_status=$?
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); }; } &&
19273          { ac_try='test -s conftest.$ac_objext'
19274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275   (eval $ac_try) 2>&5
19276   ac_status=$?
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); }; }; then
19279   ac_cv_member_struct_sockaddr_sa_len=yes
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h.  */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h.  */
19290 #include <sys/types.h>
19291 #ifdef HAVE_SYS_SOCKET_H
19292 # include <sys/socket.h>
19293 #endif
19294 #ifdef HAVE_SYS_UN_H
19295 # include <sys/un.h>
19296 #endif
19297
19298 int
19299 main ()
19300 {
19301 static struct sockaddr ac_aggr;
19302 if (sizeof ac_aggr.sa_len)
19303 return 0;
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 rm -f conftest.$ac_objext
19309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19310   (eval $ac_compile) 2>conftest.er1
19311   ac_status=$?
19312   grep -v '^ *+' conftest.er1 >conftest.err
19313   rm -f conftest.er1
19314   cat conftest.err >&5
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); } &&
19317          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319   (eval $ac_try) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; } &&
19323          { ac_try='test -s conftest.$ac_objext'
19324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325   (eval $ac_try) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; }; then
19329   ac_cv_member_struct_sockaddr_sa_len=yes
19330 else
19331   echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 ac_cv_member_struct_sockaddr_sa_len=no
19335 fi
19336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19337 fi
19338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19339 fi
19340 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19341 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19342 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19343
19344 cat >>confdefs.h <<_ACEOF
19345 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19346 _ACEOF
19347
19348
19349 fi
19350 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19351 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19352 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19353   echo $ECHO_N "(cached) $ECHO_C" >&6
19354 else
19355   cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h.  */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h.  */
19361 #include <sys/types.h>
19362 #ifdef HAVE_SYS_SOCKET_H
19363 # include <sys/socket.h>
19364 #endif
19365 #ifdef HAVE_SYS_UN_H
19366 # include <sys/un.h>
19367 #endif
19368
19369 int
19370 main ()
19371 {
19372 static struct sockaddr_un ac_aggr;
19373 if (ac_aggr.sun_len)
19374 return 0;
19375   ;
19376   return 0;
19377 }
19378 _ACEOF
19379 rm -f conftest.$ac_objext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381   (eval $ac_compile) 2>conftest.er1
19382   ac_status=$?
19383   grep -v '^ *+' conftest.er1 >conftest.err
19384   rm -f conftest.er1
19385   cat conftest.err >&5
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); } &&
19388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390   (eval $ac_try) 2>&5
19391   ac_status=$?
19392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); }; } &&
19394          { ac_try='test -s conftest.$ac_objext'
19395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396   (eval $ac_try) 2>&5
19397   ac_status=$?
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); }; }; then
19400   ac_cv_member_struct_sockaddr_un_sun_len=yes
19401 else
19402   echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19404
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h.  */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h.  */
19411 #include <sys/types.h>
19412 #ifdef HAVE_SYS_SOCKET_H
19413 # include <sys/socket.h>
19414 #endif
19415 #ifdef HAVE_SYS_UN_H
19416 # include <sys/un.h>
19417 #endif
19418
19419 int
19420 main ()
19421 {
19422 static struct sockaddr_un ac_aggr;
19423 if (sizeof ac_aggr.sun_len)
19424 return 0;
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext
19430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19431   (eval $ac_compile) 2>conftest.er1
19432   ac_status=$?
19433   grep -v '^ *+' conftest.er1 >conftest.err
19434   rm -f conftest.er1
19435   cat conftest.err >&5
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); } &&
19438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440   (eval $ac_try) 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); }; } &&
19444          { ac_try='test -s conftest.$ac_objext'
19445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446   (eval $ac_try) 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; }; then
19450   ac_cv_member_struct_sockaddr_un_sun_len=yes
19451 else
19452   echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19454
19455 ac_cv_member_struct_sockaddr_un_sun_len=no
19456 fi
19457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19458 fi
19459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19460 fi
19461 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19462 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19463 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19464
19465 cat >>confdefs.h <<_ACEOF
19466 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19467 _ACEOF
19468
19469
19470 fi
19471
19472
19473 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19474 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19475 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19476   echo $ECHO_N "(cached) $ECHO_C" >&6
19477 else
19478   cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h.  */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h.  */
19484 #include <signal.h>
19485
19486 int
19487 main ()
19488 {
19489 static siginfo_t ac_aggr;
19490 if (ac_aggr.si_fd)
19491 return 0;
19492   ;
19493   return 0;
19494 }
19495 _ACEOF
19496 rm -f conftest.$ac_objext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19498   (eval $ac_compile) 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } &&
19505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507   (eval $ac_try) 2>&5
19508   ac_status=$?
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); }; } &&
19511          { ac_try='test -s conftest.$ac_objext'
19512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513   (eval $ac_try) 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; }; then
19517   ac_cv_member_siginfo_t_si_fd=yes
19518 else
19519   echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522 cat >conftest.$ac_ext <<_ACEOF
19523 /* confdefs.h.  */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h.  */
19528 #include <signal.h>
19529
19530 int
19531 main ()
19532 {
19533 static siginfo_t ac_aggr;
19534 if (sizeof ac_aggr.si_fd)
19535 return 0;
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 rm -f conftest.$ac_objext
19541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19542   (eval $ac_compile) 2>conftest.er1
19543   ac_status=$?
19544   grep -v '^ *+' conftest.er1 >conftest.err
19545   rm -f conftest.er1
19546   cat conftest.err >&5
19547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548   (exit $ac_status); } &&
19549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551   (eval $ac_try) 2>&5
19552   ac_status=$?
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); }; } &&
19555          { ac_try='test -s conftest.$ac_objext'
19556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557   (eval $ac_try) 2>&5
19558   ac_status=$?
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; }; then
19561   ac_cv_member_siginfo_t_si_fd=yes
19562 else
19563   echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19565
19566 ac_cv_member_siginfo_t_si_fd=no
19567 fi
19568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19569 fi
19570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19571 fi
19572 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19573 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19574 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19575
19576 cat >>confdefs.h <<_ACEOF
19577 #define HAVE_SIGINFO_T_SI_FD 1
19578 _ACEOF
19579
19580
19581 fi
19582
19583
19584 echo "$as_me:$LINENO: checking for struct option.name" >&5
19585 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19586 if test "${ac_cv_member_struct_option_name+set}" = set; then
19587   echo $ECHO_N "(cached) $ECHO_C" >&6
19588 else
19589   cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h.  */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h.  */
19595 #ifdef HAVE_GETOPT_H
19596 #include <getopt.h>
19597 #endif
19598
19599 int
19600 main ()
19601 {
19602 static struct option ac_aggr;
19603 if (ac_aggr.name)
19604 return 0;
19605   ;
19606   return 0;
19607 }
19608 _ACEOF
19609 rm -f conftest.$ac_objext
19610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19611   (eval $ac_compile) 2>conftest.er1
19612   ac_status=$?
19613   grep -v '^ *+' conftest.er1 >conftest.err
19614   rm -f conftest.er1
19615   cat conftest.err >&5
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } &&
19618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620   (eval $ac_try) 2>&5
19621   ac_status=$?
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); }; } &&
19624          { ac_try='test -s conftest.$ac_objext'
19625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626   (eval $ac_try) 2>&5
19627   ac_status=$?
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); }; }; then
19630   ac_cv_member_struct_option_name=yes
19631 else
19632   echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19634
19635 cat >conftest.$ac_ext <<_ACEOF
19636 /* confdefs.h.  */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h.  */
19641 #ifdef HAVE_GETOPT_H
19642 #include <getopt.h>
19643 #endif
19644
19645 int
19646 main ()
19647 {
19648 static struct option ac_aggr;
19649 if (sizeof ac_aggr.name)
19650 return 0;
19651   ;
19652   return 0;
19653 }
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657   (eval $ac_compile) 2>conftest.er1
19658   ac_status=$?
19659   grep -v '^ *+' conftest.er1 >conftest.err
19660   rm -f conftest.er1
19661   cat conftest.err >&5
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); } &&
19664          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666   (eval $ac_try) 2>&5
19667   ac_status=$?
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); }; } &&
19670          { ac_try='test -s conftest.$ac_objext'
19671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672   (eval $ac_try) 2>&5
19673   ac_status=$?
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); }; }; then
19676   ac_cv_member_struct_option_name=yes
19677 else
19678   echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681 ac_cv_member_struct_option_name=no
19682 fi
19683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19684 fi
19685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19686 fi
19687 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19688 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19689 if test $ac_cv_member_struct_option_name = yes; then
19690
19691 cat >>confdefs.h <<_ACEOF
19692 #define HAVE_STRUCT_OPTION_NAME 1
19693 _ACEOF
19694
19695
19696 fi
19697
19698
19699 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19700 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19701 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19702   echo $ECHO_N "(cached) $ECHO_C" >&6
19703 else
19704   cat >conftest.$ac_ext <<_ACEOF
19705 /* confdefs.h.  */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h.  */
19710 $ac_includes_default
19711 int
19712 main ()
19713 {
19714 static struct stat ac_aggr;
19715 if (ac_aggr.st_blocks)
19716 return 0;
19717   ;
19718   return 0;
19719 }
19720 _ACEOF
19721 rm -f conftest.$ac_objext
19722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19723   (eval $ac_compile) 2>conftest.er1
19724   ac_status=$?
19725   grep -v '^ *+' conftest.er1 >conftest.err
19726   rm -f conftest.er1
19727   cat conftest.err >&5
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); } &&
19730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732   (eval $ac_try) 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; } &&
19736          { ac_try='test -s conftest.$ac_objext'
19737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738   (eval $ac_try) 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; }; then
19742   ac_cv_member_struct_stat_st_blocks=yes
19743 else
19744   echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753 $ac_includes_default
19754 int
19755 main ()
19756 {
19757 static struct stat ac_aggr;
19758 if (sizeof ac_aggr.st_blocks)
19759 return 0;
19760   ;
19761   return 0;
19762 }
19763 _ACEOF
19764 rm -f conftest.$ac_objext
19765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19766   (eval $ac_compile) 2>conftest.er1
19767   ac_status=$?
19768   grep -v '^ *+' conftest.er1 >conftest.err
19769   rm -f conftest.er1
19770   cat conftest.err >&5
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); } &&
19773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775   (eval $ac_try) 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); }; } &&
19779          { ac_try='test -s conftest.$ac_objext'
19780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781   (eval $ac_try) 2>&5
19782   ac_status=$?
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); }; }; then
19785   ac_cv_member_struct_stat_st_blocks=yes
19786 else
19787   echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 ac_cv_member_struct_stat_st_blocks=no
19791 fi
19792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19793 fi
19794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19795 fi
19796 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19797 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19798 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19799
19800 cat >>confdefs.h <<_ACEOF
19801 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19802 _ACEOF
19803
19804
19805 fi
19806
19807
19808
19809 case $host_cpu in
19810   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19811 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19812 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19813   echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815   cat >conftest.$ac_ext <<_ACEOF
19816 /* confdefs.h.  */
19817 _ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h.  */
19821 #ifndef __i386__
19822 yes
19823 #endif
19824 _ACEOF
19825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19826   $EGREP "yes" >/dev/null 2>&1; then
19827   ac_cv_cpp_def___i386__=yes
19828 else
19829   ac_cv_cpp_def___i386__=no
19830 fi
19831 rm -f conftest*
19832
19833 fi
19834 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19835 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19836 if test $ac_cv_cpp_def___i386__ = yes; then
19837   CFLAGS="$CFLAGS -D__i386__"
19838   LINTFLAGS="$LINTFLAGS -D__i386__"
19839 fi
19840  ;;
19841   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19842 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19843 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19844   echo $ECHO_N "(cached) $ECHO_C" >&6
19845 else
19846   cat >conftest.$ac_ext <<_ACEOF
19847 /* confdefs.h.  */
19848 _ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h.  */
19852 #ifndef __ALPHA__
19853 yes
19854 #endif
19855 _ACEOF
19856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19857   $EGREP "yes" >/dev/null 2>&1; then
19858   ac_cv_cpp_def___ALPHA__=yes
19859 else
19860   ac_cv_cpp_def___ALPHA__=no
19861 fi
19862 rm -f conftest*
19863
19864 fi
19865 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19866 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19867 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19868   CFLAGS="$CFLAGS -D__ALPHA__"
19869   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19870 fi
19871  ;;
19872   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19873 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19874 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19875   echo $ECHO_N "(cached) $ECHO_C" >&6
19876 else
19877   cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883 #ifndef __sparc__
19884 yes
19885 #endif
19886 _ACEOF
19887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19888   $EGREP "yes" >/dev/null 2>&1; then
19889   ac_cv_cpp_def___sparc__=yes
19890 else
19891   ac_cv_cpp_def___sparc__=no
19892 fi
19893 rm -f conftest*
19894
19895 fi
19896 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19897 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19898 if test $ac_cv_cpp_def___sparc__ = yes; then
19899   CFLAGS="$CFLAGS -D__sparc__"
19900   LINTFLAGS="$LINTFLAGS -D__sparc__"
19901 fi
19902  ;;
19903   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19904 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19905 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19906   echo $ECHO_N "(cached) $ECHO_C" >&6
19907 else
19908   cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 #ifndef __powerpc__
19915 yes
19916 #endif
19917 _ACEOF
19918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19919   $EGREP "yes" >/dev/null 2>&1; then
19920   ac_cv_cpp_def___powerpc__=yes
19921 else
19922   ac_cv_cpp_def___powerpc__=no
19923 fi
19924 rm -f conftest*
19925
19926 fi
19927 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19928 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19929 if test $ac_cv_cpp_def___powerpc__ = yes; then
19930   CFLAGS="$CFLAGS -D__powerpc__"
19931   LINTFLAGS="$LINTFLAGS -D__powerpc__"
19932 fi
19933  ;;
19934 esac
19935
19936 case $host_vendor in
19937   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19938 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19939 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942   cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h.  */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h.  */
19948 #ifndef __sun__
19949 yes
19950 #endif
19951 _ACEOF
19952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19953   $EGREP "yes" >/dev/null 2>&1; then
19954   ac_cv_cpp_def___sun__=yes
19955 else
19956   ac_cv_cpp_def___sun__=no
19957 fi
19958 rm -f conftest*
19959
19960 fi
19961 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19962 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19963 if test $ac_cv_cpp_def___sun__ = yes; then
19964   CFLAGS="$CFLAGS -D__sun__"
19965   LINTFLAGS="$LINTFLAGS -D__sun__"
19966 fi
19967  ;;
19968 esac
19969
19970
19971
19972
19973
19974           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19975
19976           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19977
19978           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19979
19980           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19981
19982           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19983
19984           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19985
19986           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19987
19988           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19989
19990           ac_config_commands="$ac_config_commands dlls/kernel/messages"
19991
19992           ac_config_commands="$ac_config_commands dlls/user/dde"
19993
19994           ac_config_commands="$ac_config_commands dlls/user/resources"
19995
19996           ac_config_commands="$ac_config_commands dlls/wineps/data"
19997
19998           ac_config_commands="$ac_config_commands include/wine"
19999
20000           ac_config_commands="$ac_config_commands misc"
20001
20002           ac_config_commands="$ac_config_commands programs/regedit/tests"
20003
20004           ac_config_commands="$ac_config_commands windows"
20005
20006
20007 MAKE_RULES=Make.rules
20008
20009
20010 MAKE_DLL_RULES=dlls/Makedll.rules
20011
20012
20013 MAKE_TEST_RULES=dlls/Maketest.rules
20014
20015
20016 MAKE_LIB_RULES=libs/Makelib.rules
20017
20018
20019 MAKE_PROG_RULES=programs/Makeprog.rules
20020
20021
20022                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               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/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/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"
20023
20024
20025 cat >confcache <<\_ACEOF
20026 # This file is a shell script that caches the results of configure
20027 # tests run on this system so they can be shared between configure
20028 # scripts and configure runs, see configure's option --config-cache.
20029 # It is not useful on other systems.  If it contains results you don't
20030 # want to keep, you may remove or edit it.
20031 #
20032 # config.status only pays attention to the cache file if you give it
20033 # the --recheck option to rerun configure.
20034 #
20035 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20036 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20037 # following values.
20038
20039 _ACEOF
20040
20041 # The following way of writing the cache mishandles newlines in values,
20042 # but we know of no workaround that is simple, portable, and efficient.
20043 # So, don't put newlines in cache variables' values.
20044 # Ultrix sh set writes to stderr and can't be redirected directly,
20045 # and sets the high bit in the cache file unless we assign to the vars.
20046 {
20047   (set) 2>&1 |
20048     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20049     *ac_space=\ *)
20050       # `set' does not quote correctly, so add quotes (double-quote
20051       # substitution turns \\\\ into \\, and sed turns \\ into \).
20052       sed -n \
20053         "s/'/'\\\\''/g;
20054           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20055       ;;
20056     *)
20057       # `set' quotes correctly as required by POSIX, so do not add quotes.
20058       sed -n \
20059         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20060       ;;
20061     esac;
20062 } |
20063   sed '
20064      t clear
20065      : clear
20066      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20067      t end
20068      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20069      : end' >>confcache
20070 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20071   if test -w $cache_file; then
20072     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20073     cat confcache >$cache_file
20074   else
20075     echo "not updating unwritable cache $cache_file"
20076   fi
20077 fi
20078 rm -f confcache
20079
20080 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20081 # Let make expand exec_prefix.
20082 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20083
20084 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20085 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20086 # trailing colons and then remove the whole line if VPATH becomes empty
20087 # (actually we leave an empty line to preserve line numbers).
20088 if test "x$srcdir" = x.; then
20089   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20090 s/:*\$(srcdir):*/:/;
20091 s/:*\${srcdir}:*/:/;
20092 s/:*@srcdir@:*/:/;
20093 s/^\([^=]*=[     ]*\):*/\1/;
20094 s/:*$//;
20095 s/^[^=]*=[       ]*$//;
20096 }'
20097 fi
20098
20099 DEFS=-DHAVE_CONFIG_H
20100
20101 ac_libobjs=
20102 ac_ltlibobjs=
20103 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20104   # 1. Remove the extension, and $U if already installed.
20105   ac_i=`echo "$ac_i" |
20106          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20107   # 2. Add them.
20108   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20109   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20110 done
20111 LIBOBJS=$ac_libobjs
20112
20113 LTLIBOBJS=$ac_ltlibobjs
20114
20115
20116
20117 : ${CONFIG_STATUS=./config.status}
20118 ac_clean_files_save=$ac_clean_files
20119 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20120 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20121 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20122 cat >$CONFIG_STATUS <<_ACEOF
20123 #! $SHELL
20124 # Generated by $as_me.
20125 # Run this file to recreate the current configuration.
20126 # Compiler output produced by configure, useful for debugging
20127 # configure, is in config.log if it exists.
20128
20129 debug=false
20130 ac_cs_recheck=false
20131 ac_cs_silent=false
20132 SHELL=\${CONFIG_SHELL-$SHELL}
20133 _ACEOF
20134
20135 cat >>$CONFIG_STATUS <<\_ACEOF
20136 ## --------------------- ##
20137 ## M4sh Initialization.  ##
20138 ## --------------------- ##
20139
20140 # Be Bourne compatible
20141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20142   emulate sh
20143   NULLCMD=:
20144   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20145   # is contrary to our usage.  Disable this feature.
20146   alias -g '${1+"$@"}'='"$@"'
20147 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20148   set -o posix
20149 fi
20150 DUALCASE=1; export DUALCASE # for MKS sh
20151
20152 # Support unset when possible.
20153 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20154   as_unset=unset
20155 else
20156   as_unset=false
20157 fi
20158
20159
20160 # Work around bugs in pre-3.0 UWIN ksh.
20161 $as_unset ENV MAIL MAILPATH
20162 PS1='$ '
20163 PS2='> '
20164 PS4='+ '
20165
20166 # NLS nuisances.
20167 for as_var in \
20168   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20169   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20170   LC_TELEPHONE LC_TIME
20171 do
20172   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20173     eval $as_var=C; export $as_var
20174   else
20175     $as_unset $as_var
20176   fi
20177 done
20178
20179 # Required to use basename.
20180 if expr a : '\(a\)' >/dev/null 2>&1; then
20181   as_expr=expr
20182 else
20183   as_expr=false
20184 fi
20185
20186 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20187   as_basename=basename
20188 else
20189   as_basename=false
20190 fi
20191
20192
20193 # Name of the executable.
20194 as_me=`$as_basename "$0" ||
20195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20196          X"$0" : 'X\(//\)$' \| \
20197          X"$0" : 'X\(/\)$' \| \
20198          .     : '\(.\)' 2>/dev/null ||
20199 echo X/"$0" |
20200     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20201           /^X\/\(\/\/\)$/{ s//\1/; q; }
20202           /^X\/\(\/\).*/{ s//\1/; q; }
20203           s/.*/./; q'`
20204
20205
20206 # PATH needs CR, and LINENO needs CR and PATH.
20207 # Avoid depending upon Character Ranges.
20208 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20209 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20210 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20211 as_cr_digits='0123456789'
20212 as_cr_alnum=$as_cr_Letters$as_cr_digits
20213
20214 # The user is always right.
20215 if test "${PATH_SEPARATOR+set}" != set; then
20216   echo "#! /bin/sh" >conf$$.sh
20217   echo  "exit 0"   >>conf$$.sh
20218   chmod +x conf$$.sh
20219   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20220     PATH_SEPARATOR=';'
20221   else
20222     PATH_SEPARATOR=:
20223   fi
20224   rm -f conf$$.sh
20225 fi
20226
20227
20228   as_lineno_1=$LINENO
20229   as_lineno_2=$LINENO
20230   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20231   test "x$as_lineno_1" != "x$as_lineno_2" &&
20232   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20233   # Find who we are.  Look in the path if we contain no path at all
20234   # relative or not.
20235   case $0 in
20236     *[\\/]* ) as_myself=$0 ;;
20237     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20238 for as_dir in $PATH
20239 do
20240   IFS=$as_save_IFS
20241   test -z "$as_dir" && as_dir=.
20242   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20243 done
20244
20245        ;;
20246   esac
20247   # We did not find ourselves, most probably we were run as `sh COMMAND'
20248   # in which case we are not to be found in the path.
20249   if test "x$as_myself" = x; then
20250     as_myself=$0
20251   fi
20252   if test ! -f "$as_myself"; then
20253     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20254 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20255    { (exit 1); exit 1; }; }
20256   fi
20257   case $CONFIG_SHELL in
20258   '')
20259     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20260 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20261 do
20262   IFS=$as_save_IFS
20263   test -z "$as_dir" && as_dir=.
20264   for as_base in sh bash ksh sh5; do
20265          case $as_dir in
20266          /*)
20267            if ("$as_dir/$as_base" -c '
20268   as_lineno_1=$LINENO
20269   as_lineno_2=$LINENO
20270   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20271   test "x$as_lineno_1" != "x$as_lineno_2" &&
20272   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20273              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20274              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20275              CONFIG_SHELL=$as_dir/$as_base
20276              export CONFIG_SHELL
20277              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20278            fi;;
20279          esac
20280        done
20281 done
20282 ;;
20283   esac
20284
20285   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20286   # uniformly replaced by the line number.  The first 'sed' inserts a
20287   # line-number line before each line; the second 'sed' does the real
20288   # work.  The second script uses 'N' to pair each line-number line
20289   # with the numbered line, and appends trailing '-' during
20290   # substitution so that $LINENO is not a special case at line end.
20291   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20292   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20293   sed '=' <$as_myself |
20294     sed '
20295       N
20296       s,$,-,
20297       : loop
20298       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20299       t loop
20300       s,-$,,
20301       s,^['$as_cr_digits']*\n,,
20302     ' >$as_me.lineno &&
20303   chmod +x $as_me.lineno ||
20304     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20305 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20306    { (exit 1); exit 1; }; }
20307
20308   # Don't try to exec as it changes $[0], causing all sort of problems
20309   # (the dirname of $[0] is not the place where we might find the
20310   # original and so on.  Autoconf is especially sensible to this).
20311   . ./$as_me.lineno
20312   # Exit status is that of the last command.
20313   exit
20314 }
20315
20316
20317 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20318   *c*,-n*) ECHO_N= ECHO_C='
20319 ' ECHO_T='      ' ;;
20320   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20321   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20322 esac
20323
20324 if expr a : '\(a\)' >/dev/null 2>&1; then
20325   as_expr=expr
20326 else
20327   as_expr=false
20328 fi
20329
20330 rm -f conf$$ conf$$.exe conf$$.file
20331 echo >conf$$.file
20332 if ln -s conf$$.file conf$$ 2>/dev/null; then
20333   # We could just check for DJGPP; but this test a) works b) is more generic
20334   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20335   if test -f conf$$.exe; then
20336     # Don't use ln at all; we don't have any links
20337     as_ln_s='cp -p'
20338   else
20339     as_ln_s='ln -s'
20340   fi
20341 elif ln conf$$.file conf$$ 2>/dev/null; then
20342   as_ln_s=ln
20343 else
20344   as_ln_s='cp -p'
20345 fi
20346 rm -f conf$$ conf$$.exe conf$$.file
20347
20348 if mkdir -p . 2>/dev/null; then
20349   as_mkdir_p=:
20350 else
20351   test -d ./-p && rmdir ./-p
20352   as_mkdir_p=false
20353 fi
20354
20355 as_executable_p="test -f"
20356
20357 # Sed expression to map a string onto a valid CPP name.
20358 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20359
20360 # Sed expression to map a string onto a valid variable name.
20361 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20362
20363
20364 # IFS
20365 # We need space, tab and new line, in precisely that order.
20366 as_nl='
20367 '
20368 IFS="   $as_nl"
20369
20370 # CDPATH.
20371 $as_unset CDPATH
20372
20373 exec 6>&1
20374
20375 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20376 # report actual input values of CONFIG_FILES etc. instead of their
20377 # values after options handling.  Logging --version etc. is OK.
20378 exec 5>>config.log
20379 {
20380   echo
20381   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20382 ## Running $as_me. ##
20383 _ASBOX
20384 } >&5
20385 cat >&5 <<_CSEOF
20386
20387 This file was extended by Wine $as_me 20040813, which was
20388 generated by GNU Autoconf 2.59.  Invocation command line was
20389
20390   CONFIG_FILES    = $CONFIG_FILES
20391   CONFIG_HEADERS  = $CONFIG_HEADERS
20392   CONFIG_LINKS    = $CONFIG_LINKS
20393   CONFIG_COMMANDS = $CONFIG_COMMANDS
20394   $ $0 $@
20395
20396 _CSEOF
20397 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20398 echo >&5
20399 _ACEOF
20400
20401 # Files that config.status was made for.
20402 if test -n "$ac_config_files"; then
20403   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20404 fi
20405
20406 if test -n "$ac_config_headers"; then
20407   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20408 fi
20409
20410 if test -n "$ac_config_links"; then
20411   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20412 fi
20413
20414 if test -n "$ac_config_commands"; then
20415   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20416 fi
20417
20418 cat >>$CONFIG_STATUS <<\_ACEOF
20419
20420 ac_cs_usage="\
20421 \`$as_me' instantiates files from templates according to the
20422 current configuration.
20423
20424 Usage: $0 [OPTIONS] [FILE]...
20425
20426   -h, --help       print this help, then exit
20427   -V, --version    print version number, then exit
20428   -q, --quiet      do not print progress messages
20429   -d, --debug      don't remove temporary files
20430       --recheck    update $as_me by reconfiguring in the same conditions
20431   --file=FILE[:TEMPLATE]
20432                    instantiate the configuration file FILE
20433   --header=FILE[:TEMPLATE]
20434                    instantiate the configuration header FILE
20435
20436 Configuration files:
20437 $config_files
20438
20439 Configuration headers:
20440 $config_headers
20441
20442 Configuration commands:
20443 $config_commands
20444
20445 Report bugs to <bug-autoconf@gnu.org>."
20446 _ACEOF
20447
20448 cat >>$CONFIG_STATUS <<_ACEOF
20449 ac_cs_version="\\
20450 Wine config.status 20040813
20451 configured by $0, generated by GNU Autoconf 2.59,
20452   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20453
20454 Copyright (C) 2003 Free Software Foundation, Inc.
20455 This config.status script is free software; the Free Software Foundation
20456 gives unlimited permission to copy, distribute and modify it."
20457 srcdir=$srcdir
20458 INSTALL="$INSTALL"
20459 _ACEOF
20460
20461 cat >>$CONFIG_STATUS <<\_ACEOF
20462 # If no file are specified by the user, then we need to provide default
20463 # value.  By we need to know if files were specified by the user.
20464 ac_need_defaults=:
20465 while test $# != 0
20466 do
20467   case $1 in
20468   --*=*)
20469     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20470     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20471     ac_shift=:
20472     ;;
20473   -*)
20474     ac_option=$1
20475     ac_optarg=$2
20476     ac_shift=shift
20477     ;;
20478   *) # This is not an option, so the user has probably given explicit
20479      # arguments.
20480      ac_option=$1
20481      ac_need_defaults=false;;
20482   esac
20483
20484   case $ac_option in
20485   # Handling of the options.
20486 _ACEOF
20487 cat >>$CONFIG_STATUS <<\_ACEOF
20488   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20489     ac_cs_recheck=: ;;
20490   --version | --vers* | -V )
20491     echo "$ac_cs_version"; exit 0 ;;
20492   --he | --h)
20493     # Conflict between --help and --header
20494     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20495 Try \`$0 --help' for more information." >&5
20496 echo "$as_me: error: ambiguous option: $1
20497 Try \`$0 --help' for more information." >&2;}
20498    { (exit 1); exit 1; }; };;
20499   --help | --hel | -h )
20500     echo "$ac_cs_usage"; exit 0 ;;
20501   --debug | --d* | -d )
20502     debug=: ;;
20503   --file | --fil | --fi | --f )
20504     $ac_shift
20505     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20506     ac_need_defaults=false;;
20507   --header | --heade | --head | --hea )
20508     $ac_shift
20509     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20510     ac_need_defaults=false;;
20511   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20512   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20513     ac_cs_silent=: ;;
20514
20515   # This is an error.
20516   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20517 Try \`$0 --help' for more information." >&5
20518 echo "$as_me: error: unrecognized option: $1
20519 Try \`$0 --help' for more information." >&2;}
20520    { (exit 1); exit 1; }; } ;;
20521
20522   *) ac_config_targets="$ac_config_targets $1" ;;
20523
20524   esac
20525   shift
20526 done
20527
20528 ac_configure_extra_args=
20529
20530 if $ac_cs_silent; then
20531   exec 6>/dev/null
20532   ac_configure_extra_args="$ac_configure_extra_args --silent"
20533 fi
20534
20535 _ACEOF
20536 cat >>$CONFIG_STATUS <<_ACEOF
20537 if \$ac_cs_recheck; then
20538   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20539   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20540 fi
20541
20542 _ACEOF
20543
20544
20545
20546
20547
20548 cat >>$CONFIG_STATUS <<\_ACEOF
20549 for ac_config_target in $ac_config_targets
20550 do
20551   case "$ac_config_target" in
20552   # Handling of arguments.
20553   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20554   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20555   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20556   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20557   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20558   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20559   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20560   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20561   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20562   "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20563   "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20564   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20565   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20566   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20567   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20568   "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20569   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20570   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20571   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20572   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20573   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20574   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20575   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20576   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20577   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20578   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20579   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20580   "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20581   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20582   "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20583   "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20584   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20585   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20586   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20587   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20588   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20589   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20590   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20591   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20592   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20593   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20594   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20595   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20596   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20597   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20598   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20599   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20600   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20601   "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20602   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20603   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20604   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20605   "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20606   "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20607   "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20608   "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20609   "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20610   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20611   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20612   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20613   "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20614   "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20615   "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20616   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20617   "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20618   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20619   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20620   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20621   "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20622   "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20623   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20624   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20625   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20626   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20627   "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20628   "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20629   "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20630   "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20631   "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20632   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20633   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20634   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20635   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20636   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20637   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20638   "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20639   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20640   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20641   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20642   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20643   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20644   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20645   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20646   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20647   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20648   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20649   "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20650   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20651   "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20652   "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20653   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20654   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20655   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20656   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20657   "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20658   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20659   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20660   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20661   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20662   "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20663   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20664   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20665   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20666   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20667   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20668   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20669   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20670   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20671   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20672   "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20673   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20674   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20675   "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20676   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20677   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20678   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20679   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20680   "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20681   "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20682   "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20683   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20684   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20685   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20686   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20687   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20688   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20689   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20690   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20691   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20692   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20693   "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20694   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20695   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20696   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20697   "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20698   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20699   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20700   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20701   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20702   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20703   "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20704   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20705   "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20706   "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20707   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20708   "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20709   "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20710   "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20711   "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20712   "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20713   "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20714   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20715   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20716   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20717   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20718   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20719   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20720   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20721   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20722   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20723   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20724   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20725   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20726   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20727   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20728   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20729   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20730   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20731   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20732   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20733   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20734   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20735   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20736   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20737   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20738   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20739   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20740   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20741   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20742   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20743   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20744   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20745   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20746   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20747   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20748   "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20749   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20750   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20751   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20752   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20753   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20754   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20755   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20756   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20757   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20758   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20759   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20760   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20761   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20762   "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20763   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20764   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20765   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20766   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20767   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20768   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20769   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20770   "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20771   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20772   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20773   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20774   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20775   "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20776   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20777   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20778   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20779   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20780   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20781   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20782   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20783   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20784   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20785   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20786   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20787   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20788   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20789   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20790   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20791   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20792   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20793   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20794   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20795   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20796   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20797   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20798   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20799   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20800   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20801   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20802   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20803   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20804   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20805   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20806   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20807   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20808   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20809   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20810   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20811   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20812   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20813   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20815    { (exit 1); exit 1; }; };;
20816   esac
20817 done
20818
20819 # If the user did not use the arguments to specify the items to instantiate,
20820 # then the envvar interface is used.  Set only those that are not.
20821 # We use the long form for the default assignment because of an extremely
20822 # bizarre bug on SunOS 4.1.3.
20823 if $ac_need_defaults; then
20824   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20825   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20826   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20827 fi
20828
20829 # Have a temporary directory for convenience.  Make it in the build tree
20830 # simply because there is no reason to put it here, and in addition,
20831 # creating and moving files from /tmp can sometimes cause problems.
20832 # Create a temporary directory, and hook for its removal unless debugging.
20833 $debug ||
20834 {
20835   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20836   trap '{ (exit 1); exit 1; }' 1 2 13 15
20837 }
20838
20839 # Create a (secure) tmp directory for tmp files.
20840
20841 {
20842   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20843   test -n "$tmp" && test -d "$tmp"
20844 }  ||
20845 {
20846   tmp=./confstat$$-$RANDOM
20847   (umask 077 && mkdir $tmp)
20848 } ||
20849 {
20850    echo "$me: cannot create a temporary directory in ." >&2
20851    { (exit 1); exit 1; }
20852 }
20853
20854 _ACEOF
20855
20856 cat >>$CONFIG_STATUS <<_ACEOF
20857
20858 #
20859 # CONFIG_FILES section.
20860 #
20861
20862 # No need to generate the scripts if there are no CONFIG_FILES.
20863 # This happens for instance when ./config.status config.h
20864 if test -n "\$CONFIG_FILES"; then
20865   # Protect against being on the right side of a sed subst in config.status.
20866   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20867    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20868 s,@SHELL@,$SHELL,;t t
20869 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20870 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20871 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20872 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20873 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20874 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20875 s,@exec_prefix@,$exec_prefix,;t t
20876 s,@prefix@,$prefix,;t t
20877 s,@program_transform_name@,$program_transform_name,;t t
20878 s,@bindir@,$bindir,;t t
20879 s,@sbindir@,$sbindir,;t t
20880 s,@libexecdir@,$libexecdir,;t t
20881 s,@datadir@,$datadir,;t t
20882 s,@sysconfdir@,$sysconfdir,;t t
20883 s,@sharedstatedir@,$sharedstatedir,;t t
20884 s,@localstatedir@,$localstatedir,;t t
20885 s,@libdir@,$libdir,;t t
20886 s,@includedir@,$includedir,;t t
20887 s,@oldincludedir@,$oldincludedir,;t t
20888 s,@infodir@,$infodir,;t t
20889 s,@mandir@,$mandir,;t t
20890 s,@build_alias@,$build_alias,;t t
20891 s,@host_alias@,$host_alias,;t t
20892 s,@target_alias@,$target_alias,;t t
20893 s,@DEFS@,$DEFS,;t t
20894 s,@ECHO_C@,$ECHO_C,;t t
20895 s,@ECHO_N@,$ECHO_N,;t t
20896 s,@ECHO_T@,$ECHO_T,;t t
20897 s,@LIBS@,$LIBS,;t t
20898 s,@WIN16_FILES@,$WIN16_FILES,;t t
20899 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20900 s,@build@,$build,;t t
20901 s,@build_cpu@,$build_cpu,;t t
20902 s,@build_vendor@,$build_vendor,;t t
20903 s,@build_os@,$build_os,;t t
20904 s,@host@,$host,;t t
20905 s,@host_cpu@,$host_cpu,;t t
20906 s,@host_vendor@,$host_vendor,;t t
20907 s,@host_os@,$host_os,;t t
20908 s,@SET_MAKE@,$SET_MAKE,;t t
20909 s,@CC@,$CC,;t t
20910 s,@CFLAGS@,$CFLAGS,;t t
20911 s,@LDFLAGS@,$LDFLAGS,;t t
20912 s,@CPPFLAGS@,$CPPFLAGS,;t t
20913 s,@ac_ct_CC@,$ac_ct_CC,;t t
20914 s,@EXEEXT@,$EXEEXT,;t t
20915 s,@OBJEXT@,$OBJEXT,;t t
20916 s,@CXX@,$CXX,;t t
20917 s,@CXXFLAGS@,$CXXFLAGS,;t t
20918 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20919 s,@CPPBIN@,$CPPBIN,;t t
20920 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20921 s,@TOOLSDIR@,$TOOLSDIR,;t t
20922 s,@CPP@,$CPP,;t t
20923 s,@X_CFLAGS@,$X_CFLAGS,;t t
20924 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20925 s,@X_LIBS@,$X_LIBS,;t t
20926 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20927 s,@LEX@,$LEX,;t t
20928 s,@LEXLIB@,$LEXLIB,;t t
20929 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20930 s,@XLEX@,$XLEX,;t t
20931 s,@BISON@,$BISON,;t t
20932 s,@AS@,$AS,;t t
20933 s,@ac_ct_AS@,$ac_ct_AS,;t t
20934 s,@LD@,$LD,;t t
20935 s,@ac_ct_LD@,$ac_ct_LD,;t t
20936 s,@AR@,$AR,;t t
20937 s,@ac_ct_AR@,$ac_ct_AR,;t t
20938 s,@RANLIB@,$RANLIB,;t t
20939 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20940 s,@STRIP@,$STRIP,;t t
20941 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20942 s,@WINDRES@,$WINDRES,;t t
20943 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20944 s,@LN_S@,$LN_S,;t t
20945 s,@LN@,$LN,;t t
20946 s,@EGREP@,$EGREP,;t t
20947 s,@LDCONFIG@,$LDCONFIG,;t t
20948 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20949 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20950 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20951 s,@LINT@,$LINT,;t t
20952 s,@LINTFLAGS@,$LINTFLAGS,;t t
20953 s,@DB2HTML@,$DB2HTML,;t t
20954 s,@DB2PDF@,$DB2PDF,;t t
20955 s,@DB2PS@,$DB2PS,;t t
20956 s,@DB2TXT@,$DB2TXT,;t t
20957 s,@FONTFORGE@,$FONTFORGE,;t t
20958 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20959 s,@XLIB@,$XLIB,;t t
20960 s,@XFILES@,$XFILES,;t t
20961 s,@OPENGLFILES@,$OPENGLFILES,;t t
20962 s,@GLU32FILES@,$GLU32FILES,;t t
20963 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20964 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20965 s,@GLUT32FILES@,$GLUT32FILES,;t t
20966 s,@NASLIBS@,$NASLIBS,;t t
20967 s,@CURSESLIBS@,$CURSESLIBS,;t t
20968 s,@sane_devel@,$sane_devel,;t t
20969 s,@SANELIBS@,$SANELIBS,;t t
20970 s,@SANEINCL@,$SANEINCL,;t t
20971 s,@ICULIBS@,$ICULIBS,;t t
20972 s,@ft_devel@,$ft_devel,;t t
20973 s,@ft_devel2@,$ft_devel2,;t t
20974 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
20975 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20976 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
20977 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20978 s,@ARTSLIBS@,$ARTSLIBS,;t t
20979 s,@ARTSINCL@,$ARTSINCL,;t t
20980 s,@ALSALIBS@,$ALSALIBS,;t t
20981 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20982 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
20983 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20984 s,@DLLEXT@,$DLLEXT,;t t
20985 s,@DLLFLAGS@,$DLLFLAGS,;t t
20986 s,@DLLIBS@,$DLLIBS,;t t
20987 s,@LDSHARED@,$LDSHARED,;t t
20988 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20989 s,@LIBEXT@,$LIBEXT,;t t
20990 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20991 s,@DLLTOOL@,$DLLTOOL,;t t
20992 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20993 s,@DLLWRAP@,$DLLWRAP,;t t
20994 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20995 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20996 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
20997 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
20998 s,@IOKITLIB@,$IOKITLIB,;t t
20999 s,@CROSSTEST@,$CROSSTEST,;t t
21000 s,@CROSSCC@,$CROSSCC,;t t
21001 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21002 s,@LDPATH@,$LDPATH,;t t
21003 s,@CRTLIBS@,$CRTLIBS,;t t
21004 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
21005 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21006 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21007 s,@LDD@,$LDD,;t t
21008 s,@ALLOCA@,$ALLOCA,;t t
21009 s,@LIBOBJS@,$LIBOBJS,;t t
21010 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21011 /@MAKE_RULES@/r $MAKE_RULES
21012 s,@MAKE_RULES@,,;t t
21013 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21014 s,@MAKE_DLL_RULES@,,;t t
21015 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21016 s,@MAKE_TEST_RULES@,,;t t
21017 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21018 s,@MAKE_LIB_RULES@,,;t t
21019 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21020 s,@MAKE_PROG_RULES@,,;t t
21021 CEOF
21022
21023 _ACEOF
21024
21025   cat >>$CONFIG_STATUS <<\_ACEOF
21026   # Split the substitutions into bite-sized pieces for seds with
21027   # small command number limits, like on Digital OSF/1 and HP-UX.
21028   ac_max_sed_lines=48
21029   ac_sed_frag=1 # Number of current file.
21030   ac_beg=1 # First line for current file.
21031   ac_end=$ac_max_sed_lines # Line after last line for current file.
21032   ac_more_lines=:
21033   ac_sed_cmds=
21034   while $ac_more_lines; do
21035     if test $ac_beg -gt 1; then
21036       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21037     else
21038       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21039     fi
21040     if test ! -s $tmp/subs.frag; then
21041       ac_more_lines=false
21042     else
21043       # The purpose of the label and of the branching condition is to
21044       # speed up the sed processing (if there are no `@' at all, there
21045       # is no need to browse any of the substitutions).
21046       # These are the two extra sed commands mentioned above.
21047       (echo ':t
21048   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21049       if test -z "$ac_sed_cmds"; then
21050         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21051       else
21052         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21053       fi
21054       ac_sed_frag=`expr $ac_sed_frag + 1`
21055       ac_beg=$ac_end
21056       ac_end=`expr $ac_end + $ac_max_sed_lines`
21057     fi
21058   done
21059   if test -z "$ac_sed_cmds"; then
21060     ac_sed_cmds=cat
21061   fi
21062 fi # test -n "$CONFIG_FILES"
21063
21064 _ACEOF
21065 cat >>$CONFIG_STATUS <<\_ACEOF
21066 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21067   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21068   case $ac_file in
21069   - | *:- | *:-:* ) # input from stdin
21070         cat >$tmp/stdin
21071         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21072         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21073   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21074         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21075   * )   ac_file_in=$ac_file.in ;;
21076   esac
21077
21078   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21079   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21080 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21081          X"$ac_file" : 'X\(//\)[^/]' \| \
21082          X"$ac_file" : 'X\(//\)$' \| \
21083          X"$ac_file" : 'X\(/\)' \| \
21084          .     : '\(.\)' 2>/dev/null ||
21085 echo X"$ac_file" |
21086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21087           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21088           /^X\(\/\/\)$/{ s//\1/; q; }
21089           /^X\(\/\).*/{ s//\1/; q; }
21090           s/.*/./; q'`
21091   { if $as_mkdir_p; then
21092     mkdir -p "$ac_dir"
21093   else
21094     as_dir="$ac_dir"
21095     as_dirs=
21096     while test ! -d "$as_dir"; do
21097       as_dirs="$as_dir $as_dirs"
21098       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21100          X"$as_dir" : 'X\(//\)[^/]' \| \
21101          X"$as_dir" : 'X\(//\)$' \| \
21102          X"$as_dir" : 'X\(/\)' \| \
21103          .     : '\(.\)' 2>/dev/null ||
21104 echo X"$as_dir" |
21105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21106           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21107           /^X\(\/\/\)$/{ s//\1/; q; }
21108           /^X\(\/\).*/{ s//\1/; q; }
21109           s/.*/./; q'`
21110     done
21111     test ! -n "$as_dirs" || mkdir $as_dirs
21112   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21113 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21114    { (exit 1); exit 1; }; }; }
21115
21116   ac_builddir=.
21117
21118 if test "$ac_dir" != .; then
21119   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21120   # A "../" for each directory in $ac_dir_suffix.
21121   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21122 else
21123   ac_dir_suffix= ac_top_builddir=
21124 fi
21125
21126 case $srcdir in
21127   .)  # No --srcdir option.  We are building in place.
21128     ac_srcdir=.
21129     if test -z "$ac_top_builddir"; then
21130        ac_top_srcdir=.
21131     else
21132        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21133     fi ;;
21134   [\\/]* | ?:[\\/]* )  # Absolute path.
21135     ac_srcdir=$srcdir$ac_dir_suffix;
21136     ac_top_srcdir=$srcdir ;;
21137   *) # Relative path.
21138     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21139     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21140 esac
21141
21142 # Do not use `cd foo && pwd` to compute absolute paths, because
21143 # the directories may not exist.
21144 case `pwd` in
21145 .) ac_abs_builddir="$ac_dir";;
21146 *)
21147   case "$ac_dir" in
21148   .) ac_abs_builddir=`pwd`;;
21149   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21150   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21151   esac;;
21152 esac
21153 case $ac_abs_builddir in
21154 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21155 *)
21156   case ${ac_top_builddir}. in
21157   .) ac_abs_top_builddir=$ac_abs_builddir;;
21158   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21159   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21160   esac;;
21161 esac
21162 case $ac_abs_builddir in
21163 .) ac_abs_srcdir=$ac_srcdir;;
21164 *)
21165   case $ac_srcdir in
21166   .) ac_abs_srcdir=$ac_abs_builddir;;
21167   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21168   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21169   esac;;
21170 esac
21171 case $ac_abs_builddir in
21172 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21173 *)
21174   case $ac_top_srcdir in
21175   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21176   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21177   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21178   esac;;
21179 esac
21180
21181
21182   case $INSTALL in
21183   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21184   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21185   esac
21186
21187   # Let's still pretend it is `configure' which instantiates (i.e., don't
21188   # use $as_me), people would be surprised to read:
21189   #    /* config.h.  Generated by config.status.  */
21190   if test x"$ac_file" = x-; then
21191     configure_input=
21192   else
21193     configure_input="$ac_file.  "
21194   fi
21195   configure_input=$configure_input"Generated from `echo $ac_file_in |
21196                                      sed 's,.*/,,'` by configure."
21197
21198   # First look for the input files in the build tree, otherwise in the
21199   # src tree.
21200   ac_file_inputs=`IFS=:
21201     for f in $ac_file_in; do
21202       case $f in
21203       -) echo $tmp/stdin ;;
21204       [\\/$]*)
21205          # Absolute (can't be DOS-style, as IFS=:)
21206          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21207 echo "$as_me: error: cannot find input file: $f" >&2;}
21208    { (exit 1); exit 1; }; }
21209          echo "$f";;
21210       *) # Relative
21211          if test -f "$f"; then
21212            # Build tree
21213            echo "$f"
21214          elif test -f "$srcdir/$f"; then
21215            # Source tree
21216            echo "$srcdir/$f"
21217          else
21218            # /dev/null tree
21219            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21220 echo "$as_me: error: cannot find input file: $f" >&2;}
21221    { (exit 1); exit 1; }; }
21222          fi;;
21223       esac
21224     done` || { (exit 1); exit 1; }
21225
21226   if test x"$ac_file" != x-; then
21227     { echo "$as_me:$LINENO: creating $ac_file" >&5
21228 echo "$as_me: creating $ac_file" >&6;}
21229     rm -f "$ac_file"
21230   fi
21231 _ACEOF
21232 cat >>$CONFIG_STATUS <<_ACEOF
21233   sed "$ac_vpsub
21234 $extrasub
21235 _ACEOF
21236 cat >>$CONFIG_STATUS <<\_ACEOF
21237 :t
21238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21239 s,@configure_input@,$configure_input,;t t
21240 s,@srcdir@,$ac_srcdir,;t t
21241 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21242 s,@top_srcdir@,$ac_top_srcdir,;t t
21243 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21244 s,@builddir@,$ac_builddir,;t t
21245 s,@abs_builddir@,$ac_abs_builddir,;t t
21246 s,@top_builddir@,$ac_top_builddir,;t t
21247 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21248 s,@INSTALL@,$ac_INSTALL,;t t
21249 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21250   rm -f $tmp/stdin
21251   if test x"$ac_file" != x-; then
21252     mv $tmp/out $ac_file
21253   else
21254     cat $tmp/out
21255     rm -f $tmp/out
21256   fi
21257
21258 done
21259 _ACEOF
21260 cat >>$CONFIG_STATUS <<\_ACEOF
21261
21262 #
21263 # CONFIG_HEADER section.
21264 #
21265
21266 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21267 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21268 #
21269 # ac_d sets the value in "#define NAME VALUE" lines.
21270 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21271 ac_dB='[         ].*$,\1#\2'
21272 ac_dC=' '
21273 ac_dD=',;t'
21274 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21275 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21276 ac_uB='$,\1#\2define\3'
21277 ac_uC=' '
21278 ac_uD=',;t'
21279
21280 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21281   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21282   case $ac_file in
21283   - | *:- | *:-:* ) # input from stdin
21284         cat >$tmp/stdin
21285         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21286         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21287   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21288         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21289   * )   ac_file_in=$ac_file.in ;;
21290   esac
21291
21292   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21293 echo "$as_me: creating $ac_file" >&6;}
21294
21295   # First look for the input files in the build tree, otherwise in the
21296   # src tree.
21297   ac_file_inputs=`IFS=:
21298     for f in $ac_file_in; do
21299       case $f in
21300       -) echo $tmp/stdin ;;
21301       [\\/$]*)
21302          # Absolute (can't be DOS-style, as IFS=:)
21303          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21304 echo "$as_me: error: cannot find input file: $f" >&2;}
21305    { (exit 1); exit 1; }; }
21306          # Do quote $f, to prevent DOS paths from being IFS'd.
21307          echo "$f";;
21308       *) # Relative
21309          if test -f "$f"; then
21310            # Build tree
21311            echo "$f"
21312          elif test -f "$srcdir/$f"; then
21313            # Source tree
21314            echo "$srcdir/$f"
21315          else
21316            # /dev/null tree
21317            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21318 echo "$as_me: error: cannot find input file: $f" >&2;}
21319    { (exit 1); exit 1; }; }
21320          fi;;
21321       esac
21322     done` || { (exit 1); exit 1; }
21323   # Remove the trailing spaces.
21324   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21325
21326 _ACEOF
21327
21328 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21329 # `conftest.undefs', that substitutes the proper values into
21330 # config.h.in to produce config.h.  The first handles `#define'
21331 # templates, and the second `#undef' templates.
21332 # And first: Protect against being on the right side of a sed subst in
21333 # config.status.  Protect against being in an unquoted here document
21334 # in config.status.
21335 rm -f conftest.defines conftest.undefs
21336 # Using a here document instead of a string reduces the quoting nightmare.
21337 # Putting comments in sed scripts is not portable.
21338 #
21339 # `end' is used to avoid that the second main sed command (meant for
21340 # 0-ary CPP macros) applies to n-ary macro definitions.
21341 # See the Autoconf documentation for `clear'.
21342 cat >confdef2sed.sed <<\_ACEOF
21343 s/[\\&,]/\\&/g
21344 s,[\\$`],\\&,g
21345 t clear
21346 : clear
21347 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21348 t end
21349 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21350 : end
21351 _ACEOF
21352 # If some macros were called several times there might be several times
21353 # the same #defines, which is useless.  Nevertheless, we may not want to
21354 # sort them, since we want the *last* AC-DEFINE to be honored.
21355 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21356 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21357 rm -f confdef2sed.sed
21358
21359 # This sed command replaces #undef with comments.  This is necessary, for
21360 # example, in the case of _POSIX_SOURCE, which is predefined and required
21361 # on some systems where configure will not decide to define it.
21362 cat >>conftest.undefs <<\_ACEOF
21363 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21364 _ACEOF
21365
21366 # Break up conftest.defines because some shells have a limit on the size
21367 # of here documents, and old seds have small limits too (100 cmds).
21368 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21369 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21370 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21371 echo '  :' >>$CONFIG_STATUS
21372 rm -f conftest.tail
21373 while grep . conftest.defines >/dev/null
21374 do
21375   # Write a limited-size here document to $tmp/defines.sed.
21376   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21377   # Speed up: don't consider the non `#define' lines.
21378   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21379   # Work around the forget-to-reset-the-flag bug.
21380   echo 't clr' >>$CONFIG_STATUS
21381   echo ': clr' >>$CONFIG_STATUS
21382   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21383   echo 'CEOF
21384   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21385   rm -f $tmp/in
21386   mv $tmp/out $tmp/in
21387 ' >>$CONFIG_STATUS
21388   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21389   rm -f conftest.defines
21390   mv conftest.tail conftest.defines
21391 done
21392 rm -f conftest.defines
21393 echo '  fi # grep' >>$CONFIG_STATUS
21394 echo >>$CONFIG_STATUS
21395
21396 # Break up conftest.undefs because some shells have a limit on the size
21397 # of here documents, and old seds have small limits too (100 cmds).
21398 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21399 rm -f conftest.tail
21400 while grep . conftest.undefs >/dev/null
21401 do
21402   # Write a limited-size here document to $tmp/undefs.sed.
21403   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21404   # Speed up: don't consider the non `#undef'
21405   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21406   # Work around the forget-to-reset-the-flag bug.
21407   echo 't clr' >>$CONFIG_STATUS
21408   echo ': clr' >>$CONFIG_STATUS
21409   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21410   echo 'CEOF
21411   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21412   rm -f $tmp/in
21413   mv $tmp/out $tmp/in
21414 ' >>$CONFIG_STATUS
21415   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21416   rm -f conftest.undefs
21417   mv conftest.tail conftest.undefs
21418 done
21419 rm -f conftest.undefs
21420
21421 cat >>$CONFIG_STATUS <<\_ACEOF
21422   # Let's still pretend it is `configure' which instantiates (i.e., don't
21423   # use $as_me), people would be surprised to read:
21424   #    /* config.h.  Generated by config.status.  */
21425   if test x"$ac_file" = x-; then
21426     echo "/* Generated by configure.  */" >$tmp/config.h
21427   else
21428     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21429   fi
21430   cat $tmp/in >>$tmp/config.h
21431   rm -f $tmp/in
21432   if test x"$ac_file" != x-; then
21433     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21434       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21435 echo "$as_me: $ac_file is unchanged" >&6;}
21436     else
21437       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21439          X"$ac_file" : 'X\(//\)[^/]' \| \
21440          X"$ac_file" : 'X\(//\)$' \| \
21441          X"$ac_file" : 'X\(/\)' \| \
21442          .     : '\(.\)' 2>/dev/null ||
21443 echo X"$ac_file" |
21444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21445           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21446           /^X\(\/\/\)$/{ s//\1/; q; }
21447           /^X\(\/\).*/{ s//\1/; q; }
21448           s/.*/./; q'`
21449       { if $as_mkdir_p; then
21450     mkdir -p "$ac_dir"
21451   else
21452     as_dir="$ac_dir"
21453     as_dirs=
21454     while test ! -d "$as_dir"; do
21455       as_dirs="$as_dir $as_dirs"
21456       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21458          X"$as_dir" : 'X\(//\)[^/]' \| \
21459          X"$as_dir" : 'X\(//\)$' \| \
21460          X"$as_dir" : 'X\(/\)' \| \
21461          .     : '\(.\)' 2>/dev/null ||
21462 echo X"$as_dir" |
21463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21464           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21465           /^X\(\/\/\)$/{ s//\1/; q; }
21466           /^X\(\/\).*/{ s//\1/; q; }
21467           s/.*/./; q'`
21468     done
21469     test ! -n "$as_dirs" || mkdir $as_dirs
21470   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21472    { (exit 1); exit 1; }; }; }
21473
21474       rm -f $ac_file
21475       mv $tmp/config.h $ac_file
21476     fi
21477   else
21478     cat $tmp/config.h
21479     rm -f $tmp/config.h
21480   fi
21481 done
21482 _ACEOF
21483 cat >>$CONFIG_STATUS <<\_ACEOF
21484
21485 #
21486 # CONFIG_COMMANDS section.
21487 #
21488 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21489   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21490   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21491   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21492 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21493          X"$ac_dest" : 'X\(//\)[^/]' \| \
21494          X"$ac_dest" : 'X\(//\)$' \| \
21495          X"$ac_dest" : 'X\(/\)' \| \
21496          .     : '\(.\)' 2>/dev/null ||
21497 echo X"$ac_dest" |
21498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21499           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21500           /^X\(\/\/\)$/{ s//\1/; q; }
21501           /^X\(\/\).*/{ s//\1/; q; }
21502           s/.*/./; q'`
21503   { if $as_mkdir_p; then
21504     mkdir -p "$ac_dir"
21505   else
21506     as_dir="$ac_dir"
21507     as_dirs=
21508     while test ! -d "$as_dir"; do
21509       as_dirs="$as_dir $as_dirs"
21510       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21512          X"$as_dir" : 'X\(//\)[^/]' \| \
21513          X"$as_dir" : 'X\(//\)$' \| \
21514          X"$as_dir" : 'X\(/\)' \| \
21515          .     : '\(.\)' 2>/dev/null ||
21516 echo X"$as_dir" |
21517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21518           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21519           /^X\(\/\/\)$/{ s//\1/; q; }
21520           /^X\(\/\).*/{ s//\1/; q; }
21521           s/.*/./; q'`
21522     done
21523     test ! -n "$as_dirs" || mkdir $as_dirs
21524   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21525 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21526    { (exit 1); exit 1; }; }; }
21527
21528   ac_builddir=.
21529
21530 if test "$ac_dir" != .; then
21531   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21532   # A "../" for each directory in $ac_dir_suffix.
21533   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21534 else
21535   ac_dir_suffix= ac_top_builddir=
21536 fi
21537
21538 case $srcdir in
21539   .)  # No --srcdir option.  We are building in place.
21540     ac_srcdir=.
21541     if test -z "$ac_top_builddir"; then
21542        ac_top_srcdir=.
21543     else
21544        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21545     fi ;;
21546   [\\/]* | ?:[\\/]* )  # Absolute path.
21547     ac_srcdir=$srcdir$ac_dir_suffix;
21548     ac_top_srcdir=$srcdir ;;
21549   *) # Relative path.
21550     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21551     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21552 esac
21553
21554 # Do not use `cd foo && pwd` to compute absolute paths, because
21555 # the directories may not exist.
21556 case `pwd` in
21557 .) ac_abs_builddir="$ac_dir";;
21558 *)
21559   case "$ac_dir" in
21560   .) ac_abs_builddir=`pwd`;;
21561   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21562   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21563   esac;;
21564 esac
21565 case $ac_abs_builddir in
21566 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21567 *)
21568   case ${ac_top_builddir}. in
21569   .) ac_abs_top_builddir=$ac_abs_builddir;;
21570   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21571   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21572   esac;;
21573 esac
21574 case $ac_abs_builddir in
21575 .) ac_abs_srcdir=$ac_srcdir;;
21576 *)
21577   case $ac_srcdir in
21578   .) ac_abs_srcdir=$ac_abs_builddir;;
21579   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21580   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21581   esac;;
21582 esac
21583 case $ac_abs_builddir in
21584 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21585 *)
21586   case $ac_top_srcdir in
21587   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21588   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21589   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21590   esac;;
21591 esac
21592
21593
21594   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21595 echo "$as_me: executing $ac_dest commands" >&6;}
21596   case $ac_dest in
21597     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21598 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21599     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21600 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21601     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21602 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21603     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21604 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21605     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21606 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21607     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21608 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21609     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21610 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21611     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21612 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21613     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21614 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21615     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21616 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21617     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21618 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21619     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21620 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21621     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21622 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21623     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21624 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21625     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21626 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21627     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21628 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21629   esac
21630 done
21631 _ACEOF
21632
21633 cat >>$CONFIG_STATUS <<\_ACEOF
21634
21635 { (exit 0); exit 0; }
21636 _ACEOF
21637 chmod +x $CONFIG_STATUS
21638 ac_clean_files=$ac_clean_files_save
21639
21640
21641 # configure is writing to config.log, and then calls config.status.
21642 # config.status does its own redirection, appending to config.log.
21643 # Unfortunately, on DOS this fails, as config.log is still kept open
21644 # by configure, so config.status won't be able to write to it; its
21645 # output is simply discarded.  So we exec the FD to /dev/null,
21646 # effectively closing config.log, so it can be properly (re)opened and
21647 # appended to by config.status.  When coming back to configure, we
21648 # need to make the FD available again.
21649 if test "$no_create" != yes; then
21650   ac_cs_success=:
21651   ac_config_status_args=
21652   test "$silent" = yes &&
21653     ac_config_status_args="$ac_config_status_args --quiet"
21654   exec 5>/dev/null
21655   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21656   exec 5>>config.log
21657   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21658   # would make configure fail if this is the last instruction.
21659   $ac_cs_success || { (exit 1); exit 1; }
21660 fi
21661
21662
21663 if test "$have_x" = "no"
21664 then
21665   echo
21666   echo "*** Warning: X development files not found. Wine will be built without"
21667   echo "*** X support, which currently does not work, and would probably not be"
21668   echo "*** what you want anyway. You will need to install devel packages of"
21669   echo "*** Xlib/Xfree86 at the very least."
21670 fi
21671
21672 if test "$wine_cv_opengl_version_OK" = "no"
21673 then
21674   echo
21675   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21676   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21677 fi
21678
21679 if test "$wine_cv_msg_freetype" = "yes"
21680 then
21681   echo
21682   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21683   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21684   echo "*** freetype-devel package (or its equivalent on your distribution) to"
21685   echo "*** enable Wine to use TrueType fonts."
21686 fi
21687
21688 echo
21689 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
21690 echo
21691