Release 20041201.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20041201.
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='20041201'
273 PACKAGE_STRING='Wine 20041201'
274 PACKAGE_BUGREPORT='wine-devel@winehq.org'
275
276 ac_unique_file="server/atom.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
783
784 #
785 # Report the --help message.
786 #
787 if test "$ac_init_help" = "long"; then
788   # Omit some internal or obsolete options to make the list less imposing.
789   # This message is too long to be a string in the A/UX 3.1 sh.
790   cat <<_ACEOF
791 \`configure' configures Wine 20041201 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 20041201:";;
857    esac
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --disable-win16         do not include Win16 support
864   --disable-debug         compile out all debugging messages
865   --disable-trace         compile out TRACE messages
866   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
867                           binaries)
868
869 Optional Packages:
870   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
871   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
872   --without-opengl        do not use OpenGL
873   --without-curses        do not use curses
874   --with-wine-tools=<dir> use Wine tools from directory <dir>
875   --with-x                use the X Window System
876
877 Some influential environment variables:
878   CC          C compiler command
879   CFLAGS      C compiler flags
880   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
881               nonstandard directory <lib dir>
882   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
883               headers in a nonstandard directory <include dir>
884   CXX         C++ compiler command
885   CXXFLAGS    C++ compiler flags
886   CPP         C preprocessor
887
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
890
891 Report bugs to <wine-devel@winehq.org>.
892 _ACEOF
893 fi
894
895 if test "$ac_init_help" = "recursive"; then
896   # If there are subdirs, report their specific --help.
897   ac_popdir=`pwd`
898   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899     test -d $ac_dir || continue
900     ac_builddir=.
901
902 if test "$ac_dir" != .; then
903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904   # A "../" for each directory in $ac_dir_suffix.
905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907   ac_dir_suffix= ac_top_builddir=
908 fi
909
910 case $srcdir in
911   .)  # No --srcdir option.  We are building in place.
912     ac_srcdir=.
913     if test -z "$ac_top_builddir"; then
914        ac_top_srcdir=.
915     else
916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917     fi ;;
918   [\\/]* | ?:[\\/]* )  # Absolute path.
919     ac_srcdir=$srcdir$ac_dir_suffix;
920     ac_top_srcdir=$srcdir ;;
921   *) # Relative path.
922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
925
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
930 *)
931   case "$ac_dir" in
932   .) ac_abs_builddir=`pwd`;;
933   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934   *) ac_abs_builddir=`pwd`/"$ac_dir";;
935   esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *)
940   case ${ac_top_builddir}. in
941   .) ac_abs_top_builddir=$ac_abs_builddir;;
942   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944   esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
948 *)
949   case $ac_srcdir in
950   .) ac_abs_srcdir=$ac_abs_builddir;;
951   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953   esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *)
958   case $ac_top_srcdir in
959   .) ac_abs_top_srcdir=$ac_abs_builddir;;
960   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962   esac;;
963 esac
964
965     cd $ac_dir
966     # Check for guested configure; otherwise get Cygnus style configure.
967     if test -f $ac_srcdir/configure.gnu; then
968       echo
969       $SHELL $ac_srcdir/configure.gnu  --help=recursive
970     elif test -f $ac_srcdir/configure; then
971       echo
972       $SHELL $ac_srcdir/configure  --help=recursive
973     elif test -f $ac_srcdir/configure.ac ||
974            test -f $ac_srcdir/configure.in; then
975       echo
976       $ac_configure --help
977     else
978       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979     fi
980     cd "$ac_popdir"
981   done
982 fi
983
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986   cat <<\_ACEOF
987 Wine configure 20041201
988 generated by GNU Autoconf 2.59
989
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by Wine $as_me 20041201, which was
1002 generated by GNU Autoconf 2.59.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338           ac_config_headers="$ac_config_headers include/config.h"
1339
1340 ac_aux_dir=
1341 for ac_dir in tools $srcdir/tools; do
1342   if test -f $ac_dir/install-sh; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/install-sh -c"
1345     break
1346   elif test -f $ac_dir/install.sh; then
1347     ac_aux_dir=$ac_dir
1348     ac_install_sh="$ac_aux_dir/install.sh -c"
1349     break
1350   elif test -f $ac_dir/shtool; then
1351     ac_aux_dir=$ac_dir
1352     ac_install_sh="$ac_aux_dir/shtool install -c"
1353     break
1354   fi
1355 done
1356 if test -z "$ac_aux_dir"; then
1357   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1359    { (exit 1); exit 1; }; }
1360 fi
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1364
1365
1366
1367 # Check whether --enable-win16 or --disable-win16 was given.
1368 if test "${enable_win16+set}" = set; then
1369   enableval="$enable_win16"
1370
1371 fi;
1372 # Check whether --enable-debug or --disable-debug was given.
1373 if test "${enable_debug+set}" = set; then
1374   enableval="$enable_debug"
1375
1376 fi;
1377 # Check whether --enable-trace or --disable-trace was given.
1378 if test "${enable_trace+set}" = set; then
1379   enableval="$enable_trace"
1380
1381 fi;
1382 # Check whether --enable-win64 or --disable-win64 was given.
1383 if test "${enable_win64+set}" = set; then
1384   enableval="$enable_win64"
1385
1386 fi;
1387
1388
1389 # Check whether --with-opengl or --without-opengl was given.
1390 if test "${with_opengl+set}" = set; then
1391   withval="$with_opengl"
1392
1393 fi;
1394
1395 # Check whether --with-curses or --without-curses was given.
1396 if test "${with_curses+set}" = set; then
1397   withval="$with_curses"
1398
1399 fi;
1400
1401 # Check whether --with-wine-tools or --without-wine-tools was given.
1402 if test "${with_wine_tools+set}" = set; then
1403   withval="$with_wine_tools"
1404
1405 fi;
1406
1407 WIN16_FILES="\$(WIN16_FILES)"
1408
1409 WIN16_INSTALL="\$(WIN16_INSTALL)"
1410
1411 if test "x$enable_win16" = "xno"
1412 then
1413   WIN16_FILES=""
1414   WIN16_INSTALL=""
1415 fi
1416
1417 DLLDEFS=""
1418
1419 if test "x$enable_debug" = "xno"
1420 then
1421   DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
1422 fi
1423 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1424 then
1425   DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
1426 fi
1427
1428
1429 # Make sure we can run config.sub.
1430 $ac_config_sub sun4 >/dev/null 2>&1 ||
1431   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1432 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1433    { (exit 1); exit 1; }; }
1434
1435 echo "$as_me:$LINENO: checking build system type" >&5
1436 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1437 if test "${ac_cv_build+set}" = set; then
1438   echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440   ac_cv_build_alias=$build_alias
1441 test -z "$ac_cv_build_alias" &&
1442   ac_cv_build_alias=`$ac_config_guess`
1443 test -z "$ac_cv_build_alias" &&
1444   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1445 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1446    { (exit 1); exit 1; }; }
1447 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1448   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1449 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1450    { (exit 1); exit 1; }; }
1451
1452 fi
1453 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1454 echo "${ECHO_T}$ac_cv_build" >&6
1455 build=$ac_cv_build
1456 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1457 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1458 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459
1460
1461 echo "$as_me:$LINENO: checking host system type" >&5
1462 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1463 if test "${ac_cv_host+set}" = set; then
1464   echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466   ac_cv_host_alias=$host_alias
1467 test -z "$ac_cv_host_alias" &&
1468   ac_cv_host_alias=$ac_cv_build_alias
1469 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1470   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1471 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1472    { (exit 1); exit 1; }; }
1473
1474 fi
1475 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1476 echo "${ECHO_T}$ac_cv_host" >&6
1477 host=$ac_cv_host
1478 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1479 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1480 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481
1482
1483 case $host in
1484   x86_64*linux*)
1485     if test "x$enable_win64" != "xyes"
1486     then
1487       test -n "$CC" || CC="gcc -m32"
1488       test -n "$LD" || LD="ld -m elf_i386"
1489       test -n "$AS" || AS="as --32"
1490     fi
1491     ;;
1492 esac
1493
1494 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1495 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1496 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1497 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1498   echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500   cat >conftest.make <<\_ACEOF
1501 all:
1502         @echo 'ac_maketemp="$(MAKE)"'
1503 _ACEOF
1504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1505 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1506 if test -n "$ac_maketemp"; then
1507   eval ac_cv_prog_make_${ac_make}_set=yes
1508 else
1509   eval ac_cv_prog_make_${ac_make}_set=no
1510 fi
1511 rm -f conftest.make
1512 fi
1513 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1514   echo "$as_me:$LINENO: result: yes" >&5
1515 echo "${ECHO_T}yes" >&6
1516   SET_MAKE=
1517 else
1518   echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520   SET_MAKE="MAKE=${MAKE-make}"
1521 fi
1522
1523 ac_ext=c
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$CC"; then
1537   ac_cv_prog_CC="$CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 CC=$ac_cv_prog_CC
1556 if test -n "$CC"; then
1557   echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564 fi
1565 if test -z "$ac_cv_prog_CC"; then
1566   ac_ct_CC=$CC
1567   # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   if test -n "$ac_ct_CC"; then
1575   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   for ac_exec_ext in '' $ac_executable_extensions; do
1583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584     ac_cv_prog_ac_ct_CC="gcc"
1585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586     break 2
1587   fi
1588 done
1589 done
1590
1591 fi
1592 fi
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602   CC=$ac_ct_CC
1603 else
1604   CC="$ac_cv_prog_CC"
1605 fi
1606
1607 if test -z "$CC"; then
1608   if test -n "$ac_tool_prefix"; then
1609   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   if test -n "$CC"; then
1617   ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622   IFS=$as_save_IFS
1623   test -z "$as_dir" && as_dir=.
1624   for ac_exec_ext in '' $ac_executable_extensions; do
1625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626     ac_cv_prog_CC="${ac_tool_prefix}cc"
1627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628     break 2
1629   fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637   echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640   echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 fi
1645 if test -z "$ac_cv_prog_CC"; then
1646   ac_ct_CC=$CC
1647   # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$ac_ct_CC"; then
1655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   for ac_exec_ext in '' $ac_executable_extensions; do
1663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664     ac_cv_prog_ac_ct_CC="cc"
1665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666     break 2
1667   fi
1668 done
1669 done
1670
1671 fi
1672 fi
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682   CC=$ac_ct_CC
1683 else
1684   CC="$ac_cv_prog_CC"
1685 fi
1686
1687 fi
1688 if test -z "$CC"; then
1689   # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$CC"; then
1697   ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699   ac_prog_rejected=no
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708        ac_prog_rejected=yes
1709        continue
1710      fi
1711     ac_cv_prog_CC="cc"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 if test $ac_prog_rejected = yes; then
1719   # We found a bogon in the path, so make sure we never use it.
1720   set dummy $ac_cv_prog_CC
1721   shift
1722   if test $# != 0; then
1723     # We chose a different compiler from the bogus one.
1724     # However, it has the same basename, so the bogon will be chosen
1725     # first if we set CC to just the basename; use the full file name.
1726     shift
1727     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728   fi
1729 fi
1730 fi
1731 fi
1732 CC=$ac_cv_prog_CC
1733 if test -n "$CC"; then
1734   echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1736 else
1737   echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 fi
1740
1741 fi
1742 if test -z "$CC"; then
1743   if test -n "$ac_tool_prefix"; then
1744   for ac_prog in cl
1745   do
1746     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$CC"; then
1754   ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 CC=$ac_cv_prog_CC
1773 if test -n "$CC"; then
1774   echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781     test -n "$CC" && break
1782   done
1783 fi
1784 if test -z "$CC"; then
1785   ac_ct_CC=$CC
1786   for ac_prog in cl
1787 do
1788   # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$ac_ct_CC"; then
1796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_ac_ct_CC="$ac_prog"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823   test -n "$ac_ct_CC" && break
1824 done
1825
1826   CC=$ac_ct_CC
1827 fi
1828
1829 fi
1830
1831
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836    { (exit 1); exit 1; }; }
1837
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840      "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843   (eval $ac_compiler --version </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848   (eval $ac_compiler -v </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853   (eval $ac_compiler -V </dev/null >&5) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }
1857
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h.  */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h.  */
1864
1865 int
1866 main ()
1867 {
1868
1869   ;
1870   return 0;
1871 }
1872 _ACEOF
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1877 # of exeext.
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882   (eval $ac_link_default) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; then
1886   # Find the output, starting from the most likely.  This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # resort.
1889
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892 ac_cv_exeext=
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1895 do
1896   test -f "$ac_file" || continue
1897   case $ac_file in
1898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899         ;;
1900     conftest.$ac_ext )
1901         # This is the source file.
1902         ;;
1903     [ab].out )
1904         # We found the default executable, but exeext='' is most
1905         # certainly right.
1906         break;;
1907     *.* )
1908         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909         # FIXME: I believe we export ac_cv_exeext for Libtool,
1910         # but it would be cool to find out if it's true.  Does anybody
1911         # maintain Libtool? --akim.
1912         export ac_cv_exeext
1913         break;;
1914     * )
1915         break;;
1916   esac
1917 done
1918 else
1919   echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926    { (exit 77); exit 77; }; }
1927 fi
1928
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1932
1933 # Check the compiler produces executables we can run.  If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940   if { ac_try='./$ac_file'
1941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942   (eval $ac_try) 2>&5
1943   ac_status=$?
1944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945   (exit $ac_status); }; }; then
1946     cross_compiling=no
1947   else
1948     if test "$cross_compiling" = maybe; then
1949         cross_compiling=yes
1950     else
1951         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957    { (exit 1); exit 1; }; }
1958     fi
1959   fi
1960 fi
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1963
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run.  If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1972
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976   (eval $ac_link) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }; then
1980   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 # `rm'.
1984 for ac_file in conftest.exe conftest conftest.*; do
1985   test -f "$ac_file" || continue
1986   case $ac_file in
1987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989           export ac_cv_exeext
1990           break;;
1991     * ) break;;
1992   esac
1993 done
1994 else
1995   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2005
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2008 ac_exeext=$EXEEXT
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h.  */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h.  */
2020
2021 int
2022 main ()
2023 {
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031   (eval $ac_compile) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }; then
2035   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036   case $ac_file in
2037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039        break;;
2040   esac
2041 done
2042 else
2043   echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050    { (exit 1); exit 1; }; }
2051 fi
2052
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2054 fi
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2058 ac_objext=$OBJEXT
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 /* confdefs.h.  */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h.  */
2070
2071 int
2072 main ()
2073 {
2074 #ifndef __GNUC__
2075        choke me
2076 #endif
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084   (eval $ac_compile) 2>conftest.er1
2085   ac_status=$?
2086   grep -v '^ *+' conftest.er1 >conftest.err
2087   rm -f conftest.er1
2088   cat conftest.err >&5
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); } &&
2091          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093   (eval $ac_try) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }; } &&
2097          { ac_try='test -s conftest.$ac_objext'
2098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099   (eval $ac_try) 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }; }; then
2103   ac_compiler_gnu=yes
2104 else
2105   echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2107
2108 ac_compiler_gnu=no
2109 fi
2110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2112
2113 fi
2114 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2115 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2116 GCC=`test $ac_compiler_gnu = yes && echo yes`
2117 ac_test_CFLAGS=${CFLAGS+set}
2118 ac_save_CFLAGS=$CFLAGS
2119 CFLAGS="-g"
2120 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2122 if test "${ac_cv_prog_cc_g+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131
2132 int
2133 main ()
2134 {
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>conftest.er1
2143   ac_status=$?
2144   grep -v '^ *+' conftest.er1 >conftest.err
2145   rm -f conftest.er1
2146   cat conftest.err >&5
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); } &&
2149          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151   (eval $ac_try) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; } &&
2155          { ac_try='test -s conftest.$ac_objext'
2156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157   (eval $ac_try) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; }; then
2161   ac_cv_prog_cc_g=yes
2162 else
2163   echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166 ac_cv_prog_cc_g=no
2167 fi
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169 fi
2170 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 if test "$ac_test_CFLAGS" = set; then
2173   CFLAGS=$ac_save_CFLAGS
2174 elif test $ac_cv_prog_cc_g = yes; then
2175   if test "$GCC" = yes; then
2176     CFLAGS="-g -O2"
2177   else
2178     CFLAGS="-g"
2179   fi
2180 else
2181   if test "$GCC" = yes; then
2182     CFLAGS="-O2"
2183   else
2184     CFLAGS=
2185   fi
2186 fi
2187 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   ac_cv_prog_cc_stdc=no
2193 ac_save_CC=$CC
2194 cat >conftest.$ac_ext <<_ACEOF
2195 /* confdefs.h.  */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h.  */
2200 #include <stdarg.h>
2201 #include <stdio.h>
2202 #include <sys/types.h>
2203 #include <sys/stat.h>
2204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2205 struct buf { int x; };
2206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207 static char *e (p, i)
2208      char **p;
2209      int i;
2210 {
2211   return p[i];
2212 }
2213 static char *f (char * (*g) (char **, int), char **p, ...)
2214 {
2215   char *s;
2216   va_list v;
2217   va_start (v,p);
2218   s = g (p, va_arg (v,int));
2219   va_end (v);
2220   return s;
2221 }
2222
2223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2224    function prototypes and stuff, but not '\xHH' hex character constants.
2225    These don't provoke an error unfortunately, instead are silently treated
2226    as 'x'.  The following induces an error, until -std1 is added to get
2227    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2228    array size at least.  It's necessary to write '\x00'==0 to get something
2229    that's true only with -std1.  */
2230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2231
2232 int test (int i, double x);
2233 struct s1 {int (*f) (int a);};
2234 struct s2 {int (*f) (double a);};
2235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 int argc;
2237 char **argv;
2238 int
2239 main ()
2240 {
2241 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 # Don't try gcc -ansi; that turns off useful extensions and
2247 # breaks some systems' header files.
2248 # AIX                   -qlanglvl=ansi
2249 # Ultrix and OSF/1      -std1
2250 # HP-UX 10.20 and later -Ae
2251 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2252 # SVR4                  -Xc -D__EXTENSIONS__
2253 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2254 do
2255   CC="$ac_save_CC $ac_arg"
2256   rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258   (eval $ac_compile) 2>conftest.er1
2259   ac_status=$?
2260   grep -v '^ *+' conftest.er1 >conftest.err
2261   rm -f conftest.er1
2262   cat conftest.err >&5
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); } &&
2265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267   (eval $ac_try) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   ac_cv_prog_cc_stdc=$ac_arg
2278 break
2279 else
2280   echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 fi
2284 rm -f conftest.err conftest.$ac_objext
2285 done
2286 rm -f conftest.$ac_ext conftest.$ac_objext
2287 CC=$ac_save_CC
2288
2289 fi
2290
2291 case "x$ac_cv_prog_cc_stdc" in
2292   x|xno)
2293     echo "$as_me:$LINENO: result: none needed" >&5
2294 echo "${ECHO_T}none needed" >&6 ;;
2295   *)
2296     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2298     CC="$CC $ac_cv_prog_cc_stdc" ;;
2299 esac
2300
2301 # Some people use a C++ compiler to compile C.  Since we use `exit',
2302 # in C++ we need to declare it.  In case someone uses the same compiler
2303 # for both compiling C and C++ we need to have the C++ compiler decide
2304 # the declaration of exit, since it's the most demanding environment.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #ifndef __cplusplus
2307   choke me
2308 #endif
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312   (eval $ac_compile) 2>conftest.er1
2313   ac_status=$?
2314   grep -v '^ *+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } &&
2319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; } &&
2325          { ac_try='test -s conftest.$ac_objext'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331   for ac_declaration in \
2332    '' \
2333    'extern "C" void std::exit (int) throw (); using std::exit;' \
2334    'extern "C" void std::exit (int); using std::exit;' \
2335    'extern "C" void exit (int) throw ();' \
2336    'extern "C" void exit (int);' \
2337    'void exit (int);'
2338 do
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345 $ac_declaration
2346 #include <stdlib.h>
2347 int
2348 main ()
2349 {
2350 exit (42);
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357   (eval $ac_compile) 2>conftest.er1
2358   ac_status=$?
2359   grep -v '^ *+' conftest.er1 >conftest.err
2360   rm -f conftest.er1
2361   cat conftest.err >&5
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; } &&
2370          { ac_try='test -s conftest.$ac_objext'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; }; then
2376   :
2377 else
2378   echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 continue
2382 fi
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384   cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h.  */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h.  */
2390 $ac_declaration
2391 int
2392 main ()
2393 {
2394 exit (42);
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401   (eval $ac_compile) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; } &&
2414          { ac_try='test -s conftest.$ac_objext'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   break
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 fi
2426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427 done
2428 rm -f conftest*
2429 if test -n "$ac_declaration"; then
2430   echo '#ifdef __cplusplus' >>confdefs.h
2431   echo $ac_declaration      >>confdefs.h
2432   echo '#endif'             >>confdefs.h
2433 fi
2434
2435 else
2436   echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 fi
2440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441 ac_ext=c
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446
2447 ac_ext=cc
2448 ac_cpp='$CXXCPP $CPPFLAGS'
2449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2452 if test -n "$ac_tool_prefix"; then
2453   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2454   do
2455     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2457 echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2459 if test "${ac_cv_prog_CXX+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   if test -n "$CXX"; then
2463   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468   IFS=$as_save_IFS
2469   test -z "$as_dir" && as_dir=.
2470   for ac_exec_ext in '' $ac_executable_extensions; do
2471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474     break 2
2475   fi
2476 done
2477 done
2478
2479 fi
2480 fi
2481 CXX=$ac_cv_prog_CXX
2482 if test -n "$CXX"; then
2483   echo "$as_me:$LINENO: result: $CXX" >&5
2484 echo "${ECHO_T}$CXX" >&6
2485 else
2486   echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2488 fi
2489
2490     test -n "$CXX" && break
2491   done
2492 fi
2493 if test -z "$CXX"; then
2494   ac_ct_CXX=$CXX
2495   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2496 do
2497   # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   if test -n "$ac_ct_CXX"; then
2505   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510   IFS=$as_save_IFS
2511   test -z "$as_dir" && as_dir=.
2512   for ac_exec_ext in '' $ac_executable_extensions; do
2513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514     ac_cv_prog_ac_ct_CXX="$ac_prog"
2515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516     break 2
2517   fi
2518 done
2519 done
2520
2521 fi
2522 fi
2523 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2524 if test -n "$ac_ct_CXX"; then
2525   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2526 echo "${ECHO_T}$ac_ct_CXX" >&6
2527 else
2528   echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2530 fi
2531
2532   test -n "$ac_ct_CXX" && break
2533 done
2534 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2535
2536   CXX=$ac_ct_CXX
2537 fi
2538
2539
2540 # Provide some information about the compiler.
2541 echo "$as_me:$LINENO:" \
2542      "checking for C++ compiler version" >&5
2543 ac_compiler=`set X $ac_compile; echo $2`
2544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2545   (eval $ac_compiler --version </dev/null >&5) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }
2549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2550   (eval $ac_compiler -v </dev/null >&5) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }
2554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2555   (eval $ac_compiler -V </dev/null >&5) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }
2559
2560 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2561 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2562 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 int
2573 main ()
2574 {
2575 #ifndef __GNUC__
2576        choke me
2577 #endif
2578
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585   (eval $ac_compile) 2>conftest.er1
2586   ac_status=$?
2587   grep -v '^ *+' conftest.er1 >conftest.err
2588   rm -f conftest.er1
2589   cat conftest.err >&5
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); } &&
2592          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604   ac_compiler_gnu=yes
2605 else
2606   echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 ac_compiler_gnu=no
2610 fi
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2613
2614 fi
2615 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2616 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2617 GXX=`test $ac_compiler_gnu = yes && echo yes`
2618 ac_test_CXXFLAGS=${CXXFLAGS+set}
2619 ac_save_CXXFLAGS=$CXXFLAGS
2620 CXXFLAGS="-g"
2621 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cxx_g+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h.  */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h.  */
2632
2633 int
2634 main ()
2635 {
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>conftest.er1
2644   ac_status=$?
2645   grep -v '^ *+' conftest.er1 >conftest.err
2646   rm -f conftest.er1
2647   cat conftest.err >&5
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; } &&
2656          { ac_try='test -s conftest.$ac_objext'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; }; then
2662   ac_cv_prog_cxx_g=yes
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 ac_cv_prog_cxx_g=no
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 fi
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2673 if test "$ac_test_CXXFLAGS" = set; then
2674   CXXFLAGS=$ac_save_CXXFLAGS
2675 elif test $ac_cv_prog_cxx_g = yes; then
2676   if test "$GXX" = yes; then
2677     CXXFLAGS="-g -O2"
2678   else
2679     CXXFLAGS="-g"
2680   fi
2681 else
2682   if test "$GXX" = yes; then
2683     CXXFLAGS="-O2"
2684   else
2685     CXXFLAGS=
2686   fi
2687 fi
2688 for ac_declaration in \
2689    '' \
2690    'extern "C" void std::exit (int) throw (); using std::exit;' \
2691    'extern "C" void std::exit (int); using std::exit;' \
2692    'extern "C" void exit (int) throw ();' \
2693    'extern "C" void exit (int);' \
2694    'void exit (int);'
2695 do
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702 $ac_declaration
2703 #include <stdlib.h>
2704 int
2705 main ()
2706 {
2707 exit (42);
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714   (eval $ac_compile) 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   :
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 continue
2739 fi
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741   cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747 $ac_declaration
2748 int
2749 main ()
2750 {
2751 exit (42);
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758   (eval $ac_compile) 2>conftest.er1
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
2762   cat conftest.err >&5
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; } &&
2771          { ac_try='test -s conftest.$ac_objext'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   break
2778 else
2779   echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 fi
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 done
2785 rm -f conftest*
2786 if test -n "$ac_declaration"; then
2787   echo '#ifdef __cplusplus' >>confdefs.h
2788   echo $ac_declaration      >>confdefs.h
2789   echo '#endif'             >>confdefs.h
2790 fi
2791
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798 if test -n "$ac_tool_prefix"; then
2799   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   if test -n "$CPPBIN"; then
2807   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814   for ac_exec_ext in '' $ac_executable_extensions; do
2815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821 done
2822
2823 fi
2824 fi
2825 CPPBIN=$ac_cv_prog_CPPBIN
2826 if test -n "$CPPBIN"; then
2827   echo "$as_me:$LINENO: result: $CPPBIN" >&5
2828 echo "${ECHO_T}$CPPBIN" >&6
2829 else
2830   echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832 fi
2833
2834 fi
2835 if test -z "$ac_cv_prog_CPPBIN"; then
2836   ac_ct_CPPBIN=$CPPBIN
2837   # Extract the first word of "cpp", so it can be a program name with args.
2838 set dummy cpp; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   if test -n "$ac_ct_CPPBIN"; then
2845   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852   for ac_exec_ext in '' $ac_executable_extensions; do
2853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854     ac_cv_prog_ac_ct_CPPBIN="cpp"
2855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859 done
2860
2861   test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2862 fi
2863 fi
2864 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2865 if test -n "$ac_ct_CPPBIN"; then
2866   echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2867 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2868 else
2869   echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2871 fi
2872
2873   CPPBIN=$ac_ct_CPPBIN
2874 else
2875   CPPBIN="$ac_cv_prog_CPPBIN"
2876 fi
2877
2878
2879 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2880 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2881 if test "${wine_cv_toolsdir+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   if test -z "$with_wine_tools"; then
2885      if test "$cross_compiling" = "yes"; then
2886        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2887 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2888    { (exit 1); exit 1; }; }
2889      else
2890        wine_cv_toolsdir="\$(TOPOBJDIR)"
2891      fi
2892    elif test -d "$with_wine_tools/tools/winebuild"; then
2893      case $with_wine_tools in
2894        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2895        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2896      esac
2897    else
2898      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2899 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2900    { (exit 1); exit 1; }; }
2901    fi
2902 fi
2903 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2904 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2905 TOOLSDIR=$wine_cv_toolsdir
2906
2907
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2918   CPP=
2919 fi
2920 if test -z "$CPP"; then
2921   if test "${ac_cv_prog_CPP+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924       # Double quotes because CPP needs to be expanded
2925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926     do
2927       ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2929 do
2930   # Use a header file that comes with gcc, so configuring glibc
2931   # with a fresh cross-compiler works.
2932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933   # <limits.h> exists even on freestanding compilers.
2934   # On the NeXT, cc -E runs the code through the compiler's parser,
2935   # not just through cpp. "Syntax error" is here to catch this case.
2936   cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947                      Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null; then
2957   if test -s conftest.err; then
2958     ac_cpp_err=$ac_c_preproc_warn_flag
2959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960   else
2961     ac_cpp_err=
2962   fi
2963 else
2964   ac_cpp_err=yes
2965 fi
2966 if test -z "$ac_cpp_err"; then
2967   :
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972   # Broken: fails on valid input.
2973 continue
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976
2977   # OK, works on sane cases.  Now check whether non-existent headers
2978   # can be detected and how.
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } >/dev/null; then
2995   if test -s conftest.err; then
2996     ac_cpp_err=$ac_c_preproc_warn_flag
2997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998   else
2999     ac_cpp_err=
3000   fi
3001 else
3002   ac_cpp_err=yes
3003 fi
3004 if test -z "$ac_cpp_err"; then
3005   # Broken: success on invalid input.
3006 continue
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011   # Passes both tests.
3012 ac_preproc_ok=:
3013 break
3014 fi
3015 rm -f conftest.err conftest.$ac_ext
3016
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3021   break
3022 fi
3023
3024     done
3025     ac_cv_prog_CPP=$CPP
3026
3027 fi
3028   CPP=$ac_cv_prog_CPP
3029 else
3030   ac_cv_prog_CPP=$CPP
3031 fi
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3034 ac_preproc_ok=false
3035 for ac_c_preproc_warn_flag in '' yes
3036 do
3037   # Use a header file that comes with gcc, so configuring glibc
3038   # with a fresh cross-compiler works.
3039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040   # <limits.h> exists even on freestanding compilers.
3041   # On the NeXT, cc -E runs the code through the compiler's parser,
3042   # not just through cpp. "Syntax error" is here to catch this case.
3043   cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054                      Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } >/dev/null; then
3064   if test -s conftest.err; then
3065     ac_cpp_err=$ac_c_preproc_warn_flag
3066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067   else
3068     ac_cpp_err=
3069   fi
3070 else
3071   ac_cpp_err=yes
3072 fi
3073 if test -z "$ac_cpp_err"; then
3074   :
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Broken: fails on valid input.
3080 continue
3081 fi
3082 rm -f conftest.err conftest.$ac_ext
3083
3084   # OK, works on sane cases.  Now check whether non-existent headers
3085   # can be detected and how.
3086   cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096   ac_status=$?
3097   grep -v '^ *+' conftest.er1 >conftest.err
3098   rm -f conftest.er1
3099   cat conftest.err >&5
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); } >/dev/null; then
3102   if test -s conftest.err; then
3103     ac_cpp_err=$ac_c_preproc_warn_flag
3104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105   else
3106     ac_cpp_err=
3107   fi
3108 else
3109   ac_cpp_err=yes
3110 fi
3111 if test -z "$ac_cpp_err"; then
3112   # Broken: success on invalid input.
3113 continue
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118   # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3121 fi
3122 rm -f conftest.err conftest.$ac_ext
3123
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3128   :
3129 else
3130   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134    { (exit 1); exit 1; }; }
3135 fi
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144
3145 if test "x$ac_path_x_has_been_run" != xyes; then
3146   echo "$as_me:$LINENO: checking for X" >&5
3147 echo $ECHO_N "checking for X... $ECHO_C" >&6
3148
3149 ac_path_x_has_been_run=yes
3150
3151 # Check whether --with-x or --without-x was given.
3152 if test "${with_x+set}" = set; then
3153   withval="$with_x"
3154
3155 fi;
3156 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3157 if test "x$with_x" = xno; then
3158   # The user explicitly disabled X.
3159   have_x=disabled
3160 else
3161   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3162     # Both variables are already set.
3163     have_x=yes
3164   else
3165     if test "${ac_cv_have_x+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   # One or both of the vars are not set, and there is no cached value.
3169 ac_x_includes=no ac_x_libraries=no
3170 rm -fr conftest.dir
3171 if mkdir conftest.dir; then
3172   cd conftest.dir
3173   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3174   cat >Imakefile <<'_ACEOF'
3175 acfindx:
3176         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3177 _ACEOF
3178   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3179     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3180     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3181     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3182     for ac_extension in a so sl; do
3183       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3184          test -f $ac_im_libdir/libX11.$ac_extension; then
3185         ac_im_usrlibdir=$ac_im_libdir; break
3186       fi
3187     done
3188     # Screen out bogus values from the imake configuration.  They are
3189     # bogus both because they are the default anyway, and because
3190     # using them would break gcc on systems where it needs fixed includes.
3191     case $ac_im_incroot in
3192         /usr/include) ;;
3193         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3194     esac
3195     case $ac_im_usrlibdir in
3196         /usr/lib | /lib) ;;
3197         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3198     esac
3199   fi
3200   cd ..
3201   rm -fr conftest.dir
3202 fi
3203
3204 # Standard set of common directories for X headers.
3205 # Check X11 before X11Rn because it is often a symlink to the current release.
3206 ac_x_header_dirs='
3207 /usr/X11/include
3208 /usr/X11R6/include
3209 /usr/X11R5/include
3210 /usr/X11R4/include
3211
3212 /usr/include/X11
3213 /usr/include/X11R6
3214 /usr/include/X11R5
3215 /usr/include/X11R4
3216
3217 /usr/local/X11/include
3218 /usr/local/X11R6/include
3219 /usr/local/X11R5/include
3220 /usr/local/X11R4/include
3221
3222 /usr/local/include/X11
3223 /usr/local/include/X11R6
3224 /usr/local/include/X11R5
3225 /usr/local/include/X11R4
3226
3227 /usr/X386/include
3228 /usr/x386/include
3229 /usr/XFree86/include/X11
3230
3231 /usr/include
3232 /usr/local/include
3233 /usr/unsupported/include
3234 /usr/athena/include
3235 /usr/local/x11r5/include
3236 /usr/lpp/Xamples/include
3237
3238 /usr/openwin/include
3239 /usr/openwin/share/include'
3240
3241 if test "$ac_x_includes" = no; then
3242   # Guess where to find include files, by looking for a specified header file.
3243   # First, try using that file with no special directory specified.
3244   cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h.  */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h.  */
3250 #include <X11/Intrinsic.h>
3251 _ACEOF
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } >/dev/null; then
3260   if test -s conftest.err; then
3261     ac_cpp_err=$ac_c_preproc_warn_flag
3262     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263   else
3264     ac_cpp_err=
3265   fi
3266 else
3267   ac_cpp_err=yes
3268 fi
3269 if test -z "$ac_cpp_err"; then
3270   # We can compile using X headers with no special include directory.
3271 ac_x_includes=
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276   for ac_dir in $ac_x_header_dirs; do
3277   if test -r "$ac_dir/X11/Intrinsic.h"; then
3278     ac_x_includes=$ac_dir
3279     break
3280   fi
3281 done
3282 fi
3283 rm -f conftest.err conftest.$ac_ext
3284 fi # $ac_x_includes = no
3285
3286 if test "$ac_x_libraries" = no; then
3287   # Check for the libraries.
3288   # See if we find them without any special options.
3289   # Don't add to $LIBS permanently.
3290   ac_save_LIBS=$LIBS
3291   LIBS="-lXt $LIBS"
3292   cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 #include <X11/Intrinsic.h>
3299 int
3300 main ()
3301 {
3302 XtMalloc (0)
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309   (eval $ac_link) 2>conftest.er1
3310   ac_status=$?
3311   grep -v '^ *+' conftest.er1 >conftest.err
3312   rm -f conftest.er1
3313   cat conftest.err >&5
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } &&
3316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318   (eval $ac_try) 2>&5
3319   ac_status=$?
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); }; } &&
3322          { ac_try='test -s conftest$ac_exeext'
3323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324   (eval $ac_try) 2>&5
3325   ac_status=$?
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); }; }; then
3328   LIBS=$ac_save_LIBS
3329 # We can link X programs with no special library path.
3330 ac_x_libraries=
3331 else
3332   echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335 LIBS=$ac_save_LIBS
3336 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3337 do
3338   # Don't even attempt the hair of trying to link an X program!
3339   for ac_extension in a so sl; do
3340     if test -r $ac_dir/libXt.$ac_extension; then
3341       ac_x_libraries=$ac_dir
3342       break 2
3343     fi
3344   done
3345 done
3346 fi
3347 rm -f conftest.err conftest.$ac_objext \
3348       conftest$ac_exeext conftest.$ac_ext
3349 fi # $ac_x_libraries = no
3350
3351 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3352   # Didn't find X anywhere.  Cache the known absence of X.
3353   ac_cv_have_x="have_x=no"
3354 else
3355   # Record where we found X for the cache.
3356   ac_cv_have_x="have_x=yes \
3357                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3358 fi
3359 fi
3360
3361   fi
3362   eval "$ac_cv_have_x"
3363 fi # $with_x != no
3364
3365 if test "$have_x" != yes; then
3366   echo "$as_me:$LINENO: result: $have_x" >&5
3367 echo "${ECHO_T}$have_x" >&6
3368   no_x=yes
3369 else
3370   # If each of the values was on the command line, it overrides each guess.
3371   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3372   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3373   # Update the cache value to reflect the command line values.
3374   ac_cv_have_x="have_x=yes \
3375                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3376   # It might be that x_includes is empty (headers are found in the
3377   # standard search path. Then output the corresponding message
3378   ac_out_x_includes=$x_includes
3379   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3380   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3381 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3382 fi
3383
3384 fi
3385 if test "$no_x" = yes; then
3386   # Not all programs may use this symbol, but it does not hurt to define it.
3387
3388 cat >>confdefs.h <<\_ACEOF
3389 #define X_DISPLAY_MISSING 1
3390 _ACEOF
3391
3392   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3393 else
3394   if test -n "$x_includes"; then
3395     X_CFLAGS="$X_CFLAGS -I$x_includes"
3396   fi
3397
3398   # It would also be nice to do this for all -L options, not just this one.
3399   if test -n "$x_libraries"; then
3400     X_LIBS="$X_LIBS -L$x_libraries"
3401     # For Solaris; some versions of Sun CC require a space after -R and
3402     # others require no space.  Words are not sufficient . . . .
3403     case `(uname -sr) 2>/dev/null` in
3404     "SunOS 5"*)
3405       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3406 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3407       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3408       cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414
3415 int
3416 main ()
3417 {
3418
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.$ac_objext conftest$ac_exeext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3425   (eval $ac_link) 2>conftest.er1
3426   ac_status=$?
3427   grep -v '^ *+' conftest.er1 >conftest.err
3428   rm -f conftest.er1
3429   cat conftest.err >&5
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } &&
3432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434   (eval $ac_try) 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; } &&
3438          { ac_try='test -s conftest$ac_exeext'
3439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440   (eval $ac_try) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); }; }; then
3444   ac_R_nospace=yes
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 ac_R_nospace=no
3450 fi
3451 rm -f conftest.err conftest.$ac_objext \
3452       conftest$ac_exeext conftest.$ac_ext
3453       if test $ac_R_nospace = yes; then
3454         echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456         X_LIBS="$X_LIBS -R$x_libraries"
3457       else
3458         LIBS="$ac_xsave_LIBS -R $x_libraries"
3459         cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.$ac_objext conftest$ac_exeext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3476   (eval $ac_link) 2>conftest.er1
3477   ac_status=$?
3478   grep -v '^ *+' conftest.er1 >conftest.err
3479   rm -f conftest.er1
3480   cat conftest.err >&5
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } &&
3483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; } &&
3489          { ac_try='test -s conftest$ac_exeext'
3490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491   (eval $ac_try) 2>&5
3492   ac_status=$?
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); }; }; then
3495   ac_R_space=yes
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 ac_R_space=no
3501 fi
3502 rm -f conftest.err conftest.$ac_objext \
3503       conftest$ac_exeext conftest.$ac_ext
3504         if test $ac_R_space = yes; then
3505           echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3507           X_LIBS="$X_LIBS -R $x_libraries"
3508         else
3509           echo "$as_me:$LINENO: result: neither works" >&5
3510 echo "${ECHO_T}neither works" >&6
3511         fi
3512       fi
3513       LIBS=$ac_xsave_LIBS
3514     esac
3515   fi
3516
3517   # Check for system-dependent libraries X programs must link with.
3518   # Do this before checking for the system-independent R6 libraries
3519   # (-lICE), since we may need -lsocket or whatever for X linking.
3520
3521   if test "$ISC" = yes; then
3522     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3523   else
3524     # Martyn Johnson says this is needed for Ultrix, if the X
3525     # libraries were built with DECnet support.  And Karl Berry says
3526     # the Alpha needs dnet_stub (dnet does not exist).
3527     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3528     cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h.  */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h.  */
3534
3535 /* Override any gcc2 internal prototype to avoid an error.  */
3536 #ifdef __cplusplus
3537 extern "C"
3538 #endif
3539 /* We use char because int might match the return type of a gcc2
3540    builtin and then its argument prototype would still apply.  */
3541 char XOpenDisplay ();
3542 int
3543 main ()
3544 {
3545 XOpenDisplay ();
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext conftest$ac_exeext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3552   (eval $ac_link) 2>conftest.er1
3553   ac_status=$?
3554   grep -v '^ *+' conftest.er1 >conftest.err
3555   rm -f conftest.er1
3556   cat conftest.err >&5
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); } &&
3559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561   (eval $ac_try) 2>&5
3562   ac_status=$?
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); }; } &&
3565          { ac_try='test -s conftest$ac_exeext'
3566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567   (eval $ac_try) 2>&5
3568   ac_status=$?
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); }; }; then
3571   :
3572 else
3573   echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3577 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3578 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   ac_check_lib_save_LIBS=$LIBS
3582 LIBS="-ldnet  $LIBS"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589
3590 /* Override any gcc2 internal prototype to avoid an error.  */
3591 #ifdef __cplusplus
3592 extern "C"
3593 #endif
3594 /* We use char because int might match the return type of a gcc2
3595    builtin and then its argument prototype would still apply.  */
3596 char dnet_ntoa ();
3597 int
3598 main ()
3599 {
3600 dnet_ntoa ();
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext conftest$ac_exeext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607   (eval $ac_link) 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } &&
3614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616   (eval $ac_try) 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; } &&
3620          { ac_try='test -s conftest$ac_exeext'
3621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622   (eval $ac_try) 2>&5
3623   ac_status=$?
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); }; }; then
3626   ac_cv_lib_dnet_dnet_ntoa=yes
3627 else
3628   echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 ac_cv_lib_dnet_dnet_ntoa=no
3632 fi
3633 rm -f conftest.err conftest.$ac_objext \
3634       conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3638 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3639 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3640   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3641 fi
3642
3643     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3644       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3645 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3646 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   ac_check_lib_save_LIBS=$LIBS
3650 LIBS="-ldnet_stub  $LIBS"
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657
3658 /* Override any gcc2 internal prototype to avoid an error.  */
3659 #ifdef __cplusplus
3660 extern "C"
3661 #endif
3662 /* We use char because int might match the return type of a gcc2
3663    builtin and then its argument prototype would still apply.  */
3664 char dnet_ntoa ();
3665 int
3666 main ()
3667 {
3668 dnet_ntoa ();
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675   (eval $ac_link) 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } &&
3682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; } &&
3688          { ac_try='test -s conftest$ac_exeext'
3689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690   (eval $ac_try) 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 ac_cv_lib_dnet_stub_dnet_ntoa=no
3700 fi
3701 rm -f conftest.err conftest.$ac_objext \
3702       conftest$ac_exeext conftest.$ac_ext
3703 LIBS=$ac_check_lib_save_LIBS
3704 fi
3705 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3706 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3707 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3708   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3709 fi
3710
3711     fi
3712 fi
3713 rm -f conftest.err conftest.$ac_objext \
3714       conftest$ac_exeext conftest.$ac_ext
3715     LIBS="$ac_xsave_LIBS"
3716
3717     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3718     # to get the SysV transport functions.
3719     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3720     # needs -lnsl.
3721     # The nsl library prevents programs from opening the X display
3722     # on Irix 5.2, according to T.E. Dickey.
3723     # The functions gethostbyname, getservbyname, and inet_addr are
3724     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3725     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3726 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3727 if test "${ac_cv_func_gethostbyname+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h.  */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h.  */
3736 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3738 #define gethostbyname innocuous_gethostbyname
3739
3740 /* System header to define __stub macros and hopefully few prototypes,
3741     which can conflict with char gethostbyname (); below.
3742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3743     <limits.h> exists even on freestanding compilers.  */
3744
3745 #ifdef __STDC__
3746 # include <limits.h>
3747 #else
3748 # include <assert.h>
3749 #endif
3750
3751 #undef gethostbyname
3752
3753 /* Override any gcc2 internal prototype to avoid an error.  */
3754 #ifdef __cplusplus
3755 extern "C"
3756 {
3757 #endif
3758 /* We use char because int might match the return type of a gcc2
3759    builtin and then its argument prototype would still apply.  */
3760 char gethostbyname ();
3761 /* The GNU C library defines this for functions which it implements
3762     to always fail with ENOSYS.  Some functions are actually named
3763     something starting with __ and the normal name is an alias.  */
3764 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3765 choke me
3766 #else
3767 char (*f) () = gethostbyname;
3768 #endif
3769 #ifdef __cplusplus
3770 }
3771 #endif
3772
3773 int
3774 main ()
3775 {
3776 return f != gethostbyname;
3777   ;
3778   return 0;
3779 }
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783   (eval $ac_link) 2>conftest.er1
3784   ac_status=$?
3785   grep -v '^ *+' conftest.er1 >conftest.err
3786   rm -f conftest.er1
3787   cat conftest.err >&5
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); } &&
3790          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); }; } &&
3796          { ac_try='test -s conftest$ac_exeext'
3797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798   (eval $ac_try) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; }; then
3802   ac_cv_func_gethostbyname=yes
3803 else
3804   echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 ac_cv_func_gethostbyname=no
3808 fi
3809 rm -f conftest.err conftest.$ac_objext \
3810       conftest$ac_exeext conftest.$ac_ext
3811 fi
3812 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3813 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3814
3815     if test $ac_cv_func_gethostbyname = no; then
3816       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3817 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3818 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3819   echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821   ac_check_lib_save_LIBS=$LIBS
3822 LIBS="-lnsl  $LIBS"
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h.  */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h.  */
3829
3830 /* Override any gcc2 internal prototype to avoid an error.  */
3831 #ifdef __cplusplus
3832 extern "C"
3833 #endif
3834 /* We use char because int might match the return type of a gcc2
3835    builtin and then its argument prototype would still apply.  */
3836 char gethostbyname ();
3837 int
3838 main ()
3839 {
3840 gethostbyname ();
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847   (eval $ac_link) 2>conftest.er1
3848   ac_status=$?
3849   grep -v '^ *+' conftest.er1 >conftest.err
3850   rm -f conftest.er1
3851   cat conftest.err >&5
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); } &&
3854          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856   (eval $ac_try) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; } &&
3860          { ac_try='test -s conftest$ac_exeext'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   ac_cv_lib_nsl_gethostbyname=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 ac_cv_lib_nsl_gethostbyname=no
3872 fi
3873 rm -f conftest.err conftest.$ac_objext \
3874       conftest$ac_exeext conftest.$ac_ext
3875 LIBS=$ac_check_lib_save_LIBS
3876 fi
3877 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3878 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3879 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3880   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3881 fi
3882
3883       if test $ac_cv_lib_nsl_gethostbyname = no; then
3884         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3885 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3886 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   ac_check_lib_save_LIBS=$LIBS
3890 LIBS="-lbsd  $LIBS"
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897
3898 /* Override any gcc2 internal prototype to avoid an error.  */
3899 #ifdef __cplusplus
3900 extern "C"
3901 #endif
3902 /* We use char because int might match the return type of a gcc2
3903    builtin and then its argument prototype would still apply.  */
3904 char gethostbyname ();
3905 int
3906 main ()
3907 {
3908 gethostbyname ();
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915   (eval $ac_link) 2>conftest.er1
3916   ac_status=$?
3917   grep -v '^ *+' conftest.er1 >conftest.err
3918   rm -f conftest.er1
3919   cat conftest.err >&5
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); } &&
3922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924   (eval $ac_try) 2>&5
3925   ac_status=$?
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); }; } &&
3928          { ac_try='test -s conftest$ac_exeext'
3929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930   (eval $ac_try) 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; }; then
3934   ac_cv_lib_bsd_gethostbyname=yes
3935 else
3936   echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 ac_cv_lib_bsd_gethostbyname=no
3940 fi
3941 rm -f conftest.err conftest.$ac_objext \
3942       conftest$ac_exeext conftest.$ac_ext
3943 LIBS=$ac_check_lib_save_LIBS
3944 fi
3945 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3946 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3947 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3948   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3949 fi
3950
3951       fi
3952     fi
3953
3954     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3955     # socket/setsockopt and other routines are undefined under SCO ODT
3956     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3957     # on later versions), says Simon Leinen: it contains gethostby*
3958     # variants that don't use the name server (or something).  -lsocket
3959     # must be given before -lnsl if both are needed.  We assume that
3960     # if connect needs -lnsl, so does gethostbyname.
3961     echo "$as_me:$LINENO: checking for connect" >&5
3962 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3963 if test "${ac_cv_func_connect+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h.  */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h.  */
3972 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3974 #define connect innocuous_connect
3975
3976 /* System header to define __stub macros and hopefully few prototypes,
3977     which can conflict with char connect (); below.
3978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979     <limits.h> exists even on freestanding compilers.  */
3980
3981 #ifdef __STDC__
3982 # include <limits.h>
3983 #else
3984 # include <assert.h>
3985 #endif
3986
3987 #undef connect
3988
3989 /* Override any gcc2 internal prototype to avoid an error.  */
3990 #ifdef __cplusplus
3991 extern "C"
3992 {
3993 #endif
3994 /* We use char because int might match the return type of a gcc2
3995    builtin and then its argument prototype would still apply.  */
3996 char connect ();
3997 /* The GNU C library defines this for functions which it implements
3998     to always fail with ENOSYS.  Some functions are actually named
3999     something starting with __ and the normal name is an alias.  */
4000 #if defined (__stub_connect) || defined (__stub___connect)
4001 choke me
4002 #else
4003 char (*f) () = connect;
4004 #endif
4005 #ifdef __cplusplus
4006 }
4007 #endif
4008
4009 int
4010 main ()
4011 {
4012 return f != connect;
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext conftest$ac_exeext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4019   (eval $ac_link) 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } &&
4026          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028   (eval $ac_try) 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; } &&
4032          { ac_try='test -s conftest$ac_exeext'
4033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034   (eval $ac_try) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); }; }; then
4038   ac_cv_func_connect=yes
4039 else
4040   echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043 ac_cv_func_connect=no
4044 fi
4045 rm -f conftest.err conftest.$ac_objext \
4046       conftest$ac_exeext conftest.$ac_ext
4047 fi
4048 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4049 echo "${ECHO_T}$ac_cv_func_connect" >&6
4050
4051     if test $ac_cv_func_connect = no; then
4052       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4053 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4054 if test "${ac_cv_lib_socket_connect+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   ac_check_lib_save_LIBS=$LIBS
4058 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065
4066 /* Override any gcc2 internal prototype to avoid an error.  */
4067 #ifdef __cplusplus
4068 extern "C"
4069 #endif
4070 /* We use char because int might match the return type of a gcc2
4071    builtin and then its argument prototype would still apply.  */
4072 char connect ();
4073 int
4074 main ()
4075 {
4076 connect ();
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.$ac_objext conftest$ac_exeext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4083   (eval $ac_link) 2>conftest.er1
4084   ac_status=$?
4085   grep -v '^ *+' conftest.er1 >conftest.err
4086   rm -f conftest.er1
4087   cat conftest.err >&5
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); } &&
4090          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; } &&
4096          { ac_try='test -s conftest$ac_exeext'
4097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098   (eval $ac_try) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   ac_cv_lib_socket_connect=yes
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_cv_lib_socket_connect=no
4108 fi
4109 rm -f conftest.err conftest.$ac_objext \
4110       conftest$ac_exeext conftest.$ac_ext
4111 LIBS=$ac_check_lib_save_LIBS
4112 fi
4113 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4114 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4115 if test $ac_cv_lib_socket_connect = yes; then
4116   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4117 fi
4118
4119     fi
4120
4121     # Guillermo Gomez says -lposix is necessary on A/UX.
4122     echo "$as_me:$LINENO: checking for remove" >&5
4123 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4124 if test "${ac_cv_func_remove+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4135 #define remove innocuous_remove
4136
4137 /* System header to define __stub macros and hopefully few prototypes,
4138     which can conflict with char remove (); below.
4139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140     <limits.h> exists even on freestanding compilers.  */
4141
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4147
4148 #undef remove
4149
4150 /* Override any gcc2 internal prototype to avoid an error.  */
4151 #ifdef __cplusplus
4152 extern "C"
4153 {
4154 #endif
4155 /* We use char because int might match the return type of a gcc2
4156    builtin and then its argument prototype would still apply.  */
4157 char remove ();
4158 /* The GNU C library defines this for functions which it implements
4159     to always fail with ENOSYS.  Some functions are actually named
4160     something starting with __ and the normal name is an alias.  */
4161 #if defined (__stub_remove) || defined (__stub___remove)
4162 choke me
4163 #else
4164 char (*f) () = remove;
4165 #endif
4166 #ifdef __cplusplus
4167 }
4168 #endif
4169
4170 int
4171 main ()
4172 {
4173 return f != remove;
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180   (eval $ac_link) 2>conftest.er1
4181   ac_status=$?
4182   grep -v '^ *+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } &&
4187          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189   (eval $ac_try) 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); }; } &&
4193          { ac_try='test -s conftest$ac_exeext'
4194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195   (eval $ac_try) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }; }; then
4199   ac_cv_func_remove=yes
4200 else
4201   echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204 ac_cv_func_remove=no
4205 fi
4206 rm -f conftest.err conftest.$ac_objext \
4207       conftest$ac_exeext conftest.$ac_ext
4208 fi
4209 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4210 echo "${ECHO_T}$ac_cv_func_remove" >&6
4211
4212     if test $ac_cv_func_remove = no; then
4213       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4214 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4215 if test "${ac_cv_lib_posix_remove+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   ac_check_lib_save_LIBS=$LIBS
4219 LIBS="-lposix  $LIBS"
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226
4227 /* Override any gcc2 internal prototype to avoid an error.  */
4228 #ifdef __cplusplus
4229 extern "C"
4230 #endif
4231 /* We use char because int might match the return type of a gcc2
4232    builtin and then its argument prototype would still apply.  */
4233 char remove ();
4234 int
4235 main ()
4236 {
4237 remove ();
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244   (eval $ac_link) 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } &&
4251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253   (eval $ac_try) 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); }; } &&
4257          { ac_try='test -s conftest$ac_exeext'
4258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259   (eval $ac_try) 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }; }; then
4263   ac_cv_lib_posix_remove=yes
4264 else
4265   echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 ac_cv_lib_posix_remove=no
4269 fi
4270 rm -f conftest.err conftest.$ac_objext \
4271       conftest$ac_exeext conftest.$ac_ext
4272 LIBS=$ac_check_lib_save_LIBS
4273 fi
4274 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4275 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4276 if test $ac_cv_lib_posix_remove = yes; then
4277   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4278 fi
4279
4280     fi
4281
4282     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4283     echo "$as_me:$LINENO: checking for shmat" >&5
4284 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4285 if test "${ac_cv_func_shmat+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h.  */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h.  */
4294 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4296 #define shmat innocuous_shmat
4297
4298 /* System header to define __stub macros and hopefully few prototypes,
4299     which can conflict with char shmat (); below.
4300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4301     <limits.h> exists even on freestanding compilers.  */
4302
4303 #ifdef __STDC__
4304 # include <limits.h>
4305 #else
4306 # include <assert.h>
4307 #endif
4308
4309 #undef shmat
4310
4311 /* Override any gcc2 internal prototype to avoid an error.  */
4312 #ifdef __cplusplus
4313 extern "C"
4314 {
4315 #endif
4316 /* We use char because int might match the return type of a gcc2
4317    builtin and then its argument prototype would still apply.  */
4318 char shmat ();
4319 /* The GNU C library defines this for functions which it implements
4320     to always fail with ENOSYS.  Some functions are actually named
4321     something starting with __ and the normal name is an alias.  */
4322 #if defined (__stub_shmat) || defined (__stub___shmat)
4323 choke me
4324 #else
4325 char (*f) () = shmat;
4326 #endif
4327 #ifdef __cplusplus
4328 }
4329 #endif
4330
4331 int
4332 main ()
4333 {
4334 return f != shmat;
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341   (eval $ac_link) 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } &&
4348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350   (eval $ac_try) 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }; } &&
4354          { ac_try='test -s conftest$ac_exeext'
4355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356   (eval $ac_try) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }; }; then
4360   ac_cv_func_shmat=yes
4361 else
4362   echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 ac_cv_func_shmat=no
4366 fi
4367 rm -f conftest.err conftest.$ac_objext \
4368       conftest$ac_exeext conftest.$ac_ext
4369 fi
4370 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4371 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4372
4373     if test $ac_cv_func_shmat = no; then
4374       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4375 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4376 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   ac_check_lib_save_LIBS=$LIBS
4380 LIBS="-lipc  $LIBS"
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h.  */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h.  */
4387
4388 /* Override any gcc2 internal prototype to avoid an error.  */
4389 #ifdef __cplusplus
4390 extern "C"
4391 #endif
4392 /* We use char because int might match the return type of a gcc2
4393    builtin and then its argument prototype would still apply.  */
4394 char shmat ();
4395 int
4396 main ()
4397 {
4398 shmat ();
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405   (eval $ac_link) 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } &&
4412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414   (eval $ac_try) 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; } &&
4418          { ac_try='test -s conftest$ac_exeext'
4419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420   (eval $ac_try) 2>&5
4421   ac_status=$?
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); }; }; then
4424   ac_cv_lib_ipc_shmat=yes
4425 else
4426   echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429 ac_cv_lib_ipc_shmat=no
4430 fi
4431 rm -f conftest.err conftest.$ac_objext \
4432       conftest$ac_exeext conftest.$ac_ext
4433 LIBS=$ac_check_lib_save_LIBS
4434 fi
4435 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4436 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4437 if test $ac_cv_lib_ipc_shmat = yes; then
4438   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4439 fi
4440
4441     fi
4442   fi
4443
4444   # Check for libraries that X11R6 Xt/Xaw programs need.
4445   ac_save_LDFLAGS=$LDFLAGS
4446   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4447   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4448   # check for ICE first), but we must link in the order -lSM -lICE or
4449   # we get undefined symbols.  So assume we have SM if we have ICE.
4450   # These have to be linked with before -lX11, unlike the other
4451   # libraries we check for below, so use a different variable.
4452   # John Interrante, Karl Berry
4453   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4454 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4455 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   ac_check_lib_save_LIBS=$LIBS
4459 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h.  */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h.  */
4466
4467 /* Override any gcc2 internal prototype to avoid an error.  */
4468 #ifdef __cplusplus
4469 extern "C"
4470 #endif
4471 /* We use char because int might match the return type of a gcc2
4472    builtin and then its argument prototype would still apply.  */
4473 char IceConnectionNumber ();
4474 int
4475 main ()
4476 {
4477 IceConnectionNumber ();
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 rm -f conftest.$ac_objext conftest$ac_exeext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484   (eval $ac_link) 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } &&
4491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493   (eval $ac_try) 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); }; } &&
4497          { ac_try='test -s conftest$ac_exeext'
4498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499   (eval $ac_try) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; }; then
4503   ac_cv_lib_ICE_IceConnectionNumber=yes
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 ac_cv_lib_ICE_IceConnectionNumber=no
4509 fi
4510 rm -f conftest.err conftest.$ac_objext \
4511       conftest$ac_exeext conftest.$ac_ext
4512 LIBS=$ac_check_lib_save_LIBS
4513 fi
4514 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4515 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4516 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4517   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4518 fi
4519
4520   LDFLAGS=$ac_save_LDFLAGS
4521
4522 fi
4523
4524 for ac_prog in flex lex
4525 do
4526   # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_prog_LEX+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   if test -n "$LEX"; then
4534   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541   for ac_exec_ext in '' $ac_executable_extensions; do
4542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543     ac_cv_prog_LEX="$ac_prog"
4544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545     break 2
4546   fi
4547 done
4548 done
4549
4550 fi
4551 fi
4552 LEX=$ac_cv_prog_LEX
4553 if test -n "$LEX"; then
4554   echo "$as_me:$LINENO: result: $LEX" >&5
4555 echo "${ECHO_T}$LEX" >&6
4556 else
4557   echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4559 fi
4560
4561   test -n "$LEX" && break
4562 done
4563 test -n "$LEX" || LEX=":"
4564
4565 if test -z "$LEXLIB"
4566 then
4567   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4568 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4569 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   ac_check_lib_save_LIBS=$LIBS
4573 LIBS="-lfl  $LIBS"
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580
4581 /* Override any gcc2 internal prototype to avoid an error.  */
4582 #ifdef __cplusplus
4583 extern "C"
4584 #endif
4585 /* We use char because int might match the return type of a gcc2
4586    builtin and then its argument prototype would still apply.  */
4587 char yywrap ();
4588 int
4589 main ()
4590 {
4591 yywrap ();
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598   (eval $ac_link) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } &&
4605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607   (eval $ac_try) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; } &&
4611          { ac_try='test -s conftest$ac_exeext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_cv_lib_fl_yywrap=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_cv_lib_fl_yywrap=no
4623 fi
4624 rm -f conftest.err conftest.$ac_objext \
4625       conftest$ac_exeext conftest.$ac_ext
4626 LIBS=$ac_check_lib_save_LIBS
4627 fi
4628 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4629 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4630 if test $ac_cv_lib_fl_yywrap = yes; then
4631   LEXLIB="-lfl"
4632 else
4633   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4634 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4635 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4636   echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638   ac_check_lib_save_LIBS=$LIBS
4639 LIBS="-ll  $LIBS"
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646
4647 /* Override any gcc2 internal prototype to avoid an error.  */
4648 #ifdef __cplusplus
4649 extern "C"
4650 #endif
4651 /* We use char because int might match the return type of a gcc2
4652    builtin and then its argument prototype would still apply.  */
4653 char yywrap ();
4654 int
4655 main ()
4656 {
4657 yywrap ();
4658   ;
4659   return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664   (eval $ac_link) 2>conftest.er1
4665   ac_status=$?
4666   grep -v '^ *+' conftest.er1 >conftest.err
4667   rm -f conftest.er1
4668   cat conftest.err >&5
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } &&
4671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673   (eval $ac_try) 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); }; } &&
4677          { ac_try='test -s conftest$ac_exeext'
4678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679   (eval $ac_try) 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; }; then
4683   ac_cv_lib_l_yywrap=yes
4684 else
4685   echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 ac_cv_lib_l_yywrap=no
4689 fi
4690 rm -f conftest.err conftest.$ac_objext \
4691       conftest$ac_exeext conftest.$ac_ext
4692 LIBS=$ac_check_lib_save_LIBS
4693 fi
4694 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4695 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4696 if test $ac_cv_lib_l_yywrap = yes; then
4697   LEXLIB="-ll"
4698 fi
4699
4700 fi
4701
4702 fi
4703
4704 if test "x$LEX" != "x:"; then
4705   echo "$as_me:$LINENO: checking lex output file root" >&5
4706 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4707 if test "${ac_cv_prog_lex_root+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   # The minimal lex program is just a single line: %%.  But some broken lexes
4711 # (Solaris, I think it was) want two %% lines, so accommodate them.
4712 cat >conftest.l <<_ACEOF
4713 %%
4714 %%
4715 _ACEOF
4716 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4717   (eval $LEX conftest.l) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }
4721 if test -f lex.yy.c; then
4722   ac_cv_prog_lex_root=lex.yy
4723 elif test -f lexyy.c; then
4724   ac_cv_prog_lex_root=lexyy
4725 else
4726   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4727 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4728    { (exit 1); exit 1; }; }
4729 fi
4730 fi
4731 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4732 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4733 rm -f conftest.l
4734 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4735
4736 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4737 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4738 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   # POSIX says lex can declare yytext either as a pointer or an array; the
4742 # default is implementation-dependent. Figure out which it is, since
4743 # not all implementations provide the %pointer and %array declarations.
4744 ac_cv_prog_lex_yytext_pointer=no
4745 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4746 ac_save_LIBS=$LIBS
4747 LIBS="$LIBS $LEXLIB"
4748 cat >conftest.$ac_ext <<_ACEOF
4749 `cat $LEX_OUTPUT_ROOT.c`
4750 _ACEOF
4751 rm -f conftest.$ac_objext conftest$ac_exeext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4753   (eval $ac_link) 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } &&
4760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; } &&
4766          { ac_try='test -s conftest$ac_exeext'
4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768   (eval $ac_try) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }; }; then
4772   ac_cv_prog_lex_yytext_pointer=yes
4773 else
4774   echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 fi
4778 rm -f conftest.err conftest.$ac_objext \
4779       conftest$ac_exeext conftest.$ac_ext
4780 LIBS=$ac_save_LIBS
4781 rm -f "${LEX_OUTPUT_ROOT}.c"
4782
4783 fi
4784 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4785 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4786 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4787
4788 cat >>confdefs.h <<\_ACEOF
4789 #define YYTEXT_POINTER 1
4790 _ACEOF
4791
4792 fi
4793
4794 fi
4795
4796 for ac_prog in $LEX flex lex
4797 do
4798   # Extract the first word of "$ac_prog", so it can be a program name with args.
4799 set dummy $ac_prog; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_XLEX+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   if test -n "$XLEX"; then
4806   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811   IFS=$as_save_IFS
4812   test -z "$as_dir" && as_dir=.
4813   for ac_exec_ext in '' $ac_executable_extensions; do
4814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815     ac_cv_prog_XLEX="$ac_prog"
4816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817     break 2
4818   fi
4819 done
4820 done
4821
4822 fi
4823 fi
4824 XLEX=$ac_cv_prog_XLEX
4825 if test -n "$XLEX"; then
4826   echo "$as_me:$LINENO: result: $XLEX" >&5
4827 echo "${ECHO_T}$XLEX" >&6
4828 else
4829   echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4831 fi
4832
4833   test -n "$XLEX" && break
4834 done
4835 test -n "$XLEX" || XLEX="none"
4836
4837 if test "$XLEX" = "none"
4838 then
4839   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4840 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4841    { (exit 1); exit 1; }; }
4842 fi
4843
4844 for ac_prog in bison
4845 do
4846   # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_prog_BISON+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   if test -n "$BISON"; then
4854   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861   for ac_exec_ext in '' $ac_executable_extensions; do
4862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863     ac_cv_prog_BISON="$ac_prog"
4864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868 done
4869
4870 fi
4871 fi
4872 BISON=$ac_cv_prog_BISON
4873 if test -n "$BISON"; then
4874   echo "$as_me:$LINENO: result: $BISON" >&5
4875 echo "${ECHO_T}$BISON" >&6
4876 else
4877   echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4879 fi
4880
4881   test -n "$BISON" && break
4882 done
4883 test -n "$BISON" || BISON="none"
4884
4885 if test "$BISON" = "none"
4886 then
4887   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4888 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4889    { (exit 1); exit 1; }; }
4890 fi
4891
4892 if test -n "$ac_tool_prefix"; then
4893   for ac_prog in gas as
4894   do
4895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_AS+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if test -n "$AS"; then
4903   ac_cv_prog_AS="$AS" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918
4919 fi
4920 fi
4921 AS=$ac_cv_prog_AS
4922 if test -n "$AS"; then
4923   echo "$as_me:$LINENO: result: $AS" >&5
4924 echo "${ECHO_T}$AS" >&6
4925 else
4926   echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4928 fi
4929
4930     test -n "$AS" && break
4931   done
4932 fi
4933 if test -z "$AS"; then
4934   ac_ct_AS=$AS
4935   for ac_prog in gas as
4936 do
4937   # Extract the first word of "$ac_prog", so it can be a program name with args.
4938 set dummy $ac_prog; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   if test -n "$ac_ct_AS"; then
4945   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952   for ac_exec_ext in '' $ac_executable_extensions; do
4953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954     ac_cv_prog_ac_ct_AS="$ac_prog"
4955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959 done
4960
4961 fi
4962 fi
4963 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4964 if test -n "$ac_ct_AS"; then
4965   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4966 echo "${ECHO_T}$ac_ct_AS" >&6
4967 else
4968   echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6
4970 fi
4971
4972   test -n "$ac_ct_AS" && break
4973 done
4974 test -n "$ac_ct_AS" || ac_ct_AS="as"
4975
4976   AS=$ac_ct_AS
4977 fi
4978
4979 if test -n "$ac_tool_prefix"; then
4980   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}ld; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_prog_LD+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   if test -n "$LD"; then
4988   ac_cv_prog_LD="$LD" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993   IFS=$as_save_IFS
4994   test -z "$as_dir" && as_dir=.
4995   for ac_exec_ext in '' $ac_executable_extensions; do
4996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997     ac_cv_prog_LD="${ac_tool_prefix}ld"
4998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999     break 2
5000   fi
5001 done
5002 done
5003
5004 fi
5005 fi
5006 LD=$ac_cv_prog_LD
5007 if test -n "$LD"; then
5008   echo "$as_me:$LINENO: result: $LD" >&5
5009 echo "${ECHO_T}$LD" >&6
5010 else
5011   echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5013 fi
5014
5015 fi
5016 if test -z "$ac_cv_prog_LD"; then
5017   ac_ct_LD=$LD
5018   # Extract the first word of "ld", so it can be a program name with args.
5019 set dummy ld; ac_word=$2
5020 echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025   if test -n "$ac_ct_LD"; then
5026   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033   for ac_exec_ext in '' $ac_executable_extensions; do
5034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035     ac_cv_prog_ac_ct_LD="ld"
5036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040 done
5041
5042   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5043 fi
5044 fi
5045 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5046 if test -n "$ac_ct_LD"; then
5047   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5048 echo "${ECHO_T}$ac_ct_LD" >&6
5049 else
5050   echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5052 fi
5053
5054   LD=$ac_ct_LD
5055 else
5056   LD="$ac_cv_prog_LD"
5057 fi
5058
5059 if test -n "$ac_tool_prefix"; then
5060   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5061 set dummy ${ac_tool_prefix}ar; ac_word=$2
5062 echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064 if test "${ac_cv_prog_AR+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   if test -n "$AR"; then
5068   ac_cv_prog_AR="$AR" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077     ac_cv_prog_AR="${ac_tool_prefix}ar"
5078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082 done
5083
5084 fi
5085 fi
5086 AR=$ac_cv_prog_AR
5087 if test -n "$AR"; then
5088   echo "$as_me:$LINENO: result: $AR" >&5
5089 echo "${ECHO_T}$AR" >&6
5090 else
5091   echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6
5093 fi
5094
5095 fi
5096 if test -z "$ac_cv_prog_AR"; then
5097   ac_ct_AR=$AR
5098   # Extract the first word of "ar", so it can be a program name with args.
5099 set dummy ar; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   if test -n "$ac_ct_AR"; then
5106   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113   for ac_exec_ext in '' $ac_executable_extensions; do
5114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_prog_ac_ct_AR="ar"
5116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120 done
5121
5122   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5123 fi
5124 fi
5125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5126 if test -n "$ac_ct_AR"; then
5127   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5128 echo "${ECHO_T}$ac_ct_AR" >&6
5129 else
5130   echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5132 fi
5133
5134   AR=$ac_ct_AR
5135 else
5136   AR="$ac_cv_prog_AR"
5137 fi
5138
5139 if test -n "$ac_tool_prefix"; then
5140   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5142 echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144 if test "${ac_cv_prog_RANLIB+set}" = set; then
5145   echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147   if test -n "$RANLIB"; then
5148   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155   for ac_exec_ext in '' $ac_executable_extensions; do
5156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162 done
5163
5164 fi
5165 fi
5166 RANLIB=$ac_cv_prog_RANLIB
5167 if test -n "$RANLIB"; then
5168   echo "$as_me:$LINENO: result: $RANLIB" >&5
5169 echo "${ECHO_T}$RANLIB" >&6
5170 else
5171   echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5173 fi
5174
5175 fi
5176 if test -z "$ac_cv_prog_RANLIB"; then
5177   ac_ct_RANLIB=$RANLIB
5178   # Extract the first word of "ranlib", so it can be a program name with args.
5179 set dummy ranlib; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   if test -n "$ac_ct_RANLIB"; then
5186   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193   for ac_exec_ext in '' $ac_executable_extensions; do
5194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195     ac_cv_prog_ac_ct_RANLIB="ranlib"
5196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200 done
5201
5202   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5203 fi
5204 fi
5205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5206 if test -n "$ac_ct_RANLIB"; then
5207   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5208 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5209 else
5210   echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5212 fi
5213
5214   RANLIB=$ac_ct_RANLIB
5215 else
5216   RANLIB="$ac_cv_prog_RANLIB"
5217 fi
5218
5219 if test -n "$ac_tool_prefix"; then
5220   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5221 set dummy ${ac_tool_prefix}strip; ac_word=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_prog_STRIP+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   if test -n "$STRIP"; then
5228   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235   for ac_exec_ext in '' $ac_executable_extensions; do
5236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242 done
5243
5244 fi
5245 fi
5246 STRIP=$ac_cv_prog_STRIP
5247 if test -n "$STRIP"; then
5248   echo "$as_me:$LINENO: result: $STRIP" >&5
5249 echo "${ECHO_T}$STRIP" >&6
5250 else
5251   echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5253 fi
5254
5255 fi
5256 if test -z "$ac_cv_prog_STRIP"; then
5257   ac_ct_STRIP=$STRIP
5258   # Extract the first word of "strip", so it can be a program name with args.
5259 set dummy strip; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   if test -n "$ac_ct_STRIP"; then
5266   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273   for ac_exec_ext in '' $ac_executable_extensions; do
5274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275     ac_cv_prog_ac_ct_STRIP="strip"
5276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280 done
5281
5282   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5283 fi
5284 fi
5285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5286 if test -n "$ac_ct_STRIP"; then
5287   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5288 echo "${ECHO_T}$ac_ct_STRIP" >&6
5289 else
5290   echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5292 fi
5293
5294   STRIP=$ac_ct_STRIP
5295 else
5296   STRIP="$ac_cv_prog_STRIP"
5297 fi
5298
5299 if test -n "$ac_tool_prefix"; then
5300   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}windres; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_WINDRES+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   if test -n "$WINDRES"; then
5308   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315   for ac_exec_ext in '' $ac_executable_extensions; do
5316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322 done
5323
5324 fi
5325 fi
5326 WINDRES=$ac_cv_prog_WINDRES
5327 if test -n "$WINDRES"; then
5328   echo "$as_me:$LINENO: result: $WINDRES" >&5
5329 echo "${ECHO_T}$WINDRES" >&6
5330 else
5331   echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5333 fi
5334
5335 fi
5336 if test -z "$ac_cv_prog_WINDRES"; then
5337   ac_ct_WINDRES=$WINDRES
5338   # Extract the first word of "windres", so it can be a program name with args.
5339 set dummy windres; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   if test -n "$ac_ct_WINDRES"; then
5346   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353   for ac_exec_ext in '' $ac_executable_extensions; do
5354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355     ac_cv_prog_ac_ct_WINDRES="windres"
5356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360 done
5361
5362   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5363 fi
5364 fi
5365 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5366 if test -n "$ac_ct_WINDRES"; then
5367   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5368 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5369 else
5370   echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5372 fi
5373
5374   WINDRES=$ac_ct_WINDRES
5375 else
5376   WINDRES="$ac_cv_prog_WINDRES"
5377 fi
5378
5379 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5380 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5381 LN_S=$as_ln_s
5382 if test "$LN_S" = "ln -s"; then
5383   echo "$as_me:$LINENO: result: yes" >&5
5384 echo "${ECHO_T}yes" >&6
5385 else
5386   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5387 echo "${ECHO_T}no, using $LN_S" >&6
5388 fi
5389
5390 echo "$as_me:$LINENO: checking whether ln works" >&5
5391 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5392 rm -f conf$$ conf$$.file
5393 echo >conf$$.file
5394 if ln conf$$.file conf$$ 2>/dev/null; then
5395   LN=ln
5396
5397   echo "$as_me:$LINENO: result: yes" >&5
5398 echo "${ECHO_T}yes" >&6
5399 else
5400   LN="cp -p"
5401
5402   echo "$as_me:$LINENO: result: no, using $LN" >&5
5403 echo "${ECHO_T}no, using $LN" >&6
5404 fi
5405 rm -f conf$$ conf$$.file
5406 echo "$as_me:$LINENO: checking for egrep" >&5
5407 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5408 if test "${ac_cv_prog_egrep+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5412     then ac_cv_prog_egrep='grep -E'
5413     else ac_cv_prog_egrep='egrep'
5414     fi
5415 fi
5416 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5417 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5418  EGREP=$ac_cv_prog_egrep
5419
5420
5421 # Extract the first word of "ldconfig", so it can be a program name with args.
5422 set dummy ldconfig; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428   case $LDCONFIG in
5429   [\\/]* | ?:[\\/]*)
5430   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5431   ;;
5432   *)
5433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in /sbin /usr/sbin $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438   for ac_exec_ext in '' $ac_executable_extensions; do
5439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445 done
5446
5447   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5448   ;;
5449 esac
5450 fi
5451 LDCONFIG=$ac_cv_path_LDCONFIG
5452
5453 if test -n "$LDCONFIG"; then
5454   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5455 echo "${ECHO_T}$LDCONFIG" >&6
5456 else
5457   echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5459 fi
5460
5461 # Find a good install program.  We prefer a C program (faster),
5462 # so one script is as good as another.  But avoid the broken or
5463 # incompatible versions:
5464 # SysV /etc/install, /usr/sbin/install
5465 # SunOS /usr/etc/install
5466 # IRIX /sbin/install
5467 # AIX /bin/install
5468 # AmigaOS /C/install, which installs bootblocks on floppy discs
5469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5472 # OS/2's system install, which has a completely different semantic
5473 # ./install, which can be erroneously created by make from ./install.sh.
5474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5476 if test -z "$INSTALL"; then
5477 if test "${ac_cv_path_install+set}" = set; then
5478   echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483   IFS=$as_save_IFS
5484   test -z "$as_dir" && as_dir=.
5485   # Account for people who put trailing slashes in PATH elements.
5486 case $as_dir/ in
5487   ./ | .// | /cC/* | \
5488   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5489   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5490   /usr/ucb/* ) ;;
5491   *)
5492     # OSF1 and SCO ODT 3.0 have their own names for install.
5493     # Don't use installbsd from OSF since it installs stuff as root
5494     # by default.
5495     for ac_prog in ginstall scoinst install; do
5496       for ac_exec_ext in '' $ac_executable_extensions; do
5497         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5498           if test $ac_prog = install &&
5499             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5500             # AIX install.  It has an incompatible calling convention.
5501             :
5502           elif test $ac_prog = install &&
5503             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5504             # program-specific install script used by HP pwplus--don't use.
5505             :
5506           else
5507             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5508             break 3
5509           fi
5510         fi
5511       done
5512     done
5513     ;;
5514 esac
5515 done
5516
5517
5518 fi
5519   if test "${ac_cv_path_install+set}" = set; then
5520     INSTALL=$ac_cv_path_install
5521   else
5522     # As a last resort, use the slow shell script.  We don't cache a
5523     # path for INSTALL within a source directory, because that will
5524     # break other packages using the cache if that directory is
5525     # removed, or if the path is relative.
5526     INSTALL=$ac_install_sh
5527   fi
5528 fi
5529 echo "$as_me:$LINENO: result: $INSTALL" >&5
5530 echo "${ECHO_T}$INSTALL" >&6
5531
5532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5533 # It thinks the first close brace ends the variable substitution.
5534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5535
5536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5537
5538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5539
5540 case "$INSTALL" in
5541   [\\/$]* | ?:[\\/]* ) ;;
5542   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5543 esac
5544
5545 for ac_prog in lclint lint
5546 do
5547   # Extract the first word of "$ac_prog", so it can be a program name with args.
5548 set dummy $ac_prog; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_prog_LINT+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   if test -n "$LINT"; then
5555   ac_cv_prog_LINT="$LINT" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560   IFS=$as_save_IFS
5561   test -z "$as_dir" && as_dir=.
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564     ac_cv_prog_LINT="$ac_prog"
5565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566     break 2
5567   fi
5568 done
5569 done
5570
5571 fi
5572 fi
5573 LINT=$ac_cv_prog_LINT
5574 if test -n "$LINT"; then
5575   echo "$as_me:$LINENO: result: $LINT" >&5
5576 echo "${ECHO_T}$LINT" >&6
5577 else
5578   echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5580 fi
5581
5582   test -n "$LINT" && break
5583 done
5584
5585 if test "$LINT" = "lint"
5586 then
5587   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5588   fi
5589
5590
5591
5592 for ac_prog in docbook2html db2html
5593 do
5594   # Extract the first word of "$ac_prog", so it can be a program name with args.
5595 set dummy $ac_prog; ac_word=$2
5596 echo "$as_me:$LINENO: checking for $ac_word" >&5
5597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5599   echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601   if test -n "$DB2HTML"; then
5602   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607   IFS=$as_save_IFS
5608   test -z "$as_dir" && as_dir=.
5609   for ac_exec_ext in '' $ac_executable_extensions; do
5610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611     ac_cv_prog_DB2HTML="$ac_prog"
5612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613     break 2
5614   fi
5615 done
5616 done
5617
5618 fi
5619 fi
5620 DB2HTML=$ac_cv_prog_DB2HTML
5621 if test -n "$DB2HTML"; then
5622   echo "$as_me:$LINENO: result: $DB2HTML" >&5
5623 echo "${ECHO_T}$DB2HTML" >&6
5624 else
5625   echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6
5627 fi
5628
5629   test -n "$DB2HTML" && break
5630 done
5631 test -n "$DB2HTML" || DB2HTML="false"
5632
5633 for ac_prog in docbook2pdf db2pdf
5634 do
5635   # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   if test -n "$DB2PDF"; then
5643   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648   IFS=$as_save_IFS
5649   test -z "$as_dir" && as_dir=.
5650   for ac_exec_ext in '' $ac_executable_extensions; do
5651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652     ac_cv_prog_DB2PDF="$ac_prog"
5653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654     break 2
5655   fi
5656 done
5657 done
5658
5659 fi
5660 fi
5661 DB2PDF=$ac_cv_prog_DB2PDF
5662 if test -n "$DB2PDF"; then
5663   echo "$as_me:$LINENO: result: $DB2PDF" >&5
5664 echo "${ECHO_T}$DB2PDF" >&6
5665 else
5666   echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5668 fi
5669
5670   test -n "$DB2PDF" && break
5671 done
5672 test -n "$DB2PDF" || DB2PDF="false"
5673
5674 for ac_prog in docbook2ps db2ps
5675 do
5676   # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 echo "$as_me:$LINENO: checking for $ac_word" >&5
5679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680 if test "${ac_cv_prog_DB2PS+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   if test -n "$DB2PS"; then
5684   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691   for ac_exec_ext in '' $ac_executable_extensions; do
5692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693     ac_cv_prog_DB2PS="$ac_prog"
5694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695     break 2
5696   fi
5697 done
5698 done
5699
5700 fi
5701 fi
5702 DB2PS=$ac_cv_prog_DB2PS
5703 if test -n "$DB2PS"; then
5704   echo "$as_me:$LINENO: result: $DB2PS" >&5
5705 echo "${ECHO_T}$DB2PS" >&6
5706 else
5707   echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5709 fi
5710
5711   test -n "$DB2PS" && break
5712 done
5713 test -n "$DB2PS" || DB2PS="false"
5714
5715 for ac_prog in docbook2txt db2txt
5716 do
5717   # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724   if test -n "$DB2TXT"; then
5725   ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730   IFS=$as_save_IFS
5731   test -z "$as_dir" && as_dir=.
5732   for ac_exec_ext in '' $ac_executable_extensions; do
5733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734     ac_cv_prog_DB2TXT="$ac_prog"
5735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736     break 2
5737   fi
5738 done
5739 done
5740
5741 fi
5742 fi
5743 DB2TXT=$ac_cv_prog_DB2TXT
5744 if test -n "$DB2TXT"; then
5745   echo "$as_me:$LINENO: result: $DB2TXT" >&5
5746 echo "${ECHO_T}$DB2TXT" >&6
5747 else
5748   echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5750 fi
5751
5752   test -n "$DB2TXT" && break
5753 done
5754 test -n "$DB2TXT" || DB2TXT="false"
5755
5756 for ac_prog in fontforge
5757 do
5758   # Extract the first word of "$ac_prog", so it can be a program name with args.
5759 set dummy $ac_prog; ac_word=$2
5760 echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   if test -n "$FONTFORGE"; then
5766   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773   for ac_exec_ext in '' $ac_executable_extensions; do
5774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775     ac_cv_prog_FONTFORGE="$ac_prog"
5776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777     break 2
5778   fi
5779 done
5780 done
5781
5782 fi
5783 fi
5784 FONTFORGE=$ac_cv_prog_FONTFORGE
5785 if test -n "$FONTFORGE"; then
5786   echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5787 echo "${ECHO_T}$FONTFORGE" >&6
5788 else
5789   echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6
5791 fi
5792
5793   test -n "$FONTFORGE" && break
5794 done
5795 test -n "$FONTFORGE" || FONTFORGE="false"
5796
5797
5798
5799
5800 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5801 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5802 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   ac_check_lib_save_LIBS=$LIBS
5806 LIBS="-li386  $LIBS"
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813
5814 /* Override any gcc2 internal prototype to avoid an error.  */
5815 #ifdef __cplusplus
5816 extern "C"
5817 #endif
5818 /* We use char because int might match the return type of a gcc2
5819    builtin and then its argument prototype would still apply.  */
5820 char i386_set_ldt ();
5821 int
5822 main ()
5823 {
5824 i386_set_ldt ();
5825   ;
5826   return 0;
5827 }
5828 _ACEOF
5829 rm -f conftest.$ac_objext conftest$ac_exeext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831   (eval $ac_link) 2>conftest.er1
5832   ac_status=$?
5833   grep -v '^ *+' conftest.er1 >conftest.err
5834   rm -f conftest.er1
5835   cat conftest.err >&5
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); } &&
5838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840   (eval $ac_try) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; } &&
5844          { ac_try='test -s conftest$ac_exeext'
5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846   (eval $ac_try) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   ac_cv_lib_i386_i386_set_ldt=yes
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_cv_lib_i386_i386_set_ldt=no
5856 fi
5857 rm -f conftest.err conftest.$ac_objext \
5858       conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5860 fi
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5862 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5863 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5864   cat >>confdefs.h <<_ACEOF
5865 #define HAVE_LIBI386 1
5866 _ACEOF
5867
5868   LIBS="-li386 $LIBS"
5869
5870 fi
5871
5872
5873 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5874 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5875 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   ac_check_lib_save_LIBS=$LIBS
5879 LIBS="-lossaudio  $LIBS"
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886
5887 /* Override any gcc2 internal prototype to avoid an error.  */
5888 #ifdef __cplusplus
5889 extern "C"
5890 #endif
5891 /* We use char because int might match the return type of a gcc2
5892    builtin and then its argument prototype would still apply.  */
5893 char _oss_ioctl ();
5894 int
5895 main ()
5896 {
5897 _oss_ioctl ();
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904   (eval $ac_link) 2>conftest.er1
5905   ac_status=$?
5906   grep -v '^ *+' conftest.er1 >conftest.err
5907   rm -f conftest.er1
5908   cat conftest.err >&5
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); } &&
5911          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913   (eval $ac_try) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; } &&
5917          { ac_try='test -s conftest$ac_exeext'
5918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919   (eval $ac_try) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; }; then
5923   ac_cv_lib_ossaudio__oss_ioctl=yes
5924 else
5925   echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 ac_cv_lib_ossaudio__oss_ioctl=no
5929 fi
5930 rm -f conftest.err conftest.$ac_objext \
5931       conftest$ac_exeext conftest.$ac_ext
5932 LIBS=$ac_check_lib_save_LIBS
5933 fi
5934 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5935 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5936 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5937   cat >>confdefs.h <<_ACEOF
5938 #define HAVE_LIBOSSAUDIO 1
5939 _ACEOF
5940
5941   LIBS="-lossaudio $LIBS"
5942
5943 fi
5944
5945
5946 for ac_func in iswalnum
5947 do
5948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5949 echo "$as_me:$LINENO: checking for $ac_func" >&5
5950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5951 if eval "test \"\${$as_ac_var+set}\" = set"; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5962 #define $ac_func innocuous_$ac_func
5963
5964 /* System header to define __stub macros and hopefully few prototypes,
5965     which can conflict with char $ac_func (); below.
5966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5967     <limits.h> exists even on freestanding compilers.  */
5968
5969 #ifdef __STDC__
5970 # include <limits.h>
5971 #else
5972 # include <assert.h>
5973 #endif
5974
5975 #undef $ac_func
5976
5977 /* Override any gcc2 internal prototype to avoid an error.  */
5978 #ifdef __cplusplus
5979 extern "C"
5980 {
5981 #endif
5982 /* We use char because int might match the return type of a gcc2
5983    builtin and then its argument prototype would still apply.  */
5984 char $ac_func ();
5985 /* The GNU C library defines this for functions which it implements
5986     to always fail with ENOSYS.  Some functions are actually named
5987     something starting with __ and the normal name is an alias.  */
5988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5989 choke me
5990 #else
5991 char (*f) () = $ac_func;
5992 #endif
5993 #ifdef __cplusplus
5994 }
5995 #endif
5996
5997 int
5998 main ()
5999 {
6000 return f != $ac_func;
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007   (eval $ac_link) 2>conftest.er1
6008   ac_status=$?
6009   grep -v '^ *+' conftest.er1 >conftest.err
6010   rm -f conftest.er1
6011   cat conftest.err >&5
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } &&
6014          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; } &&
6020          { ac_try='test -s conftest$ac_exeext'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; }; then
6026   eval "$as_ac_var=yes"
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 eval "$as_ac_var=no"
6032 fi
6033 rm -f conftest.err conftest.$ac_objext \
6034       conftest$ac_exeext conftest.$ac_ext
6035 fi
6036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6038 if test `eval echo '${'$as_ac_var'}'` = yes; then
6039   cat >>confdefs.h <<_ACEOF
6040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041 _ACEOF
6042
6043 else
6044
6045 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6046 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6047 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lw  $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058
6059 /* Override any gcc2 internal prototype to avoid an error.  */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064    builtin and then its argument prototype would still apply.  */
6065 char iswalnum ();
6066 int
6067 main ()
6068 {
6069 iswalnum ();
6070   ;
6071   return 0;
6072 }
6073 _ACEOF
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076   (eval $ac_link) 2>conftest.er1
6077   ac_status=$?
6078   grep -v '^ *+' conftest.er1 >conftest.err
6079   rm -f conftest.er1
6080   cat conftest.err >&5
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } &&
6083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; } &&
6089          { ac_try='test -s conftest$ac_exeext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   ac_cv_lib_w_iswalnum=yes
6096 else
6097   echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 ac_cv_lib_w_iswalnum=no
6101 fi
6102 rm -f conftest.err conftest.$ac_objext \
6103       conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6107 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6108 if test $ac_cv_lib_w_iswalnum = yes; then
6109   cat >>confdefs.h <<_ACEOF
6110 #define HAVE_LIBW 1
6111 _ACEOF
6112
6113   LIBS="-lw $LIBS"
6114
6115 fi
6116
6117 fi
6118 done
6119
6120
6121 for ac_func in gethostbyname
6122 do
6123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6124 echo "$as_me:$LINENO: checking for $ac_func" >&5
6125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6126 if eval "test \"\${$as_ac_var+set}\" = set"; then
6127   echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129   cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h.  */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h.  */
6135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6137 #define $ac_func innocuous_$ac_func
6138
6139 /* System header to define __stub macros and hopefully few prototypes,
6140     which can conflict with char $ac_func (); below.
6141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142     <limits.h> exists even on freestanding compilers.  */
6143
6144 #ifdef __STDC__
6145 # include <limits.h>
6146 #else
6147 # include <assert.h>
6148 #endif
6149
6150 #undef $ac_func
6151
6152 /* Override any gcc2 internal prototype to avoid an error.  */
6153 #ifdef __cplusplus
6154 extern "C"
6155 {
6156 #endif
6157 /* We use char because int might match the return type of a gcc2
6158    builtin and then its argument prototype would still apply.  */
6159 char $ac_func ();
6160 /* The GNU C library defines this for functions which it implements
6161     to always fail with ENOSYS.  Some functions are actually named
6162     something starting with __ and the normal name is an alias.  */
6163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6164 choke me
6165 #else
6166 char (*f) () = $ac_func;
6167 #endif
6168 #ifdef __cplusplus
6169 }
6170 #endif
6171
6172 int
6173 main ()
6174 {
6175 return f != $ac_func;
6176   ;
6177   return 0;
6178 }
6179 _ACEOF
6180 rm -f conftest.$ac_objext conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182   (eval $ac_link) 2>conftest.er1
6183   ac_status=$?
6184   grep -v '^ *+' conftest.er1 >conftest.err
6185   rm -f conftest.er1
6186   cat conftest.err >&5
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); } &&
6189          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191   (eval $ac_try) 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); }; } &&
6195          { ac_try='test -s conftest$ac_exeext'
6196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197   (eval $ac_try) 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); }; }; then
6201   eval "$as_ac_var=yes"
6202 else
6203   echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 eval "$as_ac_var=no"
6207 fi
6208 rm -f conftest.err conftest.$ac_objext \
6209       conftest$ac_exeext conftest.$ac_ext
6210 fi
6211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6213 if test `eval echo '${'$as_ac_var'}'` = yes; then
6214   cat >>confdefs.h <<_ACEOF
6215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6216 _ACEOF
6217
6218 else
6219
6220 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6221 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6222 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lnsl  $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233
6234 /* Override any gcc2 internal prototype to avoid an error.  */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239    builtin and then its argument prototype would still apply.  */
6240 char gethostbyname ();
6241 int
6242 main ()
6243 {
6244 gethostbyname ();
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251   (eval $ac_link) 2>conftest.er1
6252   ac_status=$?
6253   grep -v '^ *+' conftest.er1 >conftest.err
6254   rm -f conftest.er1
6255   cat conftest.err >&5
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } &&
6258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260   (eval $ac_try) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; } &&
6264          { ac_try='test -s conftest$ac_exeext'
6265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266   (eval $ac_try) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); }; }; then
6270   ac_cv_lib_nsl_gethostbyname=yes
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_cv_lib_nsl_gethostbyname=no
6276 fi
6277 rm -f conftest.err conftest.$ac_objext \
6278       conftest$ac_exeext conftest.$ac_ext
6279 LIBS=$ac_check_lib_save_LIBS
6280 fi
6281 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6282 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6283 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6284   cat >>confdefs.h <<_ACEOF
6285 #define HAVE_LIBNSL 1
6286 _ACEOF
6287
6288   LIBS="-lnsl $LIBS"
6289
6290 fi
6291
6292 fi
6293 done
6294
6295
6296 for ac_func in connect
6297 do
6298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6299 echo "$as_me:$LINENO: checking for $ac_func" >&5
6300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6301 if eval "test \"\${$as_ac_var+set}\" = set"; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h.  */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h.  */
6310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6312 #define $ac_func innocuous_$ac_func
6313
6314 /* System header to define __stub macros and hopefully few prototypes,
6315     which can conflict with char $ac_func (); below.
6316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6317     <limits.h> exists even on freestanding compilers.  */
6318
6319 #ifdef __STDC__
6320 # include <limits.h>
6321 #else
6322 # include <assert.h>
6323 #endif
6324
6325 #undef $ac_func
6326
6327 /* Override any gcc2 internal prototype to avoid an error.  */
6328 #ifdef __cplusplus
6329 extern "C"
6330 {
6331 #endif
6332 /* We use char because int might match the return type of a gcc2
6333    builtin and then its argument prototype would still apply.  */
6334 char $ac_func ();
6335 /* The GNU C library defines this for functions which it implements
6336     to always fail with ENOSYS.  Some functions are actually named
6337     something starting with __ and the normal name is an alias.  */
6338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6339 choke me
6340 #else
6341 char (*f) () = $ac_func;
6342 #endif
6343 #ifdef __cplusplus
6344 }
6345 #endif
6346
6347 int
6348 main ()
6349 {
6350 return f != $ac_func;
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357   (eval $ac_link) 2>conftest.er1
6358   ac_status=$?
6359   grep -v '^ *+' conftest.er1 >conftest.err
6360   rm -f conftest.er1
6361   cat conftest.err >&5
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } &&
6364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; } &&
6370          { ac_try='test -s conftest$ac_exeext'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; }; then
6376   eval "$as_ac_var=yes"
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381 eval "$as_ac_var=no"
6382 fi
6383 rm -f conftest.err conftest.$ac_objext \
6384       conftest$ac_exeext conftest.$ac_ext
6385 fi
6386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6388 if test `eval echo '${'$as_ac_var'}'` = yes; then
6389   cat >>confdefs.h <<_ACEOF
6390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391 _ACEOF
6392
6393 else
6394
6395 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6396 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6397 if test "${ac_cv_lib_socket_connect+set}" = set; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400   ac_check_lib_save_LIBS=$LIBS
6401 LIBS="-lsocket  $LIBS"
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h.  */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h.  */
6408
6409 /* Override any gcc2 internal prototype to avoid an error.  */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 /* We use char because int might match the return type of a gcc2
6414    builtin and then its argument prototype would still apply.  */
6415 char connect ();
6416 int
6417 main ()
6418 {
6419 connect ();
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426   (eval $ac_link) 2>conftest.er1
6427   ac_status=$?
6428   grep -v '^ *+' conftest.er1 >conftest.err
6429   rm -f conftest.er1
6430   cat conftest.err >&5
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } &&
6433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; } &&
6439          { ac_try='test -s conftest$ac_exeext'
6440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441   (eval $ac_try) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; }; then
6445   ac_cv_lib_socket_connect=yes
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 ac_cv_lib_socket_connect=no
6451 fi
6452 rm -f conftest.err conftest.$ac_objext \
6453       conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6455 fi
6456 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6457 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6458 if test $ac_cv_lib_socket_connect = yes; then
6459   cat >>confdefs.h <<_ACEOF
6460 #define HAVE_LIBSOCKET 1
6461 _ACEOF
6462
6463   LIBS="-lsocket $LIBS"
6464
6465 fi
6466
6467 fi
6468 done
6469
6470
6471 for ac_func in inet_aton
6472 do
6473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6474 echo "$as_me:$LINENO: checking for $ac_func" >&5
6475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6476 if eval "test \"\${$as_ac_var+set}\" = set"; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h.  */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h.  */
6485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6487 #define $ac_func innocuous_$ac_func
6488
6489 /* System header to define __stub macros and hopefully few prototypes,
6490     which can conflict with char $ac_func (); below.
6491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6492     <limits.h> exists even on freestanding compilers.  */
6493
6494 #ifdef __STDC__
6495 # include <limits.h>
6496 #else
6497 # include <assert.h>
6498 #endif
6499
6500 #undef $ac_func
6501
6502 /* Override any gcc2 internal prototype to avoid an error.  */
6503 #ifdef __cplusplus
6504 extern "C"
6505 {
6506 #endif
6507 /* We use char because int might match the return type of a gcc2
6508    builtin and then its argument prototype would still apply.  */
6509 char $ac_func ();
6510 /* The GNU C library defines this for functions which it implements
6511     to always fail with ENOSYS.  Some functions are actually named
6512     something starting with __ and the normal name is an alias.  */
6513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6514 choke me
6515 #else
6516 char (*f) () = $ac_func;
6517 #endif
6518 #ifdef __cplusplus
6519 }
6520 #endif
6521
6522 int
6523 main ()
6524 {
6525 return f != $ac_func;
6526   ;
6527   return 0;
6528 }
6529 _ACEOF
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6532   (eval $ac_link) 2>conftest.er1
6533   ac_status=$?
6534   grep -v '^ *+' conftest.er1 >conftest.err
6535   rm -f conftest.er1
6536   cat conftest.err >&5
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); } &&
6539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; } &&
6545          { ac_try='test -s conftest$ac_exeext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   eval "$as_ac_var=yes"
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 eval "$as_ac_var=no"
6557 fi
6558 rm -f conftest.err conftest.$ac_objext \
6559       conftest$ac_exeext conftest.$ac_ext
6560 fi
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6563 if test `eval echo '${'$as_ac_var'}'` = yes; then
6564   cat >>confdefs.h <<_ACEOF
6565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6566 _ACEOF
6567
6568 else
6569
6570 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6571 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6572 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575   ac_check_lib_save_LIBS=$LIBS
6576 LIBS="-lresolv  $LIBS"
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h.  */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h.  */
6583
6584 /* Override any gcc2 internal prototype to avoid an error.  */
6585 #ifdef __cplusplus
6586 extern "C"
6587 #endif
6588 /* We use char because int might match the return type of a gcc2
6589    builtin and then its argument prototype would still apply.  */
6590 char inet_aton ();
6591 int
6592 main ()
6593 {
6594 inet_aton ();
6595   ;
6596   return 0;
6597 }
6598 _ACEOF
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601   (eval $ac_link) 2>conftest.er1
6602   ac_status=$?
6603   grep -v '^ *+' conftest.er1 >conftest.err
6604   rm -f conftest.er1
6605   cat conftest.err >&5
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); } &&
6608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610   (eval $ac_try) 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); }; } &&
6614          { ac_try='test -s conftest$ac_exeext'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; }; then
6620   ac_cv_lib_resolv_inet_aton=yes
6621 else
6622   echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625 ac_cv_lib_resolv_inet_aton=no
6626 fi
6627 rm -f conftest.err conftest.$ac_objext \
6628       conftest$ac_exeext conftest.$ac_ext
6629 LIBS=$ac_check_lib_save_LIBS
6630 fi
6631 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6632 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6633 if test $ac_cv_lib_resolv_inet_aton = yes; then
6634   cat >>confdefs.h <<_ACEOF
6635 #define HAVE_LIBRESOLV 1
6636 _ACEOF
6637
6638   LIBS="-lresolv $LIBS"
6639
6640 fi
6641
6642 fi
6643 done
6644
6645
6646 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6647 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6648 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6649   echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651   ac_check_lib_save_LIBS=$LIBS
6652 LIBS="-lxpg4  $LIBS"
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h.  */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h.  */
6659
6660 /* Override any gcc2 internal prototype to avoid an error.  */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 /* We use char because int might match the return type of a gcc2
6665    builtin and then its argument prototype would still apply.  */
6666 char _xpg4_setrunelocale ();
6667 int
6668 main ()
6669 {
6670 _xpg4_setrunelocale ();
6671   ;
6672   return 0;
6673 }
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677   (eval $ac_link) 2>conftest.er1
6678   ac_status=$?
6679   grep -v '^ *+' conftest.er1 >conftest.err
6680   rm -f conftest.er1
6681   cat conftest.err >&5
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); } &&
6684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; } &&
6690          { ac_try='test -s conftest$ac_exeext'
6691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692   (eval $ac_try) 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; }; then
6696   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6702 fi
6703 rm -f conftest.err conftest.$ac_objext \
6704       conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6706 fi
6707 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6708 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6709 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6710   cat >>confdefs.h <<_ACEOF
6711 #define HAVE_LIBXPG4 1
6712 _ACEOF
6713
6714   LIBS="-lxpg4 $LIBS"
6715
6716 fi
6717
6718
6719 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6720 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6721 if test "${ac_cv_lib_poll_poll+set}" = set; then
6722   echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724   ac_check_lib_save_LIBS=$LIBS
6725 LIBS="-lpoll  $LIBS"
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h.  */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h.  */
6732
6733 /* Override any gcc2 internal prototype to avoid an error.  */
6734 #ifdef __cplusplus
6735 extern "C"
6736 #endif
6737 /* We use char because int might match the return type of a gcc2
6738    builtin and then its argument prototype would still apply.  */
6739 char poll ();
6740 int
6741 main ()
6742 {
6743 poll ();
6744   ;
6745   return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750   (eval $ac_link) 2>conftest.er1
6751   ac_status=$?
6752   grep -v '^ *+' conftest.er1 >conftest.err
6753   rm -f conftest.er1
6754   cat conftest.err >&5
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } &&
6757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; } &&
6763          { ac_try='test -s conftest$ac_exeext'
6764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765   (eval $ac_try) 2>&5
6766   ac_status=$?
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); }; }; then
6769   ac_cv_lib_poll_poll=yes
6770 else
6771   echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 ac_cv_lib_poll_poll=no
6775 fi
6776 rm -f conftest.err conftest.$ac_objext \
6777       conftest$ac_exeext conftest.$ac_ext
6778 LIBS=$ac_check_lib_save_LIBS
6779 fi
6780 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6781 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6782 if test $ac_cv_lib_poll_poll = yes; then
6783   cat >>confdefs.h <<_ACEOF
6784 #define HAVE_LIBPOLL 1
6785 _ACEOF
6786
6787   LIBS="-lpoll $LIBS"
6788
6789 fi
6790
6791
6792 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6793 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6794 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6795   echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797   ac_check_lib_save_LIBS=$LIBS
6798 LIBS="-lresolv  $LIBS"
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h.  */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h.  */
6805
6806 /* Override any gcc2 internal prototype to avoid an error.  */
6807 #ifdef __cplusplus
6808 extern "C"
6809 #endif
6810 /* We use char because int might match the return type of a gcc2
6811    builtin and then its argument prototype would still apply.  */
6812 char res_9_init ();
6813 int
6814 main ()
6815 {
6816 res_9_init ();
6817   ;
6818   return 0;
6819 }
6820 _ACEOF
6821 rm -f conftest.$ac_objext conftest$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823   (eval $ac_link) 2>conftest.er1
6824   ac_status=$?
6825   grep -v '^ *+' conftest.er1 >conftest.err
6826   rm -f conftest.er1
6827   cat conftest.err >&5
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); } &&
6830          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832   (eval $ac_try) 2>&5
6833   ac_status=$?
6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835   (exit $ac_status); }; } &&
6836          { ac_try='test -s conftest$ac_exeext'
6837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838   (eval $ac_try) 2>&5
6839   ac_status=$?
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); }; }; then
6842   ac_cv_lib_resolv_res_9_init=yes
6843 else
6844   echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6846
6847 ac_cv_lib_resolv_res_9_init=no
6848 fi
6849 rm -f conftest.err conftest.$ac_objext \
6850       conftest$ac_exeext conftest.$ac_ext
6851 LIBS=$ac_check_lib_save_LIBS
6852 fi
6853 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6854 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6855 if test $ac_cv_lib_resolv_res_9_init = yes; then
6856   cat >>confdefs.h <<_ACEOF
6857 #define HAVE_LIBRESOLV 1
6858 _ACEOF
6859
6860   LIBS="-lresolv $LIBS"
6861
6862 fi
6863
6864 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6865 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6866 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lpthread  $LIBS"
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h.  */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h.  */
6877
6878 /* Override any gcc2 internal prototype to avoid an error.  */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 /* We use char because int might match the return type of a gcc2
6883    builtin and then its argument prototype would still apply.  */
6884 char pthread_create ();
6885 int
6886 main ()
6887 {
6888 pthread_create ();
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895   (eval $ac_link) 2>conftest.er1
6896   ac_status=$?
6897   grep -v '^ *+' conftest.er1 >conftest.err
6898   rm -f conftest.er1
6899   cat conftest.err >&5
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } &&
6902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904   (eval $ac_try) 2>&5
6905   ac_status=$?
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); }; } &&
6908          { ac_try='test -s conftest$ac_exeext'
6909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910   (eval $ac_try) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); }; }; then
6914   ac_cv_lib_pthread_pthread_create=yes
6915 else
6916   echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919 ac_cv_lib_pthread_pthread_create=no
6920 fi
6921 rm -f conftest.err conftest.$ac_objext \
6922       conftest$ac_exeext conftest.$ac_ext
6923 LIBS=$ac_check_lib_save_LIBS
6924 fi
6925 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6926 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6927 if test $ac_cv_lib_pthread_pthread_create = yes; then
6928   LIBPTHREAD="-lpthread"
6929
6930 fi
6931
6932
6933
6934
6935 XFILES=""
6936
6937 OPENGLFILES=""
6938
6939 GLU32FILES=""
6940
6941 OPENGL_LIBS=""
6942
6943
6944 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6945 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6946 if test "${ac_cv_header_stdc+set}" = set; then
6947   echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949   cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h.  */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h.  */
6955 #include <stdlib.h>
6956 #include <stdarg.h>
6957 #include <string.h>
6958 #include <float.h>
6959
6960 int
6961 main ()
6962 {
6963
6964   ;
6965   return 0;
6966 }
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970   (eval $ac_compile) 2>conftest.er1
6971   ac_status=$?
6972   grep -v '^ *+' conftest.er1 >conftest.err
6973   rm -f conftest.er1
6974   cat conftest.err >&5
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); } &&
6977          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979   (eval $ac_try) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; } &&
6983          { ac_try='test -s conftest.$ac_objext'
6984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985   (eval $ac_try) 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); }; }; then
6989   ac_cv_header_stdc=yes
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 ac_cv_header_stdc=no
6995 fi
6996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6997
6998 if test $ac_cv_header_stdc = yes; then
6999   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7000   cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h.  */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h.  */
7006 #include <string.h>
7007
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010   $EGREP "memchr" >/dev/null 2>&1; then
7011   :
7012 else
7013   ac_cv_header_stdc=no
7014 fi
7015 rm -f conftest*
7016
7017 fi
7018
7019 if test $ac_cv_header_stdc = yes; then
7020   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7021   cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h.  */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h.  */
7027 #include <stdlib.h>
7028
7029 _ACEOF
7030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7031   $EGREP "free" >/dev/null 2>&1; then
7032   :
7033 else
7034   ac_cv_header_stdc=no
7035 fi
7036 rm -f conftest*
7037
7038 fi
7039
7040 if test $ac_cv_header_stdc = yes; then
7041   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7042   if test "$cross_compiling" = yes; then
7043   :
7044 else
7045   cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051 #include <ctype.h>
7052 #if ((' ' & 0x0FF) == 0x020)
7053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7055 #else
7056 # define ISLOWER(c) \
7057                    (('a' <= (c) && (c) <= 'i') \
7058                      || ('j' <= (c) && (c) <= 'r') \
7059                      || ('s' <= (c) && (c) <= 'z'))
7060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7061 #endif
7062
7063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7064 int
7065 main ()
7066 {
7067   int i;
7068   for (i = 0; i < 256; i++)
7069     if (XOR (islower (i), ISLOWER (i))
7070         || toupper (i) != TOUPPER (i))
7071       exit(2);
7072   exit (0);
7073 }
7074 _ACEOF
7075 rm -f conftest$ac_exeext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7077   (eval $ac_link) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082   (eval $ac_try) 2>&5
7083   ac_status=$?
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); }; }; then
7086   :
7087 else
7088   echo "$as_me: program exited with status $ac_status" >&5
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ( exit $ac_status )
7093 ac_cv_header_stdc=no
7094 fi
7095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7096 fi
7097 fi
7098 fi
7099 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7100 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7101 if test $ac_cv_header_stdc = yes; then
7102
7103 cat >>confdefs.h <<\_ACEOF
7104 #define STDC_HEADERS 1
7105 _ACEOF
7106
7107 fi
7108
7109 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7120                   inttypes.h stdint.h unistd.h
7121 do
7122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123 echo "$as_me:$LINENO: checking for $ac_header" >&5
7124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h.  */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h.  */
7134 $ac_includes_default
7135
7136 #include <$ac_header>
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140   (eval $ac_compile) 2>conftest.er1
7141   ac_status=$?
7142   grep -v '^ *+' conftest.er1 >conftest.err
7143   rm -f conftest.er1
7144   cat conftest.err >&5
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); } &&
7147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149   (eval $ac_try) 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); }; } &&
7153          { ac_try='test -s conftest.$ac_objext'
7154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155   (eval $ac_try) 2>&5
7156   ac_status=$?
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); }; }; then
7159   eval "$as_ac_Header=yes"
7160 else
7161   echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7163
7164 eval "$as_ac_Header=no"
7165 fi
7166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7167 fi
7168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7171   cat >>confdefs.h <<_ACEOF
7172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7173 _ACEOF
7174
7175 fi
7176
7177 done
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 for ac_header in \
7277         arpa/inet.h \
7278         arpa/nameser.h \
7279         cups/cups.h \
7280         direct.h \
7281         elf.h \
7282         float.h \
7283         fontconfig/fontconfig.h \
7284         getopt.h \
7285         gif_lib.h \
7286         ieeefp.h \
7287         io.h \
7288         jack/jack.h \
7289         jpeglib.h \
7290         lcms/lcms.h \
7291         lcms.h \
7292         libio.h \
7293         libutil.h \
7294         link.h \
7295         linux/cdrom.h \
7296         linux/compiler.h \
7297         linux/hdreg.h \
7298         linux/input.h \
7299         linux/ioctl.h \
7300         linux/joystick.h \
7301         linux/major.h \
7302         linux/param.h \
7303         linux/serial.h \
7304         linux/ucdrom.h \
7305         machine/cpu.h \
7306         mntent.h \
7307         netdb.h \
7308         netinet/in.h \
7309         netinet/in_systm.h \
7310         netinet/tcp.h \
7311         netinet/tcp_fsm.h \
7312         openssl/des.h \
7313         openssl/md2.h \
7314         openssl/rc2.h \
7315         openssl/rc4.h \
7316         openssl/rsa.h \
7317         openssl/ssl.h \
7318         process.h \
7319         pthread.h \
7320         pty.h \
7321         pwd.h \
7322         regex.h \
7323         sched.h \
7324         scsi/sg.h \
7325         scsi/scsi.h \
7326         scsi/scsi_ioctl.h \
7327         socket.h \
7328         stdint.h \
7329         strings.h \
7330         sys/cdio.h \
7331         sys/elf32.h \
7332         sys/errno.h \
7333         sys/epoll.h \
7334         sys/exec_elf.h \
7335         sys/file.h \
7336         sys/filio.h \
7337         sys/inttypes.h \
7338         sys/ioctl.h \
7339         sys/ipc.h \
7340         sys/link.h \
7341         sys/lwp.h \
7342         sys/mman.h \
7343         sys/modem.h \
7344         sys/msg.h \
7345         sys/param.h \
7346         sys/poll.h \
7347         sys/ptrace.h \
7348         sys/reg.h \
7349         sys/scsiio.h \
7350         sys/shm.h \
7351         sys/signal.h \
7352         sys/socket.h \
7353         sys/sockio.h \
7354         sys/statfs.h \
7355         sys/statvfs.h \
7356         sys/strtio.h \
7357         sys/syscall.h \
7358         sys/sysctl.h \
7359         sys/time.h \
7360         sys/times.h \
7361         sys/uio.h \
7362         sys/un.h \
7363         sys/v86.h \
7364         sys/v86intr.h \
7365         sys/vfs.h \
7366         sys/vm86.h \
7367         sys/wait.h \
7368         syscall.h \
7369         termios.h \
7370         unistd.h \
7371         utime.h \
7372         valgrind/memcheck.h
7373
7374 do
7375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7377   echo "$as_me:$LINENO: checking for $ac_header" >&5
7378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 fi
7382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7384 else
7385   # Is the header compilable?
7386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7388 cat >conftest.$ac_ext <<_ACEOF
7389 /* confdefs.h.  */
7390 _ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h.  */
7394 $ac_includes_default
7395 #include <$ac_header>
7396 _ACEOF
7397 rm -f conftest.$ac_objext
7398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7399   (eval $ac_compile) 2>conftest.er1
7400   ac_status=$?
7401   grep -v '^ *+' conftest.er1 >conftest.err
7402   rm -f conftest.er1
7403   cat conftest.err >&5
7404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405   (exit $ac_status); } &&
7406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408   (eval $ac_try) 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); }; } &&
7412          { ac_try='test -s conftest.$ac_objext'
7413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414   (eval $ac_try) 2>&5
7415   ac_status=$?
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); }; }; then
7418   ac_header_compiler=yes
7419 else
7420   echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423 ac_header_compiler=no
7424 fi
7425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7427 echo "${ECHO_T}$ac_header_compiler" >&6
7428
7429 # Is the header present?
7430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h.  */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h.  */
7438 #include <$ac_header>
7439 _ACEOF
7440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7442   ac_status=$?
7443   grep -v '^ *+' conftest.er1 >conftest.err
7444   rm -f conftest.er1
7445   cat conftest.err >&5
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); } >/dev/null; then
7448   if test -s conftest.err; then
7449     ac_cpp_err=$ac_c_preproc_warn_flag
7450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7451   else
7452     ac_cpp_err=
7453   fi
7454 else
7455   ac_cpp_err=yes
7456 fi
7457 if test -z "$ac_cpp_err"; then
7458   ac_header_preproc=yes
7459 else
7460   echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7462
7463   ac_header_preproc=no
7464 fi
7465 rm -f conftest.err conftest.$ac_ext
7466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7467 echo "${ECHO_T}$ac_header_preproc" >&6
7468
7469 # So?  What about this header?
7470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7471   yes:no: )
7472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7476     ac_header_preproc=yes
7477     ;;
7478   no:yes:* )
7479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7491     (
7492       cat <<\_ASBOX
7493 ## ------------------------------------ ##
7494 ## Report this to wine-devel@winehq.org ##
7495 ## ------------------------------------ ##
7496 _ASBOX
7497     ) |
7498       sed "s/^/$as_me: WARNING:     /" >&2
7499     ;;
7500 esac
7501 echo "$as_me:$LINENO: checking for $ac_header" >&5
7502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   eval "$as_ac_Header=\$ac_header_preproc"
7507 fi
7508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7510
7511 fi
7512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7513   cat >>confdefs.h <<_ACEOF
7514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7515 _ACEOF
7516
7517 fi
7518
7519 done
7520
7521 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7522 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7523 if test "${ac_cv_header_stat_broken+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h.  */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h.  */
7532 #include <sys/types.h>
7533 #include <sys/stat.h>
7534
7535 #if defined(S_ISBLK) && defined(S_IFDIR)
7536 # if S_ISBLK (S_IFDIR)
7537 You lose.
7538 # endif
7539 #endif
7540
7541 #if defined(S_ISBLK) && defined(S_IFCHR)
7542 # if S_ISBLK (S_IFCHR)
7543 You lose.
7544 # endif
7545 #endif
7546
7547 #if defined(S_ISLNK) && defined(S_IFREG)
7548 # if S_ISLNK (S_IFREG)
7549 You lose.
7550 # endif
7551 #endif
7552
7553 #if defined(S_ISSOCK) && defined(S_IFREG)
7554 # if S_ISSOCK (S_IFREG)
7555 You lose.
7556 # endif
7557 #endif
7558
7559 _ACEOF
7560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561   $EGREP "You lose" >/dev/null 2>&1; then
7562   ac_cv_header_stat_broken=yes
7563 else
7564   ac_cv_header_stat_broken=no
7565 fi
7566 rm -f conftest*
7567
7568 fi
7569 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7570 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7571 if test $ac_cv_header_stat_broken = yes; then
7572
7573 cat >>confdefs.h <<\_ACEOF
7574 #define STAT_MACROS_BROKEN 1
7575 _ACEOF
7576
7577 fi
7578
7579
7580
7581 if test "$have_x" = "yes"
7582 then
7583     XLIB="-lXext -lX11"
7584     ac_save_CPPFLAGS="$CPPFLAGS"
7585     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7586
7587
7588 for ac_header in X11/Xlib.h
7589 do
7590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592   echo "$as_me:$LINENO: checking for $ac_header" >&5
7593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 fi
7597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7599 else
7600   # Is the header compilable?
7601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h.  */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h.  */
7609 $ac_includes_default
7610 #include <$ac_header>
7611 _ACEOF
7612 rm -f conftest.$ac_objext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614   (eval $ac_compile) 2>conftest.er1
7615   ac_status=$?
7616   grep -v '^ *+' conftest.er1 >conftest.err
7617   rm -f conftest.er1
7618   cat conftest.err >&5
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); } &&
7621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623   (eval $ac_try) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; } &&
7627          { ac_try='test -s conftest.$ac_objext'
7628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629   (eval $ac_try) 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; }; then
7633   ac_header_compiler=yes
7634 else
7635   echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 ac_header_compiler=no
7639 fi
7640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7642 echo "${ECHO_T}$ac_header_compiler" >&6
7643
7644 # Is the header present?
7645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653 #include <$ac_header>
7654 _ACEOF
7655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7656   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
7663   if test -s conftest.err; then
7664     ac_cpp_err=$ac_c_preproc_warn_flag
7665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7666   else
7667     ac_cpp_err=
7668   fi
7669 else
7670   ac_cpp_err=yes
7671 fi
7672 if test -z "$ac_cpp_err"; then
7673   ac_header_preproc=yes
7674 else
7675   echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678   ac_header_preproc=no
7679 fi
7680 rm -f conftest.err conftest.$ac_ext
7681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7682 echo "${ECHO_T}$ac_header_preproc" >&6
7683
7684 # So?  What about this header?
7685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7686   yes:no: )
7687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7691     ac_header_preproc=yes
7692     ;;
7693   no:yes:* )
7694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7706     (
7707       cat <<\_ASBOX
7708 ## ------------------------------------ ##
7709 ## Report this to wine-devel@winehq.org ##
7710 ## ------------------------------------ ##
7711 _ASBOX
7712     ) |
7713       sed "s/^/$as_me: WARNING:     /" >&2
7714     ;;
7715 esac
7716 echo "$as_me:$LINENO: checking for $ac_header" >&5
7717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721   eval "$as_ac_Header=\$ac_header_preproc"
7722 fi
7723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7725
7726 fi
7727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7728   cat >>confdefs.h <<_ACEOF
7729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7730 _ACEOF
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742 for ac_header in X11/XKBlib.h \
7743                           X11/Xutil.h \
7744                           X11/extensions/shape.h \
7745                           X11/extensions/XInput.h \
7746                           X11/extensions/XShm.h \
7747                           X11/extensions/Xrandr.h \
7748                           X11/extensions/Xrender.h \
7749                           X11/extensions/Xvlib.h \
7750                           X11/extensions/xf86dga.h \
7751                           X11/extensions/xf86vmode.h
7752 do
7753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7754 echo "$as_me:$LINENO: checking for $ac_header" >&5
7755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   cat >conftest.$ac_ext <<_ACEOF
7760 /* confdefs.h.  */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h.  */
7765 #include <X11/Xlib.h>
7766                           #ifdef HAVE_X11_XUTIL_H
7767                           # include <X11/Xutil.h>
7768                           #endif
7769
7770 #include <$ac_header>
7771 _ACEOF
7772 rm -f conftest.$ac_objext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7774   (eval $ac_compile) 2>conftest.er1
7775   ac_status=$?
7776   grep -v '^ *+' conftest.er1 >conftest.err
7777   rm -f conftest.er1
7778   cat conftest.err >&5
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } &&
7781          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783   (eval $ac_try) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); }; } &&
7787          { ac_try='test -s conftest.$ac_objext'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; }; then
7793   eval "$as_ac_Header=yes"
7794 else
7795   echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7797
7798 eval "$as_ac_Header=no"
7799 fi
7800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7801 fi
7802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7805   cat >>confdefs.h <<_ACEOF
7806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7807 _ACEOF
7808
7809 fi
7810
7811 done
7812
7813
7814                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7815         then
7816               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7817 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7818 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7819   echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821   ac_check_lib_save_LIBS=$LIBS
7822 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7823 cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h.  */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h.  */
7829
7830 /* Override any gcc2 internal prototype to avoid an error.  */
7831 #ifdef __cplusplus
7832 extern "C"
7833 #endif
7834 /* We use char because int might match the return type of a gcc2
7835    builtin and then its argument prototype would still apply.  */
7836 char XkbQueryExtension ();
7837 int
7838 main ()
7839 {
7840 XkbQueryExtension ();
7841   ;
7842   return 0;
7843 }
7844 _ACEOF
7845 rm -f conftest.$ac_objext conftest$ac_exeext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7847   (eval $ac_link) 2>conftest.er1
7848   ac_status=$?
7849   grep -v '^ *+' conftest.er1 >conftest.err
7850   rm -f conftest.er1
7851   cat conftest.err >&5
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); } &&
7854          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856   (eval $ac_try) 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); }; } &&
7860          { ac_try='test -s conftest$ac_exeext'
7861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862   (eval $ac_try) 2>&5
7863   ac_status=$?
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); }; }; then
7866   ac_cv_lib_X11_XkbQueryExtension=yes
7867 else
7868   echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7870
7871 ac_cv_lib_X11_XkbQueryExtension=no
7872 fi
7873 rm -f conftest.err conftest.$ac_objext \
7874       conftest$ac_exeext conftest.$ac_ext
7875 LIBS=$ac_check_lib_save_LIBS
7876 fi
7877 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7878 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7879 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7880
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_XKB 1
7883 _ACEOF
7884
7885 fi
7886
7887         fi
7888
7889                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7890         then
7891               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7892 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7893 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7894   echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896   ac_check_lib_save_LIBS=$LIBS
7897 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7898 cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h.  */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h.  */
7904
7905 /* Override any gcc2 internal prototype to avoid an error.  */
7906 #ifdef __cplusplus
7907 extern "C"
7908 #endif
7909 /* We use char because int might match the return type of a gcc2
7910    builtin and then its argument prototype would still apply.  */
7911 char XShmQueryExtension ();
7912 int
7913 main ()
7914 {
7915 XShmQueryExtension ();
7916   ;
7917   return 0;
7918 }
7919 _ACEOF
7920 rm -f conftest.$ac_objext conftest$ac_exeext
7921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7922   (eval $ac_link) 2>conftest.er1
7923   ac_status=$?
7924   grep -v '^ *+' conftest.er1 >conftest.err
7925   rm -f conftest.er1
7926   cat conftest.err >&5
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); } &&
7929          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931   (eval $ac_try) 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); }; } &&
7935          { ac_try='test -s conftest$ac_exeext'
7936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937   (eval $ac_try) 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); }; }; then
7941   ac_cv_lib_Xext_XShmQueryExtension=yes
7942 else
7943   echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 ac_cv_lib_Xext_XShmQueryExtension=no
7947 fi
7948 rm -f conftest.err conftest.$ac_objext \
7949       conftest$ac_exeext conftest.$ac_ext
7950 LIBS=$ac_check_lib_save_LIBS
7951 fi
7952 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7953 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7954 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7955
7956 cat >>confdefs.h <<\_ACEOF
7957 #define HAVE_LIBXXSHM 1
7958 _ACEOF
7959
7960 fi
7961
7962         fi
7963
7964                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7965         then
7966               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7967 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7968 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7969   echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971   ac_check_lib_save_LIBS=$LIBS
7972 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h.  */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h.  */
7979
7980 /* Override any gcc2 internal prototype to avoid an error.  */
7981 #ifdef __cplusplus
7982 extern "C"
7983 #endif
7984 /* We use char because int might match the return type of a gcc2
7985    builtin and then its argument prototype would still apply.  */
7986 char XShapeQueryExtension ();
7987 int
7988 main ()
7989 {
7990 XShapeQueryExtension ();
7991   ;
7992   return 0;
7993 }
7994 _ACEOF
7995 rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997   (eval $ac_link) 2>conftest.er1
7998   ac_status=$?
7999   grep -v '^ *+' conftest.er1 >conftest.err
8000   rm -f conftest.er1
8001   cat conftest.err >&5
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); } &&
8004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006   (eval $ac_try) 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); }; } &&
8010          { ac_try='test -s conftest$ac_exeext'
8011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012   (eval $ac_try) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; }; then
8016   ac_cv_lib_Xext_XShapeQueryExtension=yes
8017 else
8018   echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021 ac_cv_lib_Xext_XShapeQueryExtension=no
8022 fi
8023 rm -f conftest.err conftest.$ac_objext \
8024       conftest$ac_exeext conftest.$ac_ext
8025 LIBS=$ac_check_lib_save_LIBS
8026 fi
8027 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8028 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8029 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8030
8031 cat >>confdefs.h <<\_ACEOF
8032 #define HAVE_LIBXSHAPE 1
8033 _ACEOF
8034
8035 fi
8036
8037         fi
8038
8039                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8040         then
8041               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8042 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8043 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8044   echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046   ac_check_lib_save_LIBS=$LIBS
8047 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h.  */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h.  */
8054
8055 /* Override any gcc2 internal prototype to avoid an error.  */
8056 #ifdef __cplusplus
8057 extern "C"
8058 #endif
8059 /* We use char because int might match the return type of a gcc2
8060    builtin and then its argument prototype would still apply.  */
8061 char XDGAQueryExtension ();
8062 int
8063 main ()
8064 {
8065 XDGAQueryExtension ();
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext conftest$ac_exeext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8072   (eval $ac_link) 2>conftest.er1
8073   ac_status=$?
8074   grep -v '^ *+' conftest.er1 >conftest.err
8075   rm -f conftest.er1
8076   cat conftest.err >&5
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } &&
8079          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081   (eval $ac_try) 2>&5
8082   ac_status=$?
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); }; } &&
8085          { ac_try='test -s conftest$ac_exeext'
8086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087   (eval $ac_try) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); }; }; then
8091   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8092 else
8093   echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8097 fi
8098 rm -f conftest.err conftest.$ac_objext \
8099       conftest$ac_exeext conftest.$ac_ext
8100 LIBS=$ac_check_lib_save_LIBS
8101 fi
8102 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8103 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8104 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8105
8106 cat >>confdefs.h <<\_ACEOF
8107 #define HAVE_LIBXXF86DGA2 1
8108 _ACEOF
8109
8110                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8111
8112 fi
8113
8114         fi
8115
8116                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8117         then
8118                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8119 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8120 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8121   echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123   ac_check_lib_save_LIBS=$LIBS
8124 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131
8132 /* Override any gcc2 internal prototype to avoid an error.  */
8133 #ifdef __cplusplus
8134 extern "C"
8135 #endif
8136 /* We use char because int might match the return type of a gcc2
8137    builtin and then its argument prototype would still apply.  */
8138 char XF86VidModeQueryExtension ();
8139 int
8140 main ()
8141 {
8142 XF86VidModeQueryExtension ();
8143   ;
8144   return 0;
8145 }
8146 _ACEOF
8147 rm -f conftest.$ac_objext conftest$ac_exeext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8149   (eval $ac_link) 2>conftest.er1
8150   ac_status=$?
8151   grep -v '^ *+' conftest.er1 >conftest.err
8152   rm -f conftest.er1
8153   cat conftest.err >&5
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); } &&
8156          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158   (eval $ac_try) 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); }; } &&
8162          { ac_try='test -s conftest$ac_exeext'
8163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164   (eval $ac_try) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; }; then
8168   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8169 else
8170   echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8174 fi
8175 rm -f conftest.err conftest.$ac_objext \
8176       conftest$ac_exeext conftest.$ac_ext
8177 LIBS=$ac_check_lib_save_LIBS
8178 fi
8179 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8180 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8181 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8182
8183 cat >>confdefs.h <<\_ACEOF
8184 #define HAVE_LIBXXF86VM 1
8185 _ACEOF
8186
8187                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8188
8189 fi
8190
8191         fi
8192
8193                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8194         then
8195                 cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h.  */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h.  */
8201 #include <X11/Xlib.h>
8202 #include <X11/extensions/Xrandr.h>
8203 int
8204 main ()
8205 {
8206 static typeof(XRRSetScreenConfigAndRate) * func;
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8213   (eval $ac_compile) 2>conftest.er1
8214   ac_status=$?
8215   grep -v '^ *+' conftest.er1 >conftest.err
8216   rm -f conftest.er1
8217   cat conftest.err >&5
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } &&
8220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222   (eval $ac_try) 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; } &&
8226          { ac_try='test -s conftest.$ac_objext'
8227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228   (eval $ac_try) 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); }; }; then
8232
8233 cat >>confdefs.h <<\_ACEOF
8234 #define HAVE_LIBXRANDR 1
8235 _ACEOF
8236
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 fi
8242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8243         fi
8244
8245                 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8246         then
8247                 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8248 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8249 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   ac_check_lib_save_LIBS=$LIBS
8253 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260
8261 /* Override any gcc2 internal prototype to avoid an error.  */
8262 #ifdef __cplusplus
8263 extern "C"
8264 #endif
8265 /* We use char because int might match the return type of a gcc2
8266    builtin and then its argument prototype would still apply.  */
8267 char XvShmCreateImage ();
8268 int
8269 main ()
8270 {
8271 XvShmCreateImage ();
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278   (eval $ac_link) 2>conftest.er1
8279   ac_status=$?
8280   grep -v '^ *+' conftest.er1 >conftest.err
8281   rm -f conftest.er1
8282   cat conftest.err >&5
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); } &&
8285          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287   (eval $ac_try) 2>&5
8288   ac_status=$?
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); }; } &&
8291          { ac_try='test -s conftest$ac_exeext'
8292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293   (eval $ac_try) 2>&5
8294   ac_status=$?
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); }; }; then
8297   ac_cv_lib_Xv_XvShmCreateImage=yes
8298 else
8299   echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8301
8302 ac_cv_lib_Xv_XvShmCreateImage=no
8303 fi
8304 rm -f conftest.err conftest.$ac_objext \
8305       conftest$ac_exeext conftest.$ac_ext
8306 LIBS=$ac_check_lib_save_LIBS
8307 fi
8308 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8309 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8310 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8311
8312 cat >>confdefs.h <<\_ACEOF
8313 #define HAVE_XVIDEO 1
8314 _ACEOF
8315
8316                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
8317
8318 fi
8319
8320         fi
8321
8322                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8323         then
8324               echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8325 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8326 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8327   echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329   ac_check_lib_save_LIBS=$LIBS
8330 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h.  */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h.  */
8337
8338 /* Override any gcc2 internal prototype to avoid an error.  */
8339 #ifdef __cplusplus
8340 extern "C"
8341 #endif
8342 /* We use char because int might match the return type of a gcc2
8343    builtin and then its argument prototype would still apply.  */
8344 char XRenderSetPictureTransform ();
8345 int
8346 main ()
8347 {
8348 XRenderSetPictureTransform ();
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355   (eval $ac_link) 2>conftest.er1
8356   ac_status=$?
8357   grep -v '^ *+' conftest.er1 >conftest.err
8358   rm -f conftest.er1
8359   cat conftest.err >&5
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); } &&
8362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364   (eval $ac_try) 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); }; } &&
8368          { ac_try='test -s conftest$ac_exeext'
8369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370   (eval $ac_try) 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; }; then
8374   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8375 else
8376   echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8380 fi
8381 rm -f conftest.err conftest.$ac_objext \
8382       conftest$ac_exeext conftest.$ac_ext
8383 LIBS=$ac_check_lib_save_LIBS
8384 fi
8385 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8386 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8387 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8388
8389 cat >>confdefs.h <<\_ACEOF
8390 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8391 _ACEOF
8392
8393 fi
8394
8395         fi
8396
8397
8398 fi
8399
8400 done
8401
8402         if test "x$with_opengl" != "xno"
8403     then
8404         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8405         then
8406             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8407 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8408 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8409 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8410    { (exit 1); exit 1; }; }
8411         fi
8412
8413
8414
8415 for ac_header in GL/gl.h GL/glx.h
8416 do
8417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419   echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 fi
8424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8426 else
8427   # Is the header compilable?
8428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8430 cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h.  */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h.  */
8436 $ac_includes_default
8437 #include <$ac_header>
8438 _ACEOF
8439 rm -f conftest.$ac_objext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441   (eval $ac_compile) 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; } &&
8454          { ac_try='test -s conftest.$ac_objext'
8455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456   (eval $ac_try) 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; }; then
8460   ac_header_compiler=yes
8461 else
8462   echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465 ac_header_compiler=no
8466 fi
8467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8469 echo "${ECHO_T}$ac_header_compiler" >&6
8470
8471 # Is the header present?
8472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8474 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h.  */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h.  */
8480 #include <$ac_header>
8481 _ACEOF
8482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8484   ac_status=$?
8485   grep -v '^ *+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } >/dev/null; then
8490   if test -s conftest.err; then
8491     ac_cpp_err=$ac_c_preproc_warn_flag
8492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8493   else
8494     ac_cpp_err=
8495   fi
8496 else
8497   ac_cpp_err=yes
8498 fi
8499 if test -z "$ac_cpp_err"; then
8500   ac_header_preproc=yes
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505   ac_header_preproc=no
8506 fi
8507 rm -f conftest.err conftest.$ac_ext
8508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8509 echo "${ECHO_T}$ac_header_preproc" >&6
8510
8511 # So?  What about this header?
8512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8513   yes:no: )
8514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8518     ac_header_preproc=yes
8519     ;;
8520   no:yes:* )
8521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8533     (
8534       cat <<\_ASBOX
8535 ## ------------------------------------ ##
8536 ## Report this to wine-devel@winehq.org ##
8537 ## ------------------------------------ ##
8538 _ASBOX
8539     ) |
8540       sed "s/^/$as_me: WARNING:     /" >&2
8541     ;;
8542 esac
8543 echo "$as_me:$LINENO: checking for $ac_header" >&5
8544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   eval "$as_ac_Header=\$ac_header_preproc"
8549 fi
8550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8552
8553 fi
8554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8555   cat >>confdefs.h <<_ACEOF
8556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8557 _ACEOF
8558
8559 fi
8560
8561 done
8562
8563         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8564         then
8565
8566 for ac_header in GL/glext.h
8567 do
8568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8569 echo "$as_me:$LINENO: checking for $ac_header" >&5
8570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8572   echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574   cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h.  */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h.  */
8580 #include <GL/glx.h>
8581
8582 #include <$ac_header>
8583 _ACEOF
8584 rm -f conftest.$ac_objext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586   (eval $ac_compile) 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; } &&
8599          { ac_try='test -s conftest.$ac_objext'
8600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601   (eval $ac_try) 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); }; }; then
8605   eval "$as_ac_Header=yes"
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 eval "$as_ac_Header=no"
8611 fi
8612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8613 fi
8614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8617   cat >>confdefs.h <<_ACEOF
8618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619 _ACEOF
8620
8621 fi
8622
8623 done
8624
8625                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8626 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8627 if test "${wine_cv_opengl_version_OK+set}" = set; then
8628   echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630   cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h.  */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h.  */
8636 #include <GL/gl.h>
8637 int
8638 main ()
8639 {
8640 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647   (eval $ac_compile) 2>conftest.er1
8648   ac_status=$?
8649   grep -v '^ *+' conftest.er1 >conftest.err
8650   rm -f conftest.er1
8651   cat conftest.err >&5
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } &&
8654          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; } &&
8660          { ac_try='test -s conftest.$ac_objext'
8661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   wine_cv_opengl_version_OK="yes"
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 wine_cv_opengl_version_OK="no"
8672
8673 fi
8674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675
8676 fi
8677 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8678 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8679
8680             if test "$wine_cv_opengl_version_OK" = "yes"
8681             then
8682                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8683 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8684 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8685   echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687   ac_check_lib_save_LIBS=$LIBS
8688 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h.  */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h.  */
8695
8696 /* Override any gcc2 internal prototype to avoid an error.  */
8697 #ifdef __cplusplus
8698 extern "C"
8699 #endif
8700 /* We use char because int might match the return type of a gcc2
8701    builtin and then its argument prototype would still apply.  */
8702 char glXCreateContext ();
8703 int
8704 main ()
8705 {
8706 glXCreateContext ();
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713   (eval $ac_link) 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } &&
8720          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722   (eval $ac_try) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; } &&
8726          { ac_try='test -s conftest$ac_exeext'
8727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728   (eval $ac_try) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; }; then
8732   ac_cv_lib_GL_glXCreateContext=yes
8733 else
8734   echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 ac_cv_lib_GL_glXCreateContext=no
8738 fi
8739 rm -f conftest.err conftest.$ac_objext \
8740       conftest$ac_exeext conftest.$ac_ext
8741 LIBS=$ac_check_lib_save_LIBS
8742 fi
8743 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8744 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8745 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8746   OPENGL_LIBS="-lGL"
8747
8748 fi
8749
8750
8751                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8752                 then
8753                         OPENGLFILES='$(OPENGLFILES)'
8754
8755 cat >>confdefs.h <<\_ACEOF
8756 #define HAVE_OPENGL 1
8757 _ACEOF
8758
8759
8760                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8761 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8762 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765   ac_check_lib_save_LIBS=$LIBS
8766 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h.  */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h.  */
8773
8774 /* Override any gcc2 internal prototype to avoid an error.  */
8775 #ifdef __cplusplus
8776 extern "C"
8777 #endif
8778 /* We use char because int might match the return type of a gcc2
8779    builtin and then its argument prototype would still apply.  */
8780 char glXGetProcAddressARB ();
8781 int
8782 main ()
8783 {
8784 glXGetProcAddressARB ();
8785   ;
8786   return 0;
8787 }
8788 _ACEOF
8789 rm -f conftest.$ac_objext conftest$ac_exeext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8791   (eval $ac_link) 2>conftest.er1
8792   ac_status=$?
8793   grep -v '^ *+' conftest.er1 >conftest.err
8794   rm -f conftest.er1
8795   cat conftest.err >&5
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); } &&
8798          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800   (eval $ac_try) 2>&5
8801   ac_status=$?
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); }; } &&
8804          { ac_try='test -s conftest$ac_exeext'
8805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806   (eval $ac_try) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); }; }; then
8810   ac_cv_lib_GL_glXGetProcAddressARB=yes
8811 else
8812   echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ac_cv_lib_GL_glXGetProcAddressARB=no
8816 fi
8817 rm -f conftest.err conftest.$ac_objext \
8818       conftest$ac_exeext conftest.$ac_ext
8819 LIBS=$ac_check_lib_save_LIBS
8820 fi
8821 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8822 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8823 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8824
8825 cat >>confdefs.h <<\_ACEOF
8826 #define HAVE_GLX_GETPROCADDRESS 1
8827 _ACEOF
8828
8829 fi
8830
8831
8832                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8833                         then
8834                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8835 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8836 if test "${wine_cv_extension_prototypes+set}" = set; then
8837   echo $ECHO_N "(cached) $ECHO_C" >&6
8838 else
8839   cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h.  */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h.  */
8845 #include <GL/gl.h>
8846                                                   #ifdef HAVE_GL_GLEXT_H
8847                                                   # include <GL/glext.h>
8848                                                   #endif
8849
8850 int
8851 main ()
8852 {
8853 PFNGLCOLORTABLEEXTPROC test_proc;
8854   ;
8855   return 0;
8856 }
8857 _ACEOF
8858 rm -f conftest.$ac_objext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8860   (eval $ac_compile) 2>conftest.er1
8861   ac_status=$?
8862   grep -v '^ *+' conftest.er1 >conftest.err
8863   rm -f conftest.er1
8864   cat conftest.err >&5
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); } &&
8867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869   (eval $ac_try) 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); }; } &&
8873          { ac_try='test -s conftest.$ac_objext'
8874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875   (eval $ac_try) 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); }; }; then
8879   wine_cv_extension_prototypes="yes"
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884 wine_cv_extension_prototypes="no"
8885
8886 fi
8887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8888
8889 fi
8890 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8891 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8892                                 if test "$wine_cv_extension_prototypes" = "yes"
8893                                 then
8894
8895 cat >>confdefs.h <<\_ACEOF
8896 #define HAVE_GLEXT_PROTOTYPES 1
8897 _ACEOF
8898
8899                                 fi
8900                         fi
8901
8902                 fi
8903                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8904 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8905 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8906   echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908   ac_check_lib_save_LIBS=$LIBS
8909 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8910                  $LIBS"
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h.  */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h.  */
8917
8918 /* Override any gcc2 internal prototype to avoid an error.  */
8919 #ifdef __cplusplus
8920 extern "C"
8921 #endif
8922 /* We use char because int might match the return type of a gcc2
8923    builtin and then its argument prototype would still apply.  */
8924 char gluLookAt ();
8925 int
8926 main ()
8927 {
8928 gluLookAt ();
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935   (eval $ac_link) 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } &&
8942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944   (eval $ac_try) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; } &&
8948          { ac_try='test -s conftest$ac_exeext'
8949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950   (eval $ac_try) 2>&5
8951   ac_status=$?
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); }; }; then
8954   ac_cv_lib_GLU_gluLookAt=yes
8955 else
8956   echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8958
8959 ac_cv_lib_GLU_gluLookAt=no
8960 fi
8961 rm -f conftest.err conftest.$ac_objext \
8962       conftest$ac_exeext conftest.$ac_ext
8963 LIBS=$ac_check_lib_save_LIBS
8964 fi
8965 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8966 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8967 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8968   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8969                              GLU32FILES='$(GLU32FILES)'
8970
8971 fi
8972
8973              fi
8974
8975                           echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8976 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8977 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8978   echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980   ac_check_lib_save_LIBS=$LIBS
8981 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988
8989 /* Override any gcc2 internal prototype to avoid an error.  */
8990 #ifdef __cplusplus
8991 extern "C"
8992 #endif
8993 /* We use char because int might match the return type of a gcc2
8994    builtin and then its argument prototype would still apply.  */
8995 char glutMainLoop ();
8996 int
8997 main ()
8998 {
8999 glutMainLoop ();
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006   (eval $ac_link) 2>conftest.er1
9007   ac_status=$?
9008   grep -v '^ *+' conftest.er1 >conftest.err
9009   rm -f conftest.er1
9010   cat conftest.err >&5
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } &&
9013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015   (eval $ac_try) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); }; } &&
9019          { ac_try='test -s conftest$ac_exeext'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; }; then
9025   ac_cv_lib_glut_glutMainLoop=yes
9026 else
9027   echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9029
9030 ac_cv_lib_glut_glutMainLoop=no
9031 fi
9032 rm -f conftest.err conftest.$ac_objext \
9033       conftest$ac_exeext conftest.$ac_ext
9034 LIBS=$ac_check_lib_save_LIBS
9035 fi
9036 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9037 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9038 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9039   GLUT_LIBS="-lglut -lXmu -lXi"
9040
9041                         GLUT32FILES='$(GLUT32FILES)'
9042
9043 fi
9044
9045          fi
9046     fi
9047
9048         NASLIBS=""
9049
9050
9051 for ac_header in audio/audiolib.h
9052 do
9053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055   echo "$as_me:$LINENO: checking for $ac_header" >&5
9056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9058   echo $ECHO_N "(cached) $ECHO_C" >&6
9059 fi
9060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9062 else
9063   # Is the header compilable?
9064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9066 cat >conftest.$ac_ext <<_ACEOF
9067 /* confdefs.h.  */
9068 _ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h.  */
9072 $ac_includes_default
9073 #include <$ac_header>
9074 _ACEOF
9075 rm -f conftest.$ac_objext
9076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9077   (eval $ac_compile) 2>conftest.er1
9078   ac_status=$?
9079   grep -v '^ *+' conftest.er1 >conftest.err
9080   rm -f conftest.er1
9081   cat conftest.err >&5
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); } &&
9084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086   (eval $ac_try) 2>&5
9087   ac_status=$?
9088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089   (exit $ac_status); }; } &&
9090          { ac_try='test -s conftest.$ac_objext'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; }; then
9096   ac_header_compiler=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101 ac_header_compiler=no
9102 fi
9103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9105 echo "${ECHO_T}$ac_header_compiler" >&6
9106
9107 # Is the header present?
9108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h.  */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h.  */
9116 #include <$ac_header>
9117 _ACEOF
9118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9120   ac_status=$?
9121   grep -v '^ *+' conftest.er1 >conftest.err
9122   rm -f conftest.er1
9123   cat conftest.err >&5
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); } >/dev/null; then
9126   if test -s conftest.err; then
9127     ac_cpp_err=$ac_c_preproc_warn_flag
9128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9129   else
9130     ac_cpp_err=
9131   fi
9132 else
9133   ac_cpp_err=yes
9134 fi
9135 if test -z "$ac_cpp_err"; then
9136   ac_header_preproc=yes
9137 else
9138   echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9140
9141   ac_header_preproc=no
9142 fi
9143 rm -f conftest.err conftest.$ac_ext
9144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9145 echo "${ECHO_T}$ac_header_preproc" >&6
9146
9147 # So?  What about this header?
9148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9149   yes:no: )
9150     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9154     ac_header_preproc=yes
9155     ;;
9156   no:yes:* )
9157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9159     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9160 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9161     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9163     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9164 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9167     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9169     (
9170       cat <<\_ASBOX
9171 ## ------------------------------------ ##
9172 ## Report this to wine-devel@winehq.org ##
9173 ## ------------------------------------ ##
9174 _ASBOX
9175     ) |
9176       sed "s/^/$as_me: WARNING:     /" >&2
9177     ;;
9178 esac
9179 echo "$as_me:$LINENO: checking for $ac_header" >&5
9180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   eval "$as_ac_Header=\$ac_header_preproc"
9185 fi
9186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9188
9189 fi
9190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9191   cat >>confdefs.h <<_ACEOF
9192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9193 _ACEOF
9194
9195 for ac_header in audio/soundlib.h
9196 do
9197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9198 echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203   cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209 #include <audio/audiolib.h>
9210
9211 #include <$ac_header>
9212 _ACEOF
9213 rm -f conftest.$ac_objext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215   (eval $ac_compile) 2>conftest.er1
9216   ac_status=$?
9217   grep -v '^ *+' conftest.er1 >conftest.err
9218   rm -f conftest.er1
9219   cat conftest.err >&5
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); } &&
9222          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224   (eval $ac_try) 2>&5
9225   ac_status=$?
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); }; } &&
9228          { ac_try='test -s conftest.$ac_objext'
9229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230   (eval $ac_try) 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); }; }; then
9234   eval "$as_ac_Header=yes"
9235 else
9236   echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239 eval "$as_ac_Header=no"
9240 fi
9241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9242 fi
9243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9246   cat >>confdefs.h <<_ACEOF
9247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9248 _ACEOF
9249
9250 fi
9251
9252 done
9253
9254           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9255 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9256 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259   ac_check_lib_save_LIBS=$LIBS
9260 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9261 cat >conftest.$ac_ext <<_ACEOF
9262 /* confdefs.h.  */
9263 _ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h.  */
9267
9268 /* Override any gcc2 internal prototype to avoid an error.  */
9269 #ifdef __cplusplus
9270 extern "C"
9271 #endif
9272 /* We use char because int might match the return type of a gcc2
9273    builtin and then its argument prototype would still apply.  */
9274 char AuCreateFlow ();
9275 int
9276 main ()
9277 {
9278 AuCreateFlow ();
9279   ;
9280   return 0;
9281 }
9282 _ACEOF
9283 rm -f conftest.$ac_objext conftest$ac_exeext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9285   (eval $ac_link) 2>conftest.er1
9286   ac_status=$?
9287   grep -v '^ *+' conftest.er1 >conftest.err
9288   rm -f conftest.er1
9289   cat conftest.err >&5
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); } &&
9292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294   (eval $ac_try) 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); }; } &&
9298          { ac_try='test -s conftest$ac_exeext'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   ac_cv_lib_audio_AuCreateFlow=yes
9305 else
9306   echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309 ac_cv_lib_audio_AuCreateFlow=no
9310 fi
9311 rm -f conftest.err conftest.$ac_objext \
9312       conftest$ac_exeext conftest.$ac_ext
9313 LIBS=$ac_check_lib_save_LIBS
9314 fi
9315 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9316 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9317 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9318
9319 cat >>confdefs.h <<\_ACEOF
9320 #define HAVE_NAS 1
9321 _ACEOF
9322
9323                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9324 fi
9325
9326 fi
9327
9328 done
9329
9330
9331     CPPFLAGS="$ac_save_CPPFLAGS"
9332     XFILES='$(XFILES)'
9333 else
9334     XLIB=""
9335     X_CFLAGS=""
9336     X_LIBS=""
9337 fi
9338
9339 CURSESLIBS=""
9340 if test "x$with_curses" != "xno"
9341 then
9342
9343 for ac_header in ncurses.h
9344 do
9345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9347   echo "$as_me:$LINENO: checking for $ac_header" >&5
9348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 fi
9352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9354 else
9355   # Is the header compilable?
9356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h.  */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h.  */
9364 $ac_includes_default
9365 #include <$ac_header>
9366 _ACEOF
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369   (eval $ac_compile) 2>conftest.er1
9370   ac_status=$?
9371   grep -v '^ *+' conftest.er1 >conftest.err
9372   rm -f conftest.er1
9373   cat conftest.err >&5
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); } &&
9376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378   (eval $ac_try) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; } &&
9382          { ac_try='test -s conftest.$ac_objext'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; }; then
9388   ac_header_compiler=yes
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 ac_header_compiler=no
9394 fi
9395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9397 echo "${ECHO_T}$ac_header_compiler" >&6
9398
9399 # Is the header present?
9400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h.  */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h.  */
9408 #include <$ac_header>
9409 _ACEOF
9410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9412   ac_status=$?
9413   grep -v '^ *+' conftest.er1 >conftest.err
9414   rm -f conftest.er1
9415   cat conftest.err >&5
9416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); } >/dev/null; then
9418   if test -s conftest.err; then
9419     ac_cpp_err=$ac_c_preproc_warn_flag
9420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9421   else
9422     ac_cpp_err=
9423   fi
9424 else
9425   ac_cpp_err=yes
9426 fi
9427 if test -z "$ac_cpp_err"; then
9428   ac_header_preproc=yes
9429 else
9430   echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9432
9433   ac_header_preproc=no
9434 fi
9435 rm -f conftest.err conftest.$ac_ext
9436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9437 echo "${ECHO_T}$ac_header_preproc" >&6
9438
9439 # So?  What about this header?
9440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9441   yes:no: )
9442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9446     ac_header_preproc=yes
9447     ;;
9448   no:yes:* )
9449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9461     (
9462       cat <<\_ASBOX
9463 ## ------------------------------------ ##
9464 ## Report this to wine-devel@winehq.org ##
9465 ## ------------------------------------ ##
9466 _ASBOX
9467     ) |
9468       sed "s/^/$as_me: WARNING:     /" >&2
9469     ;;
9470 esac
9471 echo "$as_me:$LINENO: checking for $ac_header" >&5
9472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9474   echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476   eval "$as_ac_Header=\$ac_header_preproc"
9477 fi
9478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9480
9481 fi
9482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9483   cat >>confdefs.h <<_ACEOF
9484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9485 _ACEOF
9486  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9487 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9488 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491   ac_check_lib_save_LIBS=$LIBS
9492 LIBS="-lncurses  $LIBS"
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h.  */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h.  */
9499
9500 /* Override any gcc2 internal prototype to avoid an error.  */
9501 #ifdef __cplusplus
9502 extern "C"
9503 #endif
9504 /* We use char because int might match the return type of a gcc2
9505    builtin and then its argument prototype would still apply.  */
9506 char waddch ();
9507 int
9508 main ()
9509 {
9510 waddch ();
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext conftest$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517   (eval $ac_link) 2>conftest.er1
9518   ac_status=$?
9519   grep -v '^ *+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } &&
9524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526   (eval $ac_try) 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); }; } &&
9530          { ac_try='test -s conftest$ac_exeext'
9531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532   (eval $ac_try) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; }; then
9536   ac_cv_lib_ncurses_waddch=yes
9537 else
9538   echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9540
9541 ac_cv_lib_ncurses_waddch=no
9542 fi
9543 rm -f conftest.err conftest.$ac_objext \
9544       conftest$ac_exeext conftest.$ac_ext
9545 LIBS=$ac_check_lib_save_LIBS
9546 fi
9547 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9548 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9549 if test $ac_cv_lib_ncurses_waddch = yes; then
9550
9551 cat >>confdefs.h <<\_ACEOF
9552 #define HAVE_LIBNCURSES 1
9553 _ACEOF
9554
9555              CURSESLIBS="-lncurses"
9556 else
9557
9558 for ac_header in curses.h
9559 do
9560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9562   echo "$as_me:$LINENO: checking for $ac_header" >&5
9563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9565   echo $ECHO_N "(cached) $ECHO_C" >&6
9566 fi
9567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9569 else
9570   # Is the header compilable?
9571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h.  */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h.  */
9579 $ac_includes_default
9580 #include <$ac_header>
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584   (eval $ac_compile) 2>conftest.er1
9585   ac_status=$?
9586   grep -v '^ *+' conftest.er1 >conftest.err
9587   rm -f conftest.er1
9588   cat conftest.err >&5
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); } &&
9591          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593   (eval $ac_try) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; } &&
9597          { ac_try='test -s conftest.$ac_objext'
9598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599   (eval $ac_try) 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); }; }; then
9603   ac_header_compiler=yes
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 ac_header_compiler=no
9609 fi
9610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9612 echo "${ECHO_T}$ac_header_compiler" >&6
9613
9614 # Is the header present?
9615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h.  */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h.  */
9623 #include <$ac_header>
9624 _ACEOF
9625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9626   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9627   ac_status=$?
9628   grep -v '^ *+' conftest.er1 >conftest.err
9629   rm -f conftest.er1
9630   cat conftest.err >&5
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } >/dev/null; then
9633   if test -s conftest.err; then
9634     ac_cpp_err=$ac_c_preproc_warn_flag
9635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9636   else
9637     ac_cpp_err=
9638   fi
9639 else
9640   ac_cpp_err=yes
9641 fi
9642 if test -z "$ac_cpp_err"; then
9643   ac_header_preproc=yes
9644 else
9645   echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648   ac_header_preproc=no
9649 fi
9650 rm -f conftest.err conftest.$ac_ext
9651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9652 echo "${ECHO_T}$ac_header_preproc" >&6
9653
9654 # So?  What about this header?
9655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9656   yes:no: )
9657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9661     ac_header_preproc=yes
9662     ;;
9663   no:yes:* )
9664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9676     (
9677       cat <<\_ASBOX
9678 ## ------------------------------------ ##
9679 ## Report this to wine-devel@winehq.org ##
9680 ## ------------------------------------ ##
9681 _ASBOX
9682     ) |
9683       sed "s/^/$as_me: WARNING:     /" >&2
9684     ;;
9685 esac
9686 echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9689   echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691   eval "$as_ac_Header=\$ac_header_preproc"
9692 fi
9693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9695
9696 fi
9697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9698   cat >>confdefs.h <<_ACEOF
9699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9700 _ACEOF
9701  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9702 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9703 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   ac_check_lib_save_LIBS=$LIBS
9707 LIBS="-lcurses  $LIBS"
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h.  */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h.  */
9714
9715 /* Override any gcc2 internal prototype to avoid an error.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 /* We use char because int might match the return type of a gcc2
9720    builtin and then its argument prototype would still apply.  */
9721 char waddch ();
9722 int
9723 main ()
9724 {
9725 waddch ();
9726   ;
9727   return 0;
9728 }
9729 _ACEOF
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732   (eval $ac_link) 2>conftest.er1
9733   ac_status=$?
9734   grep -v '^ *+' conftest.er1 >conftest.err
9735   rm -f conftest.er1
9736   cat conftest.err >&5
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); } &&
9739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741   (eval $ac_try) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; } &&
9745          { ac_try='test -s conftest$ac_exeext'
9746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747   (eval $ac_try) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; }; then
9751   ac_cv_lib_curses_waddch=yes
9752 else
9753   echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756 ac_cv_lib_curses_waddch=no
9757 fi
9758 rm -f conftest.err conftest.$ac_objext \
9759       conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9761 fi
9762 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9763 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9764 if test $ac_cv_lib_curses_waddch = yes; then
9765
9766 cat >>confdefs.h <<\_ACEOF
9767 #define HAVE_LIBCURSES 1
9768 _ACEOF
9769
9770                       CURSESLIBS="-lcurses"
9771 fi
9772
9773 fi
9774
9775 done
9776
9777 fi
9778
9779 fi
9780
9781 done
9782
9783     saved_libs="$LIBS"
9784     LIBS="$CURSESLIBS $LIBS"
9785
9786
9787 for ac_func in getbkgd resizeterm
9788 do
9789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9790 echo "$as_me:$LINENO: checking for $ac_func" >&5
9791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9792 if eval "test \"\${$as_ac_var+set}\" = set"; then
9793   echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795   cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h.  */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h.  */
9801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9803 #define $ac_func innocuous_$ac_func
9804
9805 /* System header to define __stub macros and hopefully few prototypes,
9806     which can conflict with char $ac_func (); below.
9807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9808     <limits.h> exists even on freestanding compilers.  */
9809
9810 #ifdef __STDC__
9811 # include <limits.h>
9812 #else
9813 # include <assert.h>
9814 #endif
9815
9816 #undef $ac_func
9817
9818 /* Override any gcc2 internal prototype to avoid an error.  */
9819 #ifdef __cplusplus
9820 extern "C"
9821 {
9822 #endif
9823 /* We use char because int might match the return type of a gcc2
9824    builtin and then its argument prototype would still apply.  */
9825 char $ac_func ();
9826 /* The GNU C library defines this for functions which it implements
9827     to always fail with ENOSYS.  Some functions are actually named
9828     something starting with __ and the normal name is an alias.  */
9829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9830 choke me
9831 #else
9832 char (*f) () = $ac_func;
9833 #endif
9834 #ifdef __cplusplus
9835 }
9836 #endif
9837
9838 int
9839 main ()
9840 {
9841 return f != $ac_func;
9842   ;
9843   return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848   (eval $ac_link) 2>conftest.er1
9849   ac_status=$?
9850   grep -v '^ *+' conftest.er1 >conftest.err
9851   rm -f conftest.er1
9852   cat conftest.err >&5
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } &&
9855          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; } &&
9861          { ac_try='test -s conftest$ac_exeext'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867   eval "$as_ac_var=yes"
9868 else
9869   echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 eval "$as_ac_var=no"
9873 fi
9874 rm -f conftest.err conftest.$ac_objext \
9875       conftest$ac_exeext conftest.$ac_ext
9876 fi
9877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9879 if test `eval echo '${'$as_ac_var'}'` = yes; then
9880   cat >>confdefs.h <<_ACEOF
9881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9882 _ACEOF
9883
9884 fi
9885 done
9886
9887     LIBS="$saved_libs"
9888 fi
9889
9890
9891 # Extract the first word of "sane-config", so it can be a program name with args.
9892 set dummy sane-config; ac_word=$2
9893 echo "$as_me:$LINENO: checking for $ac_word" >&5
9894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9895 if test "${ac_cv_prog_sane_devel+set}" = set; then
9896   echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898   if test -n "$sane_devel"; then
9899   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9900 else
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9903 do
9904   IFS=$as_save_IFS
9905   test -z "$as_dir" && as_dir=.
9906   for ac_exec_ext in '' $ac_executable_extensions; do
9907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9908     ac_cv_prog_sane_devel="sane-config"
9909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9910     break 2
9911   fi
9912 done
9913 done
9914
9915   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9916 fi
9917 fi
9918 sane_devel=$ac_cv_prog_sane_devel
9919 if test -n "$sane_devel"; then
9920   echo "$as_me:$LINENO: result: $sane_devel" >&5
9921 echo "${ECHO_T}$sane_devel" >&6
9922 else
9923   echo "$as_me:$LINENO: result: no" >&5
9924 echo "${ECHO_T}no" >&6
9925 fi
9926
9927 if test "$sane_devel" = "no"
9928 then
9929     SANELIBS=""
9930     SANEINCL=""
9931 else
9932     SANELIBS="`$sane_devel --libs`"
9933     SANEINCL="`$sane_devel --cflags`"
9934     ac_save_CPPFLAGS="$CPPFLAGS"
9935     ac_save_LIBS="$LIBS"
9936     CPPFLAGS="$CPPFLAGS $SANEINCL"
9937     LIBS="$LIBS $SANELIBS"
9938     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9939   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9940 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9941 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 fi
9944 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9945 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9946 else
9947   # Is the header compilable?
9948 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9949 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9950 cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h.  */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h.  */
9956 $ac_includes_default
9957 #include <sane/sane.h>
9958 _ACEOF
9959 rm -f conftest.$ac_objext
9960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9961   (eval $ac_compile) 2>conftest.er1
9962   ac_status=$?
9963   grep -v '^ *+' conftest.er1 >conftest.err
9964   rm -f conftest.er1
9965   cat conftest.err >&5
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); } &&
9968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970   (eval $ac_try) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; } &&
9974          { ac_try='test -s conftest.$ac_objext'
9975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976   (eval $ac_try) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; }; then
9980   ac_header_compiler=yes
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_header_compiler=no
9986 fi
9987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989 echo "${ECHO_T}$ac_header_compiler" >&6
9990
9991 # Is the header present?
9992 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9993 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 #include <sane/sane.h>
10001 _ACEOF
10002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10004   ac_status=$?
10005   grep -v '^ *+' conftest.er1 >conftest.err
10006   rm -f conftest.er1
10007   cat conftest.err >&5
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); } >/dev/null; then
10010   if test -s conftest.err; then
10011     ac_cpp_err=$ac_c_preproc_warn_flag
10012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10013   else
10014     ac_cpp_err=
10015   fi
10016 else
10017   ac_cpp_err=yes
10018 fi
10019 if test -z "$ac_cpp_err"; then
10020   ac_header_preproc=yes
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025   ac_header_preproc=no
10026 fi
10027 rm -f conftest.err conftest.$ac_ext
10028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10029 echo "${ECHO_T}$ac_header_preproc" >&6
10030
10031 # So?  What about this header?
10032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10033   yes:no: )
10034     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10035 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10036     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10037 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10038     ac_header_preproc=yes
10039     ;;
10040   no:yes:* )
10041     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10042 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10043     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
10044 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
10045     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10046 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10047     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
10048 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10049     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10050 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10051     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10052 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10053     (
10054       cat <<\_ASBOX
10055 ## ------------------------------------ ##
10056 ## Report this to wine-devel@winehq.org ##
10057 ## ------------------------------------ ##
10058 _ASBOX
10059     ) |
10060       sed "s/^/$as_me: WARNING:     /" >&2
10061     ;;
10062 esac
10063 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10064 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10065 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10066   echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068   ac_cv_header_sane_sane_h=$ac_header_preproc
10069 fi
10070 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10071 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10072
10073 fi
10074 if test $ac_cv_header_sane_sane_h = yes; then
10075   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10076 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10077 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080   ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-lsane  $LIBS"
10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088
10089 /* Override any gcc2 internal prototype to avoid an error.  */
10090 #ifdef __cplusplus
10091 extern "C"
10092 #endif
10093 /* We use char because int might match the return type of a gcc2
10094    builtin and then its argument prototype would still apply.  */
10095 char sane_open ();
10096 int
10097 main ()
10098 {
10099 sane_open ();
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106   (eval $ac_link) 2>conftest.er1
10107   ac_status=$?
10108   grep -v '^ *+' conftest.er1 >conftest.err
10109   rm -f conftest.er1
10110   cat conftest.err >&5
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } &&
10113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115   (eval $ac_try) 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; } &&
10119          { ac_try='test -s conftest$ac_exeext'
10120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121   (eval $ac_try) 2>&5
10122   ac_status=$?
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); }; }; then
10125   ac_cv_lib_sane_sane_open=yes
10126 else
10127   echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10129
10130 ac_cv_lib_sane_sane_open=no
10131 fi
10132 rm -f conftest.err conftest.$ac_objext \
10133       conftest$ac_exeext conftest.$ac_ext
10134 LIBS=$ac_check_lib_save_LIBS
10135 fi
10136 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10137 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10138 if test $ac_cv_lib_sane_sane_open = yes; then
10139
10140 cat >>confdefs.h <<\_ACEOF
10141 #define HAVE_SANE 1
10142 _ACEOF
10143
10144 else
10145   SANELIBS=""
10146                                   SANEINCL=""
10147 fi
10148
10149 else
10150   SANELIBS=""
10151                     SANEINCL=""
10152 fi
10153
10154
10155     LIBS="$ac_save_LIBS"
10156     CPPFLAGS="$ac_save_CPPFLAGS"
10157 fi
10158
10159
10160
10161
10162 for ac_header in unicode/ubidi.h
10163 do
10164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10166   echo "$as_me:$LINENO: checking for $ac_header" >&5
10167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 fi
10171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10173 else
10174   # Is the header compilable?
10175 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183 $ac_includes_default
10184 #include <$ac_header>
10185 _ACEOF
10186 rm -f conftest.$ac_objext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188   (eval $ac_compile) 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; } &&
10201          { ac_try='test -s conftest.$ac_objext'
10202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203   (eval $ac_try) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; }; then
10207   ac_header_compiler=yes
10208 else
10209   echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 ac_header_compiler=no
10213 fi
10214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10216 echo "${ECHO_T}$ac_header_compiler" >&6
10217
10218 # Is the header present?
10219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10221 cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227 #include <$ac_header>
10228 _ACEOF
10229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10231   ac_status=$?
10232   grep -v '^ *+' conftest.er1 >conftest.err
10233   rm -f conftest.er1
10234   cat conftest.err >&5
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } >/dev/null; then
10237   if test -s conftest.err; then
10238     ac_cpp_err=$ac_c_preproc_warn_flag
10239     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10240   else
10241     ac_cpp_err=
10242   fi
10243 else
10244   ac_cpp_err=yes
10245 fi
10246 if test -z "$ac_cpp_err"; then
10247   ac_header_preproc=yes
10248 else
10249   echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252   ac_header_preproc=no
10253 fi
10254 rm -f conftest.err conftest.$ac_ext
10255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10256 echo "${ECHO_T}$ac_header_preproc" >&6
10257
10258 # So?  What about this header?
10259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10260   yes:no: )
10261     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10265     ac_header_preproc=yes
10266     ;;
10267   no:yes:* )
10268     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10270     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10271 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10272     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10274     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10275 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10278     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10280     (
10281       cat <<\_ASBOX
10282 ## ------------------------------------ ##
10283 ## Report this to wine-devel@winehq.org ##
10284 ## ------------------------------------ ##
10285 _ASBOX
10286     ) |
10287       sed "s/^/$as_me: WARNING:     /" >&2
10288     ;;
10289 esac
10290 echo "$as_me:$LINENO: checking for $ac_header" >&5
10291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10293   echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295   eval "$as_ac_Header=\$ac_header_preproc"
10296 fi
10297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10299
10300 fi
10301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10302   cat >>confdefs.h <<_ACEOF
10303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10304 _ACEOF
10305
10306 fi
10307
10308 done
10309
10310 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10311 then
10312     saved_libs="$LIBS"
10313     ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10314     ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
10315     ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
10316     echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
10317 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
10318     LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10319     cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h.  */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h.  */
10325 #include <unicode/ubidi.h>
10326 int
10327 main ()
10328 {
10329 ubidi_open()
10330   ;
10331   return 0;
10332 }
10333 _ACEOF
10334 rm -f conftest.$ac_objext conftest$ac_exeext
10335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336   (eval $ac_link) 2>conftest.er1
10337   ac_status=$?
10338   grep -v '^ *+' conftest.er1 >conftest.err
10339   rm -f conftest.er1
10340   cat conftest.err >&5
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); } &&
10343          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345   (eval $ac_try) 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); }; } &&
10349          { ac_try='test -s conftest$ac_exeext'
10350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351   (eval $ac_try) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); }; }; then
10355
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_ICU 1
10358 _ACEOF
10359
10360                  ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10361
10362                  echo "$as_me:$LINENO: result: yes" >&5
10363 echo "${ECHO_T}yes" >&6
10364 else
10365   echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10367
10368 echo "$as_me:$LINENO: result: no" >&5
10369 echo "${ECHO_T}no" >&6
10370 fi
10371 rm -f conftest.err conftest.$ac_objext \
10372       conftest$ac_exeext conftest.$ac_ext
10373     LIBS="$saved_libs"
10374 fi
10375
10376 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10377 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10378 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10379   echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381   ac_check_lib_save_LIBS=$LIBS
10382 LIBS="-lfreetype $X_LIBS $LIBS"
10383 cat >conftest.$ac_ext <<_ACEOF
10384 /* confdefs.h.  */
10385 _ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h.  */
10389
10390 /* Override any gcc2 internal prototype to avoid an error.  */
10391 #ifdef __cplusplus
10392 extern "C"
10393 #endif
10394 /* We use char because int might match the return type of a gcc2
10395    builtin and then its argument prototype would still apply.  */
10396 char FT_Init_FreeType ();
10397 int
10398 main ()
10399 {
10400 FT_Init_FreeType ();
10401   ;
10402   return 0;
10403 }
10404 _ACEOF
10405 rm -f conftest.$ac_objext conftest$ac_exeext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407   (eval $ac_link) 2>conftest.er1
10408   ac_status=$?
10409   grep -v '^ *+' conftest.er1 >conftest.err
10410   rm -f conftest.er1
10411   cat conftest.err >&5
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } &&
10414          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416   (eval $ac_try) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; } &&
10420          { ac_try='test -s conftest$ac_exeext'
10421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422   (eval $ac_try) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); }; }; then
10426   ac_cv_lib_freetype_FT_Init_FreeType=yes
10427 else
10428   echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10430
10431 ac_cv_lib_freetype_FT_Init_FreeType=no
10432 fi
10433 rm -f conftest.err conftest.$ac_objext \
10434       conftest$ac_exeext conftest.$ac_ext
10435 LIBS=$ac_check_lib_save_LIBS
10436 fi
10437 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10438 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10439 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10440   ft_lib=yes
10441 else
10442   ft_lib=no
10443 fi
10444
10445 if test "$ft_lib" = "no"
10446 then
10447     FREETYPELIBS=""
10448     FREETYPEINCL=""
10449     wine_cv_msg_freetype=no
10450 else
10451     # Extract the first word of "freetype-config", so it can be a program name with args.
10452 set dummy freetype-config; ac_word=$2
10453 echo "$as_me:$LINENO: checking for $ac_word" >&5
10454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10455 if test "${ac_cv_prog_ft_devel+set}" = set; then
10456   echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10458   if test -n "$ft_devel"; then
10459   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10460 else
10461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462 for as_dir in $PATH
10463 do
10464   IFS=$as_save_IFS
10465   test -z "$as_dir" && as_dir=.
10466   for ac_exec_ext in '' $ac_executable_extensions; do
10467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10468     ac_cv_prog_ft_devel="freetype-config"
10469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10470     break 2
10471   fi
10472 done
10473 done
10474
10475   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10476 fi
10477 fi
10478 ft_devel=$ac_cv_prog_ft_devel
10479 if test -n "$ft_devel"; then
10480   echo "$as_me:$LINENO: result: $ft_devel" >&5
10481 echo "${ECHO_T}$ft_devel" >&6
10482 else
10483   echo "$as_me:$LINENO: result: no" >&5
10484 echo "${ECHO_T}no" >&6
10485 fi
10486
10487     if test "$ft_devel" = "no"
10488     then
10489         # Extract the first word of "freetype2-config", so it can be a program name with args.
10490 set dummy freetype2-config; ac_word=$2
10491 echo "$as_me:$LINENO: checking for $ac_word" >&5
10492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10493 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10494   echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496   if test -n "$ft_devel2"; then
10497   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10498 else
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10501 do
10502   IFS=$as_save_IFS
10503   test -z "$as_dir" && as_dir=.
10504   for ac_exec_ext in '' $ac_executable_extensions; do
10505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506     ac_cv_prog_ft_devel2="freetype2-config"
10507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10508     break 2
10509   fi
10510 done
10511 done
10512
10513   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10514 fi
10515 fi
10516 ft_devel2=$ac_cv_prog_ft_devel2
10517 if test -n "$ft_devel2"; then
10518   echo "$as_me:$LINENO: result: $ft_devel2" >&5
10519 echo "${ECHO_T}$ft_devel2" >&6
10520 else
10521   echo "$as_me:$LINENO: result: no" >&5
10522 echo "${ECHO_T}no" >&6
10523 fi
10524
10525         if test "$ft_devel2" = "freetype2-config"
10526         then
10527                 ft_devel=$ft_devel2
10528         fi
10529     fi
10530     if test "$ft_devel" = "no"
10531     then
10532         FREETYPELIBS=""
10533         FREETYPEINCL=""
10534         wine_cv_msg_freetype=yes
10535     else
10536         FREETYPELIBS=`$ft_devel --libs`
10537         FREETYPEINCL=`$ft_devel --cflags`
10538         ac_save_CPPFLAGS="$CPPFLAGS"
10539         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550 for ac_header in ft2build.h \
10551                          freetype/freetype.h \
10552                          freetype/ftglyph.h \
10553                          freetype/tttables.h \
10554                          freetype/ftnames.h \
10555                          freetype/ftsnames.h \
10556                          freetype/ttnameid.h \
10557                          freetype/ftoutln.h \
10558                          freetype/ftwinfnt.h \
10559                          freetype/internal/sfnt.h
10560 do
10561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10562 echo "$as_me:$LINENO: checking for $ac_header" >&5
10563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10565   echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567   cat >conftest.$ac_ext <<_ACEOF
10568 /* confdefs.h.  */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h.  */
10573 #if HAVE_FT2BUILD_H
10574                           #include <ft2build.h>
10575                           #endif
10576
10577 #include <$ac_header>
10578 _ACEOF
10579 rm -f conftest.$ac_objext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581   (eval $ac_compile) 2>conftest.er1
10582   ac_status=$?
10583   grep -v '^ *+' conftest.er1 >conftest.err
10584   rm -f conftest.er1
10585   cat conftest.err >&5
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } &&
10588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590   (eval $ac_try) 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); }; } &&
10594          { ac_try='test -s conftest.$ac_objext'
10595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596   (eval $ac_try) 2>&5
10597   ac_status=$?
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); }; }; then
10600   eval "$as_ac_Header=yes"
10601 else
10602   echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10604
10605 eval "$as_ac_Header=no"
10606 fi
10607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10608 fi
10609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10612   cat >>confdefs.h <<_ACEOF
10613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10614 _ACEOF
10615
10616 fi
10617
10618 done
10619
10620         cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h.  */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h.  */
10626 #include <ft2build.h>
10627                     #include <freetype/fttrigon.h>
10628 _ACEOF
10629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10630   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10631   ac_status=$?
10632   grep -v '^ *+' conftest.er1 >conftest.err
10633   rm -f conftest.er1
10634   cat conftest.err >&5
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); } >/dev/null; then
10637   if test -s conftest.err; then
10638     ac_cpp_err=$ac_c_preproc_warn_flag
10639     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10640   else
10641     ac_cpp_err=
10642   fi
10643 else
10644   ac_cpp_err=yes
10645 fi
10646 if test -z "$ac_cpp_err"; then
10647
10648 cat >>confdefs.h <<\_ACEOF
10649 #define HAVE_FREETYPE_FTTRIGON_H 1
10650 _ACEOF
10651
10652                     wine_cv_fttrigon=yes
10653 else
10654   echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657   wine_cv_fttrigon=no
10658 fi
10659 rm -f conftest.err conftest.$ac_ext
10660         CPPFLAGS="$ac_save_CPPFLAGS"
10661                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10662         then
10663
10664 cat >>confdefs.h <<\_ACEOF
10665 #define HAVE_FREETYPE 1
10666 _ACEOF
10667
10668             wine_cv_msg_freetype=no
10669         else
10670             FREETYPELIBS=""
10671             FREETYPEINCL=""
10672             wine_cv_msg_freetype=yes
10673         fi
10674     fi
10675 fi
10676
10677
10678
10679 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10680 then
10681   FONTSSUBDIRS="fonts"
10682
10683 fi
10684
10685 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10686 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10687 if test "${ac_cv_c_ppdev+set}" = set; then
10688   echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690   cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h.  */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h.  */
10696 #include <linux/ppdev.h>
10697 int
10698 main ()
10699 {
10700 ioctl (1,PPCLAIM,0)
10701   ;
10702   return 0;
10703 }
10704 _ACEOF
10705 rm -f conftest.$ac_objext
10706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10707   (eval $ac_compile) 2>conftest.er1
10708   ac_status=$?
10709   grep -v '^ *+' conftest.er1 >conftest.err
10710   rm -f conftest.er1
10711   cat conftest.err >&5
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); } &&
10714          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716   (eval $ac_try) 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); }; } &&
10720          { ac_try='test -s conftest.$ac_objext'
10721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722   (eval $ac_try) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); }; }; then
10726   ac_cv_c_ppdev="yes"
10727 else
10728   echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10730
10731 ac_cv_c_ppdev="no"
10732 fi
10733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10734
10735 fi
10736 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10737 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10738 if test "$ac_cv_c_ppdev" = "yes"
10739 then
10740
10741 cat >>confdefs.h <<\_ACEOF
10742 #define HAVE_PPDEV 1
10743 _ACEOF
10744
10745 fi
10746
10747 echo "$as_me:$LINENO: checking for va_copy" >&5
10748 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10749 if test "${ac_cv_c_va_copy+set}" = set; then
10750   echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752   cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758 #include <stdarg.h>
10759 int
10760 main ()
10761 {
10762 va_list ap1, ap2;
10763     va_copy(ap1,ap2);
10764
10765   ;
10766   return 0;
10767 }
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10771   (eval $ac_link) 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } &&
10778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780   (eval $ac_try) 2>&5
10781   ac_status=$?
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); }; } &&
10784          { ac_try='test -s conftest$ac_exeext'
10785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786   (eval $ac_try) 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); }; }; then
10790   ac_cv_c_va_copy="yes"
10791 else
10792   echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795 ac_cv_c_va_copy="no"
10796 fi
10797 rm -f conftest.err conftest.$ac_objext \
10798       conftest$ac_exeext conftest.$ac_ext
10799
10800 fi
10801 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10802 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10803 if test "$ac_cv_c_va_copy" = "yes"
10804 then
10805
10806 cat >>confdefs.h <<\_ACEOF
10807 #define HAVE_VA_COPY 1
10808 _ACEOF
10809
10810 fi
10811 echo "$as_me:$LINENO: checking for __va_copy" >&5
10812 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10813 if test "${ac_cv_c___va_copy+set}" = set; then
10814   echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816   cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822 #include <stdarg.h>
10823 int
10824 main ()
10825 {
10826 va_list ap1, ap2;
10827     __va_copy(ap1,ap2);
10828
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835   (eval $ac_link) 2>conftest.er1
10836   ac_status=$?
10837   grep -v '^ *+' conftest.er1 >conftest.err
10838   rm -f conftest.er1
10839   cat conftest.err >&5
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); } &&
10842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844   (eval $ac_try) 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; } &&
10848          { ac_try='test -s conftest$ac_exeext'
10849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850   (eval $ac_try) 2>&5
10851   ac_status=$?
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); }; }; then
10854   ac_cv_c___va_copy="yes"
10855 else
10856   echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10858
10859 ac_cv_c___va_copy="no"
10860 fi
10861 rm -f conftest.err conftest.$ac_objext \
10862       conftest$ac_exeext conftest.$ac_ext
10863
10864 fi
10865 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10866 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10867 if test "$ac_cv_c___va_copy" = "yes"
10868 then
10869
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE___VA_COPY 1
10872 _ACEOF
10873
10874 fi
10875
10876 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10877 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10878 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h.  */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h.  */
10887 #include <setjmp.h>
10888 int
10889 main ()
10890 {
10891 sigjmp_buf buf;
10892     sigsetjmp( buf, 1 );
10893     siglongjmp( buf, 1 );
10894   ;
10895   return 0;
10896 }
10897 _ACEOF
10898 rm -f conftest.$ac_objext conftest$ac_exeext
10899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10900   (eval $ac_link) 2>conftest.er1
10901   ac_status=$?
10902   grep -v '^ *+' conftest.er1 >conftest.err
10903   rm -f conftest.er1
10904   cat conftest.err >&5
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); } &&
10907          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909   (eval $ac_try) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; } &&
10913          { ac_try='test -s conftest$ac_exeext'
10914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915   (eval $ac_try) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; }; then
10919   ac_cv_c_sigsetjmp="yes"
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_cv_c_sigsetjmp="no"
10925 fi
10926 rm -f conftest.err conftest.$ac_objext \
10927       conftest$ac_exeext conftest.$ac_ext
10928
10929 fi
10930 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10931 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10932 if test "$ac_cv_c_sigsetjmp" = "yes"
10933 then
10934
10935 cat >>confdefs.h <<\_ACEOF
10936 #define HAVE_SIGSETJMP 1
10937 _ACEOF
10938
10939 fi
10940
10941 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10942 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10943 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10944   echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946   cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h.  */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h.  */
10952 #define _GNU_SOURCE
10953 #include <pthread.h>
10954
10955 int
10956 main ()
10957 {
10958 if ((pthread_rwlock_t *) 0)
10959   return 0;
10960 if (sizeof (pthread_rwlock_t))
10961   return 0;
10962   ;
10963   return 0;
10964 }
10965 _ACEOF
10966 rm -f conftest.$ac_objext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10968   (eval $ac_compile) 2>conftest.er1
10969   ac_status=$?
10970   grep -v '^ *+' conftest.er1 >conftest.err
10971   rm -f conftest.er1
10972   cat conftest.err >&5
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } &&
10975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977   (eval $ac_try) 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); }; } &&
10981          { ac_try='test -s conftest.$ac_objext'
10982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983   (eval $ac_try) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }; }; then
10987   ac_cv_type_pthread_rwlock_t=yes
10988 else
10989   echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10991
10992 ac_cv_type_pthread_rwlock_t=no
10993 fi
10994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10995 fi
10996 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10997 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10998 if test $ac_cv_type_pthread_rwlock_t = yes; then
10999
11000 cat >>confdefs.h <<_ACEOF
11001 #define HAVE_PTHREAD_RWLOCK_T 1
11002 _ACEOF
11003
11004
11005 fi
11006 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11007 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11008 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11009   echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011   cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017 #define _GNU_SOURCE
11018 #include <pthread.h>
11019
11020 int
11021 main ()
11022 {
11023 if ((pthread_rwlockattr_t *) 0)
11024   return 0;
11025 if (sizeof (pthread_rwlockattr_t))
11026   return 0;
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_type_pthread_rwlockattr_t=yes
11053 else
11054   echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11056
11057 ac_cv_type_pthread_rwlockattr_t=no
11058 fi
11059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11060 fi
11061 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11062 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11063 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11064
11065 cat >>confdefs.h <<_ACEOF
11066 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11067 _ACEOF
11068
11069
11070 fi
11071
11072
11073 ac_save_LIBS="$LIBS"
11074 LIBS="$LIBS $LIBPTHREAD"
11075
11076
11077
11078 for ac_func in \
11079         pthread_getattr_np \
11080         pthread_get_stackaddr_np \
11081         pthread_get_stacksize_np \
11082
11083 do
11084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11085 echo "$as_me:$LINENO: checking for $ac_func" >&5
11086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11087 if eval "test \"\${$as_ac_var+set}\" = set"; then
11088   echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090   cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h.  */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h.  */
11096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11098 #define $ac_func innocuous_$ac_func
11099
11100 /* System header to define __stub macros and hopefully few prototypes,
11101     which can conflict with char $ac_func (); below.
11102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11103     <limits.h> exists even on freestanding compilers.  */
11104
11105 #ifdef __STDC__
11106 # include <limits.h>
11107 #else
11108 # include <assert.h>
11109 #endif
11110
11111 #undef $ac_func
11112
11113 /* Override any gcc2 internal prototype to avoid an error.  */
11114 #ifdef __cplusplus
11115 extern "C"
11116 {
11117 #endif
11118 /* We use char because int might match the return type of a gcc2
11119    builtin and then its argument prototype would still apply.  */
11120 char $ac_func ();
11121 /* The GNU C library defines this for functions which it implements
11122     to always fail with ENOSYS.  Some functions are actually named
11123     something starting with __ and the normal name is an alias.  */
11124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11125 choke me
11126 #else
11127 char (*f) () = $ac_func;
11128 #endif
11129 #ifdef __cplusplus
11130 }
11131 #endif
11132
11133 int
11134 main ()
11135 {
11136 return f != $ac_func;
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143   (eval $ac_link) 2>conftest.er1
11144   ac_status=$?
11145   grep -v '^ *+' conftest.er1 >conftest.err
11146   rm -f conftest.er1
11147   cat conftest.err >&5
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); } &&
11150          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152   (eval $ac_try) 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); }; } &&
11156          { ac_try='test -s conftest$ac_exeext'
11157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158   (eval $ac_try) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); }; }; then
11162   eval "$as_ac_var=yes"
11163 else
11164   echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 eval "$as_ac_var=no"
11168 fi
11169 rm -f conftest.err conftest.$ac_objext \
11170       conftest$ac_exeext conftest.$ac_ext
11171 fi
11172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11174 if test `eval echo '${'$as_ac_var'}'` = yes; then
11175   cat >>confdefs.h <<_ACEOF
11176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11177 _ACEOF
11178
11179 fi
11180 done
11181
11182 LIBS="$ac_save_LIBS"
11183
11184
11185
11186
11187 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11188 do
11189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11191   echo "$as_me:$LINENO: checking for $ac_header" >&5
11192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 fi
11196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11198 else
11199   # Is the header compilable?
11200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h.  */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h.  */
11208 $ac_includes_default
11209 #include <$ac_header>
11210 _ACEOF
11211 rm -f conftest.$ac_objext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11213   (eval $ac_compile) 2>conftest.er1
11214   ac_status=$?
11215   grep -v '^ *+' conftest.er1 >conftest.err
11216   rm -f conftest.er1
11217   cat conftest.err >&5
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); } &&
11220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222   (eval $ac_try) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; } &&
11226          { ac_try='test -s conftest.$ac_objext'
11227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228   (eval $ac_try) 2>&5
11229   ac_status=$?
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); }; }; then
11232   ac_header_compiler=yes
11233 else
11234   echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11236
11237 ac_header_compiler=no
11238 fi
11239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11241 echo "${ECHO_T}$ac_header_compiler" >&6
11242
11243 # Is the header present?
11244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h.  */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h.  */
11252 #include <$ac_header>
11253 _ACEOF
11254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11256   ac_status=$?
11257   grep -v '^ *+' conftest.er1 >conftest.err
11258   rm -f conftest.er1
11259   cat conftest.err >&5
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); } >/dev/null; then
11262   if test -s conftest.err; then
11263     ac_cpp_err=$ac_c_preproc_warn_flag
11264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11265   else
11266     ac_cpp_err=
11267   fi
11268 else
11269   ac_cpp_err=yes
11270 fi
11271 if test -z "$ac_cpp_err"; then
11272   ac_header_preproc=yes
11273 else
11274   echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277   ac_header_preproc=no
11278 fi
11279 rm -f conftest.err conftest.$ac_ext
11280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11281 echo "${ECHO_T}$ac_header_preproc" >&6
11282
11283 # So?  What about this header?
11284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11285   yes:no: )
11286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11290     ac_header_preproc=yes
11291     ;;
11292   no:yes:* )
11293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11305     (
11306       cat <<\_ASBOX
11307 ## ------------------------------------ ##
11308 ## Report this to wine-devel@winehq.org ##
11309 ## ------------------------------------ ##
11310 _ASBOX
11311     ) |
11312       sed "s/^/$as_me: WARNING:     /" >&2
11313     ;;
11314 esac
11315 echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320   eval "$as_ac_Header=\$ac_header_preproc"
11321 fi
11322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11324
11325 fi
11326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11327   cat >>confdefs.h <<_ACEOF
11328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11329 _ACEOF
11330  break
11331 fi
11332
11333 done
11334
11335
11336 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11337 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11338 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11339   echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341   cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347
11348         #if defined(HAVE_SYS_SOUNDCARD_H)
11349                 #include <sys/soundcard.h>
11350         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11351                 #include <machine/soundcard.h>
11352         #elif defined(HAVE_SOUNDCARD_H)
11353                 #include <soundcard.h>
11354         #endif
11355
11356 int
11357 main ()
11358 {
11359
11360
11361 /* check for one of the Open Sound System specific SNDCTL_ defines */
11362 #if !defined(SNDCTL_DSP_STEREO)
11363 #error No open sound system
11364 #endif
11365
11366   ;
11367   return 0;
11368 }
11369 _ACEOF
11370 rm -f conftest.$ac_objext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372   (eval $ac_compile) 2>conftest.er1
11373   ac_status=$?
11374   grep -v '^ *+' conftest.er1 >conftest.err
11375   rm -f conftest.er1
11376   cat conftest.err >&5
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); } &&
11379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381   (eval $ac_try) 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); }; } &&
11385          { ac_try='test -s conftest.$ac_objext'
11386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387   (eval $ac_try) 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); }; }; then
11391   ac_cv_c_opensoundsystem="yes"
11392 else
11393   echo "$as_me: failed program was:" >&5
11394 sed 's/^/| /' conftest.$ac_ext >&5
11395
11396 ac_cv_c_opensoundsystem="no"
11397 fi
11398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11399 fi
11400 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11401 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11402
11403 if test "$ac_cv_c_opensoundsystem" = "yes"
11404 then
11405
11406 cat >>confdefs.h <<\_ACEOF
11407 #define HAVE_OSS 1
11408 _ACEOF
11409
11410 fi
11411
11412 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11413 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11414 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h.  */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h.  */
11423
11424         #if defined(HAVE_SYS_SOUNDCARD_H)
11425                 #include <sys/soundcard.h>
11426         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11427                 #include <machine/soundcard.h>
11428         #elif defined(HAVE_SOUNDCARD_H)
11429                 #include <soundcard.h>
11430         #endif
11431
11432 int
11433 main ()
11434 {
11435
11436
11437 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11438 #if !defined(SNDCTL_SEQ_SYNC)
11439 #error No open sound system MIDI interface
11440 #endif
11441
11442   ;
11443   return 0;
11444 }
11445 _ACEOF
11446 rm -f conftest.$ac_objext
11447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11448   (eval $ac_compile) 2>conftest.er1
11449   ac_status=$?
11450   grep -v '^ *+' conftest.er1 >conftest.err
11451   rm -f conftest.er1
11452   cat conftest.err >&5
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } &&
11455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457   (eval $ac_try) 2>&5
11458   ac_status=$?
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); }; } &&
11461          { ac_try='test -s conftest.$ac_objext'
11462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463   (eval $ac_try) 2>&5
11464   ac_status=$?
11465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466   (exit $ac_status); }; }; then
11467   ac_cv_c_opensoundsystem_midi="yes"
11468 else
11469   echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11471
11472 ac_cv_c_opensoundsystem_midi="no"
11473 fi
11474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11475 fi
11476 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11477 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11478
11479 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11480 then
11481
11482 cat >>confdefs.h <<\_ACEOF
11483 #define HAVE_OSS_MIDI 1
11484 _ACEOF
11485
11486 fi
11487
11488 # Extract the first word of "artsc-config", so it can be a program name with args.
11489 set dummy artsc-config; ac_word=$2
11490 echo "$as_me:$LINENO: checking for $ac_word" >&5
11491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11492 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11493   echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495   case $ARTSCCONFIG in
11496   [\\/]* | ?:[\\/]*)
11497   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11498   ;;
11499   *)
11500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11502 do
11503   IFS=$as_save_IFS
11504   test -z "$as_dir" && as_dir=.
11505   for ac_exec_ext in '' $ac_executable_extensions; do
11506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11507     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11509     break 2
11510   fi
11511 done
11512 done
11513
11514   ;;
11515 esac
11516 fi
11517 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11518
11519 if test -n "$ARTSCCONFIG"; then
11520   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11521 echo "${ECHO_T}$ARTSCCONFIG" >&6
11522 else
11523   echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6
11525 fi
11526
11527 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11528 then
11529     ARTSC_CFLAGS=""
11530     for i in `$ARTSCCONFIG --cflags`
11531     do
11532       case "$i" in
11533         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11534       esac
11535     done
11536     ARTSC_LIBS=`$ARTSCCONFIG --libs`
11537     save_CFLAGS="$CFLAGS"
11538     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11539     cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h.  */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h.  */
11545 #include <artsc.h>
11546 int
11547 main ()
11548 {
11549 arts_stream_t stream;
11550   ;
11551   return 0;
11552 }
11553 _ACEOF
11554 rm -f conftest.$ac_objext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11556   (eval $ac_compile) 2>conftest.er1
11557   ac_status=$?
11558   grep -v '^ *+' conftest.er1 >conftest.err
11559   rm -f conftest.er1
11560   cat conftest.err >&5
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } &&
11563          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565   (eval $ac_try) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; } &&
11569          { ac_try='test -s conftest.$ac_objext'
11570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571   (eval $ac_try) 2>&5
11572   ac_status=$?
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); }; }; then
11575   ARTSLIBS=$ARTSC_LIBS
11576
11577          ARTSINCL=$ARTSC_CFLAGS
11578
11579
11580 cat >>confdefs.h <<\_ACEOF
11581 #define HAVE_ARTS 1
11582 _ACEOF
11583
11584 else
11585   echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588 fi
11589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11590     CFLAGS="$save_CFLAGS"
11591 fi
11592
11593 ALSALIBS=""
11594
11595
11596
11597 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11598 do
11599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11601   echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11604   echo $ECHO_N "(cached) $ECHO_C" >&6
11605 fi
11606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11608 else
11609   # Is the header compilable?
11610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11612 cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h.  */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h.  */
11618 $ac_includes_default
11619 #include <$ac_header>
11620 _ACEOF
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623   (eval $ac_compile) 2>conftest.er1
11624   ac_status=$?
11625   grep -v '^ *+' conftest.er1 >conftest.err
11626   rm -f conftest.er1
11627   cat conftest.err >&5
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } &&
11630          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632   (eval $ac_try) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; } &&
11636          { ac_try='test -s conftest.$ac_objext'
11637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638   (eval $ac_try) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); }; }; then
11642   ac_header_compiler=yes
11643 else
11644   echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11646
11647 ac_header_compiler=no
11648 fi
11649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11651 echo "${ECHO_T}$ac_header_compiler" >&6
11652
11653 # Is the header present?
11654 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h.  */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h.  */
11662 #include <$ac_header>
11663 _ACEOF
11664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11665   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11666   ac_status=$?
11667   grep -v '^ *+' conftest.er1 >conftest.err
11668   rm -f conftest.er1
11669   cat conftest.err >&5
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } >/dev/null; then
11672   if test -s conftest.err; then
11673     ac_cpp_err=$ac_c_preproc_warn_flag
11674     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11675   else
11676     ac_cpp_err=
11677   fi
11678 else
11679   ac_cpp_err=yes
11680 fi
11681 if test -z "$ac_cpp_err"; then
11682   ac_header_preproc=yes
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687   ac_header_preproc=no
11688 fi
11689 rm -f conftest.err conftest.$ac_ext
11690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11691 echo "${ECHO_T}$ac_header_preproc" >&6
11692
11693 # So?  What about this header?
11694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11695   yes:no: )
11696     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11700     ac_header_preproc=yes
11701     ;;
11702   no:yes:* )
11703     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11705     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11706 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11707     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11709     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11710 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11713     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11715     (
11716       cat <<\_ASBOX
11717 ## ------------------------------------ ##
11718 ## Report this to wine-devel@winehq.org ##
11719 ## ------------------------------------ ##
11720 _ASBOX
11721     ) |
11722       sed "s/^/$as_me: WARNING:     /" >&2
11723     ;;
11724 esac
11725 echo "$as_me:$LINENO: checking for $ac_header" >&5
11726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11728   echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730   eval "$as_ac_Header=\$ac_header_preproc"
11731 fi
11732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11734
11735 fi
11736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11737   cat >>confdefs.h <<_ACEOF
11738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11739 _ACEOF
11740  break
11741 fi
11742
11743 done
11744
11745 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11746 then
11747     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11748 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11749 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   ac_check_lib_save_LIBS=$LIBS
11753 LIBS="-lasound  $LIBS"
11754 cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h.  */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h.  */
11760
11761 /* Override any gcc2 internal prototype to avoid an error.  */
11762 #ifdef __cplusplus
11763 extern "C"
11764 #endif
11765 /* We use char because int might match the return type of a gcc2
11766    builtin and then its argument prototype would still apply.  */
11767 char snd_pcm_open ();
11768 int
11769 main ()
11770 {
11771 snd_pcm_open ();
11772   ;
11773   return 0;
11774 }
11775 _ACEOF
11776 rm -f conftest.$ac_objext conftest$ac_exeext
11777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11778   (eval $ac_link) 2>conftest.er1
11779   ac_status=$?
11780   grep -v '^ *+' conftest.er1 >conftest.err
11781   rm -f conftest.er1
11782   cat conftest.err >&5
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); } &&
11785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787   (eval $ac_try) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }; } &&
11791          { ac_try='test -s conftest$ac_exeext'
11792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793   (eval $ac_try) 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; }; then
11797   ac_cv_lib_asound_snd_pcm_open=yes
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 ac_cv_lib_asound_snd_pcm_open=no
11803 fi
11804 rm -f conftest.err conftest.$ac_objext \
11805       conftest$ac_exeext conftest.$ac_ext
11806 LIBS=$ac_check_lib_save_LIBS
11807 fi
11808 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11809 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11810 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11811
11812 cat >>confdefs.h <<\_ACEOF
11813 #define HAVE_ALSA 1
11814 _ACEOF
11815
11816         ALSALIBS="-lasound"
11817 fi
11818
11819 fi
11820
11821
11822 AUDIOIOLIBS=""
11823
11824
11825 for ac_header in libaudioio.h
11826 do
11827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11829   echo "$as_me:$LINENO: checking for $ac_header" >&5
11830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 fi
11834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11836 else
11837   # Is the header compilable?
11838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11840 cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h.  */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h.  */
11846 $ac_includes_default
11847 #include <$ac_header>
11848 _ACEOF
11849 rm -f conftest.$ac_objext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11851   (eval $ac_compile) 2>conftest.er1
11852   ac_status=$?
11853   grep -v '^ *+' conftest.er1 >conftest.err
11854   rm -f conftest.er1
11855   cat conftest.err >&5
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); } &&
11858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860   (eval $ac_try) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; } &&
11864          { ac_try='test -s conftest.$ac_objext'
11865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866   (eval $ac_try) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870   ac_header_compiler=yes
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 ac_header_compiler=no
11876 fi
11877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11879 echo "${ECHO_T}$ac_header_compiler" >&6
11880
11881 # Is the header present?
11882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h.  */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h.  */
11890 #include <$ac_header>
11891 _ACEOF
11892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11894   ac_status=$?
11895   grep -v '^ *+' conftest.er1 >conftest.err
11896   rm -f conftest.er1
11897   cat conftest.err >&5
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); } >/dev/null; then
11900   if test -s conftest.err; then
11901     ac_cpp_err=$ac_c_preproc_warn_flag
11902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11903   else
11904     ac_cpp_err=
11905   fi
11906 else
11907   ac_cpp_err=yes
11908 fi
11909 if test -z "$ac_cpp_err"; then
11910   ac_header_preproc=yes
11911 else
11912   echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11914
11915   ac_header_preproc=no
11916 fi
11917 rm -f conftest.err conftest.$ac_ext
11918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11919 echo "${ECHO_T}$ac_header_preproc" >&6
11920
11921 # So?  What about this header?
11922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11923   yes:no: )
11924     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11928     ac_header_preproc=yes
11929     ;;
11930   no:yes:* )
11931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11933     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11934 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11935     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11937     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11938 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11941     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11943     (
11944       cat <<\_ASBOX
11945 ## ------------------------------------ ##
11946 ## Report this to wine-devel@winehq.org ##
11947 ## ------------------------------------ ##
11948 _ASBOX
11949     ) |
11950       sed "s/^/$as_me: WARNING:     /" >&2
11951     ;;
11952 esac
11953 echo "$as_me:$LINENO: checking for $ac_header" >&5
11954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11956   echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958   eval "$as_ac_Header=\$ac_header_preproc"
11959 fi
11960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11962
11963 fi
11964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11965   cat >>confdefs.h <<_ACEOF
11966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11967 _ACEOF
11968  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11969 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11970 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11971   echo $ECHO_N "(cached) $ECHO_C" >&6
11972 else
11973   ac_check_lib_save_LIBS=$LIBS
11974 LIBS="-laudioio  $LIBS"
11975 cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h.  */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h.  */
11981
11982 /* Override any gcc2 internal prototype to avoid an error.  */
11983 #ifdef __cplusplus
11984 extern "C"
11985 #endif
11986 /* We use char because int might match the return type of a gcc2
11987    builtin and then its argument prototype would still apply.  */
11988 char AudioIOGetVersion ();
11989 int
11990 main ()
11991 {
11992 AudioIOGetVersion ();
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 rm -f conftest.$ac_objext conftest$ac_exeext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11999   (eval $ac_link) 2>conftest.er1
12000   ac_status=$?
12001   grep -v '^ *+' conftest.er1 >conftest.err
12002   rm -f conftest.er1
12003   cat conftest.err >&5
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } &&
12006          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008   (eval $ac_try) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; } &&
12012          { ac_try='test -s conftest$ac_exeext'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; }; then
12018   ac_cv_lib_audioio_AudioIOGetVersion=yes
12019 else
12020   echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ac_cv_lib_audioio_AudioIOGetVersion=no
12024 fi
12025 rm -f conftest.err conftest.$ac_objext \
12026       conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12028 fi
12029 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12030 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12031 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12032   AUDIOIOLIBS="-laudioio"
12033
12034 cat >>confdefs.h <<\_ACEOF
12035 #define HAVE_LIBAUDIOIO 1
12036 _ACEOF
12037
12038 fi
12039
12040 fi
12041
12042 done
12043
12044
12045
12046
12047 for ac_header in capi20.h
12048 do
12049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12051   echo "$as_me:$LINENO: checking for $ac_header" >&5
12052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12054   echo $ECHO_N "(cached) $ECHO_C" >&6
12055 fi
12056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12058 else
12059   # Is the header compilable?
12060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h.  */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h.  */
12068 $ac_includes_default
12069 #include <$ac_header>
12070 _ACEOF
12071 rm -f conftest.$ac_objext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12073   (eval $ac_compile) 2>conftest.er1
12074   ac_status=$?
12075   grep -v '^ *+' conftest.er1 >conftest.err
12076   rm -f conftest.er1
12077   cat conftest.err >&5
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } &&
12080          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082   (eval $ac_try) 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; } &&
12086          { ac_try='test -s conftest.$ac_objext'
12087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088   (eval $ac_try) 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); }; }; then
12092   ac_header_compiler=yes
12093 else
12094   echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12096
12097 ac_header_compiler=no
12098 fi
12099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12101 echo "${ECHO_T}$ac_header_compiler" >&6
12102
12103 # Is the header present?
12104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12106 cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h.  */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h.  */
12112 #include <$ac_header>
12113 _ACEOF
12114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12116   ac_status=$?
12117   grep -v '^ *+' conftest.er1 >conftest.err
12118   rm -f conftest.er1
12119   cat conftest.err >&5
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); } >/dev/null; then
12122   if test -s conftest.err; then
12123     ac_cpp_err=$ac_c_preproc_warn_flag
12124     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12125   else
12126     ac_cpp_err=
12127   fi
12128 else
12129   ac_cpp_err=yes
12130 fi
12131 if test -z "$ac_cpp_err"; then
12132   ac_header_preproc=yes
12133 else
12134   echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12136
12137   ac_header_preproc=no
12138 fi
12139 rm -f conftest.err conftest.$ac_ext
12140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12141 echo "${ECHO_T}$ac_header_preproc" >&6
12142
12143 # So?  What about this header?
12144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12145   yes:no: )
12146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12150     ac_header_preproc=yes
12151     ;;
12152   no:yes:* )
12153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12165     (
12166       cat <<\_ASBOX
12167 ## ------------------------------------ ##
12168 ## Report this to wine-devel@winehq.org ##
12169 ## ------------------------------------ ##
12170 _ASBOX
12171     ) |
12172       sed "s/^/$as_me: WARNING:     /" >&2
12173     ;;
12174 esac
12175 echo "$as_me:$LINENO: checking for $ac_header" >&5
12176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12178   echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180   eval "$as_ac_Header=\$ac_header_preproc"
12181 fi
12182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12184
12185 fi
12186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12187   cat >>confdefs.h <<_ACEOF
12188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12189 _ACEOF
12190
12191
12192 for ac_header in linux/capi.h
12193 do
12194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12196   echo "$as_me:$LINENO: checking for $ac_header" >&5
12197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 fi
12201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12203 else
12204   # Is the header compilable?
12205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h.  */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h.  */
12213 $ac_includes_default
12214 #include <$ac_header>
12215 _ACEOF
12216 rm -f conftest.$ac_objext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12218   (eval $ac_compile) 2>conftest.er1
12219   ac_status=$?
12220   grep -v '^ *+' conftest.er1 >conftest.err
12221   rm -f conftest.er1
12222   cat conftest.err >&5
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } &&
12225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227   (eval $ac_try) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; } &&
12231          { ac_try='test -s conftest.$ac_objext'
12232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233   (eval $ac_try) 2>&5
12234   ac_status=$?
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); }; }; then
12237   ac_header_compiler=yes
12238 else
12239   echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12241
12242 ac_header_compiler=no
12243 fi
12244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12246 echo "${ECHO_T}$ac_header_compiler" >&6
12247
12248 # Is the header present?
12249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257 #include <$ac_header>
12258 _ACEOF
12259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12261   ac_status=$?
12262   grep -v '^ *+' conftest.er1 >conftest.err
12263   rm -f conftest.er1
12264   cat conftest.err >&5
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); } >/dev/null; then
12267   if test -s conftest.err; then
12268     ac_cpp_err=$ac_c_preproc_warn_flag
12269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12270   else
12271     ac_cpp_err=
12272   fi
12273 else
12274   ac_cpp_err=yes
12275 fi
12276 if test -z "$ac_cpp_err"; then
12277   ac_header_preproc=yes
12278 else
12279   echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282   ac_header_preproc=no
12283 fi
12284 rm -f conftest.err conftest.$ac_ext
12285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12286 echo "${ECHO_T}$ac_header_preproc" >&6
12287
12288 # So?  What about this header?
12289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12290   yes:no: )
12291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12295     ac_header_preproc=yes
12296     ;;
12297   no:yes:* )
12298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12310     (
12311       cat <<\_ASBOX
12312 ## ------------------------------------ ##
12313 ## Report this to wine-devel@winehq.org ##
12314 ## ------------------------------------ ##
12315 _ASBOX
12316     ) |
12317       sed "s/^/$as_me: WARNING:     /" >&2
12318     ;;
12319 esac
12320 echo "$as_me:$LINENO: checking for $ac_header" >&5
12321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   eval "$as_ac_Header=\$ac_header_preproc"
12326 fi
12327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12329
12330 fi
12331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12332   cat >>confdefs.h <<_ACEOF
12333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12334 _ACEOF
12335
12336                 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12337 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12338 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-lcapi20  $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error.  */
12351 #ifdef __cplusplus
12352 extern "C"
12353 #endif
12354 /* We use char because int might match the return type of a gcc2
12355    builtin and then its argument prototype would still apply.  */
12356 char capi20_register ();
12357 int
12358 main ()
12359 {
12360 capi20_register ();
12361   ;
12362   return 0;
12363 }
12364 _ACEOF
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12367   (eval $ac_link) 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } &&
12374          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376   (eval $ac_try) 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); }; } &&
12380          { ac_try='test -s conftest$ac_exeext'
12381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382   (eval $ac_try) 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); }; }; then
12386   ac_cv_lib_capi20_capi20_register=yes
12387 else
12388   echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12390
12391 ac_cv_lib_capi20_capi20_register=no
12392 fi
12393 rm -f conftest.err conftest.$ac_objext \
12394       conftest$ac_exeext conftest.$ac_ext
12395 LIBS=$ac_check_lib_save_LIBS
12396 fi
12397 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12398 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12399 if test $ac_cv_lib_capi20_capi20_register = yes; then
12400
12401
12402 cat >>confdefs.h <<\_ACEOF
12403 #define HAVE_CAPI4LINUX 1
12404 _ACEOF
12405
12406                         CAPI4LINUXLIBS="-lcapi20"
12407
12408
12409 fi
12410
12411
12412 fi
12413
12414 done
12415
12416
12417 fi
12418
12419 done
12420
12421
12422
12423 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12424 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12425 if test "${ac_cv_mmap64_works+set}" = set; then
12426   echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428   if test "$cross_compiling" = yes; then
12429   ac_cv_mmap64_works="no"
12430 else
12431   cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437
12438                 #define _FILE_OFFSET_BITS 64
12439                 #include <stdio.h>
12440                 #include <unistd.h>
12441                 #include <fcntl.h>
12442                 #include <sys/mman.h>
12443                 #include <errno.h>
12444
12445                 int main(int argc,char **argv) {
12446                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12447                         if (fd == -1) exit(1);
12448
12449                         unlink("conftest.map");
12450
12451                         write(fd,"test",4);
12452
12453                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12454                             (errno == EINVAL)
12455                         ) {
12456                                 exit(1);
12457                         }
12458                         close(fd);
12459                         fprintf(stderr,"success!\n");
12460                         exit(0);
12461                 }
12462
12463
12464 _ACEOF
12465 rm -f conftest$ac_exeext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467   (eval $ac_link) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   ac_cv_mmap64_works="yes"
12477 else
12478   echo "$as_me: program exited with status $ac_status" >&5
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 ( exit $ac_status )
12483 ac_cv_mmap64_works="no"
12484 fi
12485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12486 fi
12487 fi
12488 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12489 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12490
12491 if test "$ac_cv_mmap64_works" = "yes"
12492 then
12493
12494 cat >>confdefs.h <<\_ACEOF
12495 #define _FILE_OFFSET_BITS 64
12496 _ACEOF
12497
12498 fi
12499
12500
12501 EXTRACFLAGS=""
12502
12503 if test "x${GCC}" = "xyes"
12504 then
12505   EXTRACFLAGS="-Wall -pipe"
12506
12507     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12508 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12509 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512   if test "$cross_compiling" = yes; then
12513   ac_cv_c_gcc_strength_bug="yes"
12514 else
12515   cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521
12522 int     L[4] = {0,1,2,3};
12523 int main(void) {
12524   static int Array[3];
12525   unsigned int B = 3;
12526   int i;
12527   for(i=0; i<B; i++) Array[i] = i - 3;
12528   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12529   L[i] = 4;
12530
12531   exit( Array[1] != -2 || L[2] != 3);
12532 }
12533 _ACEOF
12534 rm -f conftest$ac_exeext
12535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12536   (eval $ac_link) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541   (eval $ac_try) 2>&5
12542   ac_status=$?
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); }; }; then
12545   ac_cv_c_gcc_strength_bug="no"
12546 else
12547   echo "$as_me: program exited with status $ac_status" >&5
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 ( exit $ac_status )
12552 ac_cv_c_gcc_strength_bug="yes"
12553 fi
12554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12555 fi
12556 fi
12557 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12558 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12559   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12560   then
12561     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12562   fi
12563
12564     echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12565 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12566 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12567   echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569   ac_wine_try_cflags_saved=$CFLAGS
12570 CFLAGS="$CFLAGS -fshort-wchar"
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h.  */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h.  */
12577
12578 int
12579 main ()
12580 {
12581
12582   ;
12583   return 0;
12584 }
12585 _ACEOF
12586 rm -f conftest.$ac_objext conftest$ac_exeext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12588   (eval $ac_link) 2>conftest.er1
12589   ac_status=$?
12590   grep -v '^ *+' conftest.er1 >conftest.err
12591   rm -f conftest.er1
12592   cat conftest.err >&5
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); } &&
12595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597   (eval $ac_try) 2>&5
12598   ac_status=$?
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); }; } &&
12601          { ac_try='test -s conftest$ac_exeext'
12602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603   (eval $ac_try) 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); }; }; then
12607   ac_cv_c_gcc_fshort_wchar="yes"
12608 else
12609   echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12611
12612 ac_cv_c_gcc_fshort_wchar="no"
12613 fi
12614 rm -f conftest.err conftest.$ac_objext \
12615       conftest$ac_exeext conftest.$ac_ext
12616 CFLAGS=$ac_wine_try_cflags_saved
12617 fi
12618 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12619 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12620   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12621   then
12622
12623 cat >>confdefs.h <<\_ACEOF
12624 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12625 _ACEOF
12626
12627   fi
12628
12629     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12630 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12631 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12632   echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634   ac_wine_try_cflags_saved=$CFLAGS
12635 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12636 cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h.  */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h.  */
12642
12643 int
12644 main ()
12645 {
12646
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_gcc_stack_boundary="yes"
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ac_cv_c_gcc_stack_boundary="no"
12678 fi
12679 rm -f conftest.err conftest.$ac_objext \
12680       conftest$ac_exeext conftest.$ac_ext
12681 CFLAGS=$ac_wine_try_cflags_saved
12682 fi
12683 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12684 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12685   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12686   then
12687     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12688   fi
12689
12690     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12691 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12692 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12693   echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695   ac_wine_try_cflags_saved=$CFLAGS
12696 CFLAGS="$CFLAGS -fno-strict-aliasing"
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703
12704 int
12705 main ()
12706 {
12707
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714   (eval $ac_link) 2>conftest.er1
12715   ac_status=$?
12716   grep -v '^ *+' conftest.er1 >conftest.err
12717   rm -f conftest.er1
12718   cat conftest.err >&5
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } &&
12721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723   (eval $ac_try) 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; } &&
12727          { ac_try='test -s conftest$ac_exeext'
12728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729   (eval $ac_try) 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); }; }; then
12733   ac_cv_c_gcc_no_strict_aliasing="yes"
12734 else
12735   echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 ac_cv_c_gcc_no_strict_aliasing="no"
12739 fi
12740 rm -f conftest.err conftest.$ac_objext \
12741       conftest$ac_exeext conftest.$ac_ext
12742 CFLAGS=$ac_wine_try_cflags_saved
12743 fi
12744 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12745 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12746   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12747   then
12748     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12749   fi
12750
12751     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12752 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12753 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12754   echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756   ac_wine_try_cflags_saved=$CFLAGS
12757 CFLAGS="$CFLAGS -gstabs+"
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h.  */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h.  */
12764
12765 int
12766 main ()
12767 {
12768
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775   (eval $ac_link) 2>conftest.er1
12776   ac_status=$?
12777   grep -v '^ *+' conftest.er1 >conftest.err
12778   rm -f conftest.er1
12779   cat conftest.err >&5
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); } &&
12782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784   (eval $ac_try) 2>&5
12785   ac_status=$?
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); }; } &&
12788          { ac_try='test -s conftest$ac_exeext'
12789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790   (eval $ac_try) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; }; then
12794   ac_cv_c_gcc_gstabs="yes"
12795 else
12796   echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 ac_cv_c_gcc_gstabs="no"
12800 fi
12801 rm -f conftest.err conftest.$ac_objext \
12802       conftest$ac_exeext conftest.$ac_ext
12803 CFLAGS=$ac_wine_try_cflags_saved
12804 fi
12805 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12806 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12807   if test "$ac_cv_c_gcc_gstabs" = "yes"
12808   then
12809     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12810   fi
12811
12812     saved_CFLAGS="$CFLAGS"
12813   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12814   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12815 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12816 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12817   echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819   cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h.  */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h.  */
12825 #include <string.h>
12826 int
12827 main ()
12828 {
12829
12830   ;
12831   return 0;
12832 }
12833 _ACEOF
12834 rm -f conftest.$ac_objext
12835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836   (eval $ac_compile) 2>conftest.er1
12837   ac_status=$?
12838   grep -v '^ *+' conftest.er1 >conftest.err
12839   rm -f conftest.er1
12840   cat conftest.err >&5
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); } &&
12843          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845   (eval $ac_try) 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); }; } &&
12849          { ac_try='test -s conftest.$ac_objext'
12850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851   (eval $ac_try) 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); }; }; then
12855   ac_cv_c_string_h_warnings=no
12856 else
12857   echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 ac_cv_c_string_h_warnings=yes
12861 fi
12862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12863 fi
12864 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12865 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12866   CFLAGS="$saved_CFLAGS"
12867   if test "$ac_cv_c_string_h_warnings" = "no"
12868   then
12869     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12870   fi
12871 fi
12872
12873
12874 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12875 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12876 if test "${ac_cv_asm_func_def+set}" = set; then
12877   echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12879   cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h.  */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h.  */
12885 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"); }
12886
12887 int
12888 main ()
12889 {
12890
12891   ;
12892   return 0;
12893 }
12894 _ACEOF
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897   (eval $ac_link) 2>conftest.er1
12898   ac_status=$?
12899   grep -v '^ *+' conftest.er1 >conftest.err
12900   rm -f conftest.er1
12901   cat conftest.err >&5
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); } &&
12904          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906   (eval $ac_try) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; } &&
12910          { ac_try='test -s conftest$ac_exeext'
12911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912   (eval $ac_try) 2>&5
12913   ac_status=$?
12914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915   (exit $ac_status); }; }; then
12916   ac_cv_asm_func_def=".def"
12917 else
12918   echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12920
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h.  */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h.  */
12927 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12928
12929 int
12930 main ()
12931 {
12932
12933   ;
12934   return 0;
12935 }
12936 _ACEOF
12937 rm -f conftest.$ac_objext conftest$ac_exeext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12939   (eval $ac_link) 2>conftest.er1
12940   ac_status=$?
12941   grep -v '^ *+' conftest.er1 >conftest.err
12942   rm -f conftest.er1
12943   cat conftest.err >&5
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); } &&
12946          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948   (eval $ac_try) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; } &&
12952          { ac_try='test -s conftest$ac_exeext'
12953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954   (eval $ac_try) 2>&5
12955   ac_status=$?
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); }; }; then
12958   ac_cv_asm_func_def=".type @function"
12959 else
12960   echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12962
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h.  */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h.  */
12969 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12970
12971 int
12972 main ()
12973 {
12974
12975   ;
12976   return 0;
12977 }
12978 _ACEOF
12979 rm -f conftest.$ac_objext conftest$ac_exeext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12981   (eval $ac_link) 2>conftest.er1
12982   ac_status=$?
12983   grep -v '^ *+' conftest.er1 >conftest.err
12984   rm -f conftest.er1
12985   cat conftest.err >&5
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); } &&
12988          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990   (eval $ac_try) 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); }; } &&
12994          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13000   ac_cv_asm_func_def=".type 2"
13001 else
13002   echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13004
13005 ac_cv_asm_func_def="unknown"
13006 fi
13007 rm -f conftest.err conftest.$ac_objext \
13008       conftest$ac_exeext conftest.$ac_ext
13009 fi
13010 rm -f conftest.err conftest.$ac_objext \
13011       conftest$ac_exeext conftest.$ac_ext
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_asm_func_def" >&5
13017 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13018
13019
13020
13021 case "$ac_cv_asm_func_def" in
13022   ".def")
13023      cat >>confdefs.h <<\_ACEOF
13024 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13025 _ACEOF
13026  ;;
13027   ".type @function")
13028      cat >>confdefs.h <<\_ACEOF
13029 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13030 _ACEOF
13031  ;;
13032   ".type 2")
13033      cat >>confdefs.h <<\_ACEOF
13034 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13035 _ACEOF
13036  ;;
13037   *)
13038      cat >>confdefs.h <<\_ACEOF
13039 #define __ASM_FUNC(name) ""
13040 _ACEOF
13041  ;;
13042 esac
13043
13044
13045 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13046 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13047 if test "${ac_cv_c_extern_prefix+set}" = set; then
13048   echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050   cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h.  */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h.  */
13056 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13057 extern int ac_test;
13058 int
13059 main ()
13060 {
13061 if (ac_test) return 1
13062   ;
13063   return 0;
13064 }
13065 _ACEOF
13066 rm -f conftest.$ac_objext conftest$ac_exeext
13067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13068   (eval $ac_link) 2>conftest.er1
13069   ac_status=$?
13070   grep -v '^ *+' conftest.er1 >conftest.err
13071   rm -f conftest.er1
13072   cat conftest.err >&5
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); } &&
13075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077   (eval $ac_try) 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); }; } &&
13081          { ac_try='test -s conftest$ac_exeext'
13082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083   (eval $ac_try) 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; }; then
13087   ac_cv_c_extern_prefix="yes"
13088 else
13089   echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13091
13092 ac_cv_c_extern_prefix="no"
13093 fi
13094 rm -f conftest.err conftest.$ac_objext \
13095       conftest$ac_exeext conftest.$ac_ext
13096 fi
13097 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13098 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13099
13100
13101
13102 if test "$ac_cv_c_extern_prefix" = "yes"
13103 then
13104   cat >>confdefs.h <<\_ACEOF
13105 #define __ASM_NAME(name) "_" name
13106 _ACEOF
13107
13108 else
13109   cat >>confdefs.h <<\_ACEOF
13110 #define __ASM_NAME(name) name
13111 _ACEOF
13112
13113 fi
13114
13115
13116 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13117 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13118 if test "${ac_cv_c_asm_string+set}" = set; then
13119   echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121   cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13128
13129 int
13130 main ()
13131 {
13132
13133   ;
13134   return 0;
13135 }
13136 _ACEOF
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139   (eval $ac_link) 2>conftest.er1
13140   ac_status=$?
13141   grep -v '^ *+' conftest.er1 >conftest.err
13142   rm -f conftest.er1
13143   cat conftest.err >&5
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } &&
13146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; } &&
13152          { ac_try='test -s conftest$ac_exeext'
13153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154   (eval $ac_try) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; }; then
13158   ac_cv_c_asm_string=".string"
13159 else
13160   echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163 cat >conftest.$ac_ext <<_ACEOF
13164 /* confdefs.h.  */
13165 _ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h.  */
13169 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13170
13171 int
13172 main ()
13173 {
13174
13175   ;
13176   return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext conftest$ac_exeext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13181   (eval $ac_link) 2>conftest.er1
13182   ac_status=$?
13183   grep -v '^ *+' conftest.er1 >conftest.err
13184   rm -f conftest.er1
13185   cat conftest.err >&5
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); } &&
13188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190   (eval $ac_try) 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; } &&
13194          { ac_try='test -s conftest$ac_exeext'
13195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196   (eval $ac_try) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }; }; then
13200   ac_cv_c_asm_string=".asciz"
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 cat >conftest.$ac_ext <<_ACEOF
13206 /* confdefs.h.  */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h.  */
13211 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13212
13213 int
13214 main ()
13215 {
13216
13217   ;
13218   return 0;
13219 }
13220 _ACEOF
13221 rm -f conftest.$ac_objext conftest$ac_exeext
13222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13223   (eval $ac_link) 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } &&
13230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232   (eval $ac_try) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; } &&
13236          { ac_try='test -s conftest$ac_exeext'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; }; then
13242   ac_cv_c_asm_string=".ascii"
13243 else
13244   echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13248 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13249    { (exit 1); exit 1; }; }
13250 fi
13251 rm -f conftest.err conftest.$ac_objext \
13252       conftest$ac_exeext conftest.$ac_ext
13253 fi
13254 rm -f conftest.err conftest.$ac_objext \
13255       conftest$ac_exeext conftest.$ac_ext
13256 fi
13257 rm -f conftest.err conftest.$ac_objext \
13258       conftest$ac_exeext conftest.$ac_ext
13259 fi
13260 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13261 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13262
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define __ASM_STRING "$ac_cv_c_asm_string"
13266 _ACEOF
13267
13268
13269
13270 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13271 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13272 if test "${ac_cv_c_asm_short+set}" = set; then
13273   echo $ECHO_N "(cached) $ECHO_C" >&6
13274 else
13275   cat >conftest.$ac_ext <<_ACEOF
13276 /* confdefs.h.  */
13277 _ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h.  */
13281 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13282
13283 int
13284 main ()
13285 {
13286
13287   ;
13288   return 0;
13289 }
13290 _ACEOF
13291 rm -f conftest.$ac_objext conftest$ac_exeext
13292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13293   (eval $ac_link) 2>conftest.er1
13294   ac_status=$?
13295   grep -v '^ *+' conftest.er1 >conftest.err
13296   rm -f conftest.er1
13297   cat conftest.err >&5
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); } &&
13300          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302   (eval $ac_try) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; } &&
13306          { ac_try='test -s conftest$ac_exeext'
13307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308   (eval $ac_try) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   ac_cv_c_asm_short=".short"
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h.  */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h.  */
13323 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13324
13325 int
13326 main ()
13327 {
13328
13329   ;
13330   return 0;
13331 }
13332 _ACEOF
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13335   (eval $ac_link) 2>conftest.er1
13336   ac_status=$?
13337   grep -v '^ *+' conftest.er1 >conftest.err
13338   rm -f conftest.er1
13339   cat conftest.err >&5
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); } &&
13342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344   (eval $ac_try) 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; } &&
13348          { ac_try='test -s conftest$ac_exeext'
13349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350   (eval $ac_try) 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; }; then
13354   ac_cv_c_asm_short=".half"
13355 else
13356   echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13360 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13361    { (exit 1); exit 1; }; }
13362 fi
13363 rm -f conftest.err conftest.$ac_objext \
13364       conftest$ac_exeext conftest.$ac_ext
13365 fi
13366 rm -f conftest.err conftest.$ac_objext \
13367       conftest$ac_exeext conftest.$ac_ext
13368 fi
13369 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13370 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13371
13372
13373 cat >>confdefs.h <<_ACEOF
13374 #define __ASM_SHORT "$ac_cv_c_asm_short"
13375 _ACEOF
13376
13377
13378
13379 echo "$as_me:$LINENO: checking for .size in assembler" >&5
13380 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13381 if test "${ac_cv_c_asm_size+set}" = set; then
13382   echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384   cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h.  */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h.  */
13390 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13391
13392 int
13393 main ()
13394 {
13395
13396   ;
13397   return 0;
13398 }
13399 _ACEOF
13400 rm -f conftest.$ac_objext conftest$ac_exeext
13401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13402   (eval $ac_link) 2>conftest.er1
13403   ac_status=$?
13404   grep -v '^ *+' conftest.er1 >conftest.err
13405   rm -f conftest.er1
13406   cat conftest.err >&5
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } &&
13409          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411   (eval $ac_try) 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); }; } &&
13415          { ac_try='test -s conftest$ac_exeext'
13416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417   (eval $ac_try) 2>&5
13418   ac_status=$?
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); }; }; then
13421   ac_cv_c_asm_size="yes"
13422 else
13423   echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426 ac_cv_c_asm_size="no"
13427 fi
13428 rm -f conftest.err conftest.$ac_objext \
13429       conftest$ac_exeext conftest.$ac_ext
13430 fi
13431 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13432 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13433
13434 if test "$ac_cv_c_asm_size" = "yes"
13435 then
13436
13437 cat >>confdefs.h <<\_ACEOF
13438 #define HAVE_ASM_DOT_SIZE 1
13439 _ACEOF
13440
13441 fi
13442
13443
13444 DLLEXT=""
13445
13446 DLLFLAGS="-D_REENTRANT"
13447
13448 DLLIBS=""
13449
13450 LDSHARED=""
13451
13452 LDDLLFLAGS=""
13453
13454 LIBEXT="so"
13455
13456 IMPLIBEXT="def"
13457
13458
13459 case $host_os in
13460   cygwin*|mingw32*)
13461     if test -n "$ac_tool_prefix"; then
13462   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13463 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13464 echo "$as_me:$LINENO: checking for $ac_word" >&5
13465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13466 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13467   echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469   if test -n "$DLLTOOL"; then
13470   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13471 else
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13474 do
13475   IFS=$as_save_IFS
13476   test -z "$as_dir" && as_dir=.
13477   for ac_exec_ext in '' $ac_executable_extensions; do
13478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13479     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13481     break 2
13482   fi
13483 done
13484 done
13485
13486 fi
13487 fi
13488 DLLTOOL=$ac_cv_prog_DLLTOOL
13489 if test -n "$DLLTOOL"; then
13490   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13491 echo "${ECHO_T}$DLLTOOL" >&6
13492 else
13493   echo "$as_me:$LINENO: result: no" >&5
13494 echo "${ECHO_T}no" >&6
13495 fi
13496
13497 fi
13498 if test -z "$ac_cv_prog_DLLTOOL"; then
13499   ac_ct_DLLTOOL=$DLLTOOL
13500   # Extract the first word of "dlltool", so it can be a program name with args.
13501 set dummy dlltool; ac_word=$2
13502 echo "$as_me:$LINENO: checking for $ac_word" >&5
13503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13504 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13505   echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507   if test -n "$ac_ct_DLLTOOL"; then
13508   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13509 else
13510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511 for as_dir in $PATH
13512 do
13513   IFS=$as_save_IFS
13514   test -z "$as_dir" && as_dir=.
13515   for ac_exec_ext in '' $ac_executable_extensions; do
13516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13517     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13519     break 2
13520   fi
13521 done
13522 done
13523
13524   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13525 fi
13526 fi
13527 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13528 if test -n "$ac_ct_DLLTOOL"; then
13529   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13530 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13531 else
13532   echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13534 fi
13535
13536   DLLTOOL=$ac_ct_DLLTOOL
13537 else
13538   DLLTOOL="$ac_cv_prog_DLLTOOL"
13539 fi
13540
13541     if test -n "$ac_tool_prefix"; then
13542   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13543 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13544 echo "$as_me:$LINENO: checking for $ac_word" >&5
13545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13546 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13547   echo $ECHO_N "(cached) $ECHO_C" >&6
13548 else
13549   if test -n "$DLLWRAP"; then
13550   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13551 else
13552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553 for as_dir in $PATH
13554 do
13555   IFS=$as_save_IFS
13556   test -z "$as_dir" && as_dir=.
13557   for ac_exec_ext in '' $ac_executable_extensions; do
13558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13559     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13561     break 2
13562   fi
13563 done
13564 done
13565
13566 fi
13567 fi
13568 DLLWRAP=$ac_cv_prog_DLLWRAP
13569 if test -n "$DLLWRAP"; then
13570   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13571 echo "${ECHO_T}$DLLWRAP" >&6
13572 else
13573   echo "$as_me:$LINENO: result: no" >&5
13574 echo "${ECHO_T}no" >&6
13575 fi
13576
13577 fi
13578 if test -z "$ac_cv_prog_DLLWRAP"; then
13579   ac_ct_DLLWRAP=$DLLWRAP
13580   # Extract the first word of "dllwrap", so it can be a program name with args.
13581 set dummy dllwrap; ac_word=$2
13582 echo "$as_me:$LINENO: checking for $ac_word" >&5
13583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13584 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13585   echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587   if test -n "$ac_ct_DLLWRAP"; then
13588   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13589 else
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13592 do
13593   IFS=$as_save_IFS
13594   test -z "$as_dir" && as_dir=.
13595   for ac_exec_ext in '' $ac_executable_extensions; do
13596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13597     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13599     break 2
13600   fi
13601 done
13602 done
13603
13604   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13605 fi
13606 fi
13607 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13608 if test -n "$ac_ct_DLLWRAP"; then
13609   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13610 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13611 else
13612   echo "$as_me:$LINENO: result: no" >&5
13613 echo "${ECHO_T}no" >&6
13614 fi
13615
13616   DLLWRAP=$ac_ct_DLLWRAP
13617 else
13618   DLLWRAP="$ac_cv_prog_DLLWRAP"
13619 fi
13620
13621     if test "$DLLWRAP" = "false"; then
13622       LIBEXT="a"
13623     else
13624             LIBEXT="dll"
13625     fi
13626     IMPLIBEXT="a"
13627         WIN16_FILES=""
13628     WIN16_INSTALL=""
13629     ;;
13630   *)
13631
13632 for ac_header in dlfcn.h
13633 do
13634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13636   echo "$as_me:$LINENO: checking for $ac_header" >&5
13637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13639   echo $ECHO_N "(cached) $ECHO_C" >&6
13640 fi
13641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13643 else
13644   # Is the header compilable?
13645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13647 cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h.  */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h.  */
13653 $ac_includes_default
13654 #include <$ac_header>
13655 _ACEOF
13656 rm -f conftest.$ac_objext
13657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13658   (eval $ac_compile) 2>conftest.er1
13659   ac_status=$?
13660   grep -v '^ *+' conftest.er1 >conftest.err
13661   rm -f conftest.er1
13662   cat conftest.err >&5
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } &&
13665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; } &&
13671          { ac_try='test -s conftest.$ac_objext'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }; then
13677   ac_header_compiler=yes
13678 else
13679   echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13681
13682 ac_header_compiler=no
13683 fi
13684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13686 echo "${ECHO_T}$ac_header_compiler" >&6
13687
13688 # Is the header present?
13689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697 #include <$ac_header>
13698 _ACEOF
13699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13701   ac_status=$?
13702   grep -v '^ *+' conftest.er1 >conftest.err
13703   rm -f conftest.er1
13704   cat conftest.err >&5
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); } >/dev/null; then
13707   if test -s conftest.err; then
13708     ac_cpp_err=$ac_c_preproc_warn_flag
13709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13710   else
13711     ac_cpp_err=
13712   fi
13713 else
13714   ac_cpp_err=yes
13715 fi
13716 if test -z "$ac_cpp_err"; then
13717   ac_header_preproc=yes
13718 else
13719   echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13721
13722   ac_header_preproc=no
13723 fi
13724 rm -f conftest.err conftest.$ac_ext
13725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13726 echo "${ECHO_T}$ac_header_preproc" >&6
13727
13728 # So?  What about this header?
13729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13730   yes:no: )
13731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13735     ac_header_preproc=yes
13736     ;;
13737   no:yes:* )
13738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13750     (
13751       cat <<\_ASBOX
13752 ## ------------------------------------ ##
13753 ## Report this to wine-devel@winehq.org ##
13754 ## ------------------------------------ ##
13755 _ASBOX
13756     ) |
13757       sed "s/^/$as_me: WARNING:     /" >&2
13758     ;;
13759 esac
13760 echo "$as_me:$LINENO: checking for $ac_header" >&5
13761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   eval "$as_ac_Header=\$ac_header_preproc"
13766 fi
13767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13769
13770 fi
13771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13772   cat >>confdefs.h <<_ACEOF
13773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13774 _ACEOF
13775
13776 for ac_func in dlopen
13777 do
13778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13779 echo "$as_me:$LINENO: checking for $ac_func" >&5
13780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13781 if eval "test \"\${$as_ac_var+set}\" = set"; then
13782   echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784   cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h.  */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h.  */
13790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13792 #define $ac_func innocuous_$ac_func
13793
13794 /* System header to define __stub macros and hopefully few prototypes,
13795     which can conflict with char $ac_func (); below.
13796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13797     <limits.h> exists even on freestanding compilers.  */
13798
13799 #ifdef __STDC__
13800 # include <limits.h>
13801 #else
13802 # include <assert.h>
13803 #endif
13804
13805 #undef $ac_func
13806
13807 /* Override any gcc2 internal prototype to avoid an error.  */
13808 #ifdef __cplusplus
13809 extern "C"
13810 {
13811 #endif
13812 /* We use char because int might match the return type of a gcc2
13813    builtin and then its argument prototype would still apply.  */
13814 char $ac_func ();
13815 /* The GNU C library defines this for functions which it implements
13816     to always fail with ENOSYS.  Some functions are actually named
13817     something starting with __ and the normal name is an alias.  */
13818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13819 choke me
13820 #else
13821 char (*f) () = $ac_func;
13822 #endif
13823 #ifdef __cplusplus
13824 }
13825 #endif
13826
13827 int
13828 main ()
13829 {
13830 return f != $ac_func;
13831   ;
13832   return 0;
13833 }
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837   (eval $ac_link) 2>conftest.er1
13838   ac_status=$?
13839   grep -v '^ *+' conftest.er1 >conftest.err
13840   rm -f conftest.er1
13841   cat conftest.err >&5
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } &&
13844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846   (eval $ac_try) 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; } &&
13850          { ac_try='test -s conftest$ac_exeext'
13851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852   (eval $ac_try) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); }; }; then
13856   eval "$as_ac_var=yes"
13857 else
13858   echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 eval "$as_ac_var=no"
13862 fi
13863 rm -f conftest.err conftest.$ac_objext \
13864       conftest$ac_exeext conftest.$ac_ext
13865 fi
13866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13868 if test `eval echo '${'$as_ac_var'}'` = yes; then
13869   cat >>confdefs.h <<_ACEOF
13870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13871 _ACEOF
13872
13873 else
13874   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13877   echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879   ac_check_lib_save_LIBS=$LIBS
13880 LIBS="-ldl  $LIBS"
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h.  */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h.  */
13887
13888 /* Override any gcc2 internal prototype to avoid an error.  */
13889 #ifdef __cplusplus
13890 extern "C"
13891 #endif
13892 /* We use char because int might match the return type of a gcc2
13893    builtin and then its argument prototype would still apply.  */
13894 char dlopen ();
13895 int
13896 main ()
13897 {
13898 dlopen ();
13899   ;
13900   return 0;
13901 }
13902 _ACEOF
13903 rm -f conftest.$ac_objext conftest$ac_exeext
13904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13905   (eval $ac_link) 2>conftest.er1
13906   ac_status=$?
13907   grep -v '^ *+' conftest.er1 >conftest.err
13908   rm -f conftest.er1
13909   cat conftest.err >&5
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); } &&
13912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914   (eval $ac_try) 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; } &&
13918          { ac_try='test -s conftest$ac_exeext'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; }; then
13924   ac_cv_lib_dl_dlopen=yes
13925 else
13926   echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 ac_cv_lib_dl_dlopen=no
13930 fi
13931 rm -f conftest.err conftest.$ac_objext \
13932       conftest$ac_exeext conftest.$ac_ext
13933 LIBS=$ac_check_lib_save_LIBS
13934 fi
13935 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13936 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13937 if test $ac_cv_lib_dl_dlopen = yes; then
13938
13939 cat >>confdefs.h <<\_ACEOF
13940 #define HAVE_DLOPEN 1
13941 _ACEOF
13942
13943                           DLLIBS="-ldl"
13944 else
13945   LIBEXT="a"
13946 fi
13947
13948 fi
13949 done
13950
13951 else
13952   LIBEXT="a"
13953 fi
13954
13955 done
13956
13957
13958     if test "$LIBEXT" = "so"
13959     then
13960       DLLFLAGS="$DLLFLAGS -fPIC"
13961       DLLEXT=".so"
13962       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13963 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13964 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13965   echo $ECHO_N "(cached) $ECHO_C" >&6
13966 else
13967   ac_wine_try_cflags_saved=$CFLAGS
13968 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13969 cat >conftest.$ac_ext <<_ACEOF
13970 void myfunc() {}
13971 _ACEOF
13972 rm -f conftest.$ac_objext conftest$ac_exeext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13974   (eval $ac_link) 2>conftest.er1
13975   ac_status=$?
13976   grep -v '^ *+' conftest.er1 >conftest.err
13977   rm -f conftest.er1
13978   cat conftest.err >&5
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); } &&
13981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983   (eval $ac_try) 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); }; } &&
13987          { ac_try='test -s conftest$ac_exeext'
13988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989   (eval $ac_try) 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; }; then
13993   ac_cv_c_dll_gnuelf="yes"
13994 else
13995   echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998 ac_cv_c_dll_gnuelf="no"
13999 fi
14000 rm -f conftest.err conftest.$ac_objext \
14001       conftest$ac_exeext conftest.$ac_ext
14002 CFLAGS=$ac_wine_try_cflags_saved
14003 fi
14004 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
14005 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
14006       if test "$ac_cv_c_dll_gnuelf" = "yes"
14007       then
14008         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
14009         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
14010         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14011 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
14012 if test "${ac_cv_c_dll_zdefs+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   ac_wine_try_cflags_saved=$CFLAGS
14016 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023
14024 int
14025 main ()
14026 {
14027
14028   ;
14029   return 0;
14030 }
14031 _ACEOF
14032 rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14034   (eval $ac_link) 2>conftest.er1
14035   ac_status=$?
14036   grep -v '^ *+' conftest.er1 >conftest.err
14037   rm -f conftest.er1
14038   cat conftest.err >&5
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); } &&
14041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043   (eval $ac_try) 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; } &&
14047          { ac_try='test -s conftest$ac_exeext'
14048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049   (eval $ac_try) 2>&5
14050   ac_status=$?
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); }; }; then
14053   ac_cv_c_dll_zdefs="yes"
14054 else
14055   echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058 ac_cv_c_dll_zdefs="no"
14059 fi
14060 rm -f conftest.err conftest.$ac_objext \
14061       conftest$ac_exeext conftest.$ac_ext
14062 CFLAGS=$ac_wine_try_cflags_saved
14063 fi
14064 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14065 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14066         if test "$ac_cv_c_dll_zdefs" = "yes"
14067         then
14068           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14069         fi
14070
14071         echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14072 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14073 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14074   echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076   ac_wine_try_cflags_saved=$CFLAGS
14077 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h.  */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h.  */
14084
14085 int
14086 main ()
14087 {
14088
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14095   (eval $ac_link) 2>conftest.er1
14096   ac_status=$?
14097   grep -v '^ *+' conftest.er1 >conftest.err
14098   rm -f conftest.er1
14099   cat conftest.err >&5
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } &&
14102          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; } &&
14108          { ac_try='test -s conftest$ac_exeext'
14109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110   (eval $ac_try) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; }; then
14114   ac_cv_c_dll_init_fini="yes"
14115 else
14116   echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14118
14119 ac_cv_c_dll_init_fini="no"
14120 fi
14121 rm -f conftest.err conftest.$ac_objext \
14122       conftest$ac_exeext conftest.$ac_ext
14123 CFLAGS=$ac_wine_try_cflags_saved
14124 fi
14125 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14126 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14127         if test "$ac_cv_c_dll_init_fini" = "yes"
14128         then
14129           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14130         fi
14131
14132         echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14133 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14134 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   echo '{ global: *; };' >conftest.map
14138            ac_wine_try_cflags_saved=$CFLAGS
14139 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h.  */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h.  */
14146
14147 int
14148 main ()
14149 {
14150
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157   (eval $ac_link) 2>conftest.er1
14158   ac_status=$?
14159   grep -v '^ *+' conftest.er1 >conftest.err
14160   rm -f conftest.er1
14161   cat conftest.err >&5
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } &&
14164          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166   (eval $ac_try) 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; } &&
14170          { ac_try='test -s conftest$ac_exeext'
14171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172   (eval $ac_try) 2>&5
14173   ac_status=$?
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); }; }; then
14176   ac_cv_c_ld_version_scripts="yes"
14177 else
14178   echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14180
14181 ac_cv_c_ld_version_scripts="no"
14182 fi
14183 rm -f conftest.err conftest.$ac_objext \
14184       conftest$ac_exeext conftest.$ac_ext
14185 CFLAGS=$ac_wine_try_cflags_saved
14186            rm -f conftest.map
14187 fi
14188 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14189 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14190         if test "$ac_cv_c_ld_version_scripts" = "yes"
14191         then
14192           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14193         fi
14194
14195         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14196 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14197 if test "${ac_cv_c_export_dynamic+set}" = set; then
14198   echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200   ac_wine_try_cflags_saved=$CFLAGS
14201 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14202 cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h.  */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h.  */
14208
14209 int
14210 main ()
14211 {
14212
14213   ;
14214   return 0;
14215 }
14216 _ACEOF
14217 rm -f conftest.$ac_objext conftest$ac_exeext
14218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14219   (eval $ac_link) 2>conftest.er1
14220   ac_status=$?
14221   grep -v '^ *+' conftest.er1 >conftest.err
14222   rm -f conftest.er1
14223   cat conftest.err >&5
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); } &&
14226          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228   (eval $ac_try) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); }; } &&
14232          { ac_try='test -s conftest$ac_exeext'
14233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234   (eval $ac_try) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; }; then
14238   ac_cv_c_export_dynamic="yes"
14239 else
14240   echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243 ac_cv_c_export_dynamic="no"
14244 fi
14245 rm -f conftest.err conftest.$ac_objext \
14246       conftest$ac_exeext conftest.$ac_ext
14247 CFLAGS=$ac_wine_try_cflags_saved
14248 fi
14249 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14250 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14251         if test "$ac_cv_c_export_dynamic" = "yes"
14252         then
14253           LDEXECFLAGS="-Wl,--export-dynamic"
14254
14255         fi
14256
14257         case $host_cpu in
14258           *i[3456789]86*)
14259             echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
14260 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
14261 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14262   echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264   ac_wine_try_cflags_saved=$CFLAGS
14265 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
14266 cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272
14273 int
14274 main ()
14275 {
14276
14277   ;
14278   return 0;
14279 }
14280 _ACEOF
14281 rm -f conftest.$ac_objext conftest$ac_exeext
14282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14283   (eval $ac_link) 2>conftest.er1
14284   ac_status=$?
14285   grep -v '^ *+' conftest.er1 >conftest.err
14286   rm -f conftest.er1
14287   cat conftest.err >&5
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); } &&
14290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292   (eval $ac_try) 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); }; } &&
14296          { ac_try='test -s conftest$ac_exeext'
14297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298   (eval $ac_try) 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); }; }; then
14302   ac_cv_ld_reloc_exec="yes"
14303 else
14304   echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14306
14307 ac_cv_ld_reloc_exec="no"
14308 fi
14309 rm -f conftest.err conftest.$ac_objext \
14310       conftest$ac_exeext conftest.$ac_ext
14311 CFLAGS=$ac_wine_try_cflags_saved
14312 fi
14313 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14314 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14315             if test "$ac_cv_ld_reloc_exec" = "yes"
14316             then
14317               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
14318             fi
14319             ;;
14320         esac
14321
14322       else
14323         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14324 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14325 if test "${ac_cv_c_dll_unixware+set}" = set; then
14326   echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328   ac_wine_try_cflags_saved=$CFLAGS
14329 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14330 cat >conftest.$ac_ext <<_ACEOF
14331 void myfunc() {}
14332 _ACEOF
14333 rm -f conftest.$ac_objext conftest$ac_exeext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14335   (eval $ac_link) 2>conftest.er1
14336   ac_status=$?
14337   grep -v '^ *+' conftest.er1 >conftest.err
14338   rm -f conftest.er1
14339   cat conftest.err >&5
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); } &&
14342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344   (eval $ac_try) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); }; } &&
14348          { ac_try='test -s conftest$ac_exeext'
14349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350   (eval $ac_try) 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; }; then
14354   ac_cv_c_dll_unixware="yes"
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359 ac_cv_c_dll_unixware="no"
14360 fi
14361 rm -f conftest.err conftest.$ac_objext \
14362       conftest$ac_exeext conftest.$ac_ext
14363 CFLAGS=$ac_wine_try_cflags_saved
14364 fi
14365 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14366 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14367         if test "$ac_cv_c_dll_unixware" = "yes"
14368         then
14369           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14370           LDDLLFLAGS="-Wl,-G,-B,symbolic"
14371
14372         else
14373           echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14374 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14375 if test "${ac_cv_c_dll_macho+set}" = set; then
14376   echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378   ac_wine_try_cflags_saved=$CFLAGS
14379 CFLAGS="$CFLAGS -bundle"
14380 cat >conftest.$ac_ext <<_ACEOF
14381 void myfunc() {}
14382 _ACEOF
14383 rm -f conftest.$ac_objext conftest$ac_exeext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14385   (eval $ac_link) 2>conftest.er1
14386   ac_status=$?
14387   grep -v '^ *+' conftest.er1 >conftest.err
14388   rm -f conftest.er1
14389   cat conftest.err >&5
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } &&
14392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; } &&
14398          { ac_try='test -s conftest$ac_exeext'
14399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400   (eval $ac_try) 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; }; then
14404   ac_cv_c_dll_macho="yes"
14405 else
14406   echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 ac_cv_c_dll_macho="no"
14410 fi
14411 rm -f conftest.err conftest.$ac_objext \
14412       conftest$ac_exeext conftest.$ac_ext
14413 CFLAGS=$ac_wine_try_cflags_saved
14414 fi
14415 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14416 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14417           if test "$ac_cv_c_dll_macho" = "yes"
14418           then
14419             LIBEXT="dylib"
14420             LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14421             LDSHARED="\$(CC) -dynamiclib"
14422             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14423             STRIP="$STRIP -u -r"
14424                         LDEXECFLAGS="-seg1addr 0x120000"
14425
14426                         LDLIBWINEFLAGS="-seg1addr 0x140000"
14427
14428                     COREFOUNDATIONLIB="-framework CoreFoundation"
14429
14430             IOKITLIB="-framework IOKit"
14431
14432                     IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB"
14433           else
14434             echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14435 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14436 if test "${ac_cv_c_dll_hpux+set}" = set; then
14437   echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439   ac_wine_try_cflags_saved=$CFLAGS
14440 CFLAGS="$CFLAGS -shared"
14441 cat >conftest.$ac_ext <<_ACEOF
14442 void myfunc() {}
14443 _ACEOF
14444 rm -f conftest.$ac_objext conftest$ac_exeext
14445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14446   (eval $ac_link) 2>conftest.er1
14447   ac_status=$?
14448   grep -v '^ *+' conftest.er1 >conftest.err
14449   rm -f conftest.er1
14450   cat conftest.err >&5
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); } &&
14453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455   (eval $ac_try) 2>&5
14456   ac_status=$?
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); }; } &&
14459          { ac_try='test -s conftest$ac_exeext'
14460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461   (eval $ac_try) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; }; then
14465   ac_cv_c_dll_hpux="yes"
14466 else
14467   echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14469
14470 ac_cv_c_dll_hpux="no"
14471 fi
14472 rm -f conftest.err conftest.$ac_objext \
14473       conftest$ac_exeext conftest.$ac_ext
14474 CFLAGS=$ac_wine_try_cflags_saved
14475 fi
14476 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14477 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14478             if test "$ac_cv_c_dll_hpux" = "yes"
14479             then
14480               LIBEXT="sl"
14481               DLLEXT=".sl"
14482               LDDLLFLAGS="-shared -fPIC"
14483               LDSHARED="\$(CC) -shared"
14484             fi
14485           fi
14486         fi
14487       fi
14488     fi
14489
14490         CROSSTEST=""
14491
14492     if test "$cross_compiling" = "no"
14493     then
14494       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14495 do
14496   # Extract the first word of "$ac_prog", so it can be a program name with args.
14497 set dummy $ac_prog; ac_word=$2
14498 echo "$as_me:$LINENO: checking for $ac_word" >&5
14499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14500 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14501   echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503   if test -n "$CROSSCC"; then
14504   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14505 else
14506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14507 for as_dir in $PATH
14508 do
14509   IFS=$as_save_IFS
14510   test -z "$as_dir" && as_dir=.
14511   for ac_exec_ext in '' $ac_executable_extensions; do
14512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14513     ac_cv_prog_CROSSCC="$ac_prog"
14514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14515     break 2
14516   fi
14517 done
14518 done
14519
14520 fi
14521 fi
14522 CROSSCC=$ac_cv_prog_CROSSCC
14523 if test -n "$CROSSCC"; then
14524   echo "$as_me:$LINENO: result: $CROSSCC" >&5
14525 echo "${ECHO_T}$CROSSCC" >&6
14526 else
14527   echo "$as_me:$LINENO: result: no" >&5
14528 echo "${ECHO_T}no" >&6
14529 fi
14530
14531   test -n "$CROSSCC" && break
14532 done
14533 test -n "$CROSSCC" || CROSSCC="false"
14534
14535       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14536 do
14537   # Extract the first word of "$ac_prog", so it can be a program name with args.
14538 set dummy $ac_prog; ac_word=$2
14539 echo "$as_me:$LINENO: checking for $ac_word" >&5
14540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14541 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14542   echo $ECHO_N "(cached) $ECHO_C" >&6
14543 else
14544   if test -n "$DLLTOOL"; then
14545   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14546 else
14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $PATH
14549 do
14550   IFS=$as_save_IFS
14551   test -z "$as_dir" && as_dir=.
14552   for ac_exec_ext in '' $ac_executable_extensions; do
14553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14554     ac_cv_prog_DLLTOOL="$ac_prog"
14555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14556     break 2
14557   fi
14558 done
14559 done
14560
14561 fi
14562 fi
14563 DLLTOOL=$ac_cv_prog_DLLTOOL
14564 if test -n "$DLLTOOL"; then
14565   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14566 echo "${ECHO_T}$DLLTOOL" >&6
14567 else
14568   echo "$as_me:$LINENO: result: no" >&5
14569 echo "${ECHO_T}no" >&6
14570 fi
14571
14572   test -n "$DLLTOOL" && break
14573 done
14574 test -n "$DLLTOOL" || DLLTOOL="false"
14575
14576       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14577 do
14578   # Extract the first word of "$ac_prog", so it can be a program name with args.
14579 set dummy $ac_prog; ac_word=$2
14580 echo "$as_me:$LINENO: checking for $ac_word" >&5
14581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14582 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14583   echo $ECHO_N "(cached) $ECHO_C" >&6
14584 else
14585   if test -n "$CROSSWINDRES"; then
14586   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14587 else
14588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14589 for as_dir in $PATH
14590 do
14591   IFS=$as_save_IFS
14592   test -z "$as_dir" && as_dir=.
14593   for ac_exec_ext in '' $ac_executable_extensions; do
14594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14595     ac_cv_prog_CROSSWINDRES="$ac_prog"
14596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14597     break 2
14598   fi
14599 done
14600 done
14601
14602 fi
14603 fi
14604 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14605 if test -n "$CROSSWINDRES"; then
14606   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14607 echo "${ECHO_T}$CROSSWINDRES" >&6
14608 else
14609   echo "$as_me:$LINENO: result: no" >&5
14610 echo "${ECHO_T}no" >&6
14611 fi
14612
14613   test -n "$CROSSWINDRES" && break
14614 done
14615 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14616
14617       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14618     fi
14619     ;;
14620 esac
14621
14622 if test "$LIBEXT" = "a"; then
14623   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14624 It is currently not possible to build Wine without shared library
14625 (.so) support to allow transparent switch between .so and .dll files.
14626 If you are using Linux, you will need a newer binutils.
14627 " >&5
14628 echo "$as_me: error: could not find a way to build shared libraries.
14629 It is currently not possible to build Wine without shared library
14630 (.so) support to allow transparent switch between .so and .dll files.
14631 If you are using Linux, you will need a newer binutils.
14632 " >&2;}
14633    { (exit 1); exit 1; }; }
14634 fi
14635
14636 case $build_os in
14637   cygwin*|mingw32*)
14638     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14639  ;;
14640   darwin*|macosx*)
14641     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14642  ;;
14643   *)
14644     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14645  ;;
14646 esac
14647
14648 case $host_os in
14649   mingw32*)
14650     CRTLIBS="-lmsvcrt"
14651
14652     SOCKETLIBS="-lws2_32"
14653
14654     ;;
14655 esac
14656
14657 case $host_os in
14658   linux*)
14659     case $host_cpu in
14660       *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14661  ;;
14662       *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14663  ;;
14664     esac
14665     MAIN_BINARY="wine-glibc"
14666
14667     ;;
14668   darwin*)
14669     WINE_BINARIES="wine-pthread"
14670
14671     MAIN_BINARY="wine-pthread"
14672
14673     ;;
14674   *)
14675     WINE_BINARIES="wine-kthread"
14676
14677     MAIN_BINARY="wine-kthread"
14678
14679     ;;
14680 esac
14681
14682
14683 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14684 then
14685   # Extract the first word of "ldd", so it can be a program name with args.
14686 set dummy ldd; ac_word=$2
14687 echo "$as_me:$LINENO: checking for $ac_word" >&5
14688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14689 if test "${ac_cv_path_LDD+set}" = set; then
14690   echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692   case $LDD in
14693   [\\/]* | ?:[\\/]*)
14694   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14695   ;;
14696   *)
14697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14698 as_dummy="/sbin:/usr/sbin:$PATH"
14699 for as_dir in $as_dummy
14700 do
14701   IFS=$as_save_IFS
14702   test -z "$as_dir" && as_dir=.
14703   for ac_exec_ext in '' $ac_executable_extensions; do
14704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14705     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14707     break 2
14708   fi
14709 done
14710 done
14711
14712   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14713   ;;
14714 esac
14715 fi
14716 LDD=$ac_cv_path_LDD
14717
14718 if test -n "$LDD"; then
14719   echo "$as_me:$LINENO: result: $LDD" >&5
14720 echo "${ECHO_T}$LDD" >&6
14721 else
14722   echo "$as_me:$LINENO: result: no" >&5
14723 echo "${ECHO_T}no" >&6
14724 fi
14725
14726
14727 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14728 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14729 if test "${ac_cv_lib_soname_X11+set}" = set; then
14730   echo $ECHO_N "(cached) $ECHO_C" >&6
14731 else
14732   ac_get_soname_save_LIBS=$LIBS
14733 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14734   cat >conftest.$ac_ext <<_ACEOF
14735 /* confdefs.h.  */
14736 _ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h.  */
14740
14741 /* Override any gcc2 internal prototype to avoid an error.  */
14742 #ifdef __cplusplus
14743 extern "C"
14744 #endif
14745 /* We use char because int might match the return type of a gcc2
14746    builtin and then its argument prototype would still apply.  */
14747 char XCreateWindow ();
14748 int
14749 main ()
14750 {
14751 XCreateWindow ();
14752   ;
14753   return 0;
14754 }
14755 _ACEOF
14756 rm -f conftest.$ac_objext conftest$ac_exeext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758   (eval $ac_link) 2>conftest.er1
14759   ac_status=$?
14760   grep -v '^ *+' conftest.er1 >conftest.err
14761   rm -f conftest.er1
14762   cat conftest.err >&5
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); } &&
14765          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767   (eval $ac_try) 2>&5
14768   ac_status=$?
14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770   (exit $ac_status); }; } &&
14771          { ac_try='test -s conftest$ac_exeext'
14772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773   (eval $ac_try) 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); }; }; then
14777   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^       ]*\).*$/\1/"`
14778   if test "x$ac_cv_lib_soname_X11" = "x"
14779   then
14780      ac_cv_lib_soname_X11="libX11.$LIBEXT"
14781   fi
14782 else
14783   echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14787 fi
14788 rm -f conftest.err conftest.$ac_objext \
14789       conftest$ac_exeext conftest.$ac_ext
14790   LIBS=$ac_get_soname_save_LIBS
14791 fi
14792 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14793 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14794 if test "x$ac_cv_lib_soname_X11" != xNONE
14795 then
14796 cat >>confdefs.h <<_ACEOF
14797 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14798 _ACEOF
14799 fi
14800
14801 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14802 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14803 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14804   echo $ECHO_N "(cached) $ECHO_C" >&6
14805 else
14806   ac_get_soname_save_LIBS=$LIBS
14807 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14808   cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h.  */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h.  */
14814
14815 /* Override any gcc2 internal prototype to avoid an error.  */
14816 #ifdef __cplusplus
14817 extern "C"
14818 #endif
14819 /* We use char because int might match the return type of a gcc2
14820    builtin and then its argument prototype would still apply.  */
14821 char XextCreateExtension ();
14822 int
14823 main ()
14824 {
14825 XextCreateExtension ();
14826   ;
14827   return 0;
14828 }
14829 _ACEOF
14830 rm -f conftest.$ac_objext conftest$ac_exeext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14832   (eval $ac_link) 2>conftest.er1
14833   ac_status=$?
14834   grep -v '^ *+' conftest.er1 >conftest.err
14835   rm -f conftest.er1
14836   cat conftest.err >&5
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); } &&
14839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841   (eval $ac_try) 2>&5
14842   ac_status=$?
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); }; } &&
14845          { ac_try='test -s conftest$ac_exeext'
14846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847   (eval $ac_try) 2>&5
14848   ac_status=$?
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); }; }; then
14851   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^    ]*\).*$/\1/"`
14852   if test "x$ac_cv_lib_soname_Xext" = "x"
14853   then
14854      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14855   fi
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14861 fi
14862 rm -f conftest.err conftest.$ac_objext \
14863       conftest$ac_exeext conftest.$ac_ext
14864   LIBS=$ac_get_soname_save_LIBS
14865 fi
14866 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14867 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14868 if test "x$ac_cv_lib_soname_Xext" != xNONE
14869 then
14870 cat >>confdefs.h <<_ACEOF
14871 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14872 _ACEOF
14873 fi
14874
14875 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14876 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14877 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14878   echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880   ac_get_soname_save_LIBS=$LIBS
14881 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14882   cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888
14889 /* Override any gcc2 internal prototype to avoid an error.  */
14890 #ifdef __cplusplus
14891 extern "C"
14892 #endif
14893 /* We use char because int might match the return type of a gcc2
14894    builtin and then its argument prototype would still apply.  */
14895 char XOpenDevice ();
14896 int
14897 main ()
14898 {
14899 XOpenDevice ();
14900   ;
14901   return 0;
14902 }
14903 _ACEOF
14904 rm -f conftest.$ac_objext conftest$ac_exeext
14905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14906   (eval $ac_link) 2>conftest.er1
14907   ac_status=$?
14908   grep -v '^ *+' conftest.er1 >conftest.err
14909   rm -f conftest.er1
14910   cat conftest.err >&5
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); } &&
14913          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915   (eval $ac_try) 2>&5
14916   ac_status=$?
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); }; } &&
14919          { ac_try='test -s conftest$ac_exeext'
14920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921   (eval $ac_try) 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); }; }; then
14925   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^  ]*\).*$/\1/"`
14926   if test "x$ac_cv_lib_soname_Xi" = "x"
14927   then
14928      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14929   fi
14930 else
14931   echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14933
14934 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14935 fi
14936 rm -f conftest.err conftest.$ac_objext \
14937       conftest$ac_exeext conftest.$ac_ext
14938   LIBS=$ac_get_soname_save_LIBS
14939 fi
14940 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14941 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14942 if test "x$ac_cv_lib_soname_Xi" != xNONE
14943 then
14944 cat >>confdefs.h <<_ACEOF
14945 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14946 _ACEOF
14947 fi
14948
14949 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14950 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14951 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14952   echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954   ac_get_soname_save_LIBS=$LIBS
14955 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14956   cat >conftest.$ac_ext <<_ACEOF
14957 /* confdefs.h.  */
14958 _ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h.  */
14962
14963 /* Override any gcc2 internal prototype to avoid an error.  */
14964 #ifdef __cplusplus
14965 extern "C"
14966 #endif
14967 /* We use char because int might match the return type of a gcc2
14968    builtin and then its argument prototype would still apply.  */
14969 char XRenderQueryExtension ();
14970 int
14971 main ()
14972 {
14973 XRenderQueryExtension ();
14974   ;
14975   return 0;
14976 }
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14980   (eval $ac_link) 2>conftest.er1
14981   ac_status=$?
14982   grep -v '^ *+' conftest.er1 >conftest.err
14983   rm -f conftest.er1
14984   cat conftest.err >&5
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); } &&
14987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989   (eval $ac_try) 2>&5
14990   ac_status=$?
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); }; } &&
14993          { ac_try='test -s conftest$ac_exeext'
14994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995   (eval $ac_try) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); }; }; then
14999   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^   ]*\).*$/\1/"`
15000   if test "x$ac_cv_lib_soname_Xrender" = "x"
15001   then
15002      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
15003   fi
15004 else
15005   echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15007
15008 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
15009 fi
15010 rm -f conftest.err conftest.$ac_objext \
15011       conftest$ac_exeext conftest.$ac_ext
15012   LIBS=$ac_get_soname_save_LIBS
15013 fi
15014 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
15015 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
15016 if test "x$ac_cv_lib_soname_Xrender" != xNONE
15017 then
15018 cat >>confdefs.h <<_ACEOF
15019 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
15020 _ACEOF
15021 fi
15022
15023 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
15024 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
15025 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
15026   echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028   ac_get_soname_save_LIBS=$LIBS
15029 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15030   cat >conftest.$ac_ext <<_ACEOF
15031 /* confdefs.h.  */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h.  */
15036
15037 /* Override any gcc2 internal prototype to avoid an error.  */
15038 #ifdef __cplusplus
15039 extern "C"
15040 #endif
15041 /* We use char because int might match the return type of a gcc2
15042    builtin and then its argument prototype would still apply.  */
15043 char XRRQueryExtension ();
15044 int
15045 main ()
15046 {
15047 XRRQueryExtension ();
15048   ;
15049   return 0;
15050 }
15051 _ACEOF
15052 rm -f conftest.$ac_objext conftest$ac_exeext
15053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15054   (eval $ac_link) 2>conftest.er1
15055   ac_status=$?
15056   grep -v '^ *+' conftest.er1 >conftest.err
15057   rm -f conftest.er1
15058   cat conftest.err >&5
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } &&
15061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063   (eval $ac_try) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); }; } &&
15067          { ac_try='test -s conftest$ac_exeext'
15068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069   (eval $ac_try) 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); }; }; then
15073   ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^      ]*\).*$/\1/"`
15074   if test "x$ac_cv_lib_soname_Xrandr" = "x"
15075   then
15076      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15077   fi
15078 else
15079   echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15081
15082 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15083 fi
15084 rm -f conftest.err conftest.$ac_objext \
15085       conftest$ac_exeext conftest.$ac_ext
15086   LIBS=$ac_get_soname_save_LIBS
15087 fi
15088 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
15089 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
15090 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
15091 then
15092 cat >>confdefs.h <<_ACEOF
15093 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
15094 _ACEOF
15095 fi
15096
15097 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
15098 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
15099 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15100   echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102   ac_get_soname_save_LIBS=$LIBS
15103 LIBS="-lfreetype $X_LIBS $LIBS"
15104   cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h.  */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h.  */
15110
15111 /* Override any gcc2 internal prototype to avoid an error.  */
15112 #ifdef __cplusplus
15113 extern "C"
15114 #endif
15115 /* We use char because int might match the return type of a gcc2
15116    builtin and then its argument prototype would still apply.  */
15117 char FT_Init_FreeType ();
15118 int
15119 main ()
15120 {
15121 FT_Init_FreeType ();
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15128   (eval $ac_link) 2>conftest.er1
15129   ac_status=$?
15130   grep -v '^ *+' conftest.er1 >conftest.err
15131   rm -f conftest.er1
15132   cat conftest.err >&5
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); } &&
15135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137   (eval $ac_try) 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); }; } &&
15141          { ac_try='test -s conftest$ac_exeext'
15142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143   (eval $ac_try) 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; }; then
15147   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^        ]*\).*$/\1/"`
15148   if test "x$ac_cv_lib_soname_freetype" = "x"
15149   then
15150      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15151   fi
15152 else
15153   echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15157 fi
15158 rm -f conftest.err conftest.$ac_objext \
15159       conftest$ac_exeext conftest.$ac_ext
15160   LIBS=$ac_get_soname_save_LIBS
15161 fi
15162 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15163 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
15164 if test "x$ac_cv_lib_soname_freetype" != xNONE
15165 then
15166 cat >>confdefs.h <<_ACEOF
15167 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15168 _ACEOF
15169 fi
15170
15171 echo "$as_me:$LINENO: checking for -lGL soname" >&5
15172 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
15173 if test "${ac_cv_lib_soname_GL+set}" = set; then
15174   echo $ECHO_N "(cached) $ECHO_C" >&6
15175 else
15176   ac_get_soname_save_LIBS=$LIBS
15177 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15178   cat >conftest.$ac_ext <<_ACEOF
15179 /* confdefs.h.  */
15180 _ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h.  */
15184
15185 /* Override any gcc2 internal prototype to avoid an error.  */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 /* We use char because int might match the return type of a gcc2
15190    builtin and then its argument prototype would still apply.  */
15191 char glXQueryExtension ();
15192 int
15193 main ()
15194 {
15195 glXQueryExtension ();
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15202   (eval $ac_link) 2>conftest.er1
15203   ac_status=$?
15204   grep -v '^ *+' conftest.er1 >conftest.err
15205   rm -f conftest.er1
15206   cat conftest.err >&5
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); } &&
15209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211   (eval $ac_try) 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; } &&
15215          { ac_try='test -s conftest$ac_exeext'
15216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217   (eval $ac_try) 2>&5
15218   ac_status=$?
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); }; }; then
15221   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^  ]*\).*$/\1/"`
15222   if test "x$ac_cv_lib_soname_GL" = "x"
15223   then
15224      ac_cv_lib_soname_GL="libGL.$LIBEXT"
15225   fi
15226 else
15227   echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15231 fi
15232 rm -f conftest.err conftest.$ac_objext \
15233       conftest$ac_exeext conftest.$ac_ext
15234   LIBS=$ac_get_soname_save_LIBS
15235 fi
15236 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15237 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15238 if test "x$ac_cv_lib_soname_GL" != xNONE
15239 then
15240 cat >>confdefs.h <<_ACEOF
15241 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15242 _ACEOF
15243 fi
15244
15245 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15246 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
15247 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15248   echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250   ac_get_soname_save_LIBS=$LIBS
15251 LIBS="-ltxc_dxtn  $LIBS"
15252   cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h.  */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h.  */
15258
15259 /* Override any gcc2 internal prototype to avoid an error.  */
15260 #ifdef __cplusplus
15261 extern "C"
15262 #endif
15263 /* We use char because int might match the return type of a gcc2
15264    builtin and then its argument prototype would still apply.  */
15265 char fetch_2d_texel_rgba_dxt1 ();
15266 int
15267 main ()
15268 {
15269 fetch_2d_texel_rgba_dxt1 ();
15270   ;
15271   return 0;
15272 }
15273 _ACEOF
15274 rm -f conftest.$ac_objext conftest$ac_exeext
15275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15276   (eval $ac_link) 2>conftest.er1
15277   ac_status=$?
15278   grep -v '^ *+' conftest.er1 >conftest.err
15279   rm -f conftest.er1
15280   cat conftest.err >&5
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); } &&
15283          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285   (eval $ac_try) 2>&5
15286   ac_status=$?
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); }; } &&
15289          { ac_try='test -s conftest$ac_exeext'
15290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291   (eval $ac_try) 2>&5
15292   ac_status=$?
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); }; }; then
15295   ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^        ]*\).*$/\1/"`
15296   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15297   then
15298      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15299   fi
15300 else
15301   echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15303
15304 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15305 fi
15306 rm -f conftest.err conftest.$ac_objext \
15307       conftest$ac_exeext conftest.$ac_ext
15308   LIBS=$ac_get_soname_save_LIBS
15309 fi
15310 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15311 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
15312 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
15313 then
15314 cat >>confdefs.h <<_ACEOF
15315 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15316 _ACEOF
15317 fi
15318
15319 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15320 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15321 if test "${ac_cv_lib_soname_cups+set}" = set; then
15322   echo $ECHO_N "(cached) $ECHO_C" >&6
15323 else
15324   ac_get_soname_save_LIBS=$LIBS
15325 LIBS="-lcups  $LIBS"
15326   cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h.  */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h.  */
15332
15333 /* Override any gcc2 internal prototype to avoid an error.  */
15334 #ifdef __cplusplus
15335 extern "C"
15336 #endif
15337 /* We use char because int might match the return type of a gcc2
15338    builtin and then its argument prototype would still apply.  */
15339 char cupsGetDefault ();
15340 int
15341 main ()
15342 {
15343 cupsGetDefault ();
15344   ;
15345   return 0;
15346 }
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350   (eval $ac_link) 2>conftest.er1
15351   ac_status=$?
15352   grep -v '^ *+' conftest.er1 >conftest.err
15353   rm -f conftest.er1
15354   cat conftest.err >&5
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); } &&
15357          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359   (eval $ac_try) 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); }; } &&
15363          { ac_try='test -s conftest$ac_exeext'
15364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365   (eval $ac_try) 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; }; then
15369   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^    ]*\).*$/\1/"`
15370   if test "x$ac_cv_lib_soname_cups" = "x"
15371   then
15372      ac_cv_lib_soname_cups="libcups.$LIBEXT"
15373   fi
15374 else
15375   echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15377
15378 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15379 fi
15380 rm -f conftest.err conftest.$ac_objext \
15381       conftest$ac_exeext conftest.$ac_ext
15382   LIBS=$ac_get_soname_save_LIBS
15383 fi
15384 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15385 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15386 if test "x$ac_cv_lib_soname_cups" != xNONE
15387 then
15388 cat >>confdefs.h <<_ACEOF
15389 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15390 _ACEOF
15391 fi
15392
15393 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15394 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15395 if test "${ac_cv_lib_soname_jack+set}" = set; then
15396   echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398   ac_get_soname_save_LIBS=$LIBS
15399 LIBS="-ljack  $LIBS"
15400   cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406
15407 /* Override any gcc2 internal prototype to avoid an error.  */
15408 #ifdef __cplusplus
15409 extern "C"
15410 #endif
15411 /* We use char because int might match the return type of a gcc2
15412    builtin and then its argument prototype would still apply.  */
15413 char jack_client_new ();
15414 int
15415 main ()
15416 {
15417 jack_client_new ();
15418   ;
15419   return 0;
15420 }
15421 _ACEOF
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15424   (eval $ac_link) 2>conftest.er1
15425   ac_status=$?
15426   grep -v '^ *+' conftest.er1 >conftest.err
15427   rm -f conftest.er1
15428   cat conftest.err >&5
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); } &&
15431          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433   (eval $ac_try) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); }; } &&
15437          { ac_try='test -s conftest$ac_exeext'
15438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439   (eval $ac_try) 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; }; then
15443   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^    ]*\).*$/\1/"`
15444   if test "x$ac_cv_lib_soname_jack" = "x"
15445   then
15446      ac_cv_lib_soname_jack="libjack.$LIBEXT"
15447   fi
15448 else
15449   echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15453 fi
15454 rm -f conftest.err conftest.$ac_objext \
15455       conftest$ac_exeext conftest.$ac_ext
15456   LIBS=$ac_get_soname_save_LIBS
15457 fi
15458 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15459 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15460 if test "x$ac_cv_lib_soname_jack" != xNONE
15461 then
15462 cat >>confdefs.h <<_ACEOF
15463 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15464 _ACEOF
15465 fi
15466
15467 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15468 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15469 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472   ac_get_soname_save_LIBS=$LIBS
15473 LIBS="-lfontconfig  $LIBS"
15474   cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480
15481 /* Override any gcc2 internal prototype to avoid an error.  */
15482 #ifdef __cplusplus
15483 extern "C"
15484 #endif
15485 /* We use char because int might match the return type of a gcc2
15486    builtin and then its argument prototype would still apply.  */
15487 char FcInit ();
15488 int
15489 main ()
15490 {
15491 FcInit ();
15492   ;
15493   return 0;
15494 }
15495 _ACEOF
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15498   (eval $ac_link) 2>conftest.er1
15499   ac_status=$?
15500   grep -v '^ *+' conftest.er1 >conftest.err
15501   rm -f conftest.er1
15502   cat conftest.err >&5
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); } &&
15505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507   (eval $ac_try) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); }; } &&
15511          { ac_try='test -s conftest$ac_exeext'
15512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513   (eval $ac_try) 2>&5
15514   ac_status=$?
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); }; }; then
15517   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^  ]*\).*$/\1/"`
15518   if test "x$ac_cv_lib_soname_fontconfig" = "x"
15519   then
15520      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15521   fi
15522 else
15523   echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15525
15526 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15527 fi
15528 rm -f conftest.err conftest.$ac_objext \
15529       conftest$ac_exeext conftest.$ac_ext
15530   LIBS=$ac_get_soname_save_LIBS
15531 fi
15532 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15533 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15534 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15535 then
15536 cat >>confdefs.h <<_ACEOF
15537 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15538 _ACEOF
15539 fi
15540
15541 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15542 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15543 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15544   echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546   ac_get_soname_save_LIBS=$LIBS
15547 LIBS="-lssl  $LIBS"
15548   cat >conftest.$ac_ext <<_ACEOF
15549 /* confdefs.h.  */
15550 _ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h.  */
15554
15555 /* Override any gcc2 internal prototype to avoid an error.  */
15556 #ifdef __cplusplus
15557 extern "C"
15558 #endif
15559 /* We use char because int might match the return type of a gcc2
15560    builtin and then its argument prototype would still apply.  */
15561 char SSL_library_init ();
15562 int
15563 main ()
15564 {
15565 SSL_library_init ();
15566   ;
15567   return 0;
15568 }
15569 _ACEOF
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15572   (eval $ac_link) 2>conftest.er1
15573   ac_status=$?
15574   grep -v '^ *+' conftest.er1 >conftest.err
15575   rm -f conftest.er1
15576   cat conftest.err >&5
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); } &&
15579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581   (eval $ac_try) 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); }; } &&
15585          { ac_try='test -s conftest$ac_exeext'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; }; then
15591   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^       ]*\).*$/\1/"`
15592   if test "x$ac_cv_lib_soname_ssl" = "x"
15593   then
15594      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15595   fi
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15601 fi
15602 rm -f conftest.err conftest.$ac_objext \
15603       conftest$ac_exeext conftest.$ac_ext
15604   LIBS=$ac_get_soname_save_LIBS
15605 fi
15606 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15607 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15608 if test "x$ac_cv_lib_soname_ssl" != xNONE
15609 then
15610 cat >>confdefs.h <<_ACEOF
15611 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15612 _ACEOF
15613 fi
15614
15615 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15616 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15617 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15618   echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620   ac_get_soname_save_LIBS=$LIBS
15621 LIBS="-lcrypto  $LIBS"
15622   cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h.  */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h.  */
15628
15629 /* Override any gcc2 internal prototype to avoid an error.  */
15630 #ifdef __cplusplus
15631 extern "C"
15632 #endif
15633 /* We use char because int might match the return type of a gcc2
15634    builtin and then its argument prototype would still apply.  */
15635 char BIO_new_socket ();
15636 int
15637 main ()
15638 {
15639 BIO_new_socket ();
15640   ;
15641   return 0;
15642 }
15643 _ACEOF
15644 rm -f conftest.$ac_objext conftest$ac_exeext
15645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15646   (eval $ac_link) 2>conftest.er1
15647   ac_status=$?
15648   grep -v '^ *+' conftest.er1 >conftest.err
15649   rm -f conftest.er1
15650   cat conftest.err >&5
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); } &&
15653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655   (eval $ac_try) 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; } &&
15659          { ac_try='test -s conftest$ac_exeext'
15660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661   (eval $ac_try) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; }; then
15665   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^      ]*\).*$/\1/"`
15666   if test "x$ac_cv_lib_soname_crypto" = "x"
15667   then
15668      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15669   fi
15670 else
15671   echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15675 fi
15676 rm -f conftest.err conftest.$ac_objext \
15677       conftest$ac_exeext conftest.$ac_ext
15678   LIBS=$ac_get_soname_save_LIBS
15679 fi
15680 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15681 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15682 if test "x$ac_cv_lib_soname_crypto" != xNONE
15683 then
15684 cat >>confdefs.h <<_ACEOF
15685 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15686 _ACEOF
15687 fi
15688
15689 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15690 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15691 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15692   echo $ECHO_N "(cached) $ECHO_C" >&6
15693 else
15694   ac_get_soname_save_LIBS=$LIBS
15695 LIBS="-lncurses  $LIBS"
15696   cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h.  */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h.  */
15702
15703 /* Override any gcc2 internal prototype to avoid an error.  */
15704 #ifdef __cplusplus
15705 extern "C"
15706 #endif
15707 /* We use char because int might match the return type of a gcc2
15708    builtin and then its argument prototype would still apply.  */
15709 char waddch ();
15710 int
15711 main ()
15712 {
15713 waddch ();
15714   ;
15715   return 0;
15716 }
15717 _ACEOF
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720   (eval $ac_link) 2>conftest.er1
15721   ac_status=$?
15722   grep -v '^ *+' conftest.er1 >conftest.err
15723   rm -f conftest.er1
15724   cat conftest.err >&5
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); } &&
15727          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729   (eval $ac_try) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); }; } &&
15733          { ac_try='test -s conftest$ac_exeext'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^   ]*\).*$/\1/"`
15740   if test "x$ac_cv_lib_soname_ncurses" = "x"
15741   then
15742      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15743   fi
15744 else
15745   echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15747
15748 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15749 fi
15750 rm -f conftest.err conftest.$ac_objext \
15751       conftest$ac_exeext conftest.$ac_ext
15752   LIBS=$ac_get_soname_save_LIBS
15753 fi
15754 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15755 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15756 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15757 then
15758 cat >>confdefs.h <<_ACEOF
15759 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15760 _ACEOF
15761 fi
15762
15763 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15764 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15765 if test "${ac_cv_lib_soname_curses+set}" = set; then
15766   echo $ECHO_N "(cached) $ECHO_C" >&6
15767 else
15768   ac_get_soname_save_LIBS=$LIBS
15769 LIBS="-lcurses  $LIBS"
15770   cat >conftest.$ac_ext <<_ACEOF
15771 /* confdefs.h.  */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h.  */
15776
15777 /* Override any gcc2 internal prototype to avoid an error.  */
15778 #ifdef __cplusplus
15779 extern "C"
15780 #endif
15781 /* We use char because int might match the return type of a gcc2
15782    builtin and then its argument prototype would still apply.  */
15783 char waddch ();
15784 int
15785 main ()
15786 {
15787 waddch ();
15788   ;
15789   return 0;
15790 }
15791 _ACEOF
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15794   (eval $ac_link) 2>conftest.er1
15795   ac_status=$?
15796   grep -v '^ *+' conftest.er1 >conftest.err
15797   rm -f conftest.er1
15798   cat conftest.err >&5
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); } &&
15801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15803   (eval $ac_try) 2>&5
15804   ac_status=$?
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); }; } &&
15807          { ac_try='test -s conftest$ac_exeext'
15808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809   (eval $ac_try) 2>&5
15810   ac_status=$?
15811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812   (exit $ac_status); }; }; then
15813   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^      ]*\).*$/\1/"`
15814   if test "x$ac_cv_lib_soname_curses" = "x"
15815   then
15816      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15817   fi
15818 else
15819   echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15823 fi
15824 rm -f conftest.err conftest.$ac_objext \
15825       conftest$ac_exeext conftest.$ac_ext
15826   LIBS=$ac_get_soname_save_LIBS
15827 fi
15828 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15829 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15830 if test "x$ac_cv_lib_soname_curses" != xNONE
15831 then
15832 cat >>confdefs.h <<_ACEOF
15833 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15834 _ACEOF
15835 fi
15836
15837 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15838 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15839 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15840   echo $ECHO_N "(cached) $ECHO_C" >&6
15841 else
15842   ac_get_soname_save_LIBS=$LIBS
15843 LIBS="-ljpeg  $LIBS"
15844   cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h.  */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h.  */
15850
15851 /* Override any gcc2 internal prototype to avoid an error.  */
15852 #ifdef __cplusplus
15853 extern "C"
15854 #endif
15855 /* We use char because int might match the return type of a gcc2
15856    builtin and then its argument prototype would still apply.  */
15857 char jpeg_start_decompress ();
15858 int
15859 main ()
15860 {
15861 jpeg_start_decompress ();
15862   ;
15863   return 0;
15864 }
15865 _ACEOF
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15868   (eval $ac_link) 2>conftest.er1
15869   ac_status=$?
15870   grep -v '^ *+' conftest.er1 >conftest.err
15871   rm -f conftest.er1
15872   cat conftest.err >&5
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); } &&
15875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877   (eval $ac_try) 2>&5
15878   ac_status=$?
15879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880   (exit $ac_status); }; } &&
15881          { ac_try='test -s 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_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^    ]*\).*$/\1/"`
15888   if test "x$ac_cv_lib_soname_jpeg" = "x"
15889   then
15890      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15891   fi
15892 else
15893   echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15897 fi
15898 rm -f conftest.err conftest.$ac_objext \
15899       conftest$ac_exeext conftest.$ac_ext
15900   LIBS=$ac_get_soname_save_LIBS
15901 fi
15902 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15903 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15904 if test "x$ac_cv_lib_soname_jpeg" != xNONE
15905 then
15906 cat >>confdefs.h <<_ACEOF
15907 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15908 _ACEOF
15909 fi
15910
15911 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15912 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15913 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15914   echo $ECHO_N "(cached) $ECHO_C" >&6
15915 else
15916   ac_get_soname_save_LIBS=$LIBS
15917 LIBS="-lungif  $LIBS"
15918   cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h.  */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h.  */
15924
15925 /* Override any gcc2 internal prototype to avoid an error.  */
15926 #ifdef __cplusplus
15927 extern "C"
15928 #endif
15929 /* We use char because int might match the return type of a gcc2
15930    builtin and then its argument prototype would still apply.  */
15931 char DGifOpen ();
15932 int
15933 main ()
15934 {
15935 DGifOpen ();
15936   ;
15937   return 0;
15938 }
15939 _ACEOF
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942   (eval $ac_link) 2>conftest.er1
15943   ac_status=$?
15944   grep -v '^ *+' conftest.er1 >conftest.err
15945   rm -f conftest.er1
15946   cat conftest.err >&5
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); } &&
15949          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951   (eval $ac_try) 2>&5
15952   ac_status=$?
15953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   (exit $ac_status); }; } &&
15955          { ac_try='test -s conftest$ac_exeext'
15956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957   (eval $ac_try) 2>&5
15958   ac_status=$?
15959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960   (exit $ac_status); }; }; then
15961   ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^         ]*\).*$/\1/"`
15962   if test "x$ac_cv_lib_soname_ungif" = "x"
15963   then
15964      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15965   fi
15966 else
15967   echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15969
15970 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15971 fi
15972 rm -f conftest.err conftest.$ac_objext \
15973       conftest$ac_exeext conftest.$ac_ext
15974   LIBS=$ac_get_soname_save_LIBS
15975 fi
15976 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15977 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15978 if test "x$ac_cv_lib_soname_ungif" != xNONE
15979 then
15980 cat >>confdefs.h <<_ACEOF
15981 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15982 _ACEOF
15983 fi
15984
15985 echo "$as_me:$LINENO: checking for -lgif soname" >&5
15986 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15987 if test "${ac_cv_lib_soname_gif+set}" = set; then
15988   echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990   ac_get_soname_save_LIBS=$LIBS
15991 LIBS="-lgif  $LIBS"
15992   cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h.  */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h.  */
15998
15999 /* Override any gcc2 internal prototype to avoid an error.  */
16000 #ifdef __cplusplus
16001 extern "C"
16002 #endif
16003 /* We use char because int might match the return type of a gcc2
16004    builtin and then its argument prototype would still apply.  */
16005 char DGifOpen ();
16006 int
16007 main ()
16008 {
16009 DGifOpen ();
16010   ;
16011   return 0;
16012 }
16013 _ACEOF
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16016   (eval $ac_link) 2>conftest.er1
16017   ac_status=$?
16018   grep -v '^ *+' conftest.er1 >conftest.err
16019   rm -f conftest.er1
16020   cat conftest.err >&5
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); } &&
16023          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025   (eval $ac_try) 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; } &&
16029          { ac_try='test -s conftest$ac_exeext'
16030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031   (eval $ac_try) 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); }; }; then
16035   ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^       ]*\).*$/\1/"`
16036   if test "x$ac_cv_lib_soname_gif" = "x"
16037   then
16038      ac_cv_lib_soname_gif="libgif.$LIBEXT"
16039   fi
16040 else
16041   echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 ac_cv_lib_soname_gif="libgif.$LIBEXT"
16045 fi
16046 rm -f conftest.err conftest.$ac_objext \
16047       conftest$ac_exeext conftest.$ac_ext
16048   LIBS=$ac_get_soname_save_LIBS
16049 fi
16050 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
16051 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
16052 if test "x$ac_cv_lib_soname_gif" != xNONE
16053 then
16054 cat >>confdefs.h <<_ACEOF
16055 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
16056 _ACEOF
16057 fi
16058
16059 echo "$as_me:$LINENO: checking for -llcms soname" >&5
16060 echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
16061 if test "${ac_cv_lib_soname_lcms+set}" = set; then
16062   echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064   ac_get_soname_save_LIBS=$LIBS
16065 LIBS="-llcms  $LIBS"
16066   cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h.  */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h.  */
16072
16073 /* Override any gcc2 internal prototype to avoid an error.  */
16074 #ifdef __cplusplus
16075 extern "C"
16076 #endif
16077 /* We use char because int might match the return type of a gcc2
16078    builtin and then its argument prototype would still apply.  */
16079 char cmsOpenProfileFromFile ();
16080 int
16081 main ()
16082 {
16083 cmsOpenProfileFromFile ();
16084   ;
16085   return 0;
16086 }
16087 _ACEOF
16088 rm -f conftest.$ac_objext conftest$ac_exeext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16090   (eval $ac_link) 2>conftest.er1
16091   ac_status=$?
16092   grep -v '^ *+' conftest.er1 >conftest.err
16093   rm -f conftest.er1
16094   cat conftest.err >&5
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); } &&
16097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099   (eval $ac_try) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; } &&
16103          { ac_try='test -s conftest$ac_exeext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^    ]*\).*$/\1/"`
16110   if test "x$ac_cv_lib_soname_lcms" = "x"
16111   then
16112      ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
16113   fi
16114 else
16115   echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16117
16118 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
16119 fi
16120 rm -f conftest.err conftest.$ac_objext \
16121       conftest$ac_exeext conftest.$ac_ext
16122   LIBS=$ac_get_soname_save_LIBS
16123 fi
16124 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
16125 echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
16126 if test "x$ac_cv_lib_soname_lcms" != xNONE
16127 then
16128 cat >>confdefs.h <<_ACEOF
16129 #define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
16130 _ACEOF
16131 fi
16132 fi
16133
16134
16135
16136 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16137 # for constant arguments.  Useless!
16138 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16139 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16140 if test "${ac_cv_working_alloca_h+set}" = set; then
16141   echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143   cat >conftest.$ac_ext <<_ACEOF
16144 /* confdefs.h.  */
16145 _ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h.  */
16149 #include <alloca.h>
16150 int
16151 main ()
16152 {
16153 char *p = (char *) alloca (2 * sizeof (int));
16154   ;
16155   return 0;
16156 }
16157 _ACEOF
16158 rm -f conftest.$ac_objext conftest$ac_exeext
16159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16160   (eval $ac_link) 2>conftest.er1
16161   ac_status=$?
16162   grep -v '^ *+' conftest.er1 >conftest.err
16163   rm -f conftest.er1
16164   cat conftest.err >&5
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } &&
16167          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169   (eval $ac_try) 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; } &&
16173          { ac_try='test -s conftest$ac_exeext'
16174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175   (eval $ac_try) 2>&5
16176   ac_status=$?
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); }; }; then
16179   ac_cv_working_alloca_h=yes
16180 else
16181   echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16183
16184 ac_cv_working_alloca_h=no
16185 fi
16186 rm -f conftest.err conftest.$ac_objext \
16187       conftest$ac_exeext conftest.$ac_ext
16188 fi
16189 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16190 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16191 if test $ac_cv_working_alloca_h = yes; then
16192
16193 cat >>confdefs.h <<\_ACEOF
16194 #define HAVE_ALLOCA_H 1
16195 _ACEOF
16196
16197 fi
16198
16199 echo "$as_me:$LINENO: checking for alloca" >&5
16200 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16201 if test "${ac_cv_func_alloca_works+set}" = set; then
16202   echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204   cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h.  */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h.  */
16210 #ifdef __GNUC__
16211 # define alloca __builtin_alloca
16212 #else
16213 # ifdef _MSC_VER
16214 #  include <malloc.h>
16215 #  define alloca _alloca
16216 # else
16217 #  if HAVE_ALLOCA_H
16218 #   include <alloca.h>
16219 #  else
16220 #   ifdef _AIX
16221  #pragma alloca
16222 #   else
16223 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16224 char *alloca ();
16225 #    endif
16226 #   endif
16227 #  endif
16228 # endif
16229 #endif
16230
16231 int
16232 main ()
16233 {
16234 char *p = (char *) alloca (1);
16235   ;
16236   return 0;
16237 }
16238 _ACEOF
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241   (eval $ac_link) 2>conftest.er1
16242   ac_status=$?
16243   grep -v '^ *+' conftest.er1 >conftest.err
16244   rm -f conftest.er1
16245   cat conftest.err >&5
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); } &&
16248          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250   (eval $ac_try) 2>&5
16251   ac_status=$?
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); }; } &&
16254          { ac_try='test -s conftest$ac_exeext'
16255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256   (eval $ac_try) 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; }; then
16260   ac_cv_func_alloca_works=yes
16261 else
16262   echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 ac_cv_func_alloca_works=no
16266 fi
16267 rm -f conftest.err conftest.$ac_objext \
16268       conftest$ac_exeext conftest.$ac_ext
16269 fi
16270 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16271 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16272
16273 if test $ac_cv_func_alloca_works = yes; then
16274
16275 cat >>confdefs.h <<\_ACEOF
16276 #define HAVE_ALLOCA 1
16277 _ACEOF
16278
16279 else
16280   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16281 # that cause trouble.  Some versions do not even contain alloca or
16282 # contain a buggy version.  If you still want to use their alloca,
16283 # use ar to extract alloca.o from them instead of compiling alloca.c.
16284
16285 ALLOCA=alloca.$ac_objext
16286
16287 cat >>confdefs.h <<\_ACEOF
16288 #define C_ALLOCA 1
16289 _ACEOF
16290
16291
16292 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16293 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16294 if test "${ac_cv_os_cray+set}" = set; then
16295   echo $ECHO_N "(cached) $ECHO_C" >&6
16296 else
16297   cat >conftest.$ac_ext <<_ACEOF
16298 /* confdefs.h.  */
16299 _ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h.  */
16303 #if defined(CRAY) && ! defined(CRAY2)
16304 webecray
16305 #else
16306 wenotbecray
16307 #endif
16308
16309 _ACEOF
16310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16311   $EGREP "webecray" >/dev/null 2>&1; then
16312   ac_cv_os_cray=yes
16313 else
16314   ac_cv_os_cray=no
16315 fi
16316 rm -f conftest*
16317
16318 fi
16319 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16320 echo "${ECHO_T}$ac_cv_os_cray" >&6
16321 if test $ac_cv_os_cray = yes; then
16322   for ac_func in _getb67 GETB67 getb67; do
16323     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16324 echo "$as_me:$LINENO: checking for $ac_func" >&5
16325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16326 if eval "test \"\${$as_ac_var+set}\" = set"; then
16327   echo $ECHO_N "(cached) $ECHO_C" >&6
16328 else
16329   cat >conftest.$ac_ext <<_ACEOF
16330 /* confdefs.h.  */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h.  */
16335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16337 #define $ac_func innocuous_$ac_func
16338
16339 /* System header to define __stub macros and hopefully few prototypes,
16340     which can conflict with char $ac_func (); below.
16341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16342     <limits.h> exists even on freestanding compilers.  */
16343
16344 #ifdef __STDC__
16345 # include <limits.h>
16346 #else
16347 # include <assert.h>
16348 #endif
16349
16350 #undef $ac_func
16351
16352 /* Override any gcc2 internal prototype to avoid an error.  */
16353 #ifdef __cplusplus
16354 extern "C"
16355 {
16356 #endif
16357 /* We use char because int might match the return type of a gcc2
16358    builtin and then its argument prototype would still apply.  */
16359 char $ac_func ();
16360 /* The GNU C library defines this for functions which it implements
16361     to always fail with ENOSYS.  Some functions are actually named
16362     something starting with __ and the normal name is an alias.  */
16363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16364 choke me
16365 #else
16366 char (*f) () = $ac_func;
16367 #endif
16368 #ifdef __cplusplus
16369 }
16370 #endif
16371
16372 int
16373 main ()
16374 {
16375 return f != $ac_func;
16376   ;
16377   return 0;
16378 }
16379 _ACEOF
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382   (eval $ac_link) 2>conftest.er1
16383   ac_status=$?
16384   grep -v '^ *+' conftest.er1 >conftest.err
16385   rm -f conftest.er1
16386   cat conftest.err >&5
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } &&
16389          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; } &&
16395          { ac_try='test -s conftest$ac_exeext'
16396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397   (eval $ac_try) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; }; then
16401   eval "$as_ac_var=yes"
16402 else
16403   echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 eval "$as_ac_var=no"
16407 fi
16408 rm -f conftest.err conftest.$ac_objext \
16409       conftest$ac_exeext conftest.$ac_ext
16410 fi
16411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16413 if test `eval echo '${'$as_ac_var'}'` = yes; then
16414
16415 cat >>confdefs.h <<_ACEOF
16416 #define CRAY_STACKSEG_END $ac_func
16417 _ACEOF
16418
16419     break
16420 fi
16421
16422   done
16423 fi
16424
16425 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16426 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16427 if test "${ac_cv_c_stack_direction+set}" = set; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430   if test "$cross_compiling" = yes; then
16431   ac_cv_c_stack_direction=0
16432 else
16433   cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h.  */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h.  */
16439 int
16440 find_stack_direction ()
16441 {
16442   static char *addr = 0;
16443   auto char dummy;
16444   if (addr == 0)
16445     {
16446       addr = &dummy;
16447       return find_stack_direction ();
16448     }
16449   else
16450     return (&dummy > addr) ? 1 : -1;
16451 }
16452
16453 int
16454 main ()
16455 {
16456   exit (find_stack_direction () < 0);
16457 }
16458 _ACEOF
16459 rm -f conftest$ac_exeext
16460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16461   (eval $ac_link) 2>&5
16462   ac_status=$?
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466   (eval $ac_try) 2>&5
16467   ac_status=$?
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); }; }; then
16470   ac_cv_c_stack_direction=1
16471 else
16472   echo "$as_me: program exited with status $ac_status" >&5
16473 echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16475
16476 ( exit $ac_status )
16477 ac_cv_c_stack_direction=-1
16478 fi
16479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16480 fi
16481 fi
16482 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16483 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16484
16485 cat >>confdefs.h <<_ACEOF
16486 #define STACK_DIRECTION $ac_cv_c_stack_direction
16487 _ACEOF
16488
16489
16490 fi
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554 for ac_func in \
16555         _lwp_create \
16556         _lwp_self \
16557         _pclose \
16558         _popen \
16559         _snprintf \
16560         _spawnvp \
16561         _stricmp \
16562         _strnicmp \
16563         _vsnprintf \
16564         chsize \
16565         clone \
16566         epoll_create \
16567         ffs \
16568         finite \
16569         fork \
16570         fpclass \
16571         fstatfs \
16572         fstatvfs \
16573         ftruncate \
16574         ftruncate64 \
16575         futimes \
16576         getnetbyaddr \
16577         getnetbyname \
16578         getopt_long \
16579         getpagesize \
16580         getprotobyname \
16581         getprotobynumber \
16582         getpwuid \
16583         getservbyport \
16584         gettid \
16585         gettimeofday \
16586         getuid \
16587         inet_network \
16588         lseek64 \
16589         lstat \
16590         memmove \
16591         mmap \
16592         pclose \
16593         popen \
16594         pread \
16595         pwrite \
16596         readlink \
16597         rfork \
16598         sched_yield \
16599         select \
16600         sendmsg \
16601         settimeofday \
16602         sigaltstack \
16603         snprintf \
16604         spawnvp \
16605         statfs \
16606         statvfs \
16607         strcasecmp \
16608         strerror \
16609         strncasecmp \
16610         tcgetattr \
16611         timegm \
16612         usleep \
16613         vfscanf \
16614         vsnprintf \
16615         wait4 \
16616         waitpid \
16617
16618 do
16619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16620 echo "$as_me:$LINENO: checking for $ac_func" >&5
16621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16622 if eval "test \"\${$as_ac_var+set}\" = set"; then
16623   echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625   cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h.  */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h.  */
16631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16633 #define $ac_func innocuous_$ac_func
16634
16635 /* System header to define __stub macros and hopefully few prototypes,
16636     which can conflict with char $ac_func (); below.
16637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16638     <limits.h> exists even on freestanding compilers.  */
16639
16640 #ifdef __STDC__
16641 # include <limits.h>
16642 #else
16643 # include <assert.h>
16644 #endif
16645
16646 #undef $ac_func
16647
16648 /* Override any gcc2 internal prototype to avoid an error.  */
16649 #ifdef __cplusplus
16650 extern "C"
16651 {
16652 #endif
16653 /* We use char because int might match the return type of a gcc2
16654    builtin and then its argument prototype would still apply.  */
16655 char $ac_func ();
16656 /* The GNU C library defines this for functions which it implements
16657     to always fail with ENOSYS.  Some functions are actually named
16658     something starting with __ and the normal name is an alias.  */
16659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16660 choke me
16661 #else
16662 char (*f) () = $ac_func;
16663 #endif
16664 #ifdef __cplusplus
16665 }
16666 #endif
16667
16668 int
16669 main ()
16670 {
16671 return f != $ac_func;
16672   ;
16673   return 0;
16674 }
16675 _ACEOF
16676 rm -f conftest.$ac_objext conftest$ac_exeext
16677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16678   (eval $ac_link) 2>conftest.er1
16679   ac_status=$?
16680   grep -v '^ *+' conftest.er1 >conftest.err
16681   rm -f conftest.er1
16682   cat conftest.err >&5
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); } &&
16685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
16691          { ac_try='test -s conftest$ac_exeext'
16692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693   (eval $ac_try) 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; }; then
16697   eval "$as_ac_var=yes"
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702 eval "$as_ac_var=no"
16703 fi
16704 rm -f conftest.err conftest.$ac_objext \
16705       conftest$ac_exeext conftest.$ac_ext
16706 fi
16707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16709 if test `eval echo '${'$as_ac_var'}'` = yes; then
16710   cat >>confdefs.h <<_ACEOF
16711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16712 _ACEOF
16713
16714 fi
16715 done
16716
16717
16718
16719
16720
16721 for ac_header in sys/mount.h sys/user.h
16722 do
16723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16724 echo "$as_me:$LINENO: checking for $ac_header" >&5
16725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16727   echo $ECHO_N "(cached) $ECHO_C" >&6
16728 else
16729   cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735 #include <sys/types.h>
16736      #if HAVE_SYS_PARAM_H
16737      # include <sys/param.h>
16738      #endif
16739
16740 #include <$ac_header>
16741 _ACEOF
16742 rm -f conftest.$ac_objext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744   (eval $ac_compile) 2>conftest.er1
16745   ac_status=$?
16746   grep -v '^ *+' conftest.er1 >conftest.err
16747   rm -f conftest.er1
16748   cat conftest.err >&5
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); } &&
16751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753   (eval $ac_try) 2>&5
16754   ac_status=$?
16755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756   (exit $ac_status); }; } &&
16757          { ac_try='test -s conftest.$ac_objext'
16758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759   (eval $ac_try) 2>&5
16760   ac_status=$?
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); }; }; then
16763   eval "$as_ac_Header=yes"
16764 else
16765   echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16767
16768 eval "$as_ac_Header=no"
16769 fi
16770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16771 fi
16772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16775   cat >>confdefs.h <<_ACEOF
16776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16777 _ACEOF
16778
16779 fi
16780
16781 done
16782
16783
16784
16785
16786
16787
16788
16789 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16790 do
16791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16792 echo "$as_me:$LINENO: checking for $ac_header" >&5
16793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16795   echo $ECHO_N "(cached) $ECHO_C" >&6
16796 else
16797   cat >conftest.$ac_ext <<_ACEOF
16798 /* confdefs.h.  */
16799 _ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h.  */
16803 #include <sys/types.h>
16804      #if HAVE_SYS_SOCKET_H
16805      # include <sys/socket.h>
16806      #endif
16807
16808 #include <$ac_header>
16809 _ACEOF
16810 rm -f conftest.$ac_objext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16812   (eval $ac_compile) 2>conftest.er1
16813   ac_status=$?
16814   grep -v '^ *+' conftest.er1 >conftest.err
16815   rm -f conftest.er1
16816   cat conftest.err >&5
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); } &&
16819          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821   (eval $ac_try) 2>&5
16822   ac_status=$?
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); }; } &&
16825          { ac_try='test -s conftest.$ac_objext'
16826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827   (eval $ac_try) 2>&5
16828   ac_status=$?
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); }; }; then
16831   eval "$as_ac_Header=yes"
16832 else
16833   echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16835
16836 eval "$as_ac_Header=no"
16837 fi
16838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16839 fi
16840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16843   cat >>confdefs.h <<_ACEOF
16844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16845 _ACEOF
16846
16847 fi
16848
16849 done
16850
16851
16852
16853 for ac_header in resolv.h
16854 do
16855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16856 echo "$as_me:$LINENO: checking for $ac_header" >&5
16857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16859   echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861   cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h.  */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h.  */
16867 #include <sys/types.h>
16868      #if HAVE_SYS_SOCKET_H
16869      # include <sys/socket.h>
16870      #endif
16871      #if HAVE_NETINET_IN_H
16872      # include <netinet/in.h>
16873      #endif
16874      #if HAVE_ARPA_NAMESER_H
16875      # include <arpa/nameser.h>
16876      #endif
16877
16878 #include <$ac_header>
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882   (eval $ac_compile) 2>conftest.er1
16883   ac_status=$?
16884   grep -v '^ *+' conftest.er1 >conftest.err
16885   rm -f conftest.er1
16886   cat conftest.err >&5
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); } &&
16889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891   (eval $ac_try) 2>&5
16892   ac_status=$?
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); }; } &&
16895          { ac_try='test -s conftest.$ac_objext'
16896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897   (eval $ac_try) 2>&5
16898   ac_status=$?
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); }; }; then
16901   eval "$as_ac_Header=yes"
16902 else
16903   echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16905
16906 eval "$as_ac_Header=no"
16907 fi
16908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16909 fi
16910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16913   cat >>confdefs.h <<_ACEOF
16914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16915 _ACEOF
16916
16917 fi
16918
16919 done
16920
16921
16922
16923 for ac_header in netinet/ip.h
16924 do
16925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16926 echo "$as_me:$LINENO: checking for $ac_header" >&5
16927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16929   echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931   cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h.  */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h.  */
16937 #include <sys/types.h>
16938      #if HAVE_SYS_SOCKET_H
16939      # include <sys/socket.h>
16940      #endif
16941      #if HAVE_NETINET_IN_SYSTM_H
16942      # include <netinet/in_systm.h>
16943      #endif
16944
16945 #include <$ac_header>
16946 _ACEOF
16947 rm -f conftest.$ac_objext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16949   (eval $ac_compile) 2>conftest.er1
16950   ac_status=$?
16951   grep -v '^ *+' conftest.er1 >conftest.err
16952   rm -f conftest.er1
16953   cat conftest.err >&5
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); } &&
16956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958   (eval $ac_try) 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); }; } &&
16962          { ac_try='test -s conftest.$ac_objext'
16963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964   (eval $ac_try) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; }; then
16968   eval "$as_ac_Header=yes"
16969 else
16970   echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 eval "$as_ac_Header=no"
16974 fi
16975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16976 fi
16977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16980   cat >>confdefs.h <<_ACEOF
16981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16982 _ACEOF
16983
16984 fi
16985
16986 done
16987
16988
16989
16990 for ac_header in ucontext.h
16991 do
16992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16993 echo "$as_me:$LINENO: checking for $ac_header" >&5
16994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16996   echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998   cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h.  */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h.  */
17004 #include <signal.h>
17005
17006 #include <$ac_header>
17007 _ACEOF
17008 rm -f conftest.$ac_objext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17010   (eval $ac_compile) 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } &&
17017          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019   (eval $ac_try) 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); }; } &&
17023          { ac_try='test -s conftest.$ac_objext'
17024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025   (eval $ac_try) 2>&5
17026   ac_status=$?
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); }; }; then
17029   eval "$as_ac_Header=yes"
17030 else
17031   echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17033
17034 eval "$as_ac_Header=no"
17035 fi
17036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17037 fi
17038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17041   cat >>confdefs.h <<_ACEOF
17042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17043 _ACEOF
17044
17045 fi
17046
17047 done
17048
17049
17050
17051 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17052 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17053 if test "${ac_cv_c_ipx_gnu+set}" = set; then
17054   echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056   cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062 #include <sys/types.h>
17063     #ifdef HAVE_SYS_SOCKET_H
17064     # include <sys/socket.h>
17065     #endif
17066     #include <netipx/ipx.h>
17067 int
17068 main ()
17069 {
17070 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17071   ;
17072   return 0;
17073 }
17074 _ACEOF
17075 rm -f conftest.$ac_objext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17077   (eval $ac_compile) 2>conftest.er1
17078   ac_status=$?
17079   grep -v '^ *+' conftest.er1 >conftest.err
17080   rm -f conftest.er1
17081   cat conftest.err >&5
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); } &&
17084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086   (eval $ac_try) 2>&5
17087   ac_status=$?
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); }; } &&
17090          { ac_try='test -s conftest.$ac_objext'
17091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092   (eval $ac_try) 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; }; then
17096   ac_cv_c_ipx_gnu="yes"
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101 ac_cv_c_ipx_gnu="no"
17102 fi
17103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17104
17105 fi
17106 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17107 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17108 if test "$ac_cv_c_ipx_gnu" = "yes"
17109 then
17110
17111 cat >>confdefs.h <<\_ACEOF
17112 #define HAVE_IPX_GNU 1
17113 _ACEOF
17114
17115 fi
17116
17117 if test "$ac_cv_c_ipx_gnu" = "no"
17118 then
17119  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17120 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17121 if test "${ac_cv_c_ipx_linux+set}" = set; then
17122   echo $ECHO_N "(cached) $ECHO_C" >&6
17123 else
17124   cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h.  */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h.  */
17130 #include <sys/types.h>
17131      #ifdef HAVE_SYS_SOCKET_H
17132      # include <sys/socket.h>
17133      #endif
17134      #include <asm/types.h>
17135      #include <linux/ipx.h>
17136 int
17137 main ()
17138 {
17139 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17140   ;
17141   return 0;
17142 }
17143 _ACEOF
17144 rm -f conftest.$ac_objext
17145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17146   (eval $ac_compile) 2>conftest.er1
17147   ac_status=$?
17148   grep -v '^ *+' conftest.er1 >conftest.err
17149   rm -f conftest.er1
17150   cat conftest.err >&5
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); } &&
17153          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155   (eval $ac_try) 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); }; } &&
17159          { ac_try='test -s conftest.$ac_objext'
17160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161   (eval $ac_try) 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); }; }; then
17165   ac_cv_c_ipx_linux="yes"
17166 else
17167   echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17169
17170 ac_cv_c_ipx_linux="no"
17171 fi
17172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17173
17174 fi
17175 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17176 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17177   if test "$ac_cv_c_ipx_linux" = "yes"
17178   then
17179
17180 cat >>confdefs.h <<\_ACEOF
17181 #define HAVE_IPX_LINUX 1
17182 _ACEOF
17183
17184   fi
17185 fi
17186
17187
17188 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17189 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17190 if test "${ac_cv_c_const+set}" = set; then
17191   echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193   cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h.  */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h.  */
17199
17200 int
17201 main ()
17202 {
17203 /* FIXME: Include the comments suggested by Paul. */
17204 #ifndef __cplusplus
17205   /* Ultrix mips cc rejects this.  */
17206   typedef int charset[2];
17207   const charset x;
17208   /* SunOS 4.1.1 cc rejects this.  */
17209   char const *const *ccp;
17210   char **p;
17211   /* NEC SVR4.0.2 mips cc rejects this.  */
17212   struct point {int x, y;};
17213   static struct point const zero = {0,0};
17214   /* AIX XL C 1.02.0.0 rejects this.
17215      It does not let you subtract one const X* pointer from another in
17216      an arm of an if-expression whose if-part is not a constant
17217      expression */
17218   const char *g = "string";
17219   ccp = &g + (g ? g-g : 0);
17220   /* HPUX 7.0 cc rejects these. */
17221   ++ccp;
17222   p = (char**) ccp;
17223   ccp = (char const *const *) p;
17224   { /* SCO 3.2v4 cc rejects this.  */
17225     char *t;
17226     char const *s = 0 ? (char *) 0 : (char const *) 0;
17227
17228     *t++ = 0;
17229   }
17230   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17231     int x[] = {25, 17};
17232     const int *foo = &x[0];
17233     ++foo;
17234   }
17235   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17236     typedef const int *iptr;
17237     iptr p = 0;
17238     ++p;
17239   }
17240   { /* AIX XL C 1.02.0.0 rejects this saying
17241        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17242     struct s { int j; const int *ap[3]; };
17243     struct s *b; b->j = 5;
17244   }
17245   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17246     const int foo = 10;
17247   }
17248 #endif
17249
17250   ;
17251   return 0;
17252 }
17253 _ACEOF
17254 rm -f conftest.$ac_objext
17255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17256   (eval $ac_compile) 2>conftest.er1
17257   ac_status=$?
17258   grep -v '^ *+' conftest.er1 >conftest.err
17259   rm -f conftest.er1
17260   cat conftest.err >&5
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); } &&
17263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265   (eval $ac_try) 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; } &&
17269          { ac_try='test -s conftest.$ac_objext'
17270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271   (eval $ac_try) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; }; then
17275   ac_cv_c_const=yes
17276 else
17277   echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280 ac_cv_c_const=no
17281 fi
17282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17283 fi
17284 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17285 echo "${ECHO_T}$ac_cv_c_const" >&6
17286 if test $ac_cv_c_const = no; then
17287
17288 cat >>confdefs.h <<\_ACEOF
17289 #define const
17290 _ACEOF
17291
17292 fi
17293
17294 echo "$as_me:$LINENO: checking for inline" >&5
17295 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17296 if test "${ac_cv_c_inline+set}" = set; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   ac_cv_c_inline=no
17300 for ac_kw in inline __inline__ __inline; do
17301   cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h.  */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h.  */
17307 #ifndef __cplusplus
17308 typedef int foo_t;
17309 static $ac_kw foo_t static_foo () {return 0; }
17310 $ac_kw foo_t foo () {return 0; }
17311 #endif
17312
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316   (eval $ac_compile) 2>conftest.er1
17317   ac_status=$?
17318   grep -v '^ *+' conftest.er1 >conftest.err
17319   rm -f conftest.er1
17320   cat conftest.err >&5
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); } &&
17323          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325   (eval $ac_try) 2>&5
17326   ac_status=$?
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); }; } &&
17329          { ac_try='test -s conftest.$ac_objext'
17330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331   (eval $ac_try) 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; }; then
17335   ac_cv_c_inline=$ac_kw; break
17336 else
17337   echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340 fi
17341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17342 done
17343
17344 fi
17345 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17346 echo "${ECHO_T}$ac_cv_c_inline" >&6
17347
17348
17349 case $ac_cv_c_inline in
17350   inline | yes) ;;
17351   *)
17352     case $ac_cv_c_inline in
17353       no) ac_val=;;
17354       *) ac_val=$ac_cv_c_inline;;
17355     esac
17356     cat >>confdefs.h <<_ACEOF
17357 #ifndef __cplusplus
17358 #define inline $ac_val
17359 #endif
17360 _ACEOF
17361     ;;
17362 esac
17363
17364 echo "$as_me:$LINENO: checking for mode_t" >&5
17365 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17366 if test "${ac_cv_type_mode_t+set}" = set; then
17367   echo $ECHO_N "(cached) $ECHO_C" >&6
17368 else
17369   cat >conftest.$ac_ext <<_ACEOF
17370 /* confdefs.h.  */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h.  */
17375 $ac_includes_default
17376 int
17377 main ()
17378 {
17379 if ((mode_t *) 0)
17380   return 0;
17381 if (sizeof (mode_t))
17382   return 0;
17383   ;
17384   return 0;
17385 }
17386 _ACEOF
17387 rm -f conftest.$ac_objext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17389   (eval $ac_compile) 2>conftest.er1
17390   ac_status=$?
17391   grep -v '^ *+' conftest.er1 >conftest.err
17392   rm -f conftest.er1
17393   cat conftest.err >&5
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); } &&
17396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398   (eval $ac_try) 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; } &&
17402          { ac_try='test -s conftest.$ac_objext'
17403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404   (eval $ac_try) 2>&5
17405   ac_status=$?
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); }; }; then
17408   ac_cv_type_mode_t=yes
17409 else
17410   echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17412
17413 ac_cv_type_mode_t=no
17414 fi
17415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17416 fi
17417 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17418 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17419 if test $ac_cv_type_mode_t = yes; then
17420
17421 cat >>confdefs.h <<_ACEOF
17422 #define HAVE_MODE_T 1
17423 _ACEOF
17424
17425
17426 fi
17427 echo "$as_me:$LINENO: checking for off_t" >&5
17428 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17429 if test "${ac_cv_type_off_t+set}" = set; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432   cat >conftest.$ac_ext <<_ACEOF
17433 /* confdefs.h.  */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h.  */
17438 $ac_includes_default
17439 int
17440 main ()
17441 {
17442 if ((off_t *) 0)
17443   return 0;
17444 if (sizeof (off_t))
17445   return 0;
17446   ;
17447   return 0;
17448 }
17449 _ACEOF
17450 rm -f conftest.$ac_objext
17451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17452   (eval $ac_compile) 2>conftest.er1
17453   ac_status=$?
17454   grep -v '^ *+' conftest.er1 >conftest.err
17455   rm -f conftest.er1
17456   cat conftest.err >&5
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); } &&
17459          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461   (eval $ac_try) 2>&5
17462   ac_status=$?
17463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); }; } &&
17465          { ac_try='test -s conftest.$ac_objext'
17466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467   (eval $ac_try) 2>&5
17468   ac_status=$?
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); }; }; then
17471   ac_cv_type_off_t=yes
17472 else
17473   echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17475
17476 ac_cv_type_off_t=no
17477 fi
17478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17479 fi
17480 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17481 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17482 if test $ac_cv_type_off_t = yes; then
17483
17484 cat >>confdefs.h <<_ACEOF
17485 #define HAVE_OFF_T 1
17486 _ACEOF
17487
17488
17489 fi
17490 echo "$as_me:$LINENO: checking for pid_t" >&5
17491 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17492 if test "${ac_cv_type_pid_t+set}" = set; then
17493   echo $ECHO_N "(cached) $ECHO_C" >&6
17494 else
17495   cat >conftest.$ac_ext <<_ACEOF
17496 /* confdefs.h.  */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h.  */
17501 $ac_includes_default
17502 int
17503 main ()
17504 {
17505 if ((pid_t *) 0)
17506   return 0;
17507 if (sizeof (pid_t))
17508   return 0;
17509   ;
17510   return 0;
17511 }
17512 _ACEOF
17513 rm -f conftest.$ac_objext
17514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17515   (eval $ac_compile) 2>conftest.er1
17516   ac_status=$?
17517   grep -v '^ *+' conftest.er1 >conftest.err
17518   rm -f conftest.er1
17519   cat conftest.err >&5
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); } &&
17522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524   (eval $ac_try) 2>&5
17525   ac_status=$?
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); }; } &&
17528          { ac_try='test -s conftest.$ac_objext'
17529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530   (eval $ac_try) 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); }; }; then
17534   ac_cv_type_pid_t=yes
17535 else
17536   echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17538
17539 ac_cv_type_pid_t=no
17540 fi
17541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17542 fi
17543 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17544 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17545 if test $ac_cv_type_pid_t = yes; then
17546
17547 cat >>confdefs.h <<_ACEOF
17548 #define HAVE_PID_T 1
17549 _ACEOF
17550
17551
17552 fi
17553 echo "$as_me:$LINENO: checking for size_t" >&5
17554 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17555 if test "${ac_cv_type_size_t+set}" = set; then
17556   echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558   cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h.  */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h.  */
17564 $ac_includes_default
17565 int
17566 main ()
17567 {
17568 if ((size_t *) 0)
17569   return 0;
17570 if (sizeof (size_t))
17571   return 0;
17572   ;
17573   return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest.$ac_objext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17578   (eval $ac_compile) 2>conftest.er1
17579   ac_status=$?
17580   grep -v '^ *+' conftest.er1 >conftest.err
17581   rm -f conftest.er1
17582   cat conftest.err >&5
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); } &&
17585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587   (eval $ac_try) 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); }; } &&
17591          { ac_try='test -s conftest.$ac_objext'
17592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593   (eval $ac_try) 2>&5
17594   ac_status=$?
17595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596   (exit $ac_status); }; }; then
17597   ac_cv_type_size_t=yes
17598 else
17599   echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17601
17602 ac_cv_type_size_t=no
17603 fi
17604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17605 fi
17606 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17607 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17608 if test $ac_cv_type_size_t = yes; then
17609
17610 cat >>confdefs.h <<_ACEOF
17611 #define HAVE_SIZE_T 1
17612 _ACEOF
17613
17614
17615 fi
17616 echo "$as_me:$LINENO: checking for ssize_t" >&5
17617 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17618 if test "${ac_cv_type_ssize_t+set}" = set; then
17619   echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621   cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627 $ac_includes_default
17628 int
17629 main ()
17630 {
17631 if ((ssize_t *) 0)
17632   return 0;
17633 if (sizeof (ssize_t))
17634   return 0;
17635   ;
17636   return 0;
17637 }
17638 _ACEOF
17639 rm -f conftest.$ac_objext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17641   (eval $ac_compile) 2>conftest.er1
17642   ac_status=$?
17643   grep -v '^ *+' conftest.er1 >conftest.err
17644   rm -f conftest.er1
17645   cat conftest.err >&5
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); } &&
17648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650   (eval $ac_try) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; } &&
17654          { ac_try='test -s conftest.$ac_objext'
17655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656   (eval $ac_try) 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; }; then
17660   ac_cv_type_ssize_t=yes
17661 else
17662   echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 ac_cv_type_ssize_t=no
17666 fi
17667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17668 fi
17669 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17670 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17671 if test $ac_cv_type_ssize_t = yes; then
17672
17673 cat >>confdefs.h <<_ACEOF
17674 #define HAVE_SSIZE_T 1
17675 _ACEOF
17676
17677
17678 fi
17679 echo "$as_me:$LINENO: checking for long long" >&5
17680 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17681 if test "${ac_cv_type_long_long+set}" = set; then
17682   echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684   cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h.  */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h.  */
17690 $ac_includes_default
17691 int
17692 main ()
17693 {
17694 if ((long long *) 0)
17695   return 0;
17696 if (sizeof (long long))
17697   return 0;
17698   ;
17699   return 0;
17700 }
17701 _ACEOF
17702 rm -f conftest.$ac_objext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17704   (eval $ac_compile) 2>conftest.er1
17705   ac_status=$?
17706   grep -v '^ *+' conftest.er1 >conftest.err
17707   rm -f conftest.er1
17708   cat conftest.err >&5
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); } &&
17711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713   (eval $ac_try) 2>&5
17714   ac_status=$?
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); }; } &&
17717          { ac_try='test -s conftest.$ac_objext'
17718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719   (eval $ac_try) 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }; }; then
17723   ac_cv_type_long_long=yes
17724 else
17725   echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728 ac_cv_type_long_long=no
17729 fi
17730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17731 fi
17732 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17733 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17734 if test $ac_cv_type_long_long = yes; then
17735
17736 cat >>confdefs.h <<_ACEOF
17737 #define HAVE_LONG_LONG 1
17738 _ACEOF
17739
17740
17741 fi
17742 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17743 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17744 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17745   echo $ECHO_N "(cached) $ECHO_C" >&6
17746 else
17747   cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h.  */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h.  */
17753 $ac_includes_default
17754 int
17755 main ()
17756 {
17757 if ((fsblkcnt_t *) 0)
17758   return 0;
17759 if (sizeof (fsblkcnt_t))
17760   return 0;
17761   ;
17762   return 0;
17763 }
17764 _ACEOF
17765 rm -f conftest.$ac_objext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17767   (eval $ac_compile) 2>conftest.er1
17768   ac_status=$?
17769   grep -v '^ *+' conftest.er1 >conftest.err
17770   rm -f conftest.er1
17771   cat conftest.err >&5
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); } &&
17774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776   (eval $ac_try) 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; } &&
17780          { ac_try='test -s conftest.$ac_objext'
17781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782   (eval $ac_try) 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; }; then
17786   ac_cv_type_fsblkcnt_t=yes
17787 else
17788   echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 ac_cv_type_fsblkcnt_t=no
17792 fi
17793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17794 fi
17795 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17796 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17797 if test $ac_cv_type_fsblkcnt_t = yes; then
17798
17799 cat >>confdefs.h <<_ACEOF
17800 #define HAVE_FSBLKCNT_T 1
17801 _ACEOF
17802
17803
17804 fi
17805 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17806 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17807 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17808   echo $ECHO_N "(cached) $ECHO_C" >&6
17809 else
17810   cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h.  */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h.  */
17816 $ac_includes_default
17817 int
17818 main ()
17819 {
17820 if ((fsfilcnt_t *) 0)
17821   return 0;
17822 if (sizeof (fsfilcnt_t))
17823   return 0;
17824   ;
17825   return 0;
17826 }
17827 _ACEOF
17828 rm -f conftest.$ac_objext
17829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17830   (eval $ac_compile) 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } &&
17837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839   (eval $ac_try) 2>&5
17840   ac_status=$?
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); }; } &&
17843          { ac_try='test -s conftest.$ac_objext'
17844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845   (eval $ac_try) 2>&5
17846   ac_status=$?
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); }; }; then
17849   ac_cv_type_fsfilcnt_t=yes
17850 else
17851   echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17853
17854 ac_cv_type_fsfilcnt_t=no
17855 fi
17856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17857 fi
17858 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17859 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17860 if test $ac_cv_type_fsfilcnt_t = yes; then
17861
17862 cat >>confdefs.h <<_ACEOF
17863 #define HAVE_FSFILCNT_T 1
17864 _ACEOF
17865
17866
17867 fi
17868
17869
17870 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17871 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17872 if test "${wine_cv_linux_input_h+set}" = set; then
17873   echo $ECHO_N "(cached) $ECHO_C" >&6
17874 else
17875   cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h.  */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h.  */
17881
17882             #include <linux/input.h>
17883
17884 int
17885 main ()
17886 {
17887
17888             int foo = EVIOCGBIT(EV_ABS,42);
17889             int bar = BTN_PINKIE;
17890             int fortytwo = 42;
17891
17892   ;
17893   return 0;
17894 }
17895 _ACEOF
17896 rm -f conftest.$ac_objext
17897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17898   (eval $ac_compile) 2>conftest.er1
17899   ac_status=$?
17900   grep -v '^ *+' conftest.er1 >conftest.err
17901   rm -f conftest.er1
17902   cat conftest.err >&5
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } &&
17905          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907   (eval $ac_try) 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); }; } &&
17911          { ac_try='test -s conftest.$ac_objext'
17912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913   (eval $ac_try) 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; }; then
17917   wine_cv_linux_input_h=yes
17918 else
17919   echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17921
17922 wine_cv_linux_input_h=no
17923 fi
17924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17925
17926 fi
17927 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17928 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17929     if test "$wine_cv_linux_input_h" = "yes"
17930     then
17931
17932 cat >>confdefs.h <<\_ACEOF
17933 #define HAVE_CORRECT_LINUXINPUT_H 1
17934 _ACEOF
17935
17936     fi
17937
17938
17939 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17940 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17941 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17942   echo $ECHO_N "(cached) $ECHO_C" >&6
17943 else
17944   cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h.  */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h.  */
17950
17951 #include <netdb.h>
17952
17953 int
17954 main ()
17955 {
17956
17957     char *name=NULL;
17958     struct hostent he;
17959     struct hostent *result;
17960     char *buf=NULL;
17961     int bufsize=0;
17962     int res,errnr;
17963     char *addr=NULL;
17964     int addrlen=0;
17965     int addrtype=0;
17966     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17967     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17968
17969   ;
17970   return 0;
17971 }
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17975   (eval $ac_link) 2>conftest.er1
17976   ac_status=$?
17977   grep -v '^ *+' conftest.er1 >conftest.err
17978   rm -f conftest.er1
17979   cat conftest.err >&5
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); } &&
17982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984   (eval $ac_try) 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); }; } &&
17988          { ac_try='test -s conftest$ac_exeext'
17989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990   (eval $ac_try) 2>&5
17991   ac_status=$?
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); }; }; then
17994   wine_cv_linux_gethostbyname_r_6=yes
17995 else
17996   echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999 wine_cv_linux_gethostbyname_r_6=no
18000
18001 fi
18002 rm -f conftest.err conftest.$ac_objext \
18003       conftest$ac_exeext conftest.$ac_ext
18004
18005 fi
18006 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
18007 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
18008    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18009    then
18010
18011 cat >>confdefs.h <<\_ACEOF
18012 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
18013 _ACEOF
18014
18015    fi
18016
18017 if test "$ac_cv_header_linux_joystick_h" = "yes"
18018 then
18019    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18020 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18021 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18022   echo $ECHO_N "(cached) $ECHO_C" >&6
18023 else
18024   cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h.  */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h.  */
18030
18031         #include <sys/ioctl.h>
18032         #include <linux/joystick.h>
18033
18034         struct js_event blub;
18035         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18036         #error "no 2.2 header"
18037         #endif
18038
18039 int
18040 main ()
18041 {
18042 /*empty*/
18043   ;
18044   return 0;
18045 }
18046 _ACEOF
18047 rm -f conftest.$ac_objext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049   (eval $ac_compile) 2>conftest.er1
18050   ac_status=$?
18051   grep -v '^ *+' conftest.er1 >conftest.err
18052   rm -f conftest.er1
18053   cat conftest.err >&5
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } &&
18056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058   (eval $ac_try) 2>&5
18059   ac_status=$?
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); }; } &&
18062          { ac_try='test -s conftest.$ac_objext'
18063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064   (eval $ac_try) 2>&5
18065   ac_status=$?
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); }; }; then
18068   wine_cv_linux_joystick_22_api=yes
18069 else
18070   echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18072
18073 wine_cv_linux_joystick_22_api=no
18074 fi
18075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18076
18077 fi
18078 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18079 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
18080    if test "$wine_cv_linux_joystick_22_api" = "yes"
18081    then
18082
18083 cat >>confdefs.h <<\_ACEOF
18084 #define HAVE_LINUX_22_JOYSTICK_API 1
18085 _ACEOF
18086
18087    fi
18088 fi
18089
18090
18091 if test "$ac_cv_header_sys_vfs_h" = "yes"
18092 then
18093     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
18094 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18095 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18096   echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098   cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h.  */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h.  */
18104
18105         #include <sys/types.h>
18106         #ifdef HAVE_SYS_PARAM_H
18107         # include <sys/param.h>
18108         #endif
18109         #include <sys/vfs.h>
18110
18111 int
18112 main ()
18113 {
18114
18115                 struct statfs stfs;
18116
18117                 memset(&stfs,0,sizeof(stfs));
18118
18119   ;
18120   return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext
18124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18125   (eval $ac_compile) 2>conftest.er1
18126   ac_status=$?
18127   grep -v '^ *+' conftest.er1 >conftest.err
18128   rm -f conftest.er1
18129   cat conftest.err >&5
18130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); } &&
18132          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134   (eval $ac_try) 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; } &&
18138          { ac_try='test -s conftest.$ac_objext'
18139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140   (eval $ac_try) 2>&5
18141   ac_status=$?
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); }; }; then
18144   wine_cv_sys_vfs_has_statfs=yes
18145 else
18146   echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18148
18149 wine_cv_sys_vfs_has_statfs=no
18150
18151 fi
18152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18153
18154 fi
18155 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18156 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18157     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18158     then
18159
18160 cat >>confdefs.h <<\_ACEOF
18161 #define STATFS_DEFINED_BY_SYS_VFS 1
18162 _ACEOF
18163
18164     fi
18165 fi
18166
18167 if test "$ac_cv_header_sys_statfs_h" = "yes"
18168 then
18169     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18170 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18171 if test "${wine_cv_sys_statfs_has_statfs+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
18181         #include <sys/types.h>
18182         #ifdef HAVE_SYS_PARAM_H
18183         # include <sys/param.h>
18184         #endif
18185         #include <sys/statfs.h>
18186
18187 int
18188 main ()
18189 {
18190
18191                 struct statfs stfs;
18192
18193   ;
18194   return 0;
18195 }
18196 _ACEOF
18197 rm -f conftest.$ac_objext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18199   (eval $ac_compile) 2>conftest.er1
18200   ac_status=$?
18201   grep -v '^ *+' conftest.er1 >conftest.err
18202   rm -f conftest.er1
18203   cat conftest.err >&5
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); } &&
18206          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208   (eval $ac_try) 2>&5
18209   ac_status=$?
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); }; } &&
18212          { ac_try='test -s conftest.$ac_objext'
18213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214   (eval $ac_try) 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; }; then
18218   wine_cv_sys_statfs_has_statfs=yes
18219 else
18220   echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223 wine_cv_sys_statfs_has_statfs=no
18224
18225 fi
18226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18227
18228 fi
18229 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18230 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18231     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18232     then
18233
18234 cat >>confdefs.h <<\_ACEOF
18235 #define STATFS_DEFINED_BY_SYS_STATFS 1
18236 _ACEOF
18237
18238     fi
18239 fi
18240
18241 if test "$ac_cv_header_sys_mount_h" = "yes"
18242 then
18243     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18244 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18245 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18246   echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248   cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h.  */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h.  */
18254
18255         #include <sys/types.h>
18256         #ifdef HAVE_SYS_PARAM_H
18257         # include <sys/param.h>
18258         #endif
18259         #include <sys/mount.h>
18260
18261 int
18262 main ()
18263 {
18264
18265                 struct statfs stfs;
18266
18267   ;
18268   return 0;
18269 }
18270 _ACEOF
18271 rm -f conftest.$ac_objext
18272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18273   (eval $ac_compile) 2>conftest.er1
18274   ac_status=$?
18275   grep -v '^ *+' conftest.er1 >conftest.err
18276   rm -f conftest.er1
18277   cat conftest.err >&5
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); } &&
18280          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282   (eval $ac_try) 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); }; } &&
18286          { ac_try='test -s conftest.$ac_objext'
18287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288   (eval $ac_try) 2>&5
18289   ac_status=$?
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); }; }; then
18292   wine_cv_sys_mount_has_statfs=yes
18293 else
18294   echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18296
18297 wine_cv_sys_mount_has_statfs=no
18298
18299 fi
18300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18301
18302 fi
18303 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18304 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18305     if test "$wine_cv_sys_mount_has_statfs" = "yes"
18306     then
18307
18308 cat >>confdefs.h <<\_ACEOF
18309 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18310 _ACEOF
18311
18312     fi
18313 fi
18314
18315
18316 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18317 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18318 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18319   echo $ECHO_N "(cached) $ECHO_C" >&6
18320 else
18321   cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h.  */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h.  */
18327 #include <sys/types.h>
18328 #ifdef HAVE_SYS_PARAM_H
18329 # include <sys/param.h>
18330 #endif
18331 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18332 # include <sys/mount.h>
18333 #else
18334 # ifdef STATFS_DEFINED_BY_SYS_VFS
18335 #  include <sys/vfs.h>
18336 # else
18337 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18338 #   include <sys/statfs.h>
18339 #  endif
18340 # endif
18341 #endif
18342
18343 int
18344 main ()
18345 {
18346 static struct statfs ac_aggr;
18347 if (ac_aggr.f_bfree)
18348 return 0;
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 rm -f conftest.$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355   (eval $ac_compile) 2>conftest.er1
18356   ac_status=$?
18357   grep -v '^ *+' conftest.er1 >conftest.err
18358   rm -f conftest.er1
18359   cat conftest.err >&5
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); } &&
18362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364   (eval $ac_try) 2>&5
18365   ac_status=$?
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); }; } &&
18368          { ac_try='test -s conftest.$ac_objext'
18369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370   (eval $ac_try) 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); }; }; then
18374   ac_cv_member_struct_statfs_f_bfree=yes
18375 else
18376   echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18378
18379 cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h.  */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h.  */
18385 #include <sys/types.h>
18386 #ifdef HAVE_SYS_PARAM_H
18387 # include <sys/param.h>
18388 #endif
18389 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18390 # include <sys/mount.h>
18391 #else
18392 # ifdef STATFS_DEFINED_BY_SYS_VFS
18393 #  include <sys/vfs.h>
18394 # else
18395 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18396 #   include <sys/statfs.h>
18397 #  endif
18398 # endif
18399 #endif
18400
18401 int
18402 main ()
18403 {
18404 static struct statfs ac_aggr;
18405 if (sizeof ac_aggr.f_bfree)
18406 return 0;
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 rm -f conftest.$ac_objext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18413   (eval $ac_compile) 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } &&
18420          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422   (eval $ac_try) 2>&5
18423   ac_status=$?
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); }; } &&
18426          { ac_try='test -s conftest.$ac_objext'
18427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428   (eval $ac_try) 2>&5
18429   ac_status=$?
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); }; }; then
18432   ac_cv_member_struct_statfs_f_bfree=yes
18433 else
18434   echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18436
18437 ac_cv_member_struct_statfs_f_bfree=no
18438 fi
18439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18440 fi
18441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18442 fi
18443 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18444 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18445 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18446
18447 cat >>confdefs.h <<_ACEOF
18448 #define HAVE_STRUCT_STATFS_F_BFREE 1
18449 _ACEOF
18450
18451
18452 fi
18453 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18454 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18455 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18456   echo $ECHO_N "(cached) $ECHO_C" >&6
18457 else
18458   cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h.  */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h.  */
18464 #include <sys/types.h>
18465 #ifdef HAVE_SYS_PARAM_H
18466 # include <sys/param.h>
18467 #endif
18468 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18469 # include <sys/mount.h>
18470 #else
18471 # ifdef STATFS_DEFINED_BY_SYS_VFS
18472 #  include <sys/vfs.h>
18473 # else
18474 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18475 #   include <sys/statfs.h>
18476 #  endif
18477 # endif
18478 #endif
18479
18480 int
18481 main ()
18482 {
18483 static struct statfs ac_aggr;
18484 if (ac_aggr.f_bavail)
18485 return 0;
18486   ;
18487   return 0;
18488 }
18489 _ACEOF
18490 rm -f conftest.$ac_objext
18491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18492   (eval $ac_compile) 2>conftest.er1
18493   ac_status=$?
18494   grep -v '^ *+' conftest.er1 >conftest.err
18495   rm -f conftest.er1
18496   cat conftest.err >&5
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); } &&
18499          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501   (eval $ac_try) 2>&5
18502   ac_status=$?
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); }; } &&
18505          { ac_try='test -s conftest.$ac_objext'
18506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507   (eval $ac_try) 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; }; then
18511   ac_cv_member_struct_statfs_f_bavail=yes
18512 else
18513   echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18515
18516 cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h.  */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h.  */
18522 #include <sys/types.h>
18523 #ifdef HAVE_SYS_PARAM_H
18524 # include <sys/param.h>
18525 #endif
18526 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18527 # include <sys/mount.h>
18528 #else
18529 # ifdef STATFS_DEFINED_BY_SYS_VFS
18530 #  include <sys/vfs.h>
18531 # else
18532 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18533 #   include <sys/statfs.h>
18534 #  endif
18535 # endif
18536 #endif
18537
18538 int
18539 main ()
18540 {
18541 static struct statfs ac_aggr;
18542 if (sizeof ac_aggr.f_bavail)
18543 return 0;
18544   ;
18545   return 0;
18546 }
18547 _ACEOF
18548 rm -f conftest.$ac_objext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18550   (eval $ac_compile) 2>conftest.er1
18551   ac_status=$?
18552   grep -v '^ *+' conftest.er1 >conftest.err
18553   rm -f conftest.er1
18554   cat conftest.err >&5
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); } &&
18557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559   (eval $ac_try) 2>&5
18560   ac_status=$?
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); }; } &&
18563          { ac_try='test -s conftest.$ac_objext'
18564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565   (eval $ac_try) 2>&5
18566   ac_status=$?
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); }; }; then
18569   ac_cv_member_struct_statfs_f_bavail=yes
18570 else
18571   echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18573
18574 ac_cv_member_struct_statfs_f_bavail=no
18575 fi
18576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18577 fi
18578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18579 fi
18580 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18581 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18582 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18583
18584 cat >>confdefs.h <<_ACEOF
18585 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18586 _ACEOF
18587
18588
18589 fi
18590 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18591 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18592 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18593   echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595   cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h.  */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h.  */
18601 #include <sys/types.h>
18602 #ifdef HAVE_SYS_PARAM_H
18603 # include <sys/param.h>
18604 #endif
18605 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18606 # include <sys/mount.h>
18607 #else
18608 # ifdef STATFS_DEFINED_BY_SYS_VFS
18609 #  include <sys/vfs.h>
18610 # else
18611 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18612 #   include <sys/statfs.h>
18613 #  endif
18614 # endif
18615 #endif
18616
18617 int
18618 main ()
18619 {
18620 static struct statfs ac_aggr;
18621 if (ac_aggr.f_frsize)
18622 return 0;
18623   ;
18624   return 0;
18625 }
18626 _ACEOF
18627 rm -f conftest.$ac_objext
18628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18629   (eval $ac_compile) 2>conftest.er1
18630   ac_status=$?
18631   grep -v '^ *+' conftest.er1 >conftest.err
18632   rm -f conftest.er1
18633   cat conftest.err >&5
18634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635   (exit $ac_status); } &&
18636          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638   (eval $ac_try) 2>&5
18639   ac_status=$?
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); }; } &&
18642          { ac_try='test -s conftest.$ac_objext'
18643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644   (eval $ac_try) 2>&5
18645   ac_status=$?
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); }; }; then
18648   ac_cv_member_struct_statfs_f_frsize=yes
18649 else
18650   echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18652
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h.  */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h.  */
18659 #include <sys/types.h>
18660 #ifdef HAVE_SYS_PARAM_H
18661 # include <sys/param.h>
18662 #endif
18663 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18664 # include <sys/mount.h>
18665 #else
18666 # ifdef STATFS_DEFINED_BY_SYS_VFS
18667 #  include <sys/vfs.h>
18668 # else
18669 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18670 #   include <sys/statfs.h>
18671 #  endif
18672 # endif
18673 #endif
18674
18675 int
18676 main ()
18677 {
18678 static struct statfs ac_aggr;
18679 if (sizeof ac_aggr.f_frsize)
18680 return 0;
18681   ;
18682   return 0;
18683 }
18684 _ACEOF
18685 rm -f conftest.$ac_objext
18686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18687   (eval $ac_compile) 2>conftest.er1
18688   ac_status=$?
18689   grep -v '^ *+' conftest.er1 >conftest.err
18690   rm -f conftest.er1
18691   cat conftest.err >&5
18692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); } &&
18694          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696   (eval $ac_try) 2>&5
18697   ac_status=$?
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); }; } &&
18700          { ac_try='test -s conftest.$ac_objext'
18701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702   (eval $ac_try) 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; }; then
18706   ac_cv_member_struct_statfs_f_frsize=yes
18707 else
18708   echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711 ac_cv_member_struct_statfs_f_frsize=no
18712 fi
18713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18714 fi
18715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18716 fi
18717 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18718 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18719 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18720
18721 cat >>confdefs.h <<_ACEOF
18722 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18723 _ACEOF
18724
18725
18726 fi
18727 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18728 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18729 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18730   echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732   cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h.  */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h.  */
18738 #include <sys/types.h>
18739 #ifdef HAVE_SYS_PARAM_H
18740 # include <sys/param.h>
18741 #endif
18742 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18743 # include <sys/mount.h>
18744 #else
18745 # ifdef STATFS_DEFINED_BY_SYS_VFS
18746 #  include <sys/vfs.h>
18747 # else
18748 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18749 #   include <sys/statfs.h>
18750 #  endif
18751 # endif
18752 #endif
18753
18754 int
18755 main ()
18756 {
18757 static struct statfs ac_aggr;
18758 if (ac_aggr.f_ffree)
18759 return 0;
18760   ;
18761   return 0;
18762 }
18763 _ACEOF
18764 rm -f conftest.$ac_objext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18766   (eval $ac_compile) 2>conftest.er1
18767   ac_status=$?
18768   grep -v '^ *+' conftest.er1 >conftest.err
18769   rm -f conftest.er1
18770   cat conftest.err >&5
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); } &&
18773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775   (eval $ac_try) 2>&5
18776   ac_status=$?
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); }; } &&
18779          { ac_try='test -s conftest.$ac_objext'
18780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781   (eval $ac_try) 2>&5
18782   ac_status=$?
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); }; }; then
18785   ac_cv_member_struct_statfs_f_ffree=yes
18786 else
18787   echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790 cat >conftest.$ac_ext <<_ACEOF
18791 /* confdefs.h.  */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h.  */
18796 #include <sys/types.h>
18797 #ifdef HAVE_SYS_PARAM_H
18798 # include <sys/param.h>
18799 #endif
18800 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18801 # include <sys/mount.h>
18802 #else
18803 # ifdef STATFS_DEFINED_BY_SYS_VFS
18804 #  include <sys/vfs.h>
18805 # else
18806 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18807 #   include <sys/statfs.h>
18808 #  endif
18809 # endif
18810 #endif
18811
18812 int
18813 main ()
18814 {
18815 static struct statfs ac_aggr;
18816 if (sizeof ac_aggr.f_ffree)
18817 return 0;
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 rm -f conftest.$ac_objext
18823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18824   (eval $ac_compile) 2>conftest.er1
18825   ac_status=$?
18826   grep -v '^ *+' conftest.er1 >conftest.err
18827   rm -f conftest.er1
18828   cat conftest.err >&5
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); } &&
18831          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833   (eval $ac_try) 2>&5
18834   ac_status=$?
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); }; } &&
18837          { ac_try='test -s conftest.$ac_objext'
18838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18839   (eval $ac_try) 2>&5
18840   ac_status=$?
18841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842   (exit $ac_status); }; }; then
18843   ac_cv_member_struct_statfs_f_ffree=yes
18844 else
18845   echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18847
18848 ac_cv_member_struct_statfs_f_ffree=no
18849 fi
18850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18851 fi
18852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18853 fi
18854 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18855 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18856 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18857
18858 cat >>confdefs.h <<_ACEOF
18859 #define HAVE_STRUCT_STATFS_F_FFREE 1
18860 _ACEOF
18861
18862
18863 fi
18864 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18865 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18866 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18867   echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869   cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875 #include <sys/types.h>
18876 #ifdef HAVE_SYS_PARAM_H
18877 # include <sys/param.h>
18878 #endif
18879 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18880 # include <sys/mount.h>
18881 #else
18882 # ifdef STATFS_DEFINED_BY_SYS_VFS
18883 #  include <sys/vfs.h>
18884 # else
18885 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18886 #   include <sys/statfs.h>
18887 #  endif
18888 # endif
18889 #endif
18890
18891 int
18892 main ()
18893 {
18894 static struct statfs ac_aggr;
18895 if (ac_aggr.f_favail)
18896 return 0;
18897   ;
18898   return 0;
18899 }
18900 _ACEOF
18901 rm -f conftest.$ac_objext
18902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18903   (eval $ac_compile) 2>conftest.er1
18904   ac_status=$?
18905   grep -v '^ *+' conftest.er1 >conftest.err
18906   rm -f conftest.er1
18907   cat conftest.err >&5
18908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909   (exit $ac_status); } &&
18910          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912   (eval $ac_try) 2>&5
18913   ac_status=$?
18914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915   (exit $ac_status); }; } &&
18916          { ac_try='test -s conftest.$ac_objext'
18917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918   (eval $ac_try) 2>&5
18919   ac_status=$?
18920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921   (exit $ac_status); }; }; then
18922   ac_cv_member_struct_statfs_f_favail=yes
18923 else
18924   echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18926
18927 cat >conftest.$ac_ext <<_ACEOF
18928 /* confdefs.h.  */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h.  */
18933 #include <sys/types.h>
18934 #ifdef HAVE_SYS_PARAM_H
18935 # include <sys/param.h>
18936 #endif
18937 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18938 # include <sys/mount.h>
18939 #else
18940 # ifdef STATFS_DEFINED_BY_SYS_VFS
18941 #  include <sys/vfs.h>
18942 # else
18943 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18944 #   include <sys/statfs.h>
18945 #  endif
18946 # endif
18947 #endif
18948
18949 int
18950 main ()
18951 {
18952 static struct statfs ac_aggr;
18953 if (sizeof ac_aggr.f_favail)
18954 return 0;
18955   ;
18956   return 0;
18957 }
18958 _ACEOF
18959 rm -f conftest.$ac_objext
18960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18961   (eval $ac_compile) 2>conftest.er1
18962   ac_status=$?
18963   grep -v '^ *+' conftest.er1 >conftest.err
18964   rm -f conftest.er1
18965   cat conftest.err >&5
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); } &&
18968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970   (eval $ac_try) 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; } &&
18974          { ac_try='test -s conftest.$ac_objext'
18975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976   (eval $ac_try) 2>&5
18977   ac_status=$?
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); }; }; then
18980   ac_cv_member_struct_statfs_f_favail=yes
18981 else
18982   echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18984
18985 ac_cv_member_struct_statfs_f_favail=no
18986 fi
18987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18988 fi
18989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18990 fi
18991 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18992 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18993 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18994
18995 cat >>confdefs.h <<_ACEOF
18996 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18997 _ACEOF
18998
18999
19000 fi
19001 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19002 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
19003 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19004   echo $ECHO_N "(cached) $ECHO_C" >&6
19005 else
19006   cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012 #include <sys/types.h>
19013 #ifdef HAVE_SYS_PARAM_H
19014 # include <sys/param.h>
19015 #endif
19016 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19017 # include <sys/mount.h>
19018 #else
19019 # ifdef STATFS_DEFINED_BY_SYS_VFS
19020 #  include <sys/vfs.h>
19021 # else
19022 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
19023 #   include <sys/statfs.h>
19024 #  endif
19025 # endif
19026 #endif
19027
19028 int
19029 main ()
19030 {
19031 static struct statfs ac_aggr;
19032 if (ac_aggr.f_namelen)
19033 return 0;
19034   ;
19035   return 0;
19036 }
19037 _ACEOF
19038 rm -f conftest.$ac_objext
19039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19040   (eval $ac_compile) 2>conftest.er1
19041   ac_status=$?
19042   grep -v '^ *+' conftest.er1 >conftest.err
19043   rm -f conftest.er1
19044   cat conftest.err >&5
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); } &&
19047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049   (eval $ac_try) 2>&5
19050   ac_status=$?
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); }; } &&
19053          { ac_try='test -s conftest.$ac_objext'
19054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055   (eval $ac_try) 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); }; }; then
19059   ac_cv_member_struct_statfs_f_namelen=yes
19060 else
19061   echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19063
19064 cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070 #include <sys/types.h>
19071 #ifdef HAVE_SYS_PARAM_H
19072 # include <sys/param.h>
19073 #endif
19074 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19075 # include <sys/mount.h>
19076 #else
19077 # ifdef STATFS_DEFINED_BY_SYS_VFS
19078 #  include <sys/vfs.h>
19079 # else
19080 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
19081 #   include <sys/statfs.h>
19082 #  endif
19083 # endif
19084 #endif
19085
19086 int
19087 main ()
19088 {
19089 static struct statfs ac_aggr;
19090 if (sizeof ac_aggr.f_namelen)
19091 return 0;
19092   ;
19093   return 0;
19094 }
19095 _ACEOF
19096 rm -f conftest.$ac_objext
19097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19098   (eval $ac_compile) 2>conftest.er1
19099   ac_status=$?
19100   grep -v '^ *+' conftest.er1 >conftest.err
19101   rm -f conftest.er1
19102   cat conftest.err >&5
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); } &&
19105          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107   (eval $ac_try) 2>&5
19108   ac_status=$?
19109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110   (exit $ac_status); }; } &&
19111          { ac_try='test -s conftest.$ac_objext'
19112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113   (eval $ac_try) 2>&5
19114   ac_status=$?
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); }; }; then
19117   ac_cv_member_struct_statfs_f_namelen=yes
19118 else
19119   echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19121
19122 ac_cv_member_struct_statfs_f_namelen=no
19123 fi
19124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19125 fi
19126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19127 fi
19128 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19129 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19130 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19131
19132 cat >>confdefs.h <<_ACEOF
19133 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19134 _ACEOF
19135
19136
19137 fi
19138
19139
19140 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19141 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19142 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19143   echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145   cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h.  */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h.  */
19151 #ifdef HAVE_SYS_STATVFS_H
19152 #include <sys/statvfs.h>
19153 #endif
19154
19155 int
19156 main ()
19157 {
19158 static struct statvfs ac_aggr;
19159 if (ac_aggr.f_blocks)
19160 return 0;
19161   ;
19162   return 0;
19163 }
19164 _ACEOF
19165 rm -f conftest.$ac_objext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19167   (eval $ac_compile) 2>conftest.er1
19168   ac_status=$?
19169   grep -v '^ *+' conftest.er1 >conftest.err
19170   rm -f conftest.er1
19171   cat conftest.err >&5
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); } &&
19174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176   (eval $ac_try) 2>&5
19177   ac_status=$?
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); }; } &&
19180          { ac_try='test -s conftest.$ac_objext'
19181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182   (eval $ac_try) 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); }; }; then
19186   ac_cv_member_struct_statvfs_f_blocks=yes
19187 else
19188   echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19190
19191 cat >conftest.$ac_ext <<_ACEOF
19192 /* confdefs.h.  */
19193 _ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h.  */
19197 #ifdef HAVE_SYS_STATVFS_H
19198 #include <sys/statvfs.h>
19199 #endif
19200
19201 int
19202 main ()
19203 {
19204 static struct statvfs ac_aggr;
19205 if (sizeof ac_aggr.f_blocks)
19206 return 0;
19207   ;
19208   return 0;
19209 }
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19213   (eval $ac_compile) 2>conftest.er1
19214   ac_status=$?
19215   grep -v '^ *+' conftest.er1 >conftest.err
19216   rm -f conftest.er1
19217   cat conftest.err >&5
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); } &&
19220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222   (eval $ac_try) 2>&5
19223   ac_status=$?
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); }; } &&
19226          { ac_try='test -s conftest.$ac_objext'
19227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228   (eval $ac_try) 2>&5
19229   ac_status=$?
19230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231   (exit $ac_status); }; }; then
19232   ac_cv_member_struct_statvfs_f_blocks=yes
19233 else
19234   echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19236
19237 ac_cv_member_struct_statvfs_f_blocks=no
19238 fi
19239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19240 fi
19241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19242 fi
19243 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19244 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19245 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19246
19247 cat >>confdefs.h <<_ACEOF
19248 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19249 _ACEOF
19250
19251
19252 fi
19253
19254
19255 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19256 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19257 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19258   echo $ECHO_N "(cached) $ECHO_C" >&6
19259 else
19260   cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266 #include <sys/types.h>
19267 #ifdef HAVE_SYS_SOCKET_H
19268 # include <sys/socket.h>
19269 #endif
19270 #ifdef HAVE_SYS_UN_H
19271 # include <sys/un.h>
19272 #endif
19273
19274 int
19275 main ()
19276 {
19277 static struct msghdr ac_aggr;
19278 if (ac_aggr.msg_accrights)
19279 return 0;
19280   ;
19281   return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19286   (eval $ac_compile) 2>conftest.er1
19287   ac_status=$?
19288   grep -v '^ *+' conftest.er1 >conftest.err
19289   rm -f conftest.er1
19290   cat conftest.err >&5
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); } &&
19293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295   (eval $ac_try) 2>&5
19296   ac_status=$?
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); }; } &&
19299          { ac_try='test -s conftest.$ac_objext'
19300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301   (eval $ac_try) 2>&5
19302   ac_status=$?
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); }; }; then
19305   ac_cv_member_struct_msghdr_msg_accrights=yes
19306 else
19307   echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19309
19310 cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h.  */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h.  */
19316 #include <sys/types.h>
19317 #ifdef HAVE_SYS_SOCKET_H
19318 # include <sys/socket.h>
19319 #endif
19320 #ifdef HAVE_SYS_UN_H
19321 # include <sys/un.h>
19322 #endif
19323
19324 int
19325 main ()
19326 {
19327 static struct msghdr ac_aggr;
19328 if (sizeof ac_aggr.msg_accrights)
19329 return 0;
19330   ;
19331   return 0;
19332 }
19333 _ACEOF
19334 rm -f conftest.$ac_objext
19335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19336   (eval $ac_compile) 2>conftest.er1
19337   ac_status=$?
19338   grep -v '^ *+' conftest.er1 >conftest.err
19339   rm -f conftest.er1
19340   cat conftest.err >&5
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); } &&
19343          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345   (eval $ac_try) 2>&5
19346   ac_status=$?
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); }; } &&
19349          { ac_try='test -s conftest.$ac_objext'
19350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351   (eval $ac_try) 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; }; then
19355   ac_cv_member_struct_msghdr_msg_accrights=yes
19356 else
19357   echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 ac_cv_member_struct_msghdr_msg_accrights=no
19361 fi
19362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19363 fi
19364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19365 fi
19366 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19367 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19368 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19369
19370 cat >>confdefs.h <<_ACEOF
19371 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19372 _ACEOF
19373
19374
19375 fi
19376 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19377 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19378 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19379   echo $ECHO_N "(cached) $ECHO_C" >&6
19380 else
19381   cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h.  */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h.  */
19387 #include <sys/types.h>
19388 #ifdef HAVE_SYS_SOCKET_H
19389 # include <sys/socket.h>
19390 #endif
19391 #ifdef HAVE_SYS_UN_H
19392 # include <sys/un.h>
19393 #endif
19394
19395 int
19396 main ()
19397 {
19398 static struct sockaddr ac_aggr;
19399 if (ac_aggr.sa_len)
19400 return 0;
19401   ;
19402   return 0;
19403 }
19404 _ACEOF
19405 rm -f conftest.$ac_objext
19406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19407   (eval $ac_compile) 2>conftest.er1
19408   ac_status=$?
19409   grep -v '^ *+' conftest.er1 >conftest.err
19410   rm -f conftest.er1
19411   cat conftest.err >&5
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); } &&
19414          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416   (eval $ac_try) 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); }; } &&
19420          { ac_try='test -s conftest.$ac_objext'
19421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422   (eval $ac_try) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; }; then
19426   ac_cv_member_struct_sockaddr_sa_len=yes
19427 else
19428   echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19430
19431 cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h.  */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h.  */
19437 #include <sys/types.h>
19438 #ifdef HAVE_SYS_SOCKET_H
19439 # include <sys/socket.h>
19440 #endif
19441 #ifdef HAVE_SYS_UN_H
19442 # include <sys/un.h>
19443 #endif
19444
19445 int
19446 main ()
19447 {
19448 static struct sockaddr ac_aggr;
19449 if (sizeof ac_aggr.sa_len)
19450 return 0;
19451   ;
19452   return 0;
19453 }
19454 _ACEOF
19455 rm -f conftest.$ac_objext
19456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457   (eval $ac_compile) 2>conftest.er1
19458   ac_status=$?
19459   grep -v '^ *+' conftest.er1 >conftest.err
19460   rm -f conftest.er1
19461   cat conftest.err >&5
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); } &&
19464          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466   (eval $ac_try) 2>&5
19467   ac_status=$?
19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); }; } &&
19470          { ac_try='test -s conftest.$ac_objext'
19471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472   (eval $ac_try) 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; }; then
19476   ac_cv_member_struct_sockaddr_sa_len=yes
19477 else
19478   echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19480
19481 ac_cv_member_struct_sockaddr_sa_len=no
19482 fi
19483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19484 fi
19485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19486 fi
19487 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19488 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19489 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19490
19491 cat >>confdefs.h <<_ACEOF
19492 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19493 _ACEOF
19494
19495
19496 fi
19497 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19498 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19499 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19500   echo $ECHO_N "(cached) $ECHO_C" >&6
19501 else
19502   cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h.  */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h.  */
19508 #include <sys/types.h>
19509 #ifdef HAVE_SYS_SOCKET_H
19510 # include <sys/socket.h>
19511 #endif
19512 #ifdef HAVE_SYS_UN_H
19513 # include <sys/un.h>
19514 #endif
19515
19516 int
19517 main ()
19518 {
19519 static struct sockaddr_un ac_aggr;
19520 if (ac_aggr.sun_len)
19521 return 0;
19522   ;
19523   return 0;
19524 }
19525 _ACEOF
19526 rm -f conftest.$ac_objext
19527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19528   (eval $ac_compile) 2>conftest.er1
19529   ac_status=$?
19530   grep -v '^ *+' conftest.er1 >conftest.err
19531   rm -f conftest.er1
19532   cat conftest.err >&5
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); } &&
19535          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537   (eval $ac_try) 2>&5
19538   ac_status=$?
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); }; } &&
19541          { ac_try='test -s conftest.$ac_objext'
19542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543   (eval $ac_try) 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); }; }; then
19547   ac_cv_member_struct_sockaddr_un_sun_len=yes
19548 else
19549   echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19551
19552 cat >conftest.$ac_ext <<_ACEOF
19553 /* confdefs.h.  */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h.  */
19558 #include <sys/types.h>
19559 #ifdef HAVE_SYS_SOCKET_H
19560 # include <sys/socket.h>
19561 #endif
19562 #ifdef HAVE_SYS_UN_H
19563 # include <sys/un.h>
19564 #endif
19565
19566 int
19567 main ()
19568 {
19569 static struct sockaddr_un ac_aggr;
19570 if (sizeof ac_aggr.sun_len)
19571 return 0;
19572   ;
19573   return 0;
19574 }
19575 _ACEOF
19576 rm -f conftest.$ac_objext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19578   (eval $ac_compile) 2>conftest.er1
19579   ac_status=$?
19580   grep -v '^ *+' conftest.er1 >conftest.err
19581   rm -f conftest.er1
19582   cat conftest.err >&5
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); } &&
19585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587   (eval $ac_try) 2>&5
19588   ac_status=$?
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }; } &&
19591          { ac_try='test -s conftest.$ac_objext'
19592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593   (eval $ac_try) 2>&5
19594   ac_status=$?
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); }; }; then
19597   ac_cv_member_struct_sockaddr_un_sun_len=yes
19598 else
19599   echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602 ac_cv_member_struct_sockaddr_un_sun_len=no
19603 fi
19604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19605 fi
19606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19607 fi
19608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19609 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19610 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19611
19612 cat >>confdefs.h <<_ACEOF
19613 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19614 _ACEOF
19615
19616
19617 fi
19618
19619
19620 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19621 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19622 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19623   echo $ECHO_N "(cached) $ECHO_C" >&6
19624 else
19625   cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 #include <signal.h>
19632
19633 int
19634 main ()
19635 {
19636 static siginfo_t ac_aggr;
19637 if (ac_aggr.si_fd)
19638 return 0;
19639   ;
19640   return 0;
19641 }
19642 _ACEOF
19643 rm -f conftest.$ac_objext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645   (eval $ac_compile) 2>conftest.er1
19646   ac_status=$?
19647   grep -v '^ *+' conftest.er1 >conftest.err
19648   rm -f conftest.er1
19649   cat conftest.err >&5
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); } &&
19652          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654   (eval $ac_try) 2>&5
19655   ac_status=$?
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }; } &&
19658          { ac_try='test -s conftest.$ac_objext'
19659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660   (eval $ac_try) 2>&5
19661   ac_status=$?
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); }; }; then
19664   ac_cv_member_siginfo_t_si_fd=yes
19665 else
19666   echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669 cat >conftest.$ac_ext <<_ACEOF
19670 /* confdefs.h.  */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h.  */
19675 #include <signal.h>
19676
19677 int
19678 main ()
19679 {
19680 static siginfo_t ac_aggr;
19681 if (sizeof ac_aggr.si_fd)
19682 return 0;
19683   ;
19684   return 0;
19685 }
19686 _ACEOF
19687 rm -f conftest.$ac_objext
19688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19689   (eval $ac_compile) 2>conftest.er1
19690   ac_status=$?
19691   grep -v '^ *+' conftest.er1 >conftest.err
19692   rm -f conftest.er1
19693   cat conftest.err >&5
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); } &&
19696          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698   (eval $ac_try) 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; } &&
19702          { ac_try='test -s conftest.$ac_objext'
19703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704   (eval $ac_try) 2>&5
19705   ac_status=$?
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); }; }; then
19708   ac_cv_member_siginfo_t_si_fd=yes
19709 else
19710   echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19712
19713 ac_cv_member_siginfo_t_si_fd=no
19714 fi
19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716 fi
19717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19718 fi
19719 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19720 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19721 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19722
19723 cat >>confdefs.h <<_ACEOF
19724 #define HAVE_SIGINFO_T_SI_FD 1
19725 _ACEOF
19726
19727
19728 fi
19729
19730
19731 echo "$as_me:$LINENO: checking for struct option.name" >&5
19732 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19733 if test "${ac_cv_member_struct_option_name+set}" = set; then
19734   echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736   cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h.  */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h.  */
19742 #ifdef HAVE_GETOPT_H
19743 #include <getopt.h>
19744 #endif
19745
19746 int
19747 main ()
19748 {
19749 static struct option ac_aggr;
19750 if (ac_aggr.name)
19751 return 0;
19752   ;
19753   return 0;
19754 }
19755 _ACEOF
19756 rm -f conftest.$ac_objext
19757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19758   (eval $ac_compile) 2>conftest.er1
19759   ac_status=$?
19760   grep -v '^ *+' conftest.er1 >conftest.err
19761   rm -f conftest.er1
19762   cat conftest.err >&5
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); } &&
19765          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767   (eval $ac_try) 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; } &&
19771          { ac_try='test -s conftest.$ac_objext'
19772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773   (eval $ac_try) 2>&5
19774   ac_status=$?
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); }; }; then
19777   ac_cv_member_struct_option_name=yes
19778 else
19779   echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19781
19782 cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h.  */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h.  */
19788 #ifdef HAVE_GETOPT_H
19789 #include <getopt.h>
19790 #endif
19791
19792 int
19793 main ()
19794 {
19795 static struct option ac_aggr;
19796 if (sizeof ac_aggr.name)
19797 return 0;
19798   ;
19799   return 0;
19800 }
19801 _ACEOF
19802 rm -f conftest.$ac_objext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19804   (eval $ac_compile) 2>conftest.er1
19805   ac_status=$?
19806   grep -v '^ *+' conftest.er1 >conftest.err
19807   rm -f conftest.er1
19808   cat conftest.err >&5
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); } &&
19811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813   (eval $ac_try) 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); }; } &&
19817          { ac_try='test -s conftest.$ac_objext'
19818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819   (eval $ac_try) 2>&5
19820   ac_status=$?
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); }; }; then
19823   ac_cv_member_struct_option_name=yes
19824 else
19825   echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828 ac_cv_member_struct_option_name=no
19829 fi
19830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19831 fi
19832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19833 fi
19834 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19835 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19836 if test $ac_cv_member_struct_option_name = yes; then
19837
19838 cat >>confdefs.h <<_ACEOF
19839 #define HAVE_STRUCT_OPTION_NAME 1
19840 _ACEOF
19841
19842
19843 fi
19844
19845
19846 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19847 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19848 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851   cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h.  */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h.  */
19857 $ac_includes_default
19858 int
19859 main ()
19860 {
19861 static struct stat ac_aggr;
19862 if (ac_aggr.st_blocks)
19863 return 0;
19864   ;
19865   return 0;
19866 }
19867 _ACEOF
19868 rm -f conftest.$ac_objext
19869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19870   (eval $ac_compile) 2>conftest.er1
19871   ac_status=$?
19872   grep -v '^ *+' conftest.er1 >conftest.err
19873   rm -f conftest.er1
19874   cat conftest.err >&5
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); } &&
19877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879   (eval $ac_try) 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); }; } &&
19883          { ac_try='test -s conftest.$ac_objext'
19884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885   (eval $ac_try) 2>&5
19886   ac_status=$?
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); }; }; then
19889   ac_cv_member_struct_stat_st_blocks=yes
19890 else
19891   echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894 cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h.  */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h.  */
19900 $ac_includes_default
19901 int
19902 main ()
19903 {
19904 static struct stat ac_aggr;
19905 if (sizeof ac_aggr.st_blocks)
19906 return 0;
19907   ;
19908   return 0;
19909 }
19910 _ACEOF
19911 rm -f conftest.$ac_objext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19913   (eval $ac_compile) 2>conftest.er1
19914   ac_status=$?
19915   grep -v '^ *+' conftest.er1 >conftest.err
19916   rm -f conftest.er1
19917   cat conftest.err >&5
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); } &&
19920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922   (eval $ac_try) 2>&5
19923   ac_status=$?
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); }; } &&
19926          { ac_try='test -s conftest.$ac_objext'
19927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928   (eval $ac_try) 2>&5
19929   ac_status=$?
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); }; }; then
19932   ac_cv_member_struct_stat_st_blocks=yes
19933 else
19934   echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19936
19937 ac_cv_member_struct_stat_st_blocks=no
19938 fi
19939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19940 fi
19941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19942 fi
19943 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19944 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19945 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19946
19947 cat >>confdefs.h <<_ACEOF
19948 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19949 _ACEOF
19950
19951
19952 fi
19953
19954
19955
19956 case $host_cpu in
19957   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19958 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19959 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962   cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 #ifndef __i386__
19969 yes
19970 #endif
19971 _ACEOF
19972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19973   $EGREP "yes" >/dev/null 2>&1; then
19974   ac_cv_cpp_def___i386__=yes
19975 else
19976   ac_cv_cpp_def___i386__=no
19977 fi
19978 rm -f conftest*
19979
19980 fi
19981 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19982 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19983 if test $ac_cv_cpp_def___i386__ = yes; then
19984   CFLAGS="$CFLAGS -D__i386__"
19985   LINTFLAGS="$LINTFLAGS -D__i386__"
19986 fi
19987  ;;
19988   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19989 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19990 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19991   echo $ECHO_N "(cached) $ECHO_C" >&6
19992 else
19993   cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h.  */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h.  */
19999 #ifndef __ALPHA__
20000 yes
20001 #endif
20002 _ACEOF
20003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20004   $EGREP "yes" >/dev/null 2>&1; then
20005   ac_cv_cpp_def___ALPHA__=yes
20006 else
20007   ac_cv_cpp_def___ALPHA__=no
20008 fi
20009 rm -f conftest*
20010
20011 fi
20012 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20013 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20014 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20015   CFLAGS="$CFLAGS -D__ALPHA__"
20016   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20017 fi
20018  ;;
20019   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20020 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
20021 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20022   echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024   cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h.  */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h.  */
20030 #ifndef __sparc__
20031 yes
20032 #endif
20033 _ACEOF
20034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20035   $EGREP "yes" >/dev/null 2>&1; then
20036   ac_cv_cpp_def___sparc__=yes
20037 else
20038   ac_cv_cpp_def___sparc__=no
20039 fi
20040 rm -f conftest*
20041
20042 fi
20043 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20044 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20045 if test $ac_cv_cpp_def___sparc__ = yes; then
20046   CFLAGS="$CFLAGS -D__sparc__"
20047   LINTFLAGS="$LINTFLAGS -D__sparc__"
20048 fi
20049  ;;
20050   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20051 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20052 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20053   echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055   cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h.  */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h.  */
20061 #ifndef __powerpc__
20062 yes
20063 #endif
20064 _ACEOF
20065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20066   $EGREP "yes" >/dev/null 2>&1; then
20067   ac_cv_cpp_def___powerpc__=yes
20068 else
20069   ac_cv_cpp_def___powerpc__=no
20070 fi
20071 rm -f conftest*
20072
20073 fi
20074 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20075 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20076 if test $ac_cv_cpp_def___powerpc__ = yes; then
20077   CFLAGS="$CFLAGS -D__powerpc__"
20078   LINTFLAGS="$LINTFLAGS -D__powerpc__"
20079 fi
20080  ;;
20081 esac
20082
20083 case $host_vendor in
20084   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20085 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
20086 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20087   echo $ECHO_N "(cached) $ECHO_C" >&6
20088 else
20089   cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h.  */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h.  */
20095 #ifndef __sun__
20096 yes
20097 #endif
20098 _ACEOF
20099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20100   $EGREP "yes" >/dev/null 2>&1; then
20101   ac_cv_cpp_def___sun__=yes
20102 else
20103   ac_cv_cpp_def___sun__=no
20104 fi
20105 rm -f conftest*
20106
20107 fi
20108 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20109 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20110 if test $ac_cv_cpp_def___sun__ = yes; then
20111   CFLAGS="$CFLAGS -D__sun__"
20112   LINTFLAGS="$LINTFLAGS -D__sun__"
20113 fi
20114  ;;
20115 esac
20116
20117
20118
20119
20120
20121           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20122
20123           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20124
20125           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20126
20127           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20128
20129           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20130
20131           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20132
20133           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20134
20135           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20136
20137           ac_config_commands="$ac_config_commands dlls/kernel/messages"
20138
20139           ac_config_commands="$ac_config_commands dlls/user/dde"
20140
20141           ac_config_commands="$ac_config_commands dlls/user/resources"
20142
20143           ac_config_commands="$ac_config_commands dlls/wineps/data"
20144
20145           ac_config_commands="$ac_config_commands include/wine"
20146
20147           ac_config_commands="$ac_config_commands misc"
20148
20149           ac_config_commands="$ac_config_commands programs/regedit/tests"
20150
20151           ac_config_commands="$ac_config_commands windows"
20152
20153
20154 MAKE_RULES=Make.rules
20155
20156
20157 MAKE_DLL_RULES=dlls/Makedll.rules
20158
20159
20160 MAKE_TEST_RULES=dlls/Maketest.rules
20161
20162
20163 MAKE_LIB_RULES=libs/Makelib.rules
20164
20165
20166 MAKE_PROG_RULES=programs/Makeprog.rules
20167
20168
20169                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/lzexpand/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/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"
20170
20171
20172 cat >confcache <<\_ACEOF
20173 # This file is a shell script that caches the results of configure
20174 # tests run on this system so they can be shared between configure
20175 # scripts and configure runs, see configure's option --config-cache.
20176 # It is not useful on other systems.  If it contains results you don't
20177 # want to keep, you may remove or edit it.
20178 #
20179 # config.status only pays attention to the cache file if you give it
20180 # the --recheck option to rerun configure.
20181 #
20182 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20184 # following values.
20185
20186 _ACEOF
20187
20188 # The following way of writing the cache mishandles newlines in values,
20189 # but we know of no workaround that is simple, portable, and efficient.
20190 # So, don't put newlines in cache variables' values.
20191 # Ultrix sh set writes to stderr and can't be redirected directly,
20192 # and sets the high bit in the cache file unless we assign to the vars.
20193 {
20194   (set) 2>&1 |
20195     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20196     *ac_space=\ *)
20197       # `set' does not quote correctly, so add quotes (double-quote
20198       # substitution turns \\\\ into \\, and sed turns \\ into \).
20199       sed -n \
20200         "s/'/'\\\\''/g;
20201           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20202       ;;
20203     *)
20204       # `set' quotes correctly as required by POSIX, so do not add quotes.
20205       sed -n \
20206         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20207       ;;
20208     esac;
20209 } |
20210   sed '
20211      t clear
20212      : clear
20213      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20214      t end
20215      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20216      : end' >>confcache
20217 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20218   if test -w $cache_file; then
20219     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20220     cat confcache >$cache_file
20221   else
20222     echo "not updating unwritable cache $cache_file"
20223   fi
20224 fi
20225 rm -f confcache
20226
20227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20228 # Let make expand exec_prefix.
20229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20230
20231 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20232 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20233 # trailing colons and then remove the whole line if VPATH becomes empty
20234 # (actually we leave an empty line to preserve line numbers).
20235 if test "x$srcdir" = x.; then
20236   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20237 s/:*\$(srcdir):*/:/;
20238 s/:*\${srcdir}:*/:/;
20239 s/:*@srcdir@:*/:/;
20240 s/^\([^=]*=[     ]*\):*/\1/;
20241 s/:*$//;
20242 s/^[^=]*=[       ]*$//;
20243 }'
20244 fi
20245
20246 DEFS=-DHAVE_CONFIG_H
20247
20248 ac_libobjs=
20249 ac_ltlibobjs=
20250 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20251   # 1. Remove the extension, and $U if already installed.
20252   ac_i=`echo "$ac_i" |
20253          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20254   # 2. Add them.
20255   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20256   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20257 done
20258 LIBOBJS=$ac_libobjs
20259
20260 LTLIBOBJS=$ac_ltlibobjs
20261
20262
20263
20264 : ${CONFIG_STATUS=./config.status}
20265 ac_clean_files_save=$ac_clean_files
20266 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20267 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20268 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20269 cat >$CONFIG_STATUS <<_ACEOF
20270 #! $SHELL
20271 # Generated by $as_me.
20272 # Run this file to recreate the current configuration.
20273 # Compiler output produced by configure, useful for debugging
20274 # configure, is in config.log if it exists.
20275
20276 debug=false
20277 ac_cs_recheck=false
20278 ac_cs_silent=false
20279 SHELL=\${CONFIG_SHELL-$SHELL}
20280 _ACEOF
20281
20282 cat >>$CONFIG_STATUS <<\_ACEOF
20283 ## --------------------- ##
20284 ## M4sh Initialization.  ##
20285 ## --------------------- ##
20286
20287 # Be Bourne compatible
20288 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20289   emulate sh
20290   NULLCMD=:
20291   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20292   # is contrary to our usage.  Disable this feature.
20293   alias -g '${1+"$@"}'='"$@"'
20294 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20295   set -o posix
20296 fi
20297 DUALCASE=1; export DUALCASE # for MKS sh
20298
20299 # Support unset when possible.
20300 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20301   as_unset=unset
20302 else
20303   as_unset=false
20304 fi
20305
20306
20307 # Work around bugs in pre-3.0 UWIN ksh.
20308 $as_unset ENV MAIL MAILPATH
20309 PS1='$ '
20310 PS2='> '
20311 PS4='+ '
20312
20313 # NLS nuisances.
20314 for as_var in \
20315   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20316   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20317   LC_TELEPHONE LC_TIME
20318 do
20319   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20320     eval $as_var=C; export $as_var
20321   else
20322     $as_unset $as_var
20323   fi
20324 done
20325
20326 # Required to use basename.
20327 if expr a : '\(a\)' >/dev/null 2>&1; then
20328   as_expr=expr
20329 else
20330   as_expr=false
20331 fi
20332
20333 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20334   as_basename=basename
20335 else
20336   as_basename=false
20337 fi
20338
20339
20340 # Name of the executable.
20341 as_me=`$as_basename "$0" ||
20342 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20343          X"$0" : 'X\(//\)$' \| \
20344          X"$0" : 'X\(/\)$' \| \
20345          .     : '\(.\)' 2>/dev/null ||
20346 echo X/"$0" |
20347     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20348           /^X\/\(\/\/\)$/{ s//\1/; q; }
20349           /^X\/\(\/\).*/{ s//\1/; q; }
20350           s/.*/./; q'`
20351
20352
20353 # PATH needs CR, and LINENO needs CR and PATH.
20354 # Avoid depending upon Character Ranges.
20355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20358 as_cr_digits='0123456789'
20359 as_cr_alnum=$as_cr_Letters$as_cr_digits
20360
20361 # The user is always right.
20362 if test "${PATH_SEPARATOR+set}" != set; then
20363   echo "#! /bin/sh" >conf$$.sh
20364   echo  "exit 0"   >>conf$$.sh
20365   chmod +x conf$$.sh
20366   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20367     PATH_SEPARATOR=';'
20368   else
20369     PATH_SEPARATOR=:
20370   fi
20371   rm -f conf$$.sh
20372 fi
20373
20374
20375   as_lineno_1=$LINENO
20376   as_lineno_2=$LINENO
20377   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20378   test "x$as_lineno_1" != "x$as_lineno_2" &&
20379   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20380   # Find who we are.  Look in the path if we contain no path at all
20381   # relative or not.
20382   case $0 in
20383     *[\\/]* ) as_myself=$0 ;;
20384     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20385 for as_dir in $PATH
20386 do
20387   IFS=$as_save_IFS
20388   test -z "$as_dir" && as_dir=.
20389   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20390 done
20391
20392        ;;
20393   esac
20394   # We did not find ourselves, most probably we were run as `sh COMMAND'
20395   # in which case we are not to be found in the path.
20396   if test "x$as_myself" = x; then
20397     as_myself=$0
20398   fi
20399   if test ! -f "$as_myself"; then
20400     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20401 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20402    { (exit 1); exit 1; }; }
20403   fi
20404   case $CONFIG_SHELL in
20405   '')
20406     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20407 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20408 do
20409   IFS=$as_save_IFS
20410   test -z "$as_dir" && as_dir=.
20411   for as_base in sh bash ksh sh5; do
20412          case $as_dir in
20413          /*)
20414            if ("$as_dir/$as_base" -c '
20415   as_lineno_1=$LINENO
20416   as_lineno_2=$LINENO
20417   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20418   test "x$as_lineno_1" != "x$as_lineno_2" &&
20419   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20420              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20421              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20422              CONFIG_SHELL=$as_dir/$as_base
20423              export CONFIG_SHELL
20424              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20425            fi;;
20426          esac
20427        done
20428 done
20429 ;;
20430   esac
20431
20432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20433   # uniformly replaced by the line number.  The first 'sed' inserts a
20434   # line-number line before each line; the second 'sed' does the real
20435   # work.  The second script uses 'N' to pair each line-number line
20436   # with the numbered line, and appends trailing '-' during
20437   # substitution so that $LINENO is not a special case at line end.
20438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20439   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20440   sed '=' <$as_myself |
20441     sed '
20442       N
20443       s,$,-,
20444       : loop
20445       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20446       t loop
20447       s,-$,,
20448       s,^['$as_cr_digits']*\n,,
20449     ' >$as_me.lineno &&
20450   chmod +x $as_me.lineno ||
20451     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20452 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20453    { (exit 1); exit 1; }; }
20454
20455   # Don't try to exec as it changes $[0], causing all sort of problems
20456   # (the dirname of $[0] is not the place where we might find the
20457   # original and so on.  Autoconf is especially sensible to this).
20458   . ./$as_me.lineno
20459   # Exit status is that of the last command.
20460   exit
20461 }
20462
20463
20464 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20465   *c*,-n*) ECHO_N= ECHO_C='
20466 ' ECHO_T='      ' ;;
20467   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20468   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20469 esac
20470
20471 if expr a : '\(a\)' >/dev/null 2>&1; then
20472   as_expr=expr
20473 else
20474   as_expr=false
20475 fi
20476
20477 rm -f conf$$ conf$$.exe conf$$.file
20478 echo >conf$$.file
20479 if ln -s conf$$.file conf$$ 2>/dev/null; then
20480   # We could just check for DJGPP; but this test a) works b) is more generic
20481   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20482   if test -f conf$$.exe; then
20483     # Don't use ln at all; we don't have any links
20484     as_ln_s='cp -p'
20485   else
20486     as_ln_s='ln -s'
20487   fi
20488 elif ln conf$$.file conf$$ 2>/dev/null; then
20489   as_ln_s=ln
20490 else
20491   as_ln_s='cp -p'
20492 fi
20493 rm -f conf$$ conf$$.exe conf$$.file
20494
20495 if mkdir -p . 2>/dev/null; then
20496   as_mkdir_p=:
20497 else
20498   test -d ./-p && rmdir ./-p
20499   as_mkdir_p=false
20500 fi
20501
20502 as_executable_p="test -f"
20503
20504 # Sed expression to map a string onto a valid CPP name.
20505 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20506
20507 # Sed expression to map a string onto a valid variable name.
20508 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20509
20510
20511 # IFS
20512 # We need space, tab and new line, in precisely that order.
20513 as_nl='
20514 '
20515 IFS="   $as_nl"
20516
20517 # CDPATH.
20518 $as_unset CDPATH
20519
20520 exec 6>&1
20521
20522 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20523 # report actual input values of CONFIG_FILES etc. instead of their
20524 # values after options handling.  Logging --version etc. is OK.
20525 exec 5>>config.log
20526 {
20527   echo
20528   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20529 ## Running $as_me. ##
20530 _ASBOX
20531 } >&5
20532 cat >&5 <<_CSEOF
20533
20534 This file was extended by Wine $as_me 20041201, which was
20535 generated by GNU Autoconf 2.59.  Invocation command line was
20536
20537   CONFIG_FILES    = $CONFIG_FILES
20538   CONFIG_HEADERS  = $CONFIG_HEADERS
20539   CONFIG_LINKS    = $CONFIG_LINKS
20540   CONFIG_COMMANDS = $CONFIG_COMMANDS
20541   $ $0 $@
20542
20543 _CSEOF
20544 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20545 echo >&5
20546 _ACEOF
20547
20548 # Files that config.status was made for.
20549 if test -n "$ac_config_files"; then
20550   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20551 fi
20552
20553 if test -n "$ac_config_headers"; then
20554   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20555 fi
20556
20557 if test -n "$ac_config_links"; then
20558   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20559 fi
20560
20561 if test -n "$ac_config_commands"; then
20562   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20563 fi
20564
20565 cat >>$CONFIG_STATUS <<\_ACEOF
20566
20567 ac_cs_usage="\
20568 \`$as_me' instantiates files from templates according to the
20569 current configuration.
20570
20571 Usage: $0 [OPTIONS] [FILE]...
20572
20573   -h, --help       print this help, then exit
20574   -V, --version    print version number, then exit
20575   -q, --quiet      do not print progress messages
20576   -d, --debug      don't remove temporary files
20577       --recheck    update $as_me by reconfiguring in the same conditions
20578   --file=FILE[:TEMPLATE]
20579                    instantiate the configuration file FILE
20580   --header=FILE[:TEMPLATE]
20581                    instantiate the configuration header FILE
20582
20583 Configuration files:
20584 $config_files
20585
20586 Configuration headers:
20587 $config_headers
20588
20589 Configuration commands:
20590 $config_commands
20591
20592 Report bugs to <bug-autoconf@gnu.org>."
20593 _ACEOF
20594
20595 cat >>$CONFIG_STATUS <<_ACEOF
20596 ac_cs_version="\\
20597 Wine config.status 20041201
20598 configured by $0, generated by GNU Autoconf 2.59,
20599   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20600
20601 Copyright (C) 2003 Free Software Foundation, Inc.
20602 This config.status script is free software; the Free Software Foundation
20603 gives unlimited permission to copy, distribute and modify it."
20604 srcdir=$srcdir
20605 INSTALL="$INSTALL"
20606 _ACEOF
20607
20608 cat >>$CONFIG_STATUS <<\_ACEOF
20609 # If no file are specified by the user, then we need to provide default
20610 # value.  By we need to know if files were specified by the user.
20611 ac_need_defaults=:
20612 while test $# != 0
20613 do
20614   case $1 in
20615   --*=*)
20616     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20617     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20618     ac_shift=:
20619     ;;
20620   -*)
20621     ac_option=$1
20622     ac_optarg=$2
20623     ac_shift=shift
20624     ;;
20625   *) # This is not an option, so the user has probably given explicit
20626      # arguments.
20627      ac_option=$1
20628      ac_need_defaults=false;;
20629   esac
20630
20631   case $ac_option in
20632   # Handling of the options.
20633 _ACEOF
20634 cat >>$CONFIG_STATUS <<\_ACEOF
20635   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20636     ac_cs_recheck=: ;;
20637   --version | --vers* | -V )
20638     echo "$ac_cs_version"; exit 0 ;;
20639   --he | --h)
20640     # Conflict between --help and --header
20641     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20642 Try \`$0 --help' for more information." >&5
20643 echo "$as_me: error: ambiguous option: $1
20644 Try \`$0 --help' for more information." >&2;}
20645    { (exit 1); exit 1; }; };;
20646   --help | --hel | -h )
20647     echo "$ac_cs_usage"; exit 0 ;;
20648   --debug | --d* | -d )
20649     debug=: ;;
20650   --file | --fil | --fi | --f )
20651     $ac_shift
20652     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20653     ac_need_defaults=false;;
20654   --header | --heade | --head | --hea )
20655     $ac_shift
20656     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20657     ac_need_defaults=false;;
20658   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20659   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20660     ac_cs_silent=: ;;
20661
20662   # This is an error.
20663   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20664 Try \`$0 --help' for more information." >&5
20665 echo "$as_me: error: unrecognized option: $1
20666 Try \`$0 --help' for more information." >&2;}
20667    { (exit 1); exit 1; }; } ;;
20668
20669   *) ac_config_targets="$ac_config_targets $1" ;;
20670
20671   esac
20672   shift
20673 done
20674
20675 ac_configure_extra_args=
20676
20677 if $ac_cs_silent; then
20678   exec 6>/dev/null
20679   ac_configure_extra_args="$ac_configure_extra_args --silent"
20680 fi
20681
20682 _ACEOF
20683 cat >>$CONFIG_STATUS <<_ACEOF
20684 if \$ac_cs_recheck; then
20685   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20686   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20687 fi
20688
20689 _ACEOF
20690
20691
20692
20693
20694
20695 cat >>$CONFIG_STATUS <<\_ACEOF
20696 for ac_config_target in $ac_config_targets
20697 do
20698   case "$ac_config_target" in
20699   # Handling of arguments.
20700   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20701   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20702   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20703   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20704   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20705   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20706   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20707   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20708   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20709   "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20710   "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20711   "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20712   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20713   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20714   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20715   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20716   "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20717   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20718   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20719   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20720   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20721   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20722   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20723   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20724   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20725   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20726   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20727   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20728   "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20729   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20730   "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20731   "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20732   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20733   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20734   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20735   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20736   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20737   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20738   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20739   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20740   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20741   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20742   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20743   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20744   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20745   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20746   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20747   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20748   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20749   "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20750   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20751   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20752   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20753   "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20754   "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20755   "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20756   "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20757   "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20758   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20759   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20760   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20761   "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20762   "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20763   "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20764   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20765   "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20766   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20767   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20768   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20769   "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20770   "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20771   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20772   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20773   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20774   "dlls/lzexpand/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/tests/Makefile" ;;
20775   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20776   "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20777   "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20778   "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20779   "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20780   "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20781   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20782   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20783   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20784   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20785   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20786   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20787   "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20788   "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20789   "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20790   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20791   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20792   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20793   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20794   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20795   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20796   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20797   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20798   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20799   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20800   "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20801   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20802   "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20803   "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20804   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20805   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20806   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20807   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20808   "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20809   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20810   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20811   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20812   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20813   "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20814   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20815   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20816   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20817   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20818   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20819   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20820   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20821   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20822   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20823   "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20824   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20825   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20826   "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20827   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20828   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20829   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20830   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20831   "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20832   "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20833   "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20834   "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
20835   "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20836   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20837   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20838   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20839   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20840   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20841   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20842   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20843   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20844   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20845   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20846   "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20847   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20848   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20849   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20850   "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20851   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20852   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20853   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20854   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20855   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20856   "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20857   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20858   "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20859   "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20860   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20861   "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20862   "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20863   "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20864   "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20865   "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20866   "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20867   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20868   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20869   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20870   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20871   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20872   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20873   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20874   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20875   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20876   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20877   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20878   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20879   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20880   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20881   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20882   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20883   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20884   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20885   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20886   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20887   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20888   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20889   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20890   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20891   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20892   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20893   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20894   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20895   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20896   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20897   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20898   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20899   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20900   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20901   "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20902   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20903   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20904   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20905   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20906   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20907   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20908   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20909   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20910   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20911   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20912   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20913   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20914   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20915   "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20916   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20917   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20918   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20919   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20920   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20921   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20922   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20923   "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20924   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20925   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20926   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20927   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20928   "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20929   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20930   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20931   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20932   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20933   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20934   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20935   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20936   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20937   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20938   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20939   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20940   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20941   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20942   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20943   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20944   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20945   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20946   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20947   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20948   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20949   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20950   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20951   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20952   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20953   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20954   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20955   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20956   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20957   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20958   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20959   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20960   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20961   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20962   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20963   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20964   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20965   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20966   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20968    { (exit 1); exit 1; }; };;
20969   esac
20970 done
20971
20972 # If the user did not use the arguments to specify the items to instantiate,
20973 # then the envvar interface is used.  Set only those that are not.
20974 # We use the long form for the default assignment because of an extremely
20975 # bizarre bug on SunOS 4.1.3.
20976 if $ac_need_defaults; then
20977   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20978   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20979   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20980 fi
20981
20982 # Have a temporary directory for convenience.  Make it in the build tree
20983 # simply because there is no reason to put it here, and in addition,
20984 # creating and moving files from /tmp can sometimes cause problems.
20985 # Create a temporary directory, and hook for its removal unless debugging.
20986 $debug ||
20987 {
20988   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20989   trap '{ (exit 1); exit 1; }' 1 2 13 15
20990 }
20991
20992 # Create a (secure) tmp directory for tmp files.
20993
20994 {
20995   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20996   test -n "$tmp" && test -d "$tmp"
20997 }  ||
20998 {
20999   tmp=./confstat$$-$RANDOM
21000   (umask 077 && mkdir $tmp)
21001 } ||
21002 {
21003    echo "$me: cannot create a temporary directory in ." >&2
21004    { (exit 1); exit 1; }
21005 }
21006
21007 _ACEOF
21008
21009 cat >>$CONFIG_STATUS <<_ACEOF
21010
21011 #
21012 # CONFIG_FILES section.
21013 #
21014
21015 # No need to generate the scripts if there are no CONFIG_FILES.
21016 # This happens for instance when ./config.status config.h
21017 if test -n "\$CONFIG_FILES"; then
21018   # Protect against being on the right side of a sed subst in config.status.
21019   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21020    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21021 s,@SHELL@,$SHELL,;t t
21022 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21023 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21024 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21025 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21026 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21027 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21028 s,@exec_prefix@,$exec_prefix,;t t
21029 s,@prefix@,$prefix,;t t
21030 s,@program_transform_name@,$program_transform_name,;t t
21031 s,@bindir@,$bindir,;t t
21032 s,@sbindir@,$sbindir,;t t
21033 s,@libexecdir@,$libexecdir,;t t
21034 s,@datadir@,$datadir,;t t
21035 s,@sysconfdir@,$sysconfdir,;t t
21036 s,@sharedstatedir@,$sharedstatedir,;t t
21037 s,@localstatedir@,$localstatedir,;t t
21038 s,@libdir@,$libdir,;t t
21039 s,@includedir@,$includedir,;t t
21040 s,@oldincludedir@,$oldincludedir,;t t
21041 s,@infodir@,$infodir,;t t
21042 s,@mandir@,$mandir,;t t
21043 s,@build_alias@,$build_alias,;t t
21044 s,@host_alias@,$host_alias,;t t
21045 s,@target_alias@,$target_alias,;t t
21046 s,@DEFS@,$DEFS,;t t
21047 s,@ECHO_C@,$ECHO_C,;t t
21048 s,@ECHO_N@,$ECHO_N,;t t
21049 s,@ECHO_T@,$ECHO_T,;t t
21050 s,@LIBS@,$LIBS,;t t
21051 s,@WIN16_FILES@,$WIN16_FILES,;t t
21052 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
21053 s,@DLLDEFS@,$DLLDEFS,;t t
21054 s,@build@,$build,;t t
21055 s,@build_cpu@,$build_cpu,;t t
21056 s,@build_vendor@,$build_vendor,;t t
21057 s,@build_os@,$build_os,;t t
21058 s,@host@,$host,;t t
21059 s,@host_cpu@,$host_cpu,;t t
21060 s,@host_vendor@,$host_vendor,;t t
21061 s,@host_os@,$host_os,;t t
21062 s,@SET_MAKE@,$SET_MAKE,;t t
21063 s,@CC@,$CC,;t t
21064 s,@CFLAGS@,$CFLAGS,;t t
21065 s,@LDFLAGS@,$LDFLAGS,;t t
21066 s,@CPPFLAGS@,$CPPFLAGS,;t t
21067 s,@ac_ct_CC@,$ac_ct_CC,;t t
21068 s,@EXEEXT@,$EXEEXT,;t t
21069 s,@OBJEXT@,$OBJEXT,;t t
21070 s,@CXX@,$CXX,;t t
21071 s,@CXXFLAGS@,$CXXFLAGS,;t t
21072 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21073 s,@CPPBIN@,$CPPBIN,;t t
21074 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
21075 s,@TOOLSDIR@,$TOOLSDIR,;t t
21076 s,@CPP@,$CPP,;t t
21077 s,@X_CFLAGS@,$X_CFLAGS,;t t
21078 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21079 s,@X_LIBS@,$X_LIBS,;t t
21080 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21081 s,@LEX@,$LEX,;t t
21082 s,@LEXLIB@,$LEXLIB,;t t
21083 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
21084 s,@XLEX@,$XLEX,;t t
21085 s,@BISON@,$BISON,;t t
21086 s,@AS@,$AS,;t t
21087 s,@ac_ct_AS@,$ac_ct_AS,;t t
21088 s,@LD@,$LD,;t t
21089 s,@ac_ct_LD@,$ac_ct_LD,;t t
21090 s,@AR@,$AR,;t t
21091 s,@ac_ct_AR@,$ac_ct_AR,;t t
21092 s,@RANLIB@,$RANLIB,;t t
21093 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21094 s,@STRIP@,$STRIP,;t t
21095 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21096 s,@WINDRES@,$WINDRES,;t t
21097 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21098 s,@LN_S@,$LN_S,;t t
21099 s,@LN@,$LN,;t t
21100 s,@EGREP@,$EGREP,;t t
21101 s,@LDCONFIG@,$LDCONFIG,;t t
21102 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21103 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21104 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21105 s,@LINT@,$LINT,;t t
21106 s,@LINTFLAGS@,$LINTFLAGS,;t t
21107 s,@DB2HTML@,$DB2HTML,;t t
21108 s,@DB2PDF@,$DB2PDF,;t t
21109 s,@DB2PS@,$DB2PS,;t t
21110 s,@DB2TXT@,$DB2TXT,;t t
21111 s,@FONTFORGE@,$FONTFORGE,;t t
21112 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
21113 s,@XLIB@,$XLIB,;t t
21114 s,@XFILES@,$XFILES,;t t
21115 s,@OPENGLFILES@,$OPENGLFILES,;t t
21116 s,@GLU32FILES@,$GLU32FILES,;t t
21117 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
21118 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21119 s,@GLUT32FILES@,$GLUT32FILES,;t t
21120 s,@NASLIBS@,$NASLIBS,;t t
21121 s,@CURSESLIBS@,$CURSESLIBS,;t t
21122 s,@sane_devel@,$sane_devel,;t t
21123 s,@SANELIBS@,$SANELIBS,;t t
21124 s,@SANEINCL@,$SANEINCL,;t t
21125 s,@ICULIBS@,$ICULIBS,;t t
21126 s,@ft_devel@,$ft_devel,;t t
21127 s,@ft_devel2@,$ft_devel2,;t t
21128 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
21129 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21130 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
21131 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21132 s,@ARTSLIBS@,$ARTSLIBS,;t t
21133 s,@ARTSINCL@,$ARTSINCL,;t t
21134 s,@ALSALIBS@,$ALSALIBS,;t t
21135 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21136 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
21137 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21138 s,@DLLEXT@,$DLLEXT,;t t
21139 s,@DLLFLAGS@,$DLLFLAGS,;t t
21140 s,@DLLIBS@,$DLLIBS,;t t
21141 s,@LDSHARED@,$LDSHARED,;t t
21142 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21143 s,@LIBEXT@,$LIBEXT,;t t
21144 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21145 s,@DLLTOOL@,$DLLTOOL,;t t
21146 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21147 s,@DLLWRAP@,$DLLWRAP,;t t
21148 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21149 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21150 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
21151 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21152 s,@IOKITLIB@,$IOKITLIB,;t t
21153 s,@CROSSTEST@,$CROSSTEST,;t t
21154 s,@CROSSCC@,$CROSSCC,;t t
21155 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21156 s,@LDPATH@,$LDPATH,;t t
21157 s,@CRTLIBS@,$CRTLIBS,;t t
21158 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
21159 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21160 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21161 s,@LDD@,$LDD,;t t
21162 s,@ALLOCA@,$ALLOCA,;t t
21163 s,@LIBOBJS@,$LIBOBJS,;t t
21164 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21165 /@MAKE_RULES@/r $MAKE_RULES
21166 s,@MAKE_RULES@,,;t t
21167 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21168 s,@MAKE_DLL_RULES@,,;t t
21169 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21170 s,@MAKE_TEST_RULES@,,;t t
21171 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21172 s,@MAKE_LIB_RULES@,,;t t
21173 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21174 s,@MAKE_PROG_RULES@,,;t t
21175 CEOF
21176
21177 _ACEOF
21178
21179   cat >>$CONFIG_STATUS <<\_ACEOF
21180   # Split the substitutions into bite-sized pieces for seds with
21181   # small command number limits, like on Digital OSF/1 and HP-UX.
21182   ac_max_sed_lines=48
21183   ac_sed_frag=1 # Number of current file.
21184   ac_beg=1 # First line for current file.
21185   ac_end=$ac_max_sed_lines # Line after last line for current file.
21186   ac_more_lines=:
21187   ac_sed_cmds=
21188   while $ac_more_lines; do
21189     if test $ac_beg -gt 1; then
21190       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21191     else
21192       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21193     fi
21194     if test ! -s $tmp/subs.frag; then
21195       ac_more_lines=false
21196     else
21197       # The purpose of the label and of the branching condition is to
21198       # speed up the sed processing (if there are no `@' at all, there
21199       # is no need to browse any of the substitutions).
21200       # These are the two extra sed commands mentioned above.
21201       (echo ':t
21202   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21203       if test -z "$ac_sed_cmds"; then
21204         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21205       else
21206         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21207       fi
21208       ac_sed_frag=`expr $ac_sed_frag + 1`
21209       ac_beg=$ac_end
21210       ac_end=`expr $ac_end + $ac_max_sed_lines`
21211     fi
21212   done
21213   if test -z "$ac_sed_cmds"; then
21214     ac_sed_cmds=cat
21215   fi
21216 fi # test -n "$CONFIG_FILES"
21217
21218 _ACEOF
21219 cat >>$CONFIG_STATUS <<\_ACEOF
21220 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21221   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21222   case $ac_file in
21223   - | *:- | *:-:* ) # input from stdin
21224         cat >$tmp/stdin
21225         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21226         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21227   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21228         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21229   * )   ac_file_in=$ac_file.in ;;
21230   esac
21231
21232   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21233   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21235          X"$ac_file" : 'X\(//\)[^/]' \| \
21236          X"$ac_file" : 'X\(//\)$' \| \
21237          X"$ac_file" : 'X\(/\)' \| \
21238          .     : '\(.\)' 2>/dev/null ||
21239 echo X"$ac_file" |
21240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21241           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21242           /^X\(\/\/\)$/{ s//\1/; q; }
21243           /^X\(\/\).*/{ s//\1/; q; }
21244           s/.*/./; q'`
21245   { if $as_mkdir_p; then
21246     mkdir -p "$ac_dir"
21247   else
21248     as_dir="$ac_dir"
21249     as_dirs=
21250     while test ! -d "$as_dir"; do
21251       as_dirs="$as_dir $as_dirs"
21252       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21254          X"$as_dir" : 'X\(//\)[^/]' \| \
21255          X"$as_dir" : 'X\(//\)$' \| \
21256          X"$as_dir" : 'X\(/\)' \| \
21257          .     : '\(.\)' 2>/dev/null ||
21258 echo X"$as_dir" |
21259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21260           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21261           /^X\(\/\/\)$/{ s//\1/; q; }
21262           /^X\(\/\).*/{ s//\1/; q; }
21263           s/.*/./; q'`
21264     done
21265     test ! -n "$as_dirs" || mkdir $as_dirs
21266   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21267 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21268    { (exit 1); exit 1; }; }; }
21269
21270   ac_builddir=.
21271
21272 if test "$ac_dir" != .; then
21273   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21274   # A "../" for each directory in $ac_dir_suffix.
21275   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21276 else
21277   ac_dir_suffix= ac_top_builddir=
21278 fi
21279
21280 case $srcdir in
21281   .)  # No --srcdir option.  We are building in place.
21282     ac_srcdir=.
21283     if test -z "$ac_top_builddir"; then
21284        ac_top_srcdir=.
21285     else
21286        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21287     fi ;;
21288   [\\/]* | ?:[\\/]* )  # Absolute path.
21289     ac_srcdir=$srcdir$ac_dir_suffix;
21290     ac_top_srcdir=$srcdir ;;
21291   *) # Relative path.
21292     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21293     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21294 esac
21295
21296 # Do not use `cd foo && pwd` to compute absolute paths, because
21297 # the directories may not exist.
21298 case `pwd` in
21299 .) ac_abs_builddir="$ac_dir";;
21300 *)
21301   case "$ac_dir" in
21302   .) ac_abs_builddir=`pwd`;;
21303   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21304   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21305   esac;;
21306 esac
21307 case $ac_abs_builddir in
21308 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21309 *)
21310   case ${ac_top_builddir}. in
21311   .) ac_abs_top_builddir=$ac_abs_builddir;;
21312   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21313   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21314   esac;;
21315 esac
21316 case $ac_abs_builddir in
21317 .) ac_abs_srcdir=$ac_srcdir;;
21318 *)
21319   case $ac_srcdir in
21320   .) ac_abs_srcdir=$ac_abs_builddir;;
21321   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21322   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21323   esac;;
21324 esac
21325 case $ac_abs_builddir in
21326 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21327 *)
21328   case $ac_top_srcdir in
21329   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21330   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21331   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21332   esac;;
21333 esac
21334
21335
21336   case $INSTALL in
21337   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21338   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21339   esac
21340
21341   # Let's still pretend it is `configure' which instantiates (i.e., don't
21342   # use $as_me), people would be surprised to read:
21343   #    /* config.h.  Generated by config.status.  */
21344   if test x"$ac_file" = x-; then
21345     configure_input=
21346   else
21347     configure_input="$ac_file.  "
21348   fi
21349   configure_input=$configure_input"Generated from `echo $ac_file_in |
21350                                      sed 's,.*/,,'` by configure."
21351
21352   # First look for the input files in the build tree, otherwise in the
21353   # src tree.
21354   ac_file_inputs=`IFS=:
21355     for f in $ac_file_in; do
21356       case $f in
21357       -) echo $tmp/stdin ;;
21358       [\\/$]*)
21359          # Absolute (can't be DOS-style, as IFS=:)
21360          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21361 echo "$as_me: error: cannot find input file: $f" >&2;}
21362    { (exit 1); exit 1; }; }
21363          echo "$f";;
21364       *) # Relative
21365          if test -f "$f"; then
21366            # Build tree
21367            echo "$f"
21368          elif test -f "$srcdir/$f"; then
21369            # Source tree
21370            echo "$srcdir/$f"
21371          else
21372            # /dev/null tree
21373            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21374 echo "$as_me: error: cannot find input file: $f" >&2;}
21375    { (exit 1); exit 1; }; }
21376          fi;;
21377       esac
21378     done` || { (exit 1); exit 1; }
21379
21380   if test x"$ac_file" != x-; then
21381     { echo "$as_me:$LINENO: creating $ac_file" >&5
21382 echo "$as_me: creating $ac_file" >&6;}
21383     rm -f "$ac_file"
21384   fi
21385 _ACEOF
21386 cat >>$CONFIG_STATUS <<_ACEOF
21387   sed "$ac_vpsub
21388 $extrasub
21389 _ACEOF
21390 cat >>$CONFIG_STATUS <<\_ACEOF
21391 :t
21392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21393 s,@configure_input@,$configure_input,;t t
21394 s,@srcdir@,$ac_srcdir,;t t
21395 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21396 s,@top_srcdir@,$ac_top_srcdir,;t t
21397 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21398 s,@builddir@,$ac_builddir,;t t
21399 s,@abs_builddir@,$ac_abs_builddir,;t t
21400 s,@top_builddir@,$ac_top_builddir,;t t
21401 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21402 s,@INSTALL@,$ac_INSTALL,;t t
21403 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21404   rm -f $tmp/stdin
21405   if test x"$ac_file" != x-; then
21406     mv $tmp/out $ac_file
21407   else
21408     cat $tmp/out
21409     rm -f $tmp/out
21410   fi
21411
21412 done
21413 _ACEOF
21414 cat >>$CONFIG_STATUS <<\_ACEOF
21415
21416 #
21417 # CONFIG_HEADER section.
21418 #
21419
21420 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21421 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21422 #
21423 # ac_d sets the value in "#define NAME VALUE" lines.
21424 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21425 ac_dB='[         ].*$,\1#\2'
21426 ac_dC=' '
21427 ac_dD=',;t'
21428 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21429 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21430 ac_uB='$,\1#\2define\3'
21431 ac_uC=' '
21432 ac_uD=',;t'
21433
21434 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21435   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21436   case $ac_file in
21437   - | *:- | *:-:* ) # input from stdin
21438         cat >$tmp/stdin
21439         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21440         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21441   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21442         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21443   * )   ac_file_in=$ac_file.in ;;
21444   esac
21445
21446   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21447 echo "$as_me: creating $ac_file" >&6;}
21448
21449   # First look for the input files in the build tree, otherwise in the
21450   # src tree.
21451   ac_file_inputs=`IFS=:
21452     for f in $ac_file_in; do
21453       case $f in
21454       -) echo $tmp/stdin ;;
21455       [\\/$]*)
21456          # Absolute (can't be DOS-style, as IFS=:)
21457          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21458 echo "$as_me: error: cannot find input file: $f" >&2;}
21459    { (exit 1); exit 1; }; }
21460          # Do quote $f, to prevent DOS paths from being IFS'd.
21461          echo "$f";;
21462       *) # Relative
21463          if test -f "$f"; then
21464            # Build tree
21465            echo "$f"
21466          elif test -f "$srcdir/$f"; then
21467            # Source tree
21468            echo "$srcdir/$f"
21469          else
21470            # /dev/null tree
21471            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21472 echo "$as_me: error: cannot find input file: $f" >&2;}
21473    { (exit 1); exit 1; }; }
21474          fi;;
21475       esac
21476     done` || { (exit 1); exit 1; }
21477   # Remove the trailing spaces.
21478   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21479
21480 _ACEOF
21481
21482 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21483 # `conftest.undefs', that substitutes the proper values into
21484 # config.h.in to produce config.h.  The first handles `#define'
21485 # templates, and the second `#undef' templates.
21486 # And first: Protect against being on the right side of a sed subst in
21487 # config.status.  Protect against being in an unquoted here document
21488 # in config.status.
21489 rm -f conftest.defines conftest.undefs
21490 # Using a here document instead of a string reduces the quoting nightmare.
21491 # Putting comments in sed scripts is not portable.
21492 #
21493 # `end' is used to avoid that the second main sed command (meant for
21494 # 0-ary CPP macros) applies to n-ary macro definitions.
21495 # See the Autoconf documentation for `clear'.
21496 cat >confdef2sed.sed <<\_ACEOF
21497 s/[\\&,]/\\&/g
21498 s,[\\$`],\\&,g
21499 t clear
21500 : clear
21501 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21502 t end
21503 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21504 : end
21505 _ACEOF
21506 # If some macros were called several times there might be several times
21507 # the same #defines, which is useless.  Nevertheless, we may not want to
21508 # sort them, since we want the *last* AC-DEFINE to be honored.
21509 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21510 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21511 rm -f confdef2sed.sed
21512
21513 # This sed command replaces #undef with comments.  This is necessary, for
21514 # example, in the case of _POSIX_SOURCE, which is predefined and required
21515 # on some systems where configure will not decide to define it.
21516 cat >>conftest.undefs <<\_ACEOF
21517 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21518 _ACEOF
21519
21520 # Break up conftest.defines because some shells have a limit on the size
21521 # of here documents, and old seds have small limits too (100 cmds).
21522 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21523 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21524 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21525 echo '  :' >>$CONFIG_STATUS
21526 rm -f conftest.tail
21527 while grep . conftest.defines >/dev/null
21528 do
21529   # Write a limited-size here document to $tmp/defines.sed.
21530   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21531   # Speed up: don't consider the non `#define' lines.
21532   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21533   # Work around the forget-to-reset-the-flag bug.
21534   echo 't clr' >>$CONFIG_STATUS
21535   echo ': clr' >>$CONFIG_STATUS
21536   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21537   echo 'CEOF
21538   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21539   rm -f $tmp/in
21540   mv $tmp/out $tmp/in
21541 ' >>$CONFIG_STATUS
21542   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21543   rm -f conftest.defines
21544   mv conftest.tail conftest.defines
21545 done
21546 rm -f conftest.defines
21547 echo '  fi # grep' >>$CONFIG_STATUS
21548 echo >>$CONFIG_STATUS
21549
21550 # Break up conftest.undefs because some shells have a limit on the size
21551 # of here documents, and old seds have small limits too (100 cmds).
21552 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21553 rm -f conftest.tail
21554 while grep . conftest.undefs >/dev/null
21555 do
21556   # Write a limited-size here document to $tmp/undefs.sed.
21557   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21558   # Speed up: don't consider the non `#undef'
21559   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21560   # Work around the forget-to-reset-the-flag bug.
21561   echo 't clr' >>$CONFIG_STATUS
21562   echo ': clr' >>$CONFIG_STATUS
21563   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21564   echo 'CEOF
21565   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21566   rm -f $tmp/in
21567   mv $tmp/out $tmp/in
21568 ' >>$CONFIG_STATUS
21569   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21570   rm -f conftest.undefs
21571   mv conftest.tail conftest.undefs
21572 done
21573 rm -f conftest.undefs
21574
21575 cat >>$CONFIG_STATUS <<\_ACEOF
21576   # Let's still pretend it is `configure' which instantiates (i.e., don't
21577   # use $as_me), people would be surprised to read:
21578   #    /* config.h.  Generated by config.status.  */
21579   if test x"$ac_file" = x-; then
21580     echo "/* Generated by configure.  */" >$tmp/config.h
21581   else
21582     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21583   fi
21584   cat $tmp/in >>$tmp/config.h
21585   rm -f $tmp/in
21586   if test x"$ac_file" != x-; then
21587     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21588       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21589 echo "$as_me: $ac_file is unchanged" >&6;}
21590     else
21591       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21592 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21593          X"$ac_file" : 'X\(//\)[^/]' \| \
21594          X"$ac_file" : 'X\(//\)$' \| \
21595          X"$ac_file" : 'X\(/\)' \| \
21596          .     : '\(.\)' 2>/dev/null ||
21597 echo X"$ac_file" |
21598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21599           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21600           /^X\(\/\/\)$/{ s//\1/; q; }
21601           /^X\(\/\).*/{ s//\1/; q; }
21602           s/.*/./; q'`
21603       { if $as_mkdir_p; then
21604     mkdir -p "$ac_dir"
21605   else
21606     as_dir="$ac_dir"
21607     as_dirs=
21608     while test ! -d "$as_dir"; do
21609       as_dirs="$as_dir $as_dirs"
21610       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21611 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21612          X"$as_dir" : 'X\(//\)[^/]' \| \
21613          X"$as_dir" : 'X\(//\)$' \| \
21614          X"$as_dir" : 'X\(/\)' \| \
21615          .     : '\(.\)' 2>/dev/null ||
21616 echo X"$as_dir" |
21617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21618           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21619           /^X\(\/\/\)$/{ s//\1/; q; }
21620           /^X\(\/\).*/{ s//\1/; q; }
21621           s/.*/./; q'`
21622     done
21623     test ! -n "$as_dirs" || mkdir $as_dirs
21624   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21625 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21626    { (exit 1); exit 1; }; }; }
21627
21628       rm -f $ac_file
21629       mv $tmp/config.h $ac_file
21630     fi
21631   else
21632     cat $tmp/config.h
21633     rm -f $tmp/config.h
21634   fi
21635 done
21636 _ACEOF
21637 cat >>$CONFIG_STATUS <<\_ACEOF
21638
21639 #
21640 # CONFIG_COMMANDS section.
21641 #
21642 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21643   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21644   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21645   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21646 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21647          X"$ac_dest" : 'X\(//\)[^/]' \| \
21648          X"$ac_dest" : 'X\(//\)$' \| \
21649          X"$ac_dest" : 'X\(/\)' \| \
21650          .     : '\(.\)' 2>/dev/null ||
21651 echo X"$ac_dest" |
21652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21653           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21654           /^X\(\/\/\)$/{ s//\1/; q; }
21655           /^X\(\/\).*/{ s//\1/; q; }
21656           s/.*/./; q'`
21657   { if $as_mkdir_p; then
21658     mkdir -p "$ac_dir"
21659   else
21660     as_dir="$ac_dir"
21661     as_dirs=
21662     while test ! -d "$as_dir"; do
21663       as_dirs="$as_dir $as_dirs"
21664       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21666          X"$as_dir" : 'X\(//\)[^/]' \| \
21667          X"$as_dir" : 'X\(//\)$' \| \
21668          X"$as_dir" : 'X\(/\)' \| \
21669          .     : '\(.\)' 2>/dev/null ||
21670 echo X"$as_dir" |
21671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21672           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21673           /^X\(\/\/\)$/{ s//\1/; q; }
21674           /^X\(\/\).*/{ s//\1/; q; }
21675           s/.*/./; q'`
21676     done
21677     test ! -n "$as_dirs" || mkdir $as_dirs
21678   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21679 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21680    { (exit 1); exit 1; }; }; }
21681
21682   ac_builddir=.
21683
21684 if test "$ac_dir" != .; then
21685   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21686   # A "../" for each directory in $ac_dir_suffix.
21687   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21688 else
21689   ac_dir_suffix= ac_top_builddir=
21690 fi
21691
21692 case $srcdir in
21693   .)  # No --srcdir option.  We are building in place.
21694     ac_srcdir=.
21695     if test -z "$ac_top_builddir"; then
21696        ac_top_srcdir=.
21697     else
21698        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21699     fi ;;
21700   [\\/]* | ?:[\\/]* )  # Absolute path.
21701     ac_srcdir=$srcdir$ac_dir_suffix;
21702     ac_top_srcdir=$srcdir ;;
21703   *) # Relative path.
21704     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21705     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21706 esac
21707
21708 # Do not use `cd foo && pwd` to compute absolute paths, because
21709 # the directories may not exist.
21710 case `pwd` in
21711 .) ac_abs_builddir="$ac_dir";;
21712 *)
21713   case "$ac_dir" in
21714   .) ac_abs_builddir=`pwd`;;
21715   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21716   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21717   esac;;
21718 esac
21719 case $ac_abs_builddir in
21720 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21721 *)
21722   case ${ac_top_builddir}. in
21723   .) ac_abs_top_builddir=$ac_abs_builddir;;
21724   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21725   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21726   esac;;
21727 esac
21728 case $ac_abs_builddir in
21729 .) ac_abs_srcdir=$ac_srcdir;;
21730 *)
21731   case $ac_srcdir in
21732   .) ac_abs_srcdir=$ac_abs_builddir;;
21733   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21734   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21735   esac;;
21736 esac
21737 case $ac_abs_builddir in
21738 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21739 *)
21740   case $ac_top_srcdir in
21741   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21742   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21743   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21744   esac;;
21745 esac
21746
21747
21748   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21749 echo "$as_me: executing $ac_dest commands" >&6;}
21750   case $ac_dest in
21751     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21752 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21753     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21754 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21755     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21756 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21757     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21758 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21759     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21760 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21761     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21762 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21763     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21764 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21765     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21766 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21767     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21768 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21769     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21770 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21771     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21772 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21773     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21774 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21775     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21776 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21777     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21778 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21779     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21780 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21781     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21782 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21783   esac
21784 done
21785 _ACEOF
21786
21787 cat >>$CONFIG_STATUS <<\_ACEOF
21788
21789 { (exit 0); exit 0; }
21790 _ACEOF
21791 chmod +x $CONFIG_STATUS
21792 ac_clean_files=$ac_clean_files_save
21793
21794
21795 # configure is writing to config.log, and then calls config.status.
21796 # config.status does its own redirection, appending to config.log.
21797 # Unfortunately, on DOS this fails, as config.log is still kept open
21798 # by configure, so config.status won't be able to write to it; its
21799 # output is simply discarded.  So we exec the FD to /dev/null,
21800 # effectively closing config.log, so it can be properly (re)opened and
21801 # appended to by config.status.  When coming back to configure, we
21802 # need to make the FD available again.
21803 if test "$no_create" != yes; then
21804   ac_cs_success=:
21805   ac_config_status_args=
21806   test "$silent" = yes &&
21807     ac_config_status_args="$ac_config_status_args --quiet"
21808   exec 5>/dev/null
21809   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21810   exec 5>>config.log
21811   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21812   # would make configure fail if this is the last instruction.
21813   $ac_cs_success || { (exit 1); exit 1; }
21814 fi
21815
21816
21817 if test "$have_x" = "no"
21818 then
21819   echo
21820   echo "*** Warning: X development files not found. Wine will be built without"
21821   echo "*** X support, which currently does not work, and would probably not be"
21822   echo "*** what you want anyway. You will need to install devel packages of"
21823   echo "*** Xlib/Xfree86 at the very least."
21824 fi
21825
21826 if test "$wine_cv_opengl_version_OK" = "no"
21827 then
21828   echo
21829   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21830   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21831 fi
21832
21833 if test "$wine_cv_msg_freetype" = "yes"
21834 then
21835   echo
21836   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21837   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21838   echo "*** freetype-devel package (or its equivalent on your distribution) to"
21839   echo "*** enable Wine to use TrueType fonts."
21840 fi
21841
21842 echo
21843 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
21844 echo
21845