- got rid of include/async.h
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20050111.
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='20050111'
273 PACKAGE_STRING='Wine 20050111'
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 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 20050111 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 20050111:";;
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 20050111
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 20050111, 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 for ac_header in \
7264         arpa/inet.h \
7265         arpa/nameser.h \
7266         cups/cups.h \
7267         direct.h \
7268         elf.h \
7269         float.h \
7270         fontconfig/fontconfig.h \
7271         getopt.h \
7272         gif_lib.h \
7273         ieeefp.h \
7274         io.h \
7275         jack/jack.h \
7276         jpeglib.h \
7277         lcms/lcms.h \
7278         lcms.h \
7279         link.h \
7280         linux/cdrom.h \
7281         linux/compiler.h \
7282         linux/hdreg.h \
7283         linux/input.h \
7284         linux/ioctl.h \
7285         linux/joystick.h \
7286         linux/major.h \
7287         linux/param.h \
7288         linux/serial.h \
7289         linux/ucdrom.h \
7290         machine/cpu.h \
7291         mntent.h \
7292         netdb.h \
7293         netinet/in.h \
7294         netinet/in_systm.h \
7295         netinet/tcp.h \
7296         netinet/tcp_fsm.h \
7297         openssl/ssl.h \
7298         process.h \
7299         pthread.h \
7300         pwd.h \
7301         regex.h \
7302         sched.h \
7303         scsi/sg.h \
7304         scsi/scsi.h \
7305         scsi/scsi_ioctl.h \
7306         stdint.h \
7307         strings.h \
7308         sys/cdio.h \
7309         sys/elf32.h \
7310         sys/errno.h \
7311         sys/epoll.h \
7312         sys/exec_elf.h \
7313         sys/filio.h \
7314         sys/ioctl.h \
7315         sys/ipc.h \
7316         sys/link.h \
7317         sys/lwp.h \
7318         sys/mman.h \
7319         sys/modem.h \
7320         sys/msg.h \
7321         sys/param.h \
7322         sys/poll.h \
7323         sys/ptrace.h \
7324         sys/reg.h \
7325         sys/scsiio.h \
7326         sys/shm.h \
7327         sys/signal.h \
7328         sys/socket.h \
7329         sys/sockio.h \
7330         sys/statfs.h \
7331         sys/statvfs.h \
7332         sys/strtio.h \
7333         sys/syscall.h \
7334         sys/sysctl.h \
7335         sys/time.h \
7336         sys/times.h \
7337         sys/uio.h \
7338         sys/un.h \
7339         sys/vfs.h \
7340         sys/vm86.h \
7341         sys/wait.h \
7342         syscall.h \
7343         termios.h \
7344         unistd.h \
7345         utime.h \
7346         valgrind/memcheck.h
7347
7348 do
7349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7351   echo "$as_me:$LINENO: checking for $ac_header" >&5
7352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 fi
7356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7358 else
7359   # Is the header compilable?
7360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7362 cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h.  */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h.  */
7368 $ac_includes_default
7369 #include <$ac_header>
7370 _ACEOF
7371 rm -f conftest.$ac_objext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7373   (eval $ac_compile) 2>conftest.er1
7374   ac_status=$?
7375   grep -v '^ *+' conftest.er1 >conftest.err
7376   rm -f conftest.er1
7377   cat conftest.err >&5
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); } &&
7380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382   (eval $ac_try) 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); }; } &&
7386          { ac_try='test -s conftest.$ac_objext'
7387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388   (eval $ac_try) 2>&5
7389   ac_status=$?
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); }; }; then
7392   ac_header_compiler=yes
7393 else
7394   echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397 ac_header_compiler=no
7398 fi
7399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7401 echo "${ECHO_T}$ac_header_compiler" >&6
7402
7403 # Is the header present?
7404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7406 cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h.  */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h.  */
7412 #include <$ac_header>
7413 _ACEOF
7414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7416   ac_status=$?
7417   grep -v '^ *+' conftest.er1 >conftest.err
7418   rm -f conftest.er1
7419   cat conftest.err >&5
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); } >/dev/null; then
7422   if test -s conftest.err; then
7423     ac_cpp_err=$ac_c_preproc_warn_flag
7424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7425   else
7426     ac_cpp_err=
7427   fi
7428 else
7429   ac_cpp_err=yes
7430 fi
7431 if test -z "$ac_cpp_err"; then
7432   ac_header_preproc=yes
7433 else
7434   echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7436
7437   ac_header_preproc=no
7438 fi
7439 rm -f conftest.err conftest.$ac_ext
7440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7441 echo "${ECHO_T}$ac_header_preproc" >&6
7442
7443 # So?  What about this header?
7444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7445   yes:no: )
7446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7450     ac_header_preproc=yes
7451     ;;
7452   no:yes:* )
7453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7465     (
7466       cat <<\_ASBOX
7467 ## ------------------------------------ ##
7468 ## Report this to wine-devel@winehq.org ##
7469 ## ------------------------------------ ##
7470 _ASBOX
7471     ) |
7472       sed "s/^/$as_me: WARNING:     /" >&2
7473     ;;
7474 esac
7475 echo "$as_me:$LINENO: checking for $ac_header" >&5
7476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7478   echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480   eval "$as_ac_Header=\$ac_header_preproc"
7481 fi
7482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7484
7485 fi
7486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7487   cat >>confdefs.h <<_ACEOF
7488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7489 _ACEOF
7490
7491 fi
7492
7493 done
7494
7495 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7496 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7497 if test "${ac_cv_header_stat_broken+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 #include <sys/types.h>
7507 #include <sys/stat.h>
7508
7509 #if defined(S_ISBLK) && defined(S_IFDIR)
7510 # if S_ISBLK (S_IFDIR)
7511 You lose.
7512 # endif
7513 #endif
7514
7515 #if defined(S_ISBLK) && defined(S_IFCHR)
7516 # if S_ISBLK (S_IFCHR)
7517 You lose.
7518 # endif
7519 #endif
7520
7521 #if defined(S_ISLNK) && defined(S_IFREG)
7522 # if S_ISLNK (S_IFREG)
7523 You lose.
7524 # endif
7525 #endif
7526
7527 #if defined(S_ISSOCK) && defined(S_IFREG)
7528 # if S_ISSOCK (S_IFREG)
7529 You lose.
7530 # endif
7531 #endif
7532
7533 _ACEOF
7534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7535   $EGREP "You lose" >/dev/null 2>&1; then
7536   ac_cv_header_stat_broken=yes
7537 else
7538   ac_cv_header_stat_broken=no
7539 fi
7540 rm -f conftest*
7541
7542 fi
7543 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7544 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7545 if test $ac_cv_header_stat_broken = yes; then
7546
7547 cat >>confdefs.h <<\_ACEOF
7548 #define STAT_MACROS_BROKEN 1
7549 _ACEOF
7550
7551 fi
7552
7553
7554
7555 if test "$have_x" = "yes"
7556 then
7557     XLIB="-lXext -lX11"
7558     ac_save_CPPFLAGS="$CPPFLAGS"
7559     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7560
7561
7562 for ac_header in X11/Xlib.h
7563 do
7564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7566   echo "$as_me:$LINENO: checking for $ac_header" >&5
7567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7569   echo $ECHO_N "(cached) $ECHO_C" >&6
7570 fi
7571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7573 else
7574   # Is the header compilable?
7575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7577 cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h.  */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h.  */
7583 $ac_includes_default
7584 #include <$ac_header>
7585 _ACEOF
7586 rm -f conftest.$ac_objext
7587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588   (eval $ac_compile) 2>conftest.er1
7589   ac_status=$?
7590   grep -v '^ *+' conftest.er1 >conftest.err
7591   rm -f conftest.er1
7592   cat conftest.err >&5
7593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594   (exit $ac_status); } &&
7595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597   (eval $ac_try) 2>&5
7598   ac_status=$?
7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600   (exit $ac_status); }; } &&
7601          { ac_try='test -s conftest.$ac_objext'
7602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603   (eval $ac_try) 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); }; }; then
7607   ac_header_compiler=yes
7608 else
7609   echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7611
7612 ac_header_compiler=no
7613 fi
7614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7616 echo "${ECHO_T}$ac_header_compiler" >&6
7617
7618 # Is the header present?
7619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h.  */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h.  */
7627 #include <$ac_header>
7628 _ACEOF
7629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7630   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7631   ac_status=$?
7632   grep -v '^ *+' conftest.er1 >conftest.err
7633   rm -f conftest.er1
7634   cat conftest.err >&5
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } >/dev/null; then
7637   if test -s conftest.err; then
7638     ac_cpp_err=$ac_c_preproc_warn_flag
7639     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7640   else
7641     ac_cpp_err=
7642   fi
7643 else
7644   ac_cpp_err=yes
7645 fi
7646 if test -z "$ac_cpp_err"; then
7647   ac_header_preproc=yes
7648 else
7649   echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652   ac_header_preproc=no
7653 fi
7654 rm -f conftest.err conftest.$ac_ext
7655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7656 echo "${ECHO_T}$ac_header_preproc" >&6
7657
7658 # So?  What about this header?
7659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7660   yes:no: )
7661     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7665     ac_header_preproc=yes
7666     ;;
7667   no:yes:* )
7668     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7670     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7671 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7672     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7674     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7675 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7678     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7680     (
7681       cat <<\_ASBOX
7682 ## ------------------------------------ ##
7683 ## Report this to wine-devel@winehq.org ##
7684 ## ------------------------------------ ##
7685 _ASBOX
7686     ) |
7687       sed "s/^/$as_me: WARNING:     /" >&2
7688     ;;
7689 esac
7690 echo "$as_me:$LINENO: checking for $ac_header" >&5
7691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7693   echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695   eval "$as_ac_Header=\$ac_header_preproc"
7696 fi
7697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7699
7700 fi
7701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7702   cat >>confdefs.h <<_ACEOF
7703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7704 _ACEOF
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715 for ac_header in X11/XKBlib.h \
7716                           X11/Xutil.h \
7717                           X11/extensions/shape.h \
7718                           X11/extensions/XInput.h \
7719                           X11/extensions/XShm.h \
7720                           X11/extensions/Xrandr.h \
7721                           X11/extensions/Xrender.h \
7722                           X11/extensions/xf86dga.h \
7723                           X11/extensions/xf86vmode.h
7724 do
7725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7726 echo "$as_me:$LINENO: checking for $ac_header" >&5
7727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h.  */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h.  */
7737 #include <X11/Xlib.h>
7738                           #ifdef HAVE_X11_XUTIL_H
7739                           # include <X11/Xutil.h>
7740                           #endif
7741
7742 #include <$ac_header>
7743 _ACEOF
7744 rm -f conftest.$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746   (eval $ac_compile) 2>conftest.er1
7747   ac_status=$?
7748   grep -v '^ *+' conftest.er1 >conftest.err
7749   rm -f conftest.er1
7750   cat conftest.err >&5
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } &&
7753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755   (eval $ac_try) 2>&5
7756   ac_status=$?
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); }; } &&
7759          { ac_try='test -s conftest.$ac_objext'
7760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761   (eval $ac_try) 2>&5
7762   ac_status=$?
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); }; }; then
7765   eval "$as_ac_Header=yes"
7766 else
7767   echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7769
7770 eval "$as_ac_Header=no"
7771 fi
7772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7773 fi
7774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7777   cat >>confdefs.h <<_ACEOF
7778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7779 _ACEOF
7780
7781 fi
7782
7783 done
7784
7785
7786                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7787         then
7788               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7789 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7790 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793   ac_check_lib_save_LIBS=$LIBS
7794 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h.  */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h.  */
7801
7802 /* Override any gcc2 internal prototype to avoid an error.  */
7803 #ifdef __cplusplus
7804 extern "C"
7805 #endif
7806 /* We use char because int might match the return type of a gcc2
7807    builtin and then its argument prototype would still apply.  */
7808 char XkbQueryExtension ();
7809 int
7810 main ()
7811 {
7812 XkbQueryExtension ();
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819   (eval $ac_link) 2>conftest.er1
7820   ac_status=$?
7821   grep -v '^ *+' conftest.er1 >conftest.err
7822   rm -f conftest.er1
7823   cat conftest.err >&5
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } &&
7826          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828   (eval $ac_try) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; } &&
7832          { ac_try='test -s conftest$ac_exeext'
7833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834   (eval $ac_try) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; }; then
7838   ac_cv_lib_X11_XkbQueryExtension=yes
7839 else
7840   echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843 ac_cv_lib_X11_XkbQueryExtension=no
7844 fi
7845 rm -f conftest.err conftest.$ac_objext \
7846       conftest$ac_exeext conftest.$ac_ext
7847 LIBS=$ac_check_lib_save_LIBS
7848 fi
7849 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7850 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7851 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7852
7853 cat >>confdefs.h <<\_ACEOF
7854 #define HAVE_XKB 1
7855 _ACEOF
7856
7857 fi
7858
7859         fi
7860
7861                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7862         then
7863               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7864 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7865 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   ac_check_lib_save_LIBS=$LIBS
7869 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h.  */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h.  */
7876
7877 /* Override any gcc2 internal prototype to avoid an error.  */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 /* We use char because int might match the return type of a gcc2
7882    builtin and then its argument prototype would still apply.  */
7883 char XShmQueryExtension ();
7884 int
7885 main ()
7886 {
7887 XShmQueryExtension ();
7888   ;
7889   return 0;
7890 }
7891 _ACEOF
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894   (eval $ac_link) 2>conftest.er1
7895   ac_status=$?
7896   grep -v '^ *+' conftest.er1 >conftest.err
7897   rm -f conftest.er1
7898   cat conftest.err >&5
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); } &&
7901          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903   (eval $ac_try) 2>&5
7904   ac_status=$?
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); }; } &&
7907          { ac_try='test -s conftest$ac_exeext'
7908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909   (eval $ac_try) 2>&5
7910   ac_status=$?
7911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   (exit $ac_status); }; }; then
7913   ac_cv_lib_Xext_XShmQueryExtension=yes
7914 else
7915   echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 ac_cv_lib_Xext_XShmQueryExtension=no
7919 fi
7920 rm -f conftest.err conftest.$ac_objext \
7921       conftest$ac_exeext conftest.$ac_ext
7922 LIBS=$ac_check_lib_save_LIBS
7923 fi
7924 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7925 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7926 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7927
7928 cat >>confdefs.h <<\_ACEOF
7929 #define HAVE_LIBXXSHM 1
7930 _ACEOF
7931
7932 fi
7933
7934         fi
7935
7936                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7937         then
7938               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7939 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7940 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   ac_check_lib_save_LIBS=$LIBS
7944 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h.  */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h.  */
7951
7952 /* Override any gcc2 internal prototype to avoid an error.  */
7953 #ifdef __cplusplus
7954 extern "C"
7955 #endif
7956 /* We use char because int might match the return type of a gcc2
7957    builtin and then its argument prototype would still apply.  */
7958 char XShapeQueryExtension ();
7959 int
7960 main ()
7961 {
7962 XShapeQueryExtension ();
7963   ;
7964   return 0;
7965 }
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7969   (eval $ac_link) 2>conftest.er1
7970   ac_status=$?
7971   grep -v '^ *+' conftest.er1 >conftest.err
7972   rm -f conftest.er1
7973   cat conftest.err >&5
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } &&
7976          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978   (eval $ac_try) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); }; } &&
7982          { ac_try='test -s conftest$ac_exeext'
7983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984   (eval $ac_try) 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; }; then
7988   ac_cv_lib_Xext_XShapeQueryExtension=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 ac_cv_lib_Xext_XShapeQueryExtension=no
7994 fi
7995 rm -f conftest.err conftest.$ac_objext \
7996       conftest$ac_exeext conftest.$ac_ext
7997 LIBS=$ac_check_lib_save_LIBS
7998 fi
7999 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8000 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8001 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8002
8003 cat >>confdefs.h <<\_ACEOF
8004 #define HAVE_LIBXSHAPE 1
8005 _ACEOF
8006
8007 fi
8008
8009         fi
8010
8011                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8012         then
8013               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8014 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8015 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   ac_check_lib_save_LIBS=$LIBS
8019 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026
8027 /* Override any gcc2 internal prototype to avoid an error.  */
8028 #ifdef __cplusplus
8029 extern "C"
8030 #endif
8031 /* We use char because int might match the return type of a gcc2
8032    builtin and then its argument prototype would still apply.  */
8033 char XDGAQueryExtension ();
8034 int
8035 main ()
8036 {
8037 XDGAQueryExtension ();
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044   (eval $ac_link) 2>conftest.er1
8045   ac_status=$?
8046   grep -v '^ *+' conftest.er1 >conftest.err
8047   rm -f conftest.er1
8048   cat conftest.err >&5
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); } &&
8051          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053   (eval $ac_try) 2>&5
8054   ac_status=$?
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); }; } &&
8057          { ac_try='test -s conftest$ac_exeext'
8058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059   (eval $ac_try) 2>&5
8060   ac_status=$?
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); }; }; then
8063   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8064 else
8065   echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8069 fi
8070 rm -f conftest.err conftest.$ac_objext \
8071       conftest$ac_exeext conftest.$ac_ext
8072 LIBS=$ac_check_lib_save_LIBS
8073 fi
8074 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8075 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8076 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8077
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_LIBXXF86DGA2 1
8080 _ACEOF
8081
8082                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8083
8084 fi
8085
8086         fi
8087
8088                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8089         then
8090                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8091 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8092 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8093   echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095   ac_check_lib_save_LIBS=$LIBS
8096 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103
8104 /* Override any gcc2 internal prototype to avoid an error.  */
8105 #ifdef __cplusplus
8106 extern "C"
8107 #endif
8108 /* We use char because int might match the return type of a gcc2
8109    builtin and then its argument prototype would still apply.  */
8110 char XF86VidModeQueryExtension ();
8111 int
8112 main ()
8113 {
8114 XF86VidModeQueryExtension ();
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121   (eval $ac_link) 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; } &&
8134          { ac_try='test -s conftest$ac_exeext'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8146 fi
8147 rm -f conftest.err conftest.$ac_objext \
8148       conftest$ac_exeext conftest.$ac_ext
8149 LIBS=$ac_check_lib_save_LIBS
8150 fi
8151 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8152 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8153 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8154
8155 cat >>confdefs.h <<\_ACEOF
8156 #define HAVE_LIBXXF86VM 1
8157 _ACEOF
8158
8159                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8160
8161 fi
8162
8163         fi
8164
8165                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8166         then
8167                 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173 #include <X11/Xlib.h>
8174 #include <X11/extensions/Xrandr.h>
8175 int
8176 main ()
8177 {
8178 static typeof(XRRSetScreenConfigAndRate) * func;
8179   ;
8180   return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185   (eval $ac_compile) 2>conftest.er1
8186   ac_status=$?
8187   grep -v '^ *+' conftest.er1 >conftest.err
8188   rm -f conftest.er1
8189   cat conftest.err >&5
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); } &&
8192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194   (eval $ac_try) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; } &&
8198          { ac_try='test -s conftest.$ac_objext'
8199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; }; then
8204
8205 cat >>confdefs.h <<\_ACEOF
8206 #define HAVE_LIBXRANDR 1
8207 _ACEOF
8208
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 fi
8214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8215         fi
8216
8217                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8218         then
8219               echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8220 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8221 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8222   echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224   ac_check_lib_save_LIBS=$LIBS
8225 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8226 cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232
8233 /* Override any gcc2 internal prototype to avoid an error.  */
8234 #ifdef __cplusplus
8235 extern "C"
8236 #endif
8237 /* We use char because int might match the return type of a gcc2
8238    builtin and then its argument prototype would still apply.  */
8239 char XRenderSetPictureTransform ();
8240 int
8241 main ()
8242 {
8243 XRenderSetPictureTransform ();
8244   ;
8245   return 0;
8246 }
8247 _ACEOF
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8250   (eval $ac_link) 2>conftest.er1
8251   ac_status=$?
8252   grep -v '^ *+' conftest.er1 >conftest.err
8253   rm -f conftest.er1
8254   cat conftest.err >&5
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); } &&
8257          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259   (eval $ac_try) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); }; } &&
8263          { ac_try='test -s conftest$ac_exeext'
8264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265   (eval $ac_try) 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; }; then
8269   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8270 else
8271   echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8275 fi
8276 rm -f conftest.err conftest.$ac_objext \
8277       conftest$ac_exeext conftest.$ac_ext
8278 LIBS=$ac_check_lib_save_LIBS
8279 fi
8280 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8281 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8282 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8283
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8286 _ACEOF
8287
8288 fi
8289
8290         fi
8291
8292
8293 fi
8294
8295 done
8296
8297         if test "x$with_opengl" != "xno"
8298     then
8299         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8300         then
8301             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8302 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8303 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8304 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8305    { (exit 1); exit 1; }; }
8306         fi
8307
8308
8309
8310 for ac_header in GL/gl.h GL/glx.h
8311 do
8312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8314   echo "$as_me:$LINENO: checking for $ac_header" >&5
8315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 fi
8319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8321 else
8322   # Is the header compilable?
8323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h.  */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h.  */
8331 $ac_includes_default
8332 #include <$ac_header>
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336   (eval $ac_compile) 2>conftest.er1
8337   ac_status=$?
8338   grep -v '^ *+' conftest.er1 >conftest.err
8339   rm -f conftest.er1
8340   cat conftest.err >&5
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); } &&
8343          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345   (eval $ac_try) 2>&5
8346   ac_status=$?
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); }; } &&
8349          { ac_try='test -s conftest.$ac_objext'
8350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351   (eval $ac_try) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; }; then
8355   ac_header_compiler=yes
8356 else
8357   echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8359
8360 ac_header_compiler=no
8361 fi
8362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8364 echo "${ECHO_T}$ac_header_compiler" >&6
8365
8366 # Is the header present?
8367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8369 cat >conftest.$ac_ext <<_ACEOF
8370 /* confdefs.h.  */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h.  */
8375 #include <$ac_header>
8376 _ACEOF
8377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8379   ac_status=$?
8380   grep -v '^ *+' conftest.er1 >conftest.err
8381   rm -f conftest.er1
8382   cat conftest.err >&5
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); } >/dev/null; then
8385   if test -s conftest.err; then
8386     ac_cpp_err=$ac_c_preproc_warn_flag
8387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8388   else
8389     ac_cpp_err=
8390   fi
8391 else
8392   ac_cpp_err=yes
8393 fi
8394 if test -z "$ac_cpp_err"; then
8395   ac_header_preproc=yes
8396 else
8397   echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400   ac_header_preproc=no
8401 fi
8402 rm -f conftest.err conftest.$ac_ext
8403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8404 echo "${ECHO_T}$ac_header_preproc" >&6
8405
8406 # So?  What about this header?
8407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8408   yes:no: )
8409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8413     ac_header_preproc=yes
8414     ;;
8415   no:yes:* )
8416     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8418     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8419 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8420     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8422     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8423 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8426     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8428     (
8429       cat <<\_ASBOX
8430 ## ------------------------------------ ##
8431 ## Report this to wine-devel@winehq.org ##
8432 ## ------------------------------------ ##
8433 _ASBOX
8434     ) |
8435       sed "s/^/$as_me: WARNING:     /" >&2
8436     ;;
8437 esac
8438 echo "$as_me:$LINENO: checking for $ac_header" >&5
8439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8441   echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443   eval "$as_ac_Header=\$ac_header_preproc"
8444 fi
8445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8447
8448 fi
8449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8450   cat >>confdefs.h <<_ACEOF
8451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8452 _ACEOF
8453
8454 fi
8455
8456 done
8457
8458         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8459         then
8460
8461 for ac_header in GL/glext.h
8462 do
8463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8464 echo "$as_me:$LINENO: checking for $ac_header" >&5
8465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8467   echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469   cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h.  */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h.  */
8475 #include <GL/glx.h>
8476
8477 #include <$ac_header>
8478 _ACEOF
8479 rm -f conftest.$ac_objext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8481   (eval $ac_compile) 2>conftest.er1
8482   ac_status=$?
8483   grep -v '^ *+' conftest.er1 >conftest.err
8484   rm -f conftest.er1
8485   cat conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } &&
8488          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; } &&
8494          { ac_try='test -s conftest.$ac_objext'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; }; then
8500   eval "$as_ac_Header=yes"
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 eval "$as_ac_Header=no"
8506 fi
8507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8508 fi
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8512   cat >>confdefs.h <<_ACEOF
8513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8514 _ACEOF
8515
8516 fi
8517
8518 done
8519
8520                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8521 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8522 if test "${wine_cv_opengl_version_OK+set}" = set; then
8523   echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525   cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531 #include <GL/gl.h>
8532 int
8533 main ()
8534 {
8535 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8542   (eval $ac_compile) 2>conftest.er1
8543   ac_status=$?
8544   grep -v '^ *+' conftest.er1 >conftest.err
8545   rm -f conftest.er1
8546   cat conftest.err >&5
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); } &&
8549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; } &&
8555          { ac_try='test -s conftest.$ac_objext'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   wine_cv_opengl_version_OK="yes"
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 wine_cv_opengl_version_OK="no"
8567
8568 fi
8569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8570
8571 fi
8572 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8573 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8574
8575             if test "$wine_cv_opengl_version_OK" = "yes"
8576             then
8577                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8578 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8579 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8580   echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582   ac_check_lib_save_LIBS=$LIBS
8583 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590
8591 /* Override any gcc2 internal prototype to avoid an error.  */
8592 #ifdef __cplusplus
8593 extern "C"
8594 #endif
8595 /* We use char because int might match the return type of a gcc2
8596    builtin and then its argument prototype would still apply.  */
8597 char glXCreateContext ();
8598 int
8599 main ()
8600 {
8601 glXCreateContext ();
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608   (eval $ac_link) 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; } &&
8621          { ac_try='test -s conftest$ac_exeext'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; }; then
8627   ac_cv_lib_GL_glXCreateContext=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632 ac_cv_lib_GL_glXCreateContext=no
8633 fi
8634 rm -f conftest.err conftest.$ac_objext \
8635       conftest$ac_exeext conftest.$ac_ext
8636 LIBS=$ac_check_lib_save_LIBS
8637 fi
8638 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8639 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8640 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8641   OPENGL_LIBS="-lGL"
8642
8643 fi
8644
8645
8646                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8647                 then
8648                         OPENGLFILES='$(OPENGLFILES)'
8649
8650 cat >>confdefs.h <<\_ACEOF
8651 #define HAVE_OPENGL 1
8652 _ACEOF
8653
8654                 fi
8655                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8656 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8657 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   ac_check_lib_save_LIBS=$LIBS
8661 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8662                  $LIBS"
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h.  */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h.  */
8669
8670 /* Override any gcc2 internal prototype to avoid an error.  */
8671 #ifdef __cplusplus
8672 extern "C"
8673 #endif
8674 /* We use char because int might match the return type of a gcc2
8675    builtin and then its argument prototype would still apply.  */
8676 char gluLookAt ();
8677 int
8678 main ()
8679 {
8680 gluLookAt ();
8681   ;
8682   return 0;
8683 }
8684 _ACEOF
8685 rm -f conftest.$ac_objext conftest$ac_exeext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8687   (eval $ac_link) 2>conftest.er1
8688   ac_status=$?
8689   grep -v '^ *+' conftest.er1 >conftest.err
8690   rm -f conftest.er1
8691   cat conftest.err >&5
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); } &&
8694          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696   (eval $ac_try) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; } &&
8700          { ac_try='test -s conftest$ac_exeext'
8701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702   (eval $ac_try) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); }; }; then
8706   ac_cv_lib_GLU_gluLookAt=yes
8707 else
8708   echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 ac_cv_lib_GLU_gluLookAt=no
8712 fi
8713 rm -f conftest.err conftest.$ac_objext \
8714       conftest$ac_exeext conftest.$ac_ext
8715 LIBS=$ac_check_lib_save_LIBS
8716 fi
8717 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8718 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8719 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8720   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8721                              GLU32FILES='$(GLU32FILES)'
8722
8723 fi
8724
8725              fi
8726
8727                           echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8728 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8729 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8730   echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732   ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740
8741 /* Override any gcc2 internal prototype to avoid an error.  */
8742 #ifdef __cplusplus
8743 extern "C"
8744 #endif
8745 /* We use char because int might match the return type of a gcc2
8746    builtin and then its argument prototype would still apply.  */
8747 char glutMainLoop ();
8748 int
8749 main ()
8750 {
8751 glutMainLoop ();
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758   (eval $ac_link) 2>conftest.er1
8759   ac_status=$?
8760   grep -v '^ *+' conftest.er1 >conftest.err
8761   rm -f conftest.er1
8762   cat conftest.err >&5
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } &&
8765          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767   (eval $ac_try) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; } &&
8771          { ac_try='test -s conftest$ac_exeext'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; }; then
8777   ac_cv_lib_glut_glutMainLoop=yes
8778 else
8779   echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 ac_cv_lib_glut_glutMainLoop=no
8783 fi
8784 rm -f conftest.err conftest.$ac_objext \
8785       conftest$ac_exeext conftest.$ac_ext
8786 LIBS=$ac_check_lib_save_LIBS
8787 fi
8788 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8789 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8790 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8791   GLUT_LIBS="-lglut -lXmu -lXi"
8792
8793                         GLUT32FILES='$(GLUT32FILES)'
8794
8795 fi
8796
8797          fi
8798     fi
8799
8800         NASLIBS=""
8801
8802
8803 for ac_header in audio/audiolib.h
8804 do
8805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8807   echo "$as_me:$LINENO: checking for $ac_header" >&5
8808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8810   echo $ECHO_N "(cached) $ECHO_C" >&6
8811 fi
8812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8814 else
8815   # Is the header compilable?
8816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8818 cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h.  */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h.  */
8824 $ac_includes_default
8825 #include <$ac_header>
8826 _ACEOF
8827 rm -f conftest.$ac_objext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829   (eval $ac_compile) 2>conftest.er1
8830   ac_status=$?
8831   grep -v '^ *+' conftest.er1 >conftest.err
8832   rm -f conftest.er1
8833   cat conftest.err >&5
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); } &&
8836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838   (eval $ac_try) 2>&5
8839   ac_status=$?
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); }; } &&
8842          { ac_try='test -s conftest.$ac_objext'
8843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844   (eval $ac_try) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); }; }; then
8848   ac_header_compiler=yes
8849 else
8850   echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 ac_header_compiler=no
8854 fi
8855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8857 echo "${ECHO_T}$ac_header_compiler" >&6
8858
8859 # Is the header present?
8860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h.  */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h.  */
8868 #include <$ac_header>
8869 _ACEOF
8870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8872   ac_status=$?
8873   grep -v '^ *+' conftest.er1 >conftest.err
8874   rm -f conftest.er1
8875   cat conftest.err >&5
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); } >/dev/null; then
8878   if test -s conftest.err; then
8879     ac_cpp_err=$ac_c_preproc_warn_flag
8880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8881   else
8882     ac_cpp_err=
8883   fi
8884 else
8885   ac_cpp_err=yes
8886 fi
8887 if test -z "$ac_cpp_err"; then
8888   ac_header_preproc=yes
8889 else
8890   echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8892
8893   ac_header_preproc=no
8894 fi
8895 rm -f conftest.err conftest.$ac_ext
8896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8897 echo "${ECHO_T}$ac_header_preproc" >&6
8898
8899 # So?  What about this header?
8900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8901   yes:no: )
8902     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8906     ac_header_preproc=yes
8907     ;;
8908   no:yes:* )
8909     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8911     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8912 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8913     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8915     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8916 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8919     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8921     (
8922       cat <<\_ASBOX
8923 ## ------------------------------------ ##
8924 ## Report this to wine-devel@winehq.org ##
8925 ## ------------------------------------ ##
8926 _ASBOX
8927     ) |
8928       sed "s/^/$as_me: WARNING:     /" >&2
8929     ;;
8930 esac
8931 echo "$as_me:$LINENO: checking for $ac_header" >&5
8932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934   echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936   eval "$as_ac_Header=\$ac_header_preproc"
8937 fi
8938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8940
8941 fi
8942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8943   cat >>confdefs.h <<_ACEOF
8944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8945 _ACEOF
8946
8947 for ac_header in audio/soundlib.h
8948 do
8949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8950 echo "$as_me:$LINENO: checking for $ac_header" >&5
8951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h.  */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h.  */
8961 #include <audio/audiolib.h>
8962
8963 #include <$ac_header>
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967   (eval $ac_compile) 2>conftest.er1
8968   ac_status=$?
8969   grep -v '^ *+' conftest.er1 >conftest.err
8970   rm -f conftest.er1
8971   cat conftest.err >&5
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); } &&
8974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976   (eval $ac_try) 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); }; } &&
8980          { ac_try='test -s conftest.$ac_objext'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; }; then
8986   eval "$as_ac_Header=yes"
8987 else
8988   echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8990
8991 eval "$as_ac_Header=no"
8992 fi
8993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994 fi
8995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8998   cat >>confdefs.h <<_ACEOF
8999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9000 _ACEOF
9001
9002 fi
9003
9004 done
9005
9006           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9007 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9008 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9009   echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011   ac_check_lib_save_LIBS=$LIBS
9012 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h.  */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h.  */
9019
9020 /* Override any gcc2 internal prototype to avoid an error.  */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 /* We use char because int might match the return type of a gcc2
9025    builtin and then its argument prototype would still apply.  */
9026 char AuCreateFlow ();
9027 int
9028 main ()
9029 {
9030 AuCreateFlow ();
9031   ;
9032   return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext conftest$ac_exeext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037   (eval $ac_link) 2>conftest.er1
9038   ac_status=$?
9039   grep -v '^ *+' conftest.er1 >conftest.err
9040   rm -f conftest.er1
9041   cat conftest.err >&5
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); } &&
9044          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046   (eval $ac_try) 2>&5
9047   ac_status=$?
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); }; } &&
9050          { ac_try='test -s conftest$ac_exeext'
9051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052   (eval $ac_try) 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; }; then
9056   ac_cv_lib_audio_AuCreateFlow=yes
9057 else
9058   echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9060
9061 ac_cv_lib_audio_AuCreateFlow=no
9062 fi
9063 rm -f conftest.err conftest.$ac_objext \
9064       conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9066 fi
9067 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9068 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9069 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9070
9071 cat >>confdefs.h <<\_ACEOF
9072 #define HAVE_NAS 1
9073 _ACEOF
9074
9075                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9076 fi
9077
9078 fi
9079
9080 done
9081
9082
9083     CPPFLAGS="$ac_save_CPPFLAGS"
9084     XFILES='$(XFILES)'
9085 else
9086     XLIB=""
9087     X_CFLAGS=""
9088     X_LIBS=""
9089 fi
9090
9091 CURSESLIBS=""
9092 if test "x$with_curses" != "xno"
9093 then
9094
9095 for ac_header in ncurses.h
9096 do
9097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9099   echo "$as_me:$LINENO: checking for $ac_header" >&5
9100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 fi
9104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9106 else
9107   # Is the header compilable?
9108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9109 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
9117 #include <$ac_header>
9118 _ACEOF
9119 rm -f conftest.$ac_objext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121   (eval $ac_compile) 2>conftest.er1
9122   ac_status=$?
9123   grep -v '^ *+' conftest.er1 >conftest.err
9124   rm -f conftest.er1
9125   cat conftest.err >&5
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } &&
9128          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; } &&
9134          { ac_try='test -s conftest.$ac_objext'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; }; then
9140   ac_header_compiler=yes
9141 else
9142   echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 ac_header_compiler=no
9146 fi
9147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9149 echo "${ECHO_T}$ac_header_compiler" >&6
9150
9151 # Is the header present?
9152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9154 cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h.  */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h.  */
9160 #include <$ac_header>
9161 _ACEOF
9162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9164   ac_status=$?
9165   grep -v '^ *+' conftest.er1 >conftest.err
9166   rm -f conftest.er1
9167   cat conftest.err >&5
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } >/dev/null; then
9170   if test -s conftest.err; then
9171     ac_cpp_err=$ac_c_preproc_warn_flag
9172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9173   else
9174     ac_cpp_err=
9175   fi
9176 else
9177   ac_cpp_err=yes
9178 fi
9179 if test -z "$ac_cpp_err"; then
9180   ac_header_preproc=yes
9181 else
9182   echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9184
9185   ac_header_preproc=no
9186 fi
9187 rm -f conftest.err conftest.$ac_ext
9188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9189 echo "${ECHO_T}$ac_header_preproc" >&6
9190
9191 # So?  What about this header?
9192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9193   yes:no: )
9194     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9198     ac_header_preproc=yes
9199     ;;
9200   no:yes:* )
9201     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9203     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9204 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9205     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9207     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9208 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9211     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9213     (
9214       cat <<\_ASBOX
9215 ## ------------------------------------ ##
9216 ## Report this to wine-devel@winehq.org ##
9217 ## ------------------------------------ ##
9218 _ASBOX
9219     ) |
9220       sed "s/^/$as_me: WARNING:     /" >&2
9221     ;;
9222 esac
9223 echo "$as_me:$LINENO: checking for $ac_header" >&5
9224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228   eval "$as_ac_Header=\$ac_header_preproc"
9229 fi
9230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9232
9233 fi
9234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9235   cat >>confdefs.h <<_ACEOF
9236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9237 _ACEOF
9238  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9239 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9240 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243   ac_check_lib_save_LIBS=$LIBS
9244 LIBS="-lncurses  $LIBS"
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h.  */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h.  */
9251
9252 /* Override any gcc2 internal prototype to avoid an error.  */
9253 #ifdef __cplusplus
9254 extern "C"
9255 #endif
9256 /* We use char because int might match the return type of a gcc2
9257    builtin and then its argument prototype would still apply.  */
9258 char waddch ();
9259 int
9260 main ()
9261 {
9262 waddch ();
9263   ;
9264   return 0;
9265 }
9266 _ACEOF
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269   (eval $ac_link) 2>conftest.er1
9270   ac_status=$?
9271   grep -v '^ *+' conftest.er1 >conftest.err
9272   rm -f conftest.er1
9273   cat conftest.err >&5
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); } &&
9276          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278   (eval $ac_try) 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); }; } &&
9282          { ac_try='test -s conftest$ac_exeext'
9283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284   (eval $ac_try) 2>&5
9285   ac_status=$?
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); }; }; then
9288   ac_cv_lib_ncurses_waddch=yes
9289 else
9290   echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9292
9293 ac_cv_lib_ncurses_waddch=no
9294 fi
9295 rm -f conftest.err conftest.$ac_objext \
9296       conftest$ac_exeext conftest.$ac_ext
9297 LIBS=$ac_check_lib_save_LIBS
9298 fi
9299 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9300 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9301 if test $ac_cv_lib_ncurses_waddch = yes; then
9302
9303 cat >>confdefs.h <<\_ACEOF
9304 #define HAVE_LIBNCURSES 1
9305 _ACEOF
9306
9307              CURSESLIBS="-lncurses"
9308 else
9309
9310 for ac_header in curses.h
9311 do
9312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9314   echo "$as_me:$LINENO: checking for $ac_header" >&5
9315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9317   echo $ECHO_N "(cached) $ECHO_C" >&6
9318 fi
9319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9321 else
9322   # Is the header compilable?
9323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331 $ac_includes_default
9332 #include <$ac_header>
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9336   (eval $ac_compile) 2>conftest.er1
9337   ac_status=$?
9338   grep -v '^ *+' conftest.er1 >conftest.err
9339   rm -f conftest.er1
9340   cat conftest.err >&5
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); } &&
9343          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; } &&
9349          { ac_try='test -s conftest.$ac_objext'
9350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351   (eval $ac_try) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; }; then
9355   ac_header_compiler=yes
9356 else
9357   echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9359
9360 ac_header_compiler=no
9361 fi
9362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9364 echo "${ECHO_T}$ac_header_compiler" >&6
9365
9366 # Is the header present?
9367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h.  */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h.  */
9375 #include <$ac_header>
9376 _ACEOF
9377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9379   ac_status=$?
9380   grep -v '^ *+' conftest.er1 >conftest.err
9381   rm -f conftest.er1
9382   cat conftest.err >&5
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } >/dev/null; then
9385   if test -s conftest.err; then
9386     ac_cpp_err=$ac_c_preproc_warn_flag
9387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9388   else
9389     ac_cpp_err=
9390   fi
9391 else
9392   ac_cpp_err=yes
9393 fi
9394 if test -z "$ac_cpp_err"; then
9395   ac_header_preproc=yes
9396 else
9397   echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400   ac_header_preproc=no
9401 fi
9402 rm -f conftest.err conftest.$ac_ext
9403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9404 echo "${ECHO_T}$ac_header_preproc" >&6
9405
9406 # So?  What about this header?
9407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9408   yes:no: )
9409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9413     ac_header_preproc=yes
9414     ;;
9415   no:yes:* )
9416     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9418     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9419 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9420     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9422     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9423 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9426     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9428     (
9429       cat <<\_ASBOX
9430 ## ------------------------------------ ##
9431 ## Report this to wine-devel@winehq.org ##
9432 ## ------------------------------------ ##
9433 _ASBOX
9434     ) |
9435       sed "s/^/$as_me: WARNING:     /" >&2
9436     ;;
9437 esac
9438 echo "$as_me:$LINENO: checking for $ac_header" >&5
9439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443   eval "$as_ac_Header=\$ac_header_preproc"
9444 fi
9445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9447
9448 fi
9449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9450   cat >>confdefs.h <<_ACEOF
9451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9452 _ACEOF
9453  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9454 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9455 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9456   echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458   ac_check_lib_save_LIBS=$LIBS
9459 LIBS="-lcurses  $LIBS"
9460 cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h.  */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h.  */
9466
9467 /* Override any gcc2 internal prototype to avoid an error.  */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 /* We use char because int might match the return type of a gcc2
9472    builtin and then its argument prototype would still apply.  */
9473 char waddch ();
9474 int
9475 main ()
9476 {
9477 waddch ();
9478   ;
9479   return 0;
9480 }
9481 _ACEOF
9482 rm -f conftest.$ac_objext conftest$ac_exeext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9484   (eval $ac_link) 2>conftest.er1
9485   ac_status=$?
9486   grep -v '^ *+' conftest.er1 >conftest.err
9487   rm -f conftest.er1
9488   cat conftest.err >&5
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); } &&
9491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493   (eval $ac_try) 2>&5
9494   ac_status=$?
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   (exit $ac_status); }; } &&
9497          { ac_try='test -s conftest$ac_exeext'
9498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499   (eval $ac_try) 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); }; }; then
9503   ac_cv_lib_curses_waddch=yes
9504 else
9505   echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508 ac_cv_lib_curses_waddch=no
9509 fi
9510 rm -f conftest.err conftest.$ac_objext \
9511       conftest$ac_exeext conftest.$ac_ext
9512 LIBS=$ac_check_lib_save_LIBS
9513 fi
9514 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9515 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9516 if test $ac_cv_lib_curses_waddch = yes; then
9517
9518 cat >>confdefs.h <<\_ACEOF
9519 #define HAVE_LIBCURSES 1
9520 _ACEOF
9521
9522                       CURSESLIBS="-lcurses"
9523 fi
9524
9525 fi
9526
9527 done
9528
9529 fi
9530
9531 fi
9532
9533 done
9534
9535 fi
9536
9537
9538 # Extract the first word of "sane-config", so it can be a program name with args.
9539 set dummy sane-config; ac_word=$2
9540 echo "$as_me:$LINENO: checking for $ac_word" >&5
9541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9542 if test "${ac_cv_prog_sane_devel+set}" = set; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545   if test -n "$sane_devel"; then
9546   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9547 else
9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 for as_dir in $PATH
9550 do
9551   IFS=$as_save_IFS
9552   test -z "$as_dir" && as_dir=.
9553   for ac_exec_ext in '' $ac_executable_extensions; do
9554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9555     ac_cv_prog_sane_devel="sane-config"
9556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9557     break 2
9558   fi
9559 done
9560 done
9561
9562   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9563 fi
9564 fi
9565 sane_devel=$ac_cv_prog_sane_devel
9566 if test -n "$sane_devel"; then
9567   echo "$as_me:$LINENO: result: $sane_devel" >&5
9568 echo "${ECHO_T}$sane_devel" >&6
9569 else
9570   echo "$as_me:$LINENO: result: no" >&5
9571 echo "${ECHO_T}no" >&6
9572 fi
9573
9574 if test "$sane_devel" = "no"
9575 then
9576     SANELIBS=""
9577     SANEINCL=""
9578 else
9579     SANELIBS="`$sane_devel --libs`"
9580     SANEINCL="`$sane_devel --cflags`"
9581     ac_save_CPPFLAGS="$CPPFLAGS"
9582     ac_save_LIBS="$LIBS"
9583     CPPFLAGS="$CPPFLAGS $SANEINCL"
9584     LIBS="$LIBS $SANELIBS"
9585     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9586   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9587 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9588 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9589   echo $ECHO_N "(cached) $ECHO_C" >&6
9590 fi
9591 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9592 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9593 else
9594   # Is the header compilable?
9595 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9596 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h.  */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h.  */
9603 $ac_includes_default
9604 #include <sane/sane.h>
9605 _ACEOF
9606 rm -f conftest.$ac_objext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9608   (eval $ac_compile) 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } &&
9615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617   (eval $ac_try) 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); }; } &&
9621          { ac_try='test -s conftest.$ac_objext'
9622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623   (eval $ac_try) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); }; }; then
9627   ac_header_compiler=yes
9628 else
9629   echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9631
9632 ac_header_compiler=no
9633 fi
9634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9636 echo "${ECHO_T}$ac_header_compiler" >&6
9637
9638 # Is the header present?
9639 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9640 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9641 cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h.  */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h.  */
9647 #include <sane/sane.h>
9648 _ACEOF
9649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9651   ac_status=$?
9652   grep -v '^ *+' conftest.er1 >conftest.err
9653   rm -f conftest.er1
9654   cat conftest.err >&5
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); } >/dev/null; then
9657   if test -s conftest.err; then
9658     ac_cpp_err=$ac_c_preproc_warn_flag
9659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9660   else
9661     ac_cpp_err=
9662   fi
9663 else
9664   ac_cpp_err=yes
9665 fi
9666 if test -z "$ac_cpp_err"; then
9667   ac_header_preproc=yes
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672   ac_header_preproc=no
9673 fi
9674 rm -f conftest.err conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9676 echo "${ECHO_T}$ac_header_preproc" >&6
9677
9678 # So?  What about this header?
9679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9680   yes:no: )
9681     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9682 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9683     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9684 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9685     ac_header_preproc=yes
9686     ;;
9687   no:yes:* )
9688     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9689 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9690     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
9691 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
9692     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9693 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9694     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
9695 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9696     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9697 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9698     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9699 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9700     (
9701       cat <<\_ASBOX
9702 ## ------------------------------------ ##
9703 ## Report this to wine-devel@winehq.org ##
9704 ## ------------------------------------ ##
9705 _ASBOX
9706     ) |
9707       sed "s/^/$as_me: WARNING:     /" >&2
9708     ;;
9709 esac
9710 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9711 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9712 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   ac_cv_header_sane_sane_h=$ac_header_preproc
9716 fi
9717 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9718 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9719
9720 fi
9721 if test $ac_cv_header_sane_sane_h = yes; then
9722   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9723 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9724 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   ac_check_lib_save_LIBS=$LIBS
9728 LIBS="-lsane  $LIBS"
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h.  */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h.  */
9735
9736 /* Override any gcc2 internal prototype to avoid an error.  */
9737 #ifdef __cplusplus
9738 extern "C"
9739 #endif
9740 /* We use char because int might match the return type of a gcc2
9741    builtin and then its argument prototype would still apply.  */
9742 char sane_open ();
9743 int
9744 main ()
9745 {
9746 sane_open ();
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753   (eval $ac_link) 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762   (eval $ac_try) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; } &&
9766          { ac_try='test -s conftest$ac_exeext'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; }; then
9772   ac_cv_lib_sane_sane_open=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ac_cv_lib_sane_sane_open=no
9778 fi
9779 rm -f conftest.err conftest.$ac_objext \
9780       conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_lib_save_LIBS
9782 fi
9783 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9784 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9785 if test $ac_cv_lib_sane_sane_open = yes; then
9786
9787 cat >>confdefs.h <<\_ACEOF
9788 #define HAVE_SANE 1
9789 _ACEOF
9790
9791 else
9792   SANELIBS=""
9793                                   SANEINCL=""
9794 fi
9795
9796 else
9797   SANELIBS=""
9798                     SANEINCL=""
9799 fi
9800
9801
9802     LIBS="$ac_save_LIBS"
9803     CPPFLAGS="$ac_save_CPPFLAGS"
9804 fi
9805
9806
9807
9808
9809 for ac_header in unicode/ubidi.h
9810 do
9811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9813   echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 fi
9818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9820 else
9821   # Is the header compilable?
9822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h.  */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h.  */
9830 $ac_includes_default
9831 #include <$ac_header>
9832 _ACEOF
9833 rm -f conftest.$ac_objext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9835   (eval $ac_compile) 2>conftest.er1
9836   ac_status=$?
9837   grep -v '^ *+' conftest.er1 >conftest.err
9838   rm -f conftest.er1
9839   cat conftest.err >&5
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); } &&
9842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844   (eval $ac_try) 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); }; } &&
9848          { ac_try='test -s conftest.$ac_objext'
9849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850   (eval $ac_try) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; }; then
9854   ac_header_compiler=yes
9855 else
9856   echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 ac_header_compiler=no
9860 fi
9861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9863 echo "${ECHO_T}$ac_header_compiler" >&6
9864
9865 # Is the header present?
9866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874 #include <$ac_header>
9875 _ACEOF
9876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9878   ac_status=$?
9879   grep -v '^ *+' conftest.er1 >conftest.err
9880   rm -f conftest.er1
9881   cat conftest.err >&5
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); } >/dev/null; then
9884   if test -s conftest.err; then
9885     ac_cpp_err=$ac_c_preproc_warn_flag
9886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9887   else
9888     ac_cpp_err=
9889   fi
9890 else
9891   ac_cpp_err=yes
9892 fi
9893 if test -z "$ac_cpp_err"; then
9894   ac_header_preproc=yes
9895 else
9896   echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9898
9899   ac_header_preproc=no
9900 fi
9901 rm -f conftest.err conftest.$ac_ext
9902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9903 echo "${ECHO_T}$ac_header_preproc" >&6
9904
9905 # So?  What about this header?
9906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9907   yes:no: )
9908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9912     ac_header_preproc=yes
9913     ;;
9914   no:yes:* )
9915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9927     (
9928       cat <<\_ASBOX
9929 ## ------------------------------------ ##
9930 ## Report this to wine-devel@winehq.org ##
9931 ## ------------------------------------ ##
9932 _ASBOX
9933     ) |
9934       sed "s/^/$as_me: WARNING:     /" >&2
9935     ;;
9936 esac
9937 echo "$as_me:$LINENO: checking for $ac_header" >&5
9938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9940   echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942   eval "$as_ac_Header=\$ac_header_preproc"
9943 fi
9944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9946
9947 fi
9948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9949   cat >>confdefs.h <<_ACEOF
9950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9951 _ACEOF
9952
9953 fi
9954
9955 done
9956
9957 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9958 then
9959     saved_libs="$LIBS"
9960     ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9961     ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9962     ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9963     echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9964 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
9965     LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9966     cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972 #include <unicode/ubidi.h>
9973 int
9974 main ()
9975 {
9976 ubidi_open()
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9983   (eval $ac_link) 2>conftest.er1
9984   ac_status=$?
9985   grep -v '^ *+' conftest.er1 >conftest.err
9986   rm -f conftest.er1
9987   cat conftest.err >&5
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); } &&
9990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992   (eval $ac_try) 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); }; } &&
9996          { ac_try='test -s conftest$ac_exeext'
9997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998   (eval $ac_try) 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; }; then
10002
10003 cat >>confdefs.h <<\_ACEOF
10004 #define HAVE_ICU 1
10005 _ACEOF
10006
10007                  ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10008
10009                  echo "$as_me:$LINENO: result: yes" >&5
10010 echo "${ECHO_T}yes" >&6
10011 else
10012   echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 echo "$as_me:$LINENO: result: no" >&5
10016 echo "${ECHO_T}no" >&6
10017 fi
10018 rm -f conftest.err conftest.$ac_objext \
10019       conftest$ac_exeext conftest.$ac_ext
10020     LIBS="$saved_libs"
10021 fi
10022
10023 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10024 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10025 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028   ac_check_lib_save_LIBS=$LIBS
10029 LIBS="-lfreetype $X_LIBS $LIBS"
10030 cat >conftest.$ac_ext <<_ACEOF
10031 /* confdefs.h.  */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h.  */
10036
10037 /* Override any gcc2 internal prototype to avoid an error.  */
10038 #ifdef __cplusplus
10039 extern "C"
10040 #endif
10041 /* We use char because int might match the return type of a gcc2
10042    builtin and then its argument prototype would still apply.  */
10043 char FT_Init_FreeType ();
10044 int
10045 main ()
10046 {
10047 FT_Init_FreeType ();
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054   (eval $ac_link) 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
10058   cat conftest.err >&5
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } &&
10061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063   (eval $ac_try) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; } &&
10067          { ac_try='test -s conftest$ac_exeext'
10068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069   (eval $ac_try) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; }; then
10073   ac_cv_lib_freetype_FT_Init_FreeType=yes
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 ac_cv_lib_freetype_FT_Init_FreeType=no
10079 fi
10080 rm -f conftest.err conftest.$ac_objext \
10081       conftest$ac_exeext conftest.$ac_ext
10082 LIBS=$ac_check_lib_save_LIBS
10083 fi
10084 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10085 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10086 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10087   ft_lib=yes
10088 else
10089   ft_lib=no
10090 fi
10091
10092 if test "$ft_lib" = "no"
10093 then
10094     FREETYPELIBS=""
10095     FREETYPEINCL=""
10096     wine_cv_msg_freetype=no
10097 else
10098     # Extract the first word of "freetype-config", so it can be a program name with args.
10099 set dummy freetype-config; ac_word=$2
10100 echo "$as_me:$LINENO: checking for $ac_word" >&5
10101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10102 if test "${ac_cv_prog_ft_devel+set}" = set; then
10103   echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105   if test -n "$ft_devel"; then
10106   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10107 else
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10110 do
10111   IFS=$as_save_IFS
10112   test -z "$as_dir" && as_dir=.
10113   for ac_exec_ext in '' $ac_executable_extensions; do
10114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10115     ac_cv_prog_ft_devel="freetype-config"
10116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10117     break 2
10118   fi
10119 done
10120 done
10121
10122   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10123 fi
10124 fi
10125 ft_devel=$ac_cv_prog_ft_devel
10126 if test -n "$ft_devel"; then
10127   echo "$as_me:$LINENO: result: $ft_devel" >&5
10128 echo "${ECHO_T}$ft_devel" >&6
10129 else
10130   echo "$as_me:$LINENO: result: no" >&5
10131 echo "${ECHO_T}no" >&6
10132 fi
10133
10134     if test "$ft_devel" = "no"
10135     then
10136         # Extract the first word of "freetype2-config", so it can be a program name with args.
10137 set dummy freetype2-config; ac_word=$2
10138 echo "$as_me:$LINENO: checking for $ac_word" >&5
10139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10140 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10141   echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143   if test -n "$ft_devel2"; then
10144   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10145 else
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10148 do
10149   IFS=$as_save_IFS
10150   test -z "$as_dir" && as_dir=.
10151   for ac_exec_ext in '' $ac_executable_extensions; do
10152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153     ac_cv_prog_ft_devel2="freetype2-config"
10154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10155     break 2
10156   fi
10157 done
10158 done
10159
10160   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10161 fi
10162 fi
10163 ft_devel2=$ac_cv_prog_ft_devel2
10164 if test -n "$ft_devel2"; then
10165   echo "$as_me:$LINENO: result: $ft_devel2" >&5
10166 echo "${ECHO_T}$ft_devel2" >&6
10167 else
10168   echo "$as_me:$LINENO: result: no" >&5
10169 echo "${ECHO_T}no" >&6
10170 fi
10171
10172         if test "$ft_devel2" = "freetype2-config"
10173         then
10174                 ft_devel=$ft_devel2
10175         fi
10176     fi
10177     if test "$ft_devel" = "no"
10178     then
10179         FREETYPELIBS=""
10180         FREETYPEINCL=""
10181         wine_cv_msg_freetype=yes
10182     else
10183         FREETYPELIBS=`$ft_devel --libs`
10184         FREETYPEINCL=`$ft_devel --cflags`
10185         ac_save_CPPFLAGS="$CPPFLAGS"
10186         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197 for ac_header in ft2build.h \
10198                          freetype/freetype.h \
10199                          freetype/ftglyph.h \
10200                          freetype/tttables.h \
10201                          freetype/ftnames.h \
10202                          freetype/ftsnames.h \
10203                          freetype/ttnameid.h \
10204                          freetype/ftoutln.h \
10205                          freetype/ftwinfnt.h \
10206                          freetype/internal/sfnt.h
10207 do
10208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10209 echo "$as_me:$LINENO: checking for $ac_header" >&5
10210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h.  */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h.  */
10220 #if HAVE_FT2BUILD_H
10221                           #include <ft2build.h>
10222                           #endif
10223
10224 #include <$ac_header>
10225 _ACEOF
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228   (eval $ac_compile) 2>conftest.er1
10229   ac_status=$?
10230   grep -v '^ *+' conftest.er1 >conftest.err
10231   rm -f conftest.er1
10232   cat conftest.err >&5
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } &&
10235          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; } &&
10241          { ac_try='test -s conftest.$ac_objext'
10242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243   (eval $ac_try) 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; }; then
10247   eval "$as_ac_Header=yes"
10248 else
10249   echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252 eval "$as_ac_Header=no"
10253 fi
10254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10255 fi
10256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10259   cat >>confdefs.h <<_ACEOF
10260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10261 _ACEOF
10262
10263 fi
10264
10265 done
10266
10267         cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273 #include <ft2build.h>
10274                     #include <freetype/fttrigon.h>
10275 _ACEOF
10276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10278   ac_status=$?
10279   grep -v '^ *+' conftest.er1 >conftest.err
10280   rm -f conftest.er1
10281   cat conftest.err >&5
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); } >/dev/null; then
10284   if test -s conftest.err; then
10285     ac_cpp_err=$ac_c_preproc_warn_flag
10286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10287   else
10288     ac_cpp_err=
10289   fi
10290 else
10291   ac_cpp_err=yes
10292 fi
10293 if test -z "$ac_cpp_err"; then
10294
10295 cat >>confdefs.h <<\_ACEOF
10296 #define HAVE_FREETYPE_FTTRIGON_H 1
10297 _ACEOF
10298
10299                     wine_cv_fttrigon=yes
10300 else
10301   echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304   wine_cv_fttrigon=no
10305 fi
10306 rm -f conftest.err conftest.$ac_ext
10307         CPPFLAGS="$ac_save_CPPFLAGS"
10308                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10309         then
10310
10311 cat >>confdefs.h <<\_ACEOF
10312 #define HAVE_FREETYPE 1
10313 _ACEOF
10314
10315             wine_cv_msg_freetype=no
10316         else
10317             FREETYPELIBS=""
10318             FREETYPEINCL=""
10319             wine_cv_msg_freetype=yes
10320         fi
10321     fi
10322 fi
10323
10324
10325
10326 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10327 then
10328   FONTSSUBDIRS="fonts"
10329
10330 fi
10331
10332 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10333 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10334 if test "${ac_cv_c_ppdev+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h.  */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h.  */
10343 #include <linux/ppdev.h>
10344 int
10345 main ()
10346 {
10347 ioctl (1,PPCLAIM,0)
10348   ;
10349   return 0;
10350 }
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354   (eval $ac_compile) 2>conftest.er1
10355   ac_status=$?
10356   grep -v '^ *+' conftest.er1 >conftest.err
10357   rm -f conftest.er1
10358   cat conftest.err >&5
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } &&
10361          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; } &&
10367          { ac_try='test -s conftest.$ac_objext'
10368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369   (eval $ac_try) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; }; then
10373   ac_cv_c_ppdev="yes"
10374 else
10375   echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10377
10378 ac_cv_c_ppdev="no"
10379 fi
10380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10381
10382 fi
10383 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10384 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10385 if test "$ac_cv_c_ppdev" = "yes"
10386 then
10387
10388 cat >>confdefs.h <<\_ACEOF
10389 #define HAVE_PPDEV 1
10390 _ACEOF
10391
10392 fi
10393
10394 echo "$as_me:$LINENO: checking for va_copy" >&5
10395 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10396 if test "${ac_cv_c_va_copy+set}" = set; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h.  */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h.  */
10405 #include <stdarg.h>
10406 int
10407 main ()
10408 {
10409 va_list ap1, ap2;
10410     va_copy(ap1,ap2);
10411
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10418   (eval $ac_link) 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427   (eval $ac_try) 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; } &&
10431          { ac_try='test -s conftest$ac_exeext'
10432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433   (eval $ac_try) 2>&5
10434   ac_status=$?
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); }; }; then
10437   ac_cv_c_va_copy="yes"
10438 else
10439   echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442 ac_cv_c_va_copy="no"
10443 fi
10444 rm -f conftest.err conftest.$ac_objext \
10445       conftest$ac_exeext conftest.$ac_ext
10446
10447 fi
10448 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10449 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10450 if test "$ac_cv_c_va_copy" = "yes"
10451 then
10452
10453 cat >>confdefs.h <<\_ACEOF
10454 #define HAVE_VA_COPY 1
10455 _ACEOF
10456
10457 fi
10458 echo "$as_me:$LINENO: checking for __va_copy" >&5
10459 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10460 if test "${ac_cv_c___va_copy+set}" = set; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463   cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h.  */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h.  */
10469 #include <stdarg.h>
10470 int
10471 main ()
10472 {
10473 va_list ap1, ap2;
10474     __va_copy(ap1,ap2);
10475
10476   ;
10477   return 0;
10478 }
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482   (eval $ac_link) 2>conftest.er1
10483   ac_status=$?
10484   grep -v '^ *+' conftest.er1 >conftest.err
10485   rm -f conftest.er1
10486   cat conftest.err >&5
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } &&
10489          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491   (eval $ac_try) 2>&5
10492   ac_status=$?
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }; } &&
10495          { ac_try='test -s conftest$ac_exeext'
10496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497   (eval $ac_try) 2>&5
10498   ac_status=$?
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); }; }; then
10501   ac_cv_c___va_copy="yes"
10502 else
10503   echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10505
10506 ac_cv_c___va_copy="no"
10507 fi
10508 rm -f conftest.err conftest.$ac_objext \
10509       conftest$ac_exeext conftest.$ac_ext
10510
10511 fi
10512 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10513 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10514 if test "$ac_cv_c___va_copy" = "yes"
10515 then
10516
10517 cat >>confdefs.h <<\_ACEOF
10518 #define HAVE___VA_COPY 1
10519 _ACEOF
10520
10521 fi
10522
10523 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10524 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10525 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10526   echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528   cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h.  */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h.  */
10534 #include <setjmp.h>
10535 int
10536 main ()
10537 {
10538 sigjmp_buf buf;
10539     sigsetjmp( buf, 1 );
10540     siglongjmp( buf, 1 );
10541   ;
10542   return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10547   (eval $ac_link) 2>conftest.er1
10548   ac_status=$?
10549   grep -v '^ *+' conftest.er1 >conftest.err
10550   rm -f conftest.er1
10551   cat conftest.err >&5
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); } &&
10554          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; } &&
10560          { ac_try='test -s conftest$ac_exeext'
10561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562   (eval $ac_try) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); }; }; then
10566   ac_cv_c_sigsetjmp="yes"
10567 else
10568   echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_cv_c_sigsetjmp="no"
10572 fi
10573 rm -f conftest.err conftest.$ac_objext \
10574       conftest$ac_exeext conftest.$ac_ext
10575
10576 fi
10577 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10578 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10579 if test "$ac_cv_c_sigsetjmp" = "yes"
10580 then
10581
10582 cat >>confdefs.h <<\_ACEOF
10583 #define HAVE_SIGSETJMP 1
10584 _ACEOF
10585
10586 fi
10587
10588 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10589 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10590 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10591   echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593   cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h.  */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h.  */
10599 #define _GNU_SOURCE
10600 #include <pthread.h>
10601
10602 int
10603 main ()
10604 {
10605 if ((pthread_rwlock_t *) 0)
10606   return 0;
10607 if (sizeof (pthread_rwlock_t))
10608   return 0;
10609   ;
10610   return 0;
10611 }
10612 _ACEOF
10613 rm -f conftest.$ac_objext
10614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10615   (eval $ac_compile) 2>conftest.er1
10616   ac_status=$?
10617   grep -v '^ *+' conftest.er1 >conftest.err
10618   rm -f conftest.er1
10619   cat conftest.err >&5
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); } &&
10622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624   (eval $ac_try) 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); }; } &&
10628          { ac_try='test -s conftest.$ac_objext'
10629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630   (eval $ac_try) 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; }; then
10634   ac_cv_type_pthread_rwlock_t=yes
10635 else
10636   echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639 ac_cv_type_pthread_rwlock_t=no
10640 fi
10641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10642 fi
10643 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10644 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10645 if test $ac_cv_type_pthread_rwlock_t = yes; then
10646
10647 cat >>confdefs.h <<_ACEOF
10648 #define HAVE_PTHREAD_RWLOCK_T 1
10649 _ACEOF
10650
10651
10652 fi
10653 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10654 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10655 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10656   echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658   cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h.  */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h.  */
10664 #define _GNU_SOURCE
10665 #include <pthread.h>
10666
10667 int
10668 main ()
10669 {
10670 if ((pthread_rwlockattr_t *) 0)
10671   return 0;
10672 if (sizeof (pthread_rwlockattr_t))
10673   return 0;
10674   ;
10675   return 0;
10676 }
10677 _ACEOF
10678 rm -f conftest.$ac_objext
10679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10680   (eval $ac_compile) 2>conftest.er1
10681   ac_status=$?
10682   grep -v '^ *+' conftest.er1 >conftest.err
10683   rm -f conftest.er1
10684   cat conftest.err >&5
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); } &&
10687          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689   (eval $ac_try) 2>&5
10690   ac_status=$?
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); }; } &&
10693          { ac_try='test -s conftest.$ac_objext'
10694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695   (eval $ac_try) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; }; then
10699   ac_cv_type_pthread_rwlockattr_t=yes
10700 else
10701   echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10703
10704 ac_cv_type_pthread_rwlockattr_t=no
10705 fi
10706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10707 fi
10708 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10709 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10710 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10711
10712 cat >>confdefs.h <<_ACEOF
10713 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10714 _ACEOF
10715
10716
10717 fi
10718
10719
10720 ac_save_LIBS="$LIBS"
10721 LIBS="$LIBS $LIBPTHREAD"
10722
10723
10724
10725 for ac_func in \
10726         pthread_getattr_np \
10727         pthread_get_stackaddr_np \
10728         pthread_get_stacksize_np \
10729
10730 do
10731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10732 echo "$as_me:$LINENO: checking for $ac_func" >&5
10733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10734 if eval "test \"\${$as_ac_var+set}\" = set"; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10745 #define $ac_func innocuous_$ac_func
10746
10747 /* System header to define __stub macros and hopefully few prototypes,
10748     which can conflict with char $ac_func (); below.
10749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750     <limits.h> exists even on freestanding compilers.  */
10751
10752 #ifdef __STDC__
10753 # include <limits.h>
10754 #else
10755 # include <assert.h>
10756 #endif
10757
10758 #undef $ac_func
10759
10760 /* Override any gcc2 internal prototype to avoid an error.  */
10761 #ifdef __cplusplus
10762 extern "C"
10763 {
10764 #endif
10765 /* We use char because int might match the return type of a gcc2
10766    builtin and then its argument prototype would still apply.  */
10767 char $ac_func ();
10768 /* The GNU C library defines this for functions which it implements
10769     to always fail with ENOSYS.  Some functions are actually named
10770     something starting with __ and the normal name is an alias.  */
10771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10772 choke me
10773 #else
10774 char (*f) () = $ac_func;
10775 #endif
10776 #ifdef __cplusplus
10777 }
10778 #endif
10779
10780 int
10781 main ()
10782 {
10783 return f != $ac_func;
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790   (eval $ac_link) 2>conftest.er1
10791   ac_status=$?
10792   grep -v '^ *+' conftest.er1 >conftest.err
10793   rm -f conftest.er1
10794   cat conftest.err >&5
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } &&
10797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799   (eval $ac_try) 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; } &&
10803          { ac_try='test -s conftest$ac_exeext'
10804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805   (eval $ac_try) 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; }; then
10809   eval "$as_ac_var=yes"
10810 else
10811   echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10813
10814 eval "$as_ac_var=no"
10815 fi
10816 rm -f conftest.err conftest.$ac_objext \
10817       conftest$ac_exeext conftest.$ac_ext
10818 fi
10819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10821 if test `eval echo '${'$as_ac_var'}'` = yes; then
10822   cat >>confdefs.h <<_ACEOF
10823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10824 _ACEOF
10825
10826 fi
10827 done
10828
10829 LIBS="$ac_save_LIBS"
10830
10831
10832
10833
10834 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10835 do
10836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10838   echo "$as_me:$LINENO: checking for $ac_header" >&5
10839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 fi
10843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10845 else
10846   # Is the header compilable?
10847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h.  */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h.  */
10855 $ac_includes_default
10856 #include <$ac_header>
10857 _ACEOF
10858 rm -f conftest.$ac_objext
10859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10860   (eval $ac_compile) 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } &&
10867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869   (eval $ac_try) 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }; } &&
10873          { ac_try='test -s conftest.$ac_objext'
10874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875   (eval $ac_try) 2>&5
10876   ac_status=$?
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); }; }; then
10879   ac_header_compiler=yes
10880 else
10881   echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ac_header_compiler=no
10885 fi
10886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10888 echo "${ECHO_T}$ac_header_compiler" >&6
10889
10890 # Is the header present?
10891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h.  */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h.  */
10899 #include <$ac_header>
10900 _ACEOF
10901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10903   ac_status=$?
10904   grep -v '^ *+' conftest.er1 >conftest.err
10905   rm -f conftest.er1
10906   cat conftest.err >&5
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); } >/dev/null; then
10909   if test -s conftest.err; then
10910     ac_cpp_err=$ac_c_preproc_warn_flag
10911     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10912   else
10913     ac_cpp_err=
10914   fi
10915 else
10916   ac_cpp_err=yes
10917 fi
10918 if test -z "$ac_cpp_err"; then
10919   ac_header_preproc=yes
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924   ac_header_preproc=no
10925 fi
10926 rm -f conftest.err conftest.$ac_ext
10927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10928 echo "${ECHO_T}$ac_header_preproc" >&6
10929
10930 # So?  What about this header?
10931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10932   yes:no: )
10933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10937     ac_header_preproc=yes
10938     ;;
10939   no:yes:* )
10940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10952     (
10953       cat <<\_ASBOX
10954 ## ------------------------------------ ##
10955 ## Report this to wine-devel@winehq.org ##
10956 ## ------------------------------------ ##
10957 _ASBOX
10958     ) |
10959       sed "s/^/$as_me: WARNING:     /" >&2
10960     ;;
10961 esac
10962 echo "$as_me:$LINENO: checking for $ac_header" >&5
10963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10965   echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967   eval "$as_ac_Header=\$ac_header_preproc"
10968 fi
10969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10971
10972 fi
10973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10974   cat >>confdefs.h <<_ACEOF
10975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10976 _ACEOF
10977  break
10978 fi
10979
10980 done
10981
10982
10983 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10984 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10985 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10986   echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988   cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h.  */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h.  */
10994
10995         #if defined(HAVE_SYS_SOUNDCARD_H)
10996                 #include <sys/soundcard.h>
10997         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10998                 #include <machine/soundcard.h>
10999         #elif defined(HAVE_SOUNDCARD_H)
11000                 #include <soundcard.h>
11001         #endif
11002
11003 int
11004 main ()
11005 {
11006
11007
11008 /* check for one of the Open Sound System specific SNDCTL_ defines */
11009 #if !defined(SNDCTL_DSP_STEREO)
11010 #error No open sound system
11011 #endif
11012
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11019   (eval $ac_compile) 2>conftest.er1
11020   ac_status=$?
11021   grep -v '^ *+' conftest.er1 >conftest.err
11022   rm -f conftest.er1
11023   cat conftest.err >&5
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); } &&
11026          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; } &&
11032          { ac_try='test -s conftest.$ac_objext'
11033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034   (eval $ac_try) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; }; then
11038   ac_cv_c_opensoundsystem="yes"
11039 else
11040   echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 ac_cv_c_opensoundsystem="no"
11044 fi
11045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11046 fi
11047 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11048 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11049
11050 if test "$ac_cv_c_opensoundsystem" = "yes"
11051 then
11052
11053 cat >>confdefs.h <<\_ACEOF
11054 #define HAVE_OSS 1
11055 _ACEOF
11056
11057 fi
11058
11059 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11060 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11061 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11062   echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064   cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h.  */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h.  */
11070
11071         #if defined(HAVE_SYS_SOUNDCARD_H)
11072                 #include <sys/soundcard.h>
11073         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11074                 #include <machine/soundcard.h>
11075         #elif defined(HAVE_SOUNDCARD_H)
11076                 #include <soundcard.h>
11077         #endif
11078
11079 int
11080 main ()
11081 {
11082
11083
11084 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11085 #if !defined(SNDCTL_SEQ_SYNC)
11086 #error No open sound system MIDI interface
11087 #endif
11088
11089   ;
11090   return 0;
11091 }
11092 _ACEOF
11093 rm -f conftest.$ac_objext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11095   (eval $ac_compile) 2>conftest.er1
11096   ac_status=$?
11097   grep -v '^ *+' conftest.er1 >conftest.err
11098   rm -f conftest.er1
11099   cat conftest.err >&5
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } &&
11102          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104   (eval $ac_try) 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; } &&
11108          { ac_try='test -s conftest.$ac_objext'
11109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110   (eval $ac_try) 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; }; then
11114   ac_cv_c_opensoundsystem_midi="yes"
11115 else
11116   echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119 ac_cv_c_opensoundsystem_midi="no"
11120 fi
11121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11122 fi
11123 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11124 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11125
11126 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11127 then
11128
11129 cat >>confdefs.h <<\_ACEOF
11130 #define HAVE_OSS_MIDI 1
11131 _ACEOF
11132
11133 fi
11134
11135 # Extract the first word of "artsc-config", so it can be a program name with args.
11136 set dummy artsc-config; ac_word=$2
11137 echo "$as_me:$LINENO: checking for $ac_word" >&5
11138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11139 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11140   echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142   case $ARTSCCONFIG in
11143   [\\/]* | ?:[\\/]*)
11144   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11145   ;;
11146   *)
11147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148 for as_dir in $PATH
11149 do
11150   IFS=$as_save_IFS
11151   test -z "$as_dir" && as_dir=.
11152   for ac_exec_ext in '' $ac_executable_extensions; do
11153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11154     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11156     break 2
11157   fi
11158 done
11159 done
11160
11161   ;;
11162 esac
11163 fi
11164 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11165
11166 if test -n "$ARTSCCONFIG"; then
11167   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11168 echo "${ECHO_T}$ARTSCCONFIG" >&6
11169 else
11170   echo "$as_me:$LINENO: result: no" >&5
11171 echo "${ECHO_T}no" >&6
11172 fi
11173
11174 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11175 then
11176     ARTSC_CFLAGS=""
11177     for i in `$ARTSCCONFIG --cflags`
11178     do
11179       case "$i" in
11180         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11181       esac
11182     done
11183     ARTSC_LIBS=`$ARTSCCONFIG --libs`
11184     save_CFLAGS="$CFLAGS"
11185     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11186     cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h.  */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h.  */
11192 #include <artsc.h>
11193 int
11194 main ()
11195 {
11196 arts_stream_t stream;
11197   ;
11198   return 0;
11199 }
11200 _ACEOF
11201 rm -f conftest.$ac_objext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11203   (eval $ac_compile) 2>conftest.er1
11204   ac_status=$?
11205   grep -v '^ *+' conftest.er1 >conftest.err
11206   rm -f conftest.er1
11207   cat conftest.err >&5
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } &&
11210          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212   (eval $ac_try) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); }; } &&
11216          { ac_try='test -s conftest.$ac_objext'
11217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218   (eval $ac_try) 2>&5
11219   ac_status=$?
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); }; }; then
11222   ARTSLIBS=$ARTSC_LIBS
11223
11224          ARTSINCL=$ARTSC_CFLAGS
11225
11226
11227 cat >>confdefs.h <<\_ACEOF
11228 #define HAVE_ARTS 1
11229 _ACEOF
11230
11231 else
11232   echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 fi
11236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11237     CFLAGS="$save_CFLAGS"
11238 fi
11239
11240 ALSALIBS=""
11241
11242
11243
11244 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11245 do
11246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11248   echo "$as_me:$LINENO: checking for $ac_header" >&5
11249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11251   echo $ECHO_N "(cached) $ECHO_C" >&6
11252 fi
11253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11255 else
11256   # Is the header compilable?
11257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11259 cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h.  */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h.  */
11265 $ac_includes_default
11266 #include <$ac_header>
11267 _ACEOF
11268 rm -f conftest.$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270   (eval $ac_compile) 2>conftest.er1
11271   ac_status=$?
11272   grep -v '^ *+' conftest.er1 >conftest.err
11273   rm -f conftest.er1
11274   cat conftest.err >&5
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); } &&
11277          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279   (eval $ac_try) 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; } &&
11283          { ac_try='test -s conftest.$ac_objext'
11284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285   (eval $ac_try) 2>&5
11286   ac_status=$?
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); }; }; then
11289   ac_header_compiler=yes
11290 else
11291   echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294 ac_header_compiler=no
11295 fi
11296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298 echo "${ECHO_T}$ac_header_compiler" >&6
11299
11300 # Is the header present?
11301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h.  */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h.  */
11309 #include <$ac_header>
11310 _ACEOF
11311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11313   ac_status=$?
11314   grep -v '^ *+' conftest.er1 >conftest.err
11315   rm -f conftest.er1
11316   cat conftest.err >&5
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); } >/dev/null; then
11319   if test -s conftest.err; then
11320     ac_cpp_err=$ac_c_preproc_warn_flag
11321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11322   else
11323     ac_cpp_err=
11324   fi
11325 else
11326   ac_cpp_err=yes
11327 fi
11328 if test -z "$ac_cpp_err"; then
11329   ac_header_preproc=yes
11330 else
11331   echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11333
11334   ac_header_preproc=no
11335 fi
11336 rm -f conftest.err conftest.$ac_ext
11337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11338 echo "${ECHO_T}$ac_header_preproc" >&6
11339
11340 # So?  What about this header?
11341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11342   yes:no: )
11343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11347     ac_header_preproc=yes
11348     ;;
11349   no:yes:* )
11350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11362     (
11363       cat <<\_ASBOX
11364 ## ------------------------------------ ##
11365 ## Report this to wine-devel@winehq.org ##
11366 ## ------------------------------------ ##
11367 _ASBOX
11368     ) |
11369       sed "s/^/$as_me: WARNING:     /" >&2
11370     ;;
11371 esac
11372 echo "$as_me:$LINENO: checking for $ac_header" >&5
11373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377   eval "$as_ac_Header=\$ac_header_preproc"
11378 fi
11379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11381
11382 fi
11383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11384   cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386 _ACEOF
11387  break
11388 fi
11389
11390 done
11391
11392 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11393 then
11394     echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
11395 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6
11396 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
11397   echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399   ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-lasound  $LIBS"
11401 cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h.  */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h.  */
11407
11408 /* Override any gcc2 internal prototype to avoid an error.  */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 /* We use char because int might match the return type of a gcc2
11413    builtin and then its argument prototype would still apply.  */
11414 char snd_pcm_hw_params_get_access ();
11415 int
11416 main ()
11417 {
11418 snd_pcm_hw_params_get_access ();
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11425   (eval $ac_link) 2>conftest.er1
11426   ac_status=$?
11427   grep -v '^ *+' conftest.er1 >conftest.err
11428   rm -f conftest.er1
11429   cat conftest.err >&5
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); } &&
11432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434   (eval $ac_try) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); }; } &&
11438          { ac_try='test -s conftest$ac_exeext'
11439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440   (eval $ac_try) 2>&5
11441   ac_status=$?
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); }; }; then
11444   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
11445 else
11446   echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
11450 fi
11451 rm -f conftest.err conftest.$ac_objext \
11452       conftest$ac_exeext conftest.$ac_ext
11453 LIBS=$ac_check_lib_save_LIBS
11454 fi
11455 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
11456 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6
11457 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
11458   cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464 #ifdef HAVE_ALSA_ASOUNDLIB_H
11465 #include <alsa/asoundlib.h>
11466 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11467 #include <sys/asoundlib.h>
11468 #endif
11469 int
11470 main ()
11471 {
11472 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479   (eval $ac_compile) 2>conftest.er1
11480   ac_status=$?
11481   grep -v '^ *+' conftest.er1 >conftest.err
11482   rm -f conftest.er1
11483   cat conftest.err >&5
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } &&
11486          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; } &&
11492          { ac_try='test -s conftest.$ac_objext'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; }; then
11498
11499 cat >>confdefs.h <<\_ACEOF
11500 #define HAVE_ALSA 1
11501 _ACEOF
11502
11503                          ALSALIBS="-lasound"
11504 else
11505   echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11507
11508 fi
11509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11510 fi
11511
11512 fi
11513
11514
11515 AUDIOIOLIBS=""
11516
11517
11518 for ac_header in libaudioio.h
11519 do
11520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11522   echo "$as_me:$LINENO: checking for $ac_header" >&5
11523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11525   echo $ECHO_N "(cached) $ECHO_C" >&6
11526 fi
11527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11529 else
11530   # Is the header compilable?
11531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539 $ac_includes_default
11540 #include <$ac_header>
11541 _ACEOF
11542 rm -f conftest.$ac_objext
11543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11544   (eval $ac_compile) 2>conftest.er1
11545   ac_status=$?
11546   grep -v '^ *+' conftest.er1 >conftest.err
11547   rm -f conftest.er1
11548   cat conftest.err >&5
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } &&
11551          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553   (eval $ac_try) 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); }; } &&
11557          { ac_try='test -s conftest.$ac_objext'
11558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559   (eval $ac_try) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); }; }; then
11563   ac_header_compiler=yes
11564 else
11565   echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11567
11568 ac_header_compiler=no
11569 fi
11570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11572 echo "${ECHO_T}$ac_header_compiler" >&6
11573
11574 # Is the header present?
11575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11577 cat >conftest.$ac_ext <<_ACEOF
11578 /* confdefs.h.  */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h.  */
11583 #include <$ac_header>
11584 _ACEOF
11585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11587   ac_status=$?
11588   grep -v '^ *+' conftest.er1 >conftest.err
11589   rm -f conftest.er1
11590   cat conftest.err >&5
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); } >/dev/null; then
11593   if test -s conftest.err; then
11594     ac_cpp_err=$ac_c_preproc_warn_flag
11595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11596   else
11597     ac_cpp_err=
11598   fi
11599 else
11600   ac_cpp_err=yes
11601 fi
11602 if test -z "$ac_cpp_err"; then
11603   ac_header_preproc=yes
11604 else
11605   echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11607
11608   ac_header_preproc=no
11609 fi
11610 rm -f conftest.err conftest.$ac_ext
11611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11612 echo "${ECHO_T}$ac_header_preproc" >&6
11613
11614 # So?  What about this header?
11615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11616   yes:no: )
11617     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11621     ac_header_preproc=yes
11622     ;;
11623   no:yes:* )
11624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11626     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11627 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11628     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11630     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11631 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11634     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11636     (
11637       cat <<\_ASBOX
11638 ## ------------------------------------ ##
11639 ## Report this to wine-devel@winehq.org ##
11640 ## ------------------------------------ ##
11641 _ASBOX
11642     ) |
11643       sed "s/^/$as_me: WARNING:     /" >&2
11644     ;;
11645 esac
11646 echo "$as_me:$LINENO: checking for $ac_header" >&5
11647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   eval "$as_ac_Header=\$ac_header_preproc"
11652 fi
11653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11655
11656 fi
11657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11658   cat >>confdefs.h <<_ACEOF
11659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11660 _ACEOF
11661  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11662 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11663 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11664   echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666   ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-laudioio  $LIBS"
11668 cat >conftest.$ac_ext <<_ACEOF
11669 /* confdefs.h.  */
11670 _ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h.  */
11674
11675 /* Override any gcc2 internal prototype to avoid an error.  */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 /* We use char because int might match the return type of a gcc2
11680    builtin and then its argument prototype would still apply.  */
11681 char AudioIOGetVersion ();
11682 int
11683 main ()
11684 {
11685 AudioIOGetVersion ();
11686   ;
11687   return 0;
11688 }
11689 _ACEOF
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11692   (eval $ac_link) 2>conftest.er1
11693   ac_status=$?
11694   grep -v '^ *+' conftest.er1 >conftest.err
11695   rm -f conftest.er1
11696   cat conftest.err >&5
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); } &&
11699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701   (eval $ac_try) 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); }; } &&
11705          { ac_try='test -s conftest$ac_exeext'
11706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707   (eval $ac_try) 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); }; }; then
11711   ac_cv_lib_audioio_AudioIOGetVersion=yes
11712 else
11713   echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11715
11716 ac_cv_lib_audioio_AudioIOGetVersion=no
11717 fi
11718 rm -f conftest.err conftest.$ac_objext \
11719       conftest$ac_exeext conftest.$ac_ext
11720 LIBS=$ac_check_lib_save_LIBS
11721 fi
11722 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11723 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11724 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11725   AUDIOIOLIBS="-laudioio"
11726
11727 cat >>confdefs.h <<\_ACEOF
11728 #define HAVE_LIBAUDIOIO 1
11729 _ACEOF
11730
11731 fi
11732
11733 fi
11734
11735 done
11736
11737
11738
11739
11740 for ac_header in capi20.h
11741 do
11742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11744   echo "$as_me:$LINENO: checking for $ac_header" >&5
11745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11747   echo $ECHO_N "(cached) $ECHO_C" >&6
11748 fi
11749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11751 else
11752   # Is the header compilable?
11753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h.  */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h.  */
11761 $ac_includes_default
11762 #include <$ac_header>
11763 _ACEOF
11764 rm -f conftest.$ac_objext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11766   (eval $ac_compile) 2>conftest.er1
11767   ac_status=$?
11768   grep -v '^ *+' conftest.er1 >conftest.err
11769   rm -f conftest.er1
11770   cat conftest.err >&5
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } &&
11773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775   (eval $ac_try) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; } &&
11779          { ac_try='test -s conftest.$ac_objext'
11780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781   (eval $ac_try) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; }; then
11785   ac_header_compiler=yes
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 ac_header_compiler=no
11791 fi
11792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11794 echo "${ECHO_T}$ac_header_compiler" >&6
11795
11796 # Is the header present?
11797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h.  */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h.  */
11805 #include <$ac_header>
11806 _ACEOF
11807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11809   ac_status=$?
11810   grep -v '^ *+' conftest.er1 >conftest.err
11811   rm -f conftest.er1
11812   cat conftest.err >&5
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } >/dev/null; then
11815   if test -s conftest.err; then
11816     ac_cpp_err=$ac_c_preproc_warn_flag
11817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11818   else
11819     ac_cpp_err=
11820   fi
11821 else
11822   ac_cpp_err=yes
11823 fi
11824 if test -z "$ac_cpp_err"; then
11825   ac_header_preproc=yes
11826 else
11827   echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830   ac_header_preproc=no
11831 fi
11832 rm -f conftest.err conftest.$ac_ext
11833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11834 echo "${ECHO_T}$ac_header_preproc" >&6
11835
11836 # So?  What about this header?
11837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11838   yes:no: )
11839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11843     ac_header_preproc=yes
11844     ;;
11845   no:yes:* )
11846     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11848     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11849 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11850     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11852     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11853 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11856     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11858     (
11859       cat <<\_ASBOX
11860 ## ------------------------------------ ##
11861 ## Report this to wine-devel@winehq.org ##
11862 ## ------------------------------------ ##
11863 _ASBOX
11864     ) |
11865       sed "s/^/$as_me: WARNING:     /" >&2
11866     ;;
11867 esac
11868 echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11871   echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873   eval "$as_ac_Header=\$ac_header_preproc"
11874 fi
11875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11877
11878 fi
11879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11880   cat >>confdefs.h <<_ACEOF
11881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11882 _ACEOF
11883
11884
11885 for ac_header in linux/capi.h
11886 do
11887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11889   echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 fi
11894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11896 else
11897   # Is the header compilable?
11898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h.  */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h.  */
11906 $ac_includes_default
11907 #include <$ac_header>
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911   (eval $ac_compile) 2>conftest.er1
11912   ac_status=$?
11913   grep -v '^ *+' conftest.er1 >conftest.err
11914   rm -f conftest.er1
11915   cat conftest.err >&5
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; } &&
11924          { ac_try='test -s conftest.$ac_objext'
11925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926   (eval $ac_try) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; }; then
11930   ac_header_compiler=yes
11931 else
11932   echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 ac_header_compiler=no
11936 fi
11937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11939 echo "${ECHO_T}$ac_header_compiler" >&6
11940
11941 # Is the header present?
11942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h.  */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h.  */
11950 #include <$ac_header>
11951 _ACEOF
11952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11954   ac_status=$?
11955   grep -v '^ *+' conftest.er1 >conftest.err
11956   rm -f conftest.er1
11957   cat conftest.err >&5
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } >/dev/null; then
11960   if test -s conftest.err; then
11961     ac_cpp_err=$ac_c_preproc_warn_flag
11962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11963   else
11964     ac_cpp_err=
11965   fi
11966 else
11967   ac_cpp_err=yes
11968 fi
11969 if test -z "$ac_cpp_err"; then
11970   ac_header_preproc=yes
11971 else
11972   echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11974
11975   ac_header_preproc=no
11976 fi
11977 rm -f conftest.err conftest.$ac_ext
11978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11979 echo "${ECHO_T}$ac_header_preproc" >&6
11980
11981 # So?  What about this header?
11982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11983   yes:no: )
11984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11988     ac_header_preproc=yes
11989     ;;
11990   no:yes:* )
11991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12003     (
12004       cat <<\_ASBOX
12005 ## ------------------------------------ ##
12006 ## Report this to wine-devel@winehq.org ##
12007 ## ------------------------------------ ##
12008 _ASBOX
12009     ) |
12010       sed "s/^/$as_me: WARNING:     /" >&2
12011     ;;
12012 esac
12013 echo "$as_me:$LINENO: checking for $ac_header" >&5
12014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12016   echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018   eval "$as_ac_Header=\$ac_header_preproc"
12019 fi
12020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12022
12023 fi
12024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12025   cat >>confdefs.h <<_ACEOF
12026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12027 _ACEOF
12028
12029                 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12030 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12031 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12032   echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034   ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-lcapi20  $LIBS"
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042
12043 /* Override any gcc2 internal prototype to avoid an error.  */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 /* We use char because int might match the return type of a gcc2
12048    builtin and then its argument prototype would still apply.  */
12049 char capi20_register ();
12050 int
12051 main ()
12052 {
12053 capi20_register ();
12054   ;
12055   return 0;
12056 }
12057 _ACEOF
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12060   (eval $ac_link) 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } &&
12067          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; } &&
12073          { ac_try='test -s conftest$ac_exeext'
12074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075   (eval $ac_try) 2>&5
12076   ac_status=$?
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); }; }; then
12079   ac_cv_lib_capi20_capi20_register=yes
12080 else
12081   echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12083
12084 ac_cv_lib_capi20_capi20_register=no
12085 fi
12086 rm -f conftest.err conftest.$ac_objext \
12087       conftest$ac_exeext conftest.$ac_ext
12088 LIBS=$ac_check_lib_save_LIBS
12089 fi
12090 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12091 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12092 if test $ac_cv_lib_capi20_capi20_register = yes; then
12093
12094
12095 cat >>confdefs.h <<\_ACEOF
12096 #define HAVE_CAPI4LINUX 1
12097 _ACEOF
12098
12099
12100 fi
12101
12102
12103 fi
12104
12105 done
12106
12107
12108 fi
12109
12110 done
12111
12112
12113
12114 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12115 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12116 if test "${ac_cv_mmap64_works+set}" = set; then
12117   echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119   if test "$cross_compiling" = yes; then
12120   ac_cv_mmap64_works="no"
12121 else
12122   cat >conftest.$ac_ext <<_ACEOF
12123 /* confdefs.h.  */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h.  */
12128
12129                 #define _FILE_OFFSET_BITS 64
12130                 #include <stdio.h>
12131                 #include <unistd.h>
12132                 #include <fcntl.h>
12133                 #include <sys/mman.h>
12134                 #include <errno.h>
12135
12136                 int main(int argc,char **argv) {
12137                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12138                         if (fd == -1) exit(1);
12139
12140                         unlink("conftest.map");
12141
12142                         write(fd,"test",4);
12143
12144                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12145                             (errno == EINVAL)
12146                         ) {
12147                                 exit(1);
12148                         }
12149                         close(fd);
12150                         fprintf(stderr,"success!\n");
12151                         exit(0);
12152                 }
12153
12154
12155 _ACEOF
12156 rm -f conftest$ac_exeext
12157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158   (eval $ac_link) 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163   (eval $ac_try) 2>&5
12164   ac_status=$?
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); }; }; then
12167   ac_cv_mmap64_works="yes"
12168 else
12169   echo "$as_me: program exited with status $ac_status" >&5
12170 echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173 ( exit $ac_status )
12174 ac_cv_mmap64_works="no"
12175 fi
12176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12177 fi
12178 fi
12179 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12180 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12181
12182 if test "$ac_cv_mmap64_works" = "yes"
12183 then
12184
12185 cat >>confdefs.h <<\_ACEOF
12186 #define _FILE_OFFSET_BITS 64
12187 _ACEOF
12188
12189 fi
12190
12191
12192 EXTRACFLAGS=""
12193
12194 if test "x${GCC}" = "xyes"
12195 then
12196   EXTRACFLAGS="-Wall -pipe"
12197
12198     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12199 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12200 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12201   echo $ECHO_N "(cached) $ECHO_C" >&6
12202 else
12203   if test "$cross_compiling" = yes; then
12204   ac_cv_c_gcc_strength_bug="yes"
12205 else
12206   cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h.  */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h.  */
12212
12213 int     L[4] = {0,1,2,3};
12214 int main(void) {
12215   static int Array[3];
12216   unsigned int B = 3;
12217   int i;
12218   for(i=0; i<B; i++) Array[i] = i - 3;
12219   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12220   L[i] = 4;
12221
12222   exit( Array[1] != -2 || L[2] != 3);
12223 }
12224 _ACEOF
12225 rm -f conftest$ac_exeext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12227   (eval $ac_link) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232   (eval $ac_try) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; }; then
12236   ac_cv_c_gcc_strength_bug="no"
12237 else
12238   echo "$as_me: program exited with status $ac_status" >&5
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12241
12242 ( exit $ac_status )
12243 ac_cv_c_gcc_strength_bug="yes"
12244 fi
12245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12246 fi
12247 fi
12248 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12249 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12250   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12251   then
12252     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12253   fi
12254
12255     echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12256 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12257 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12258   echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260   ac_wine_try_cflags_saved=$CFLAGS
12261 CFLAGS="$CFLAGS -fshort-wchar"
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h.  */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h.  */
12268
12269 int
12270 main ()
12271 {
12272
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279   (eval $ac_link) 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } &&
12286          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288   (eval $ac_try) 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); }; } &&
12292          { ac_try='test -s conftest$ac_exeext'
12293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294   (eval $ac_try) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; }; then
12298   ac_cv_c_gcc_fshort_wchar="yes"
12299 else
12300   echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12302
12303 ac_cv_c_gcc_fshort_wchar="no"
12304 fi
12305 rm -f conftest.err conftest.$ac_objext \
12306       conftest$ac_exeext conftest.$ac_ext
12307 CFLAGS=$ac_wine_try_cflags_saved
12308 fi
12309 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12310 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12311   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12312   then
12313
12314 cat >>confdefs.h <<\_ACEOF
12315 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12316 _ACEOF
12317
12318   fi
12319
12320     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12321 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12322 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   ac_wine_try_cflags_saved=$CFLAGS
12326 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h.  */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h.  */
12333
12334 int
12335 main ()
12336 {
12337
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344   (eval $ac_link) 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } &&
12351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353   (eval $ac_try) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; } &&
12357          { ac_try='test -s conftest$ac_exeext'
12358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359   (eval $ac_try) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; }; then
12363   ac_cv_c_gcc_stack_boundary="yes"
12364 else
12365   echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368 ac_cv_c_gcc_stack_boundary="no"
12369 fi
12370 rm -f conftest.err conftest.$ac_objext \
12371       conftest$ac_exeext conftest.$ac_ext
12372 CFLAGS=$ac_wine_try_cflags_saved
12373 fi
12374 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12375 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12376   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12377   then
12378     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12379   fi
12380
12381     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12382 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12383 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12384   echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else
12386   ac_wine_try_cflags_saved=$CFLAGS
12387 CFLAGS="$CFLAGS -fno-strict-aliasing"
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394
12395 int
12396 main ()
12397 {
12398
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405   (eval $ac_link) 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } &&
12412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414   (eval $ac_try) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; } &&
12418          { ac_try='test -s conftest$ac_exeext'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; }; then
12424   ac_cv_c_gcc_no_strict_aliasing="yes"
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429 ac_cv_c_gcc_no_strict_aliasing="no"
12430 fi
12431 rm -f conftest.err conftest.$ac_objext \
12432       conftest$ac_exeext conftest.$ac_ext
12433 CFLAGS=$ac_wine_try_cflags_saved
12434 fi
12435 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12436 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12437   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12438   then
12439     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12440   fi
12441
12442     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12443 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12444 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12445   echo $ECHO_N "(cached) $ECHO_C" >&6
12446 else
12447   ac_wine_try_cflags_saved=$CFLAGS
12448 CFLAGS="$CFLAGS -gstabs+"
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h.  */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h.  */
12455
12456 int
12457 main ()
12458 {
12459
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466   (eval $ac_link) 2>conftest.er1
12467   ac_status=$?
12468   grep -v '^ *+' conftest.er1 >conftest.err
12469   rm -f conftest.er1
12470   cat conftest.err >&5
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } &&
12473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475   (eval $ac_try) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); }; } &&
12479          { ac_try='test -s conftest$ac_exeext'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; }; then
12485   ac_cv_c_gcc_gstabs="yes"
12486 else
12487   echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490 ac_cv_c_gcc_gstabs="no"
12491 fi
12492 rm -f conftest.err conftest.$ac_objext \
12493       conftest$ac_exeext conftest.$ac_ext
12494 CFLAGS=$ac_wine_try_cflags_saved
12495 fi
12496 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12497 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12498   if test "$ac_cv_c_gcc_gstabs" = "yes"
12499   then
12500     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12501   fi
12502
12503     saved_CFLAGS="$CFLAGS"
12504   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12505   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12506 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12507 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h.  */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h.  */
12516 #include <string.h>
12517 int
12518 main ()
12519 {
12520
12521   ;
12522   return 0;
12523 }
12524 _ACEOF
12525 rm -f conftest.$ac_objext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12527   (eval $ac_compile) 2>conftest.er1
12528   ac_status=$?
12529   grep -v '^ *+' conftest.er1 >conftest.err
12530   rm -f conftest.er1
12531   cat conftest.err >&5
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); } &&
12534          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest.$ac_objext'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   ac_cv_c_string_h_warnings=no
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 ac_cv_c_string_h_warnings=yes
12552 fi
12553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12554 fi
12555 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12556 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12557   CFLAGS="$saved_CFLAGS"
12558   if test "$ac_cv_c_string_h_warnings" = "no"
12559   then
12560     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12561   fi
12562 fi
12563
12564
12565 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12566 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12567 if test "${ac_cv_asm_func_def+set}" = set; then
12568   echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570   cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h.  */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h.  */
12576 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"); }
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_asm_func_def=".def"
12608 else
12609   echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12611
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h.  */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h.  */
12618 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12619
12620 int
12621 main ()
12622 {
12623
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12630   (eval $ac_link) 2>conftest.er1
12631   ac_status=$?
12632   grep -v '^ *+' conftest.er1 >conftest.err
12633   rm -f conftest.er1
12634   cat conftest.err >&5
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); } &&
12637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639   (eval $ac_try) 2>&5
12640   ac_status=$?
12641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); }; } &&
12643          { ac_try='test -s conftest$ac_exeext'
12644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645   (eval $ac_try) 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; }; then
12649   ac_cv_asm_func_def=".type @function"
12650 else
12651   echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12653
12654 cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h.  */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h.  */
12660 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12661
12662 int
12663 main ()
12664 {
12665
12666   ;
12667   return 0;
12668 }
12669 _ACEOF
12670 rm -f conftest.$ac_objext conftest$ac_exeext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12672   (eval $ac_link) 2>conftest.er1
12673   ac_status=$?
12674   grep -v '^ *+' conftest.er1 >conftest.err
12675   rm -f conftest.er1
12676   cat conftest.err >&5
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); } &&
12679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; } &&
12685          { ac_try='test -s conftest$ac_exeext'
12686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687   (eval $ac_try) 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }; }; then
12691   ac_cv_asm_func_def=".type 2"
12692 else
12693   echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 ac_cv_asm_func_def="unknown"
12697 fi
12698 rm -f conftest.err conftest.$ac_objext \
12699       conftest$ac_exeext conftest.$ac_ext
12700 fi
12701 rm -f conftest.err conftest.$ac_objext \
12702       conftest$ac_exeext conftest.$ac_ext
12703 fi
12704 rm -f conftest.err conftest.$ac_objext \
12705       conftest$ac_exeext conftest.$ac_ext
12706 fi
12707 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12708 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12709
12710
12711
12712 case "$ac_cv_asm_func_def" in
12713   ".def")
12714      cat >>confdefs.h <<\_ACEOF
12715 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12716 _ACEOF
12717  ;;
12718   ".type @function")
12719      cat >>confdefs.h <<\_ACEOF
12720 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12721 _ACEOF
12722  ;;
12723   ".type 2")
12724      cat >>confdefs.h <<\_ACEOF
12725 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12726 _ACEOF
12727  ;;
12728   *)
12729      cat >>confdefs.h <<\_ACEOF
12730 #define __ASM_FUNC(name) ""
12731 _ACEOF
12732  ;;
12733 esac
12734
12735
12736 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12737 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12738 if test "${ac_cv_c_extern_prefix+set}" = set; then
12739   echo $ECHO_N "(cached) $ECHO_C" >&6
12740 else
12741   cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h.  */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h.  */
12747 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12748 extern int ac_test;
12749 int
12750 main ()
12751 {
12752 if (ac_test) return 1
12753   ;
12754   return 0;
12755 }
12756 _ACEOF
12757 rm -f conftest.$ac_objext conftest$ac_exeext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12759   (eval $ac_link) 2>conftest.er1
12760   ac_status=$?
12761   grep -v '^ *+' conftest.er1 >conftest.err
12762   rm -f conftest.er1
12763   cat conftest.err >&5
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); } &&
12766          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768   (eval $ac_try) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; } &&
12772          { ac_try='test -s conftest$ac_exeext'
12773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774   (eval $ac_try) 2>&5
12775   ac_status=$?
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); }; }; then
12778   ac_cv_c_extern_prefix="yes"
12779 else
12780   echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782
12783 ac_cv_c_extern_prefix="no"
12784 fi
12785 rm -f conftest.err conftest.$ac_objext \
12786       conftest$ac_exeext conftest.$ac_ext
12787 fi
12788 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12789 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12790
12791
12792
12793 if test "$ac_cv_c_extern_prefix" = "yes"
12794 then
12795   cat >>confdefs.h <<\_ACEOF
12796 #define __ASM_NAME(name) "_" name
12797 _ACEOF
12798
12799 else
12800   cat >>confdefs.h <<\_ACEOF
12801 #define __ASM_NAME(name) name
12802 _ACEOF
12803
12804 fi
12805
12806
12807 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12808 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12809 if test "${ac_cv_c_asm_string+set}" = set; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812   cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h.  */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h.  */
12818 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12819
12820 int
12821 main ()
12822 {
12823
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 rm -f conftest.$ac_objext conftest$ac_exeext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12830   (eval $ac_link) 2>conftest.er1
12831   ac_status=$?
12832   grep -v '^ *+' conftest.er1 >conftest.err
12833   rm -f conftest.er1
12834   cat conftest.err >&5
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); } &&
12837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839   (eval $ac_try) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); }; } &&
12843          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12849   ac_cv_c_asm_string=".string"
12850 else
12851   echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12853
12854 cat >conftest.$ac_ext <<_ACEOF
12855 /* confdefs.h.  */
12856 _ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h.  */
12860 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12861
12862 int
12863 main ()
12864 {
12865
12866   ;
12867   return 0;
12868 }
12869 _ACEOF
12870 rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12872   (eval $ac_link) 2>conftest.er1
12873   ac_status=$?
12874   grep -v '^ *+' conftest.er1 >conftest.err
12875   rm -f conftest.er1
12876   cat conftest.err >&5
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); } &&
12879          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881   (eval $ac_try) 2>&5
12882   ac_status=$?
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); }; } &&
12885          { ac_try='test -s conftest$ac_exeext'
12886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887   (eval $ac_try) 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; }; then
12891   ac_cv_c_asm_string=".asciz"
12892 else
12893   echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12895
12896 cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12903
12904 int
12905 main ()
12906 {
12907
12908   ;
12909   return 0;
12910 }
12911 _ACEOF
12912 rm -f conftest.$ac_objext conftest$ac_exeext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12914   (eval $ac_link) 2>conftest.er1
12915   ac_status=$?
12916   grep -v '^ *+' conftest.er1 >conftest.err
12917   rm -f conftest.er1
12918   cat conftest.err >&5
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); } &&
12921          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923   (eval $ac_try) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }; } &&
12927          { ac_try='test -s conftest$ac_exeext'
12928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929   (eval $ac_try) 2>&5
12930   ac_status=$?
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); }; }; then
12933   ac_cv_c_asm_string=".ascii"
12934 else
12935   echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12937
12938 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12939 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12940    { (exit 1); exit 1; }; }
12941 fi
12942 rm -f conftest.err conftest.$ac_objext \
12943       conftest$ac_exeext conftest.$ac_ext
12944 fi
12945 rm -f conftest.err conftest.$ac_objext \
12946       conftest$ac_exeext conftest.$ac_ext
12947 fi
12948 rm -f conftest.err conftest.$ac_objext \
12949       conftest$ac_exeext conftest.$ac_ext
12950 fi
12951 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12952 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12953
12954
12955 cat >>confdefs.h <<_ACEOF
12956 #define __ASM_STRING "$ac_cv_c_asm_string"
12957 _ACEOF
12958
12959
12960
12961 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12962 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
12963 if test "${ac_cv_c_asm_short+set}" = set; then
12964   echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966   cat >conftest.$ac_ext <<_ACEOF
12967 /* confdefs.h.  */
12968 _ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h.  */
12972 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
12973
12974 int
12975 main ()
12976 {
12977
12978   ;
12979   return 0;
12980 }
12981 _ACEOF
12982 rm -f conftest.$ac_objext conftest$ac_exeext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12984   (eval $ac_link) 2>conftest.er1
12985   ac_status=$?
12986   grep -v '^ *+' conftest.er1 >conftest.err
12987   rm -f conftest.er1
12988   cat conftest.err >&5
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); } &&
12991          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993   (eval $ac_try) 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; } &&
12997          { ac_try='test -s conftest$ac_exeext'
12998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999   (eval $ac_try) 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); }; }; then
13003   ac_cv_c_asm_short=".short"
13004 else
13005   echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008 cat >conftest.$ac_ext <<_ACEOF
13009 /* confdefs.h.  */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h.  */
13014 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13015
13016 int
13017 main ()
13018 {
13019
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 rm -f conftest.$ac_objext conftest$ac_exeext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13026   (eval $ac_link) 2>conftest.er1
13027   ac_status=$?
13028   grep -v '^ *+' conftest.er1 >conftest.err
13029   rm -f conftest.er1
13030   cat conftest.err >&5
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); } &&
13033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035   (eval $ac_try) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; } &&
13039          { ac_try='test -s conftest$ac_exeext'
13040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041   (eval $ac_try) 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); }; }; then
13045   ac_cv_c_asm_short=".half"
13046 else
13047   echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13049
13050 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13051 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13052    { (exit 1); exit 1; }; }
13053 fi
13054 rm -f conftest.err conftest.$ac_objext \
13055       conftest$ac_exeext conftest.$ac_ext
13056 fi
13057 rm -f conftest.err conftest.$ac_objext \
13058       conftest$ac_exeext conftest.$ac_ext
13059 fi
13060 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13061 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13062
13063
13064 cat >>confdefs.h <<_ACEOF
13065 #define __ASM_SHORT "$ac_cv_c_asm_short"
13066 _ACEOF
13067
13068
13069
13070 echo "$as_me:$LINENO: checking for .size in assembler" >&5
13071 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13072 if test "${ac_cv_c_asm_size+set}" = set; then
13073   echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075   cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h.  */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h.  */
13081 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13082
13083 int
13084 main ()
13085 {
13086
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 rm -f conftest.$ac_objext conftest$ac_exeext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13093   (eval $ac_link) 2>conftest.er1
13094   ac_status=$?
13095   grep -v '^ *+' conftest.er1 >conftest.err
13096   rm -f conftest.er1
13097   cat conftest.err >&5
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); } &&
13100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102   (eval $ac_try) 2>&5
13103   ac_status=$?
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); }; } &&
13106          { ac_try='test -s conftest$ac_exeext'
13107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108   (eval $ac_try) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); }; }; then
13112   ac_cv_c_asm_size="yes"
13113 else
13114   echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117 ac_cv_c_asm_size="no"
13118 fi
13119 rm -f conftest.err conftest.$ac_objext \
13120       conftest$ac_exeext conftest.$ac_ext
13121 fi
13122 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13123 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13124
13125 if test "$ac_cv_c_asm_size" = "yes"
13126 then
13127
13128 cat >>confdefs.h <<\_ACEOF
13129 #define HAVE_ASM_DOT_SIZE 1
13130 _ACEOF
13131
13132 fi
13133
13134
13135 DLLEXT=""
13136
13137 DLLFLAGS="-D_REENTRANT"
13138
13139 DLLIBS=""
13140
13141 LDSHARED=""
13142
13143 LDDLLFLAGS=""
13144
13145 LIBEXT="so"
13146
13147 IMPLIBEXT="def"
13148
13149
13150 case $host_os in
13151   cygwin*|mingw32*)
13152     if test -n "$ac_tool_prefix"; then
13153   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13154 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13155 echo "$as_me:$LINENO: checking for $ac_word" >&5
13156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13157 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   if test -n "$DLLTOOL"; then
13161   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13162 else
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13165 do
13166   IFS=$as_save_IFS
13167   test -z "$as_dir" && as_dir=.
13168   for ac_exec_ext in '' $ac_executable_extensions; do
13169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13170     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13172     break 2
13173   fi
13174 done
13175 done
13176
13177 fi
13178 fi
13179 DLLTOOL=$ac_cv_prog_DLLTOOL
13180 if test -n "$DLLTOOL"; then
13181   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13182 echo "${ECHO_T}$DLLTOOL" >&6
13183 else
13184   echo "$as_me:$LINENO: result: no" >&5
13185 echo "${ECHO_T}no" >&6
13186 fi
13187
13188 fi
13189 if test -z "$ac_cv_prog_DLLTOOL"; then
13190   ac_ct_DLLTOOL=$DLLTOOL
13191   # Extract the first word of "dlltool", so it can be a program name with args.
13192 set dummy dlltool; ac_word=$2
13193 echo "$as_me:$LINENO: checking for $ac_word" >&5
13194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13195 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13196   echo $ECHO_N "(cached) $ECHO_C" >&6
13197 else
13198   if test -n "$ac_ct_DLLTOOL"; then
13199   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13200 else
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13203 do
13204   IFS=$as_save_IFS
13205   test -z "$as_dir" && as_dir=.
13206   for ac_exec_ext in '' $ac_executable_extensions; do
13207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13208     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13210     break 2
13211   fi
13212 done
13213 done
13214
13215   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13216 fi
13217 fi
13218 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13219 if test -n "$ac_ct_DLLTOOL"; then
13220   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13221 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13222 else
13223   echo "$as_me:$LINENO: result: no" >&5
13224 echo "${ECHO_T}no" >&6
13225 fi
13226
13227   DLLTOOL=$ac_ct_DLLTOOL
13228 else
13229   DLLTOOL="$ac_cv_prog_DLLTOOL"
13230 fi
13231
13232     if test -n "$ac_tool_prefix"; then
13233   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13234 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13235 echo "$as_me:$LINENO: checking for $ac_word" >&5
13236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13237 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13238   echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240   if test -n "$DLLWRAP"; then
13241   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13245 do
13246   IFS=$as_save_IFS
13247   test -z "$as_dir" && as_dir=.
13248   for ac_exec_ext in '' $ac_executable_extensions; do
13249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13250     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13252     break 2
13253   fi
13254 done
13255 done
13256
13257 fi
13258 fi
13259 DLLWRAP=$ac_cv_prog_DLLWRAP
13260 if test -n "$DLLWRAP"; then
13261   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13262 echo "${ECHO_T}$DLLWRAP" >&6
13263 else
13264   echo "$as_me:$LINENO: result: no" >&5
13265 echo "${ECHO_T}no" >&6
13266 fi
13267
13268 fi
13269 if test -z "$ac_cv_prog_DLLWRAP"; then
13270   ac_ct_DLLWRAP=$DLLWRAP
13271   # Extract the first word of "dllwrap", so it can be a program name with args.
13272 set dummy dllwrap; ac_word=$2
13273 echo "$as_me:$LINENO: checking for $ac_word" >&5
13274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13275 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13276   echo $ECHO_N "(cached) $ECHO_C" >&6
13277 else
13278   if test -n "$ac_ct_DLLWRAP"; then
13279   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13280 else
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13283 do
13284   IFS=$as_save_IFS
13285   test -z "$as_dir" && as_dir=.
13286   for ac_exec_ext in '' $ac_executable_extensions; do
13287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13288     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13290     break 2
13291   fi
13292 done
13293 done
13294
13295   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13296 fi
13297 fi
13298 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13299 if test -n "$ac_ct_DLLWRAP"; then
13300   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13301 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13302 else
13303   echo "$as_me:$LINENO: result: no" >&5
13304 echo "${ECHO_T}no" >&6
13305 fi
13306
13307   DLLWRAP=$ac_ct_DLLWRAP
13308 else
13309   DLLWRAP="$ac_cv_prog_DLLWRAP"
13310 fi
13311
13312     if test "$DLLWRAP" = "false"; then
13313       LIBEXT="a"
13314     else
13315             LIBEXT="dll"
13316     fi
13317     IMPLIBEXT="a"
13318         WIN16_FILES=""
13319     WIN16_INSTALL=""
13320     ;;
13321   *)
13322
13323 for ac_header in dlfcn.h
13324 do
13325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13327   echo "$as_me:$LINENO: checking for $ac_header" >&5
13328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13330   echo $ECHO_N "(cached) $ECHO_C" >&6
13331 fi
13332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13334 else
13335   # Is the header compilable?
13336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13338 cat >conftest.$ac_ext <<_ACEOF
13339 /* confdefs.h.  */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h.  */
13344 $ac_includes_default
13345 #include <$ac_header>
13346 _ACEOF
13347 rm -f conftest.$ac_objext
13348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13349   (eval $ac_compile) 2>conftest.er1
13350   ac_status=$?
13351   grep -v '^ *+' conftest.er1 >conftest.err
13352   rm -f conftest.er1
13353   cat conftest.err >&5
13354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); } &&
13356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358   (eval $ac_try) 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; } &&
13362          { ac_try='test -s conftest.$ac_objext'
13363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364   (eval $ac_try) 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); }; }; then
13368   ac_header_compiler=yes
13369 else
13370   echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13372
13373 ac_header_compiler=no
13374 fi
13375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13377 echo "${ECHO_T}$ac_header_compiler" >&6
13378
13379 # Is the header present?
13380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h.  */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h.  */
13388 #include <$ac_header>
13389 _ACEOF
13390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13392   ac_status=$?
13393   grep -v '^ *+' conftest.er1 >conftest.err
13394   rm -f conftest.er1
13395   cat conftest.err >&5
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); } >/dev/null; then
13398   if test -s conftest.err; then
13399     ac_cpp_err=$ac_c_preproc_warn_flag
13400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13401   else
13402     ac_cpp_err=
13403   fi
13404 else
13405   ac_cpp_err=yes
13406 fi
13407 if test -z "$ac_cpp_err"; then
13408   ac_header_preproc=yes
13409 else
13410   echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413   ac_header_preproc=no
13414 fi
13415 rm -f conftest.err conftest.$ac_ext
13416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13417 echo "${ECHO_T}$ac_header_preproc" >&6
13418
13419 # So?  What about this header?
13420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13421   yes:no: )
13422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13426     ac_header_preproc=yes
13427     ;;
13428   no:yes:* )
13429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13441     (
13442       cat <<\_ASBOX
13443 ## ------------------------------------ ##
13444 ## Report this to wine-devel@winehq.org ##
13445 ## ------------------------------------ ##
13446 _ASBOX
13447     ) |
13448       sed "s/^/$as_me: WARNING:     /" >&2
13449     ;;
13450 esac
13451 echo "$as_me:$LINENO: checking for $ac_header" >&5
13452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13454   echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456   eval "$as_ac_Header=\$ac_header_preproc"
13457 fi
13458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13460
13461 fi
13462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13463   cat >>confdefs.h <<_ACEOF
13464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13465 _ACEOF
13466
13467 for ac_func in dlopen
13468 do
13469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13470 echo "$as_me:$LINENO: checking for $ac_func" >&5
13471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13472 if eval "test \"\${$as_ac_var+set}\" = set"; then
13473   echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475   cat >conftest.$ac_ext <<_ACEOF
13476 /* confdefs.h.  */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h.  */
13481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13483 #define $ac_func innocuous_$ac_func
13484
13485 /* System header to define __stub macros and hopefully few prototypes,
13486     which can conflict with char $ac_func (); below.
13487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13488     <limits.h> exists even on freestanding compilers.  */
13489
13490 #ifdef __STDC__
13491 # include <limits.h>
13492 #else
13493 # include <assert.h>
13494 #endif
13495
13496 #undef $ac_func
13497
13498 /* Override any gcc2 internal prototype to avoid an error.  */
13499 #ifdef __cplusplus
13500 extern "C"
13501 {
13502 #endif
13503 /* We use char because int might match the return type of a gcc2
13504    builtin and then its argument prototype would still apply.  */
13505 char $ac_func ();
13506 /* The GNU C library defines this for functions which it implements
13507     to always fail with ENOSYS.  Some functions are actually named
13508     something starting with __ and the normal name is an alias.  */
13509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13510 choke me
13511 #else
13512 char (*f) () = $ac_func;
13513 #endif
13514 #ifdef __cplusplus
13515 }
13516 #endif
13517
13518 int
13519 main ()
13520 {
13521 return f != $ac_func;
13522   ;
13523   return 0;
13524 }
13525 _ACEOF
13526 rm -f conftest.$ac_objext conftest$ac_exeext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13528   (eval $ac_link) 2>conftest.er1
13529   ac_status=$?
13530   grep -v '^ *+' conftest.er1 >conftest.err
13531   rm -f conftest.er1
13532   cat conftest.err >&5
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); } &&
13535          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537   (eval $ac_try) 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); }; } &&
13541          { ac_try='test -s conftest$ac_exeext'
13542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543   (eval $ac_try) 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); }; }; then
13547   eval "$as_ac_var=yes"
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552 eval "$as_ac_var=no"
13553 fi
13554 rm -f conftest.err conftest.$ac_objext \
13555       conftest$ac_exeext conftest.$ac_ext
13556 fi
13557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13559 if test `eval echo '${'$as_ac_var'}'` = yes; then
13560   cat >>confdefs.h <<_ACEOF
13561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13562 _ACEOF
13563
13564 else
13565   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13566 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13568   echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570   ac_check_lib_save_LIBS=$LIBS
13571 LIBS="-ldl  $LIBS"
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578
13579 /* Override any gcc2 internal prototype to avoid an error.  */
13580 #ifdef __cplusplus
13581 extern "C"
13582 #endif
13583 /* We use char because int might match the return type of a gcc2
13584    builtin and then its argument prototype would still apply.  */
13585 char dlopen ();
13586 int
13587 main ()
13588 {
13589 dlopen ();
13590   ;
13591   return 0;
13592 }
13593 _ACEOF
13594 rm -f conftest.$ac_objext conftest$ac_exeext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13596   (eval $ac_link) 2>conftest.er1
13597   ac_status=$?
13598   grep -v '^ *+' conftest.er1 >conftest.err
13599   rm -f conftest.er1
13600   cat conftest.err >&5
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } &&
13603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605   (eval $ac_try) 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }; } &&
13609          { ac_try='test -s conftest$ac_exeext'
13610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611   (eval $ac_try) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; }; then
13615   ac_cv_lib_dl_dlopen=yes
13616 else
13617   echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13619
13620 ac_cv_lib_dl_dlopen=no
13621 fi
13622 rm -f conftest.err conftest.$ac_objext \
13623       conftest$ac_exeext conftest.$ac_ext
13624 LIBS=$ac_check_lib_save_LIBS
13625 fi
13626 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13627 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13628 if test $ac_cv_lib_dl_dlopen = yes; then
13629
13630 cat >>confdefs.h <<\_ACEOF
13631 #define HAVE_DLOPEN 1
13632 _ACEOF
13633
13634                           DLLIBS="-ldl"
13635 else
13636   LIBEXT="a"
13637 fi
13638
13639 fi
13640 done
13641
13642 else
13643   LIBEXT="a"
13644 fi
13645
13646 done
13647
13648
13649     if test "$LIBEXT" = "so"
13650     then
13651       DLLFLAGS="$DLLFLAGS -fPIC"
13652       DLLEXT=".so"
13653       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13654 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13655 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13656   echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658   ac_wine_try_cflags_saved=$CFLAGS
13659 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13660 cat >conftest.$ac_ext <<_ACEOF
13661 void myfunc() {}
13662 _ACEOF
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13665   (eval $ac_link) 2>conftest.er1
13666   ac_status=$?
13667   grep -v '^ *+' conftest.er1 >conftest.err
13668   rm -f conftest.er1
13669   cat conftest.err >&5
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } &&
13672          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674   (eval $ac_try) 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; } &&
13678          { ac_try='test -s conftest$ac_exeext'
13679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680   (eval $ac_try) 2>&5
13681   ac_status=$?
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); }; }; then
13684   ac_cv_c_dll_gnuelf="yes"
13685 else
13686   echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689 ac_cv_c_dll_gnuelf="no"
13690 fi
13691 rm -f conftest.err conftest.$ac_objext \
13692       conftest$ac_exeext conftest.$ac_ext
13693 CFLAGS=$ac_wine_try_cflags_saved
13694 fi
13695 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13696 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13697       if test "$ac_cv_c_dll_gnuelf" = "yes"
13698       then
13699         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13700         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13701         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13702 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13703 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13704   echo $ECHO_N "(cached) $ECHO_C" >&6
13705 else
13706   ac_wine_try_cflags_saved=$CFLAGS
13707 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h.  */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h.  */
13714
13715 int
13716 main ()
13717 {
13718
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 rm -f conftest.$ac_objext conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725   (eval $ac_link) 2>conftest.er1
13726   ac_status=$?
13727   grep -v '^ *+' conftest.er1 >conftest.err
13728   rm -f conftest.er1
13729   cat conftest.err >&5
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); } &&
13732          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734   (eval $ac_try) 2>&5
13735   ac_status=$?
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); }; } &&
13738          { ac_try='test -s conftest$ac_exeext'
13739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740   (eval $ac_try) 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; }; then
13744   ac_cv_c_dll_zdefs="yes"
13745 else
13746   echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13748
13749 ac_cv_c_dll_zdefs="no"
13750 fi
13751 rm -f conftest.err conftest.$ac_objext \
13752       conftest$ac_exeext conftest.$ac_ext
13753 CFLAGS=$ac_wine_try_cflags_saved
13754 fi
13755 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13756 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13757         if test "$ac_cv_c_dll_zdefs" = "yes"
13758         then
13759           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13760         fi
13761
13762         echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13763 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13764 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13765   echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767   ac_wine_try_cflags_saved=$CFLAGS
13768 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775
13776 int
13777 main ()
13778 {
13779
13780   ;
13781   return 0;
13782 }
13783 _ACEOF
13784 rm -f conftest.$ac_objext conftest$ac_exeext
13785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13786   (eval $ac_link) 2>conftest.er1
13787   ac_status=$?
13788   grep -v '^ *+' conftest.er1 >conftest.err
13789   rm -f conftest.er1
13790   cat conftest.err >&5
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); } &&
13793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795   (eval $ac_try) 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; } &&
13799          { ac_try='test -s conftest$ac_exeext'
13800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801   (eval $ac_try) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; }; then
13805   ac_cv_c_dll_init_fini="yes"
13806 else
13807   echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13809
13810 ac_cv_c_dll_init_fini="no"
13811 fi
13812 rm -f conftest.err conftest.$ac_objext \
13813       conftest$ac_exeext conftest.$ac_ext
13814 CFLAGS=$ac_wine_try_cflags_saved
13815 fi
13816 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13817 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13818         if test "$ac_cv_c_dll_init_fini" = "yes"
13819         then
13820           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13821         fi
13822
13823         echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13824 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13825 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828   echo '{ global: *; };' >conftest.map
13829            ac_wine_try_cflags_saved=$CFLAGS
13830 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h.  */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h.  */
13837
13838 int
13839 main ()
13840 {
13841
13842   ;
13843   return 0;
13844 }
13845 _ACEOF
13846 rm -f conftest.$ac_objext conftest$ac_exeext
13847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13848   (eval $ac_link) 2>conftest.er1
13849   ac_status=$?
13850   grep -v '^ *+' conftest.er1 >conftest.err
13851   rm -f conftest.er1
13852   cat conftest.err >&5
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); } &&
13855          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857   (eval $ac_try) 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); }; } &&
13861          { ac_try='test -s conftest$ac_exeext'
13862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863   (eval $ac_try) 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); }; }; then
13867   ac_cv_c_ld_version_scripts="yes"
13868 else
13869   echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13871
13872 ac_cv_c_ld_version_scripts="no"
13873 fi
13874 rm -f conftest.err conftest.$ac_objext \
13875       conftest$ac_exeext conftest.$ac_ext
13876 CFLAGS=$ac_wine_try_cflags_saved
13877            rm -f conftest.map
13878 fi
13879 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13880 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13881         if test "$ac_cv_c_ld_version_scripts" = "yes"
13882         then
13883           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13884         fi
13885
13886         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13887 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13888 if test "${ac_cv_c_export_dynamic+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891   ac_wine_try_cflags_saved=$CFLAGS
13892 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13893 cat >conftest.$ac_ext <<_ACEOF
13894 /* confdefs.h.  */
13895 _ACEOF
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h.  */
13899
13900 int
13901 main ()
13902 {
13903
13904   ;
13905   return 0;
13906 }
13907 _ACEOF
13908 rm -f conftest.$ac_objext conftest$ac_exeext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13910   (eval $ac_link) 2>conftest.er1
13911   ac_status=$?
13912   grep -v '^ *+' conftest.er1 >conftest.err
13913   rm -f conftest.er1
13914   cat conftest.err >&5
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); } &&
13917          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919   (eval $ac_try) 2>&5
13920   ac_status=$?
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); }; } &&
13923          { ac_try='test -s conftest$ac_exeext'
13924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925   (eval $ac_try) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); }; }; then
13929   ac_cv_c_export_dynamic="yes"
13930 else
13931   echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13933
13934 ac_cv_c_export_dynamic="no"
13935 fi
13936 rm -f conftest.err conftest.$ac_objext \
13937       conftest$ac_exeext conftest.$ac_ext
13938 CFLAGS=$ac_wine_try_cflags_saved
13939 fi
13940 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13941 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13942         if test "$ac_cv_c_export_dynamic" = "yes"
13943         then
13944           LDEXECFLAGS="-Wl,--export-dynamic"
13945
13946         fi
13947
13948         case $host_cpu in
13949           *i[3456789]86*)
13950             echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
13951 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
13952 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13953   echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955   ac_wine_try_cflags_saved=$CFLAGS
13956 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
13957 cat >conftest.$ac_ext <<_ACEOF
13958 /* confdefs.h.  */
13959 _ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h.  */
13963
13964 int
13965 main ()
13966 {
13967
13968   ;
13969   return 0;
13970 }
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_ld_reloc_exec="yes"
13994 else
13995   echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998 ac_cv_ld_reloc_exec="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_ld_reloc_exec" >&5
14005 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14006             if test "$ac_cv_ld_reloc_exec" = "yes"
14007             then
14008               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
14009             fi
14010             ;;
14011         esac
14012
14013       else
14014         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14015 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14016 if test "${ac_cv_c_dll_unixware+set}" = set; then
14017   echo $ECHO_N "(cached) $ECHO_C" >&6
14018 else
14019   ac_wine_try_cflags_saved=$CFLAGS
14020 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14021 cat >conftest.$ac_ext <<_ACEOF
14022 void myfunc() {}
14023 _ACEOF
14024 rm -f conftest.$ac_objext conftest$ac_exeext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14026   (eval $ac_link) 2>conftest.er1
14027   ac_status=$?
14028   grep -v '^ *+' conftest.er1 >conftest.err
14029   rm -f conftest.er1
14030   cat conftest.err >&5
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); } &&
14033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035   (eval $ac_try) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); }; } &&
14039          { ac_try='test -s conftest$ac_exeext'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; }; then
14045   ac_cv_c_dll_unixware="yes"
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050 ac_cv_c_dll_unixware="no"
14051 fi
14052 rm -f conftest.err conftest.$ac_objext \
14053       conftest$ac_exeext conftest.$ac_ext
14054 CFLAGS=$ac_wine_try_cflags_saved
14055 fi
14056 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14057 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14058         if test "$ac_cv_c_dll_unixware" = "yes"
14059         then
14060           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14061           LDDLLFLAGS="-Wl,-G,-B,symbolic"
14062
14063         else
14064           echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14065 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14066 if test "${ac_cv_c_dll_macho+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   ac_wine_try_cflags_saved=$CFLAGS
14070 CFLAGS="$CFLAGS -bundle"
14071 cat >conftest.$ac_ext <<_ACEOF
14072 void myfunc() {}
14073 _ACEOF
14074 rm -f conftest.$ac_objext conftest$ac_exeext
14075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14076   (eval $ac_link) 2>conftest.er1
14077   ac_status=$?
14078   grep -v '^ *+' conftest.er1 >conftest.err
14079   rm -f conftest.er1
14080   cat conftest.err >&5
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } &&
14083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085   (eval $ac_try) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; } &&
14089          { ac_try='test -s conftest$ac_exeext'
14090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091   (eval $ac_try) 2>&5
14092   ac_status=$?
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); }; }; then
14095   ac_cv_c_dll_macho="yes"
14096 else
14097   echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 ac_cv_c_dll_macho="no"
14101 fi
14102 rm -f conftest.err conftest.$ac_objext \
14103       conftest$ac_exeext conftest.$ac_ext
14104 CFLAGS=$ac_wine_try_cflags_saved
14105 fi
14106 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14107 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14108           if test "$ac_cv_c_dll_macho" = "yes"
14109           then
14110             LIBEXT="dylib"
14111             LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14112             LDSHARED="\$(CC) -dynamiclib"
14113             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14114             STRIP="$STRIP -u -r"
14115                         LDEXECFLAGS="-seg1addr 0x120000"
14116
14117                         LDLIBWINEFLAGS="-seg1addr 0x140000"
14118
14119                     COREFOUNDATIONLIB="-framework CoreFoundation"
14120
14121             IOKITLIB="-framework IOKit"
14122
14123                     IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB"
14124           else
14125             echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14126 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14127 if test "${ac_cv_c_dll_hpux+set}" = set; then
14128   echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130   ac_wine_try_cflags_saved=$CFLAGS
14131 CFLAGS="$CFLAGS -shared"
14132 cat >conftest.$ac_ext <<_ACEOF
14133 void myfunc() {}
14134 _ACEOF
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14137   (eval $ac_link) 2>conftest.er1
14138   ac_status=$?
14139   grep -v '^ *+' conftest.er1 >conftest.err
14140   rm -f conftest.er1
14141   cat conftest.err >&5
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); } &&
14144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; } &&
14150          { ac_try='test -s conftest$ac_exeext'
14151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152   (eval $ac_try) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; }; then
14156   ac_cv_c_dll_hpux="yes"
14157 else
14158   echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 ac_cv_c_dll_hpux="no"
14162 fi
14163 rm -f conftest.err conftest.$ac_objext \
14164       conftest$ac_exeext conftest.$ac_ext
14165 CFLAGS=$ac_wine_try_cflags_saved
14166 fi
14167 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14168 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14169             if test "$ac_cv_c_dll_hpux" = "yes"
14170             then
14171               LIBEXT="sl"
14172               DLLEXT=".sl"
14173               LDDLLFLAGS="-shared -fPIC"
14174               LDSHARED="\$(CC) -shared"
14175             fi
14176           fi
14177         fi
14178       fi
14179     fi
14180
14181         CROSSTEST=""
14182
14183     if test "$cross_compiling" = "no"
14184     then
14185       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14186 do
14187   # Extract the first word of "$ac_prog", so it can be a program name with args.
14188 set dummy $ac_prog; ac_word=$2
14189 echo "$as_me:$LINENO: checking for $ac_word" >&5
14190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14191 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14192   echo $ECHO_N "(cached) $ECHO_C" >&6
14193 else
14194   if test -n "$CROSSCC"; then
14195   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14199 do
14200   IFS=$as_save_IFS
14201   test -z "$as_dir" && as_dir=.
14202   for ac_exec_ext in '' $ac_executable_extensions; do
14203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14204     ac_cv_prog_CROSSCC="$ac_prog"
14205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14206     break 2
14207   fi
14208 done
14209 done
14210
14211 fi
14212 fi
14213 CROSSCC=$ac_cv_prog_CROSSCC
14214 if test -n "$CROSSCC"; then
14215   echo "$as_me:$LINENO: result: $CROSSCC" >&5
14216 echo "${ECHO_T}$CROSSCC" >&6
14217 else
14218   echo "$as_me:$LINENO: result: no" >&5
14219 echo "${ECHO_T}no" >&6
14220 fi
14221
14222   test -n "$CROSSCC" && break
14223 done
14224 test -n "$CROSSCC" || CROSSCC="false"
14225
14226       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14227 do
14228   # Extract the first word of "$ac_prog", so it can be a program name with args.
14229 set dummy $ac_prog; ac_word=$2
14230 echo "$as_me:$LINENO: checking for $ac_word" >&5
14231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14232 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14233   echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235   if test -n "$DLLTOOL"; then
14236   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14237 else
14238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14240 do
14241   IFS=$as_save_IFS
14242   test -z "$as_dir" && as_dir=.
14243   for ac_exec_ext in '' $ac_executable_extensions; do
14244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14245     ac_cv_prog_DLLTOOL="$ac_prog"
14246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14247     break 2
14248   fi
14249 done
14250 done
14251
14252 fi
14253 fi
14254 DLLTOOL=$ac_cv_prog_DLLTOOL
14255 if test -n "$DLLTOOL"; then
14256   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14257 echo "${ECHO_T}$DLLTOOL" >&6
14258 else
14259   echo "$as_me:$LINENO: result: no" >&5
14260 echo "${ECHO_T}no" >&6
14261 fi
14262
14263   test -n "$DLLTOOL" && break
14264 done
14265 test -n "$DLLTOOL" || DLLTOOL="false"
14266
14267       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14268 do
14269   # Extract the first word of "$ac_prog", so it can be a program name with args.
14270 set dummy $ac_prog; ac_word=$2
14271 echo "$as_me:$LINENO: checking for $ac_word" >&5
14272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14273 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   if test -n "$CROSSWINDRES"; then
14277   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14278 else
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14281 do
14282   IFS=$as_save_IFS
14283   test -z "$as_dir" && as_dir=.
14284   for ac_exec_ext in '' $ac_executable_extensions; do
14285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14286     ac_cv_prog_CROSSWINDRES="$ac_prog"
14287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14288     break 2
14289   fi
14290 done
14291 done
14292
14293 fi
14294 fi
14295 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14296 if test -n "$CROSSWINDRES"; then
14297   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14298 echo "${ECHO_T}$CROSSWINDRES" >&6
14299 else
14300   echo "$as_me:$LINENO: result: no" >&5
14301 echo "${ECHO_T}no" >&6
14302 fi
14303
14304   test -n "$CROSSWINDRES" && break
14305 done
14306 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14307
14308       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14309     fi
14310     ;;
14311 esac
14312
14313 if test "$LIBEXT" = "a"; then
14314   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14315 It is currently not possible to build Wine without shared library
14316 (.so) support to allow transparent switch between .so and .dll files.
14317 If you are using Linux, you will need a newer binutils.
14318 " >&5
14319 echo "$as_me: error: could not find a way to build shared libraries.
14320 It is currently not possible to build Wine without shared library
14321 (.so) support to allow transparent switch between .so and .dll files.
14322 If you are using Linux, you will need a newer binutils.
14323 " >&2;}
14324    { (exit 1); exit 1; }; }
14325 fi
14326
14327 case $build_os in
14328   cygwin*|mingw32*)
14329     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14330  ;;
14331   darwin*|macosx*)
14332     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14333  ;;
14334   *)
14335     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14336  ;;
14337 esac
14338
14339 case $host_os in
14340   mingw32*)
14341     CRTLIBS="-lmsvcrt"
14342
14343     SOCKETLIBS="-lws2_32"
14344
14345     ;;
14346 esac
14347
14348 case $host_os in
14349   linux*)
14350     case $host_cpu in
14351       *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14352  ;;
14353       *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14354  ;;
14355     esac
14356     MAIN_BINARY="wine-glibc"
14357
14358     ;;
14359   darwin*)
14360     WINE_BINARIES="wine-pthread"
14361
14362     MAIN_BINARY="wine-pthread"
14363
14364     ;;
14365   *)
14366     WINE_BINARIES="wine-kthread"
14367
14368     MAIN_BINARY="wine-kthread"
14369
14370     ;;
14371 esac
14372
14373
14374 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14375 then
14376   # Extract the first word of "ldd", so it can be a program name with args.
14377 set dummy ldd; ac_word=$2
14378 echo "$as_me:$LINENO: checking for $ac_word" >&5
14379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14380 if test "${ac_cv_path_LDD+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   case $LDD in
14384   [\\/]* | ?:[\\/]*)
14385   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14386   ;;
14387   *)
14388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 as_dummy="/sbin:/usr/sbin:$PATH"
14390 for as_dir in $as_dummy
14391 do
14392   IFS=$as_save_IFS
14393   test -z "$as_dir" && as_dir=.
14394   for ac_exec_ext in '' $ac_executable_extensions; do
14395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14396     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14398     break 2
14399   fi
14400 done
14401 done
14402
14403   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14404   ;;
14405 esac
14406 fi
14407 LDD=$ac_cv_path_LDD
14408
14409 if test -n "$LDD"; then
14410   echo "$as_me:$LINENO: result: $LDD" >&5
14411 echo "${ECHO_T}$LDD" >&6
14412 else
14413   echo "$as_me:$LINENO: result: no" >&5
14414 echo "${ECHO_T}no" >&6
14415 fi
14416
14417
14418 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14419 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14420 if test "${ac_cv_lib_soname_X11+set}" = set; then
14421   echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423   ac_get_soname_save_LIBS=$LIBS
14424 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14425   cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431
14432 /* Override any gcc2 internal prototype to avoid an error.  */
14433 #ifdef __cplusplus
14434 extern "C"
14435 #endif
14436 /* We use char because int might match the return type of a gcc2
14437    builtin and then its argument prototype would still apply.  */
14438 char XCreateWindow ();
14439 int
14440 main ()
14441 {
14442 XCreateWindow ();
14443   ;
14444   return 0;
14445 }
14446 _ACEOF
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14449   (eval $ac_link) 2>conftest.er1
14450   ac_status=$?
14451   grep -v '^ *+' conftest.er1 >conftest.err
14452   rm -f conftest.er1
14453   cat conftest.err >&5
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); } &&
14456          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458   (eval $ac_try) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); }; } &&
14462          { ac_try='test -s conftest$ac_exeext'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; }; then
14468   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^       ]*\).*$/\1/"`
14469   if test "x$ac_cv_lib_soname_X11" = "x"
14470   then
14471      ac_cv_lib_soname_X11="libX11.$LIBEXT"
14472   fi
14473 else
14474   echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14476
14477 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14478 fi
14479 rm -f conftest.err conftest.$ac_objext \
14480       conftest$ac_exeext conftest.$ac_ext
14481   LIBS=$ac_get_soname_save_LIBS
14482 fi
14483 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14484 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14485 if test "x$ac_cv_lib_soname_X11" != xNONE
14486 then
14487 cat >>confdefs.h <<_ACEOF
14488 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14489 _ACEOF
14490 fi
14491
14492 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14493 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14494 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14495   echo $ECHO_N "(cached) $ECHO_C" >&6
14496 else
14497   ac_get_soname_save_LIBS=$LIBS
14498 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14499   cat >conftest.$ac_ext <<_ACEOF
14500 /* confdefs.h.  */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h.  */
14505
14506 /* Override any gcc2 internal prototype to avoid an error.  */
14507 #ifdef __cplusplus
14508 extern "C"
14509 #endif
14510 /* We use char because int might match the return type of a gcc2
14511    builtin and then its argument prototype would still apply.  */
14512 char XextCreateExtension ();
14513 int
14514 main ()
14515 {
14516 XextCreateExtension ();
14517   ;
14518   return 0;
14519 }
14520 _ACEOF
14521 rm -f conftest.$ac_objext conftest$ac_exeext
14522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14523   (eval $ac_link) 2>conftest.er1
14524   ac_status=$?
14525   grep -v '^ *+' conftest.er1 >conftest.err
14526   rm -f conftest.er1
14527   cat conftest.err >&5
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); } &&
14530          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532   (eval $ac_try) 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); }; } &&
14536          { ac_try='test -s conftest$ac_exeext'
14537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538   (eval $ac_try) 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); }; }; then
14542   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^    ]*\).*$/\1/"`
14543   if test "x$ac_cv_lib_soname_Xext" = "x"
14544   then
14545      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14546   fi
14547 else
14548   echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14550
14551 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14552 fi
14553 rm -f conftest.err conftest.$ac_objext \
14554       conftest$ac_exeext conftest.$ac_ext
14555   LIBS=$ac_get_soname_save_LIBS
14556 fi
14557 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14558 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14559 if test "x$ac_cv_lib_soname_Xext" != xNONE
14560 then
14561 cat >>confdefs.h <<_ACEOF
14562 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14563 _ACEOF
14564 fi
14565
14566 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14567 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14568 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571   ac_get_soname_save_LIBS=$LIBS
14572 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14573   cat >conftest.$ac_ext <<_ACEOF
14574 /* confdefs.h.  */
14575 _ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h.  */
14579
14580 /* Override any gcc2 internal prototype to avoid an error.  */
14581 #ifdef __cplusplus
14582 extern "C"
14583 #endif
14584 /* We use char because int might match the return type of a gcc2
14585    builtin and then its argument prototype would still apply.  */
14586 char XOpenDevice ();
14587 int
14588 main ()
14589 {
14590 XOpenDevice ();
14591   ;
14592   return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14597   (eval $ac_link) 2>conftest.er1
14598   ac_status=$?
14599   grep -v '^ *+' conftest.er1 >conftest.err
14600   rm -f conftest.er1
14601   cat conftest.err >&5
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); } &&
14604          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606   (eval $ac_try) 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; } &&
14610          { ac_try='test -s conftest$ac_exeext'
14611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612   (eval $ac_try) 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; }; then
14616   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^  ]*\).*$/\1/"`
14617   if test "x$ac_cv_lib_soname_Xi" = "x"
14618   then
14619      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14620   fi
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14626 fi
14627 rm -f conftest.err conftest.$ac_objext \
14628       conftest$ac_exeext conftest.$ac_ext
14629   LIBS=$ac_get_soname_save_LIBS
14630 fi
14631 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14632 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14633 if test "x$ac_cv_lib_soname_Xi" != xNONE
14634 then
14635 cat >>confdefs.h <<_ACEOF
14636 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14637 _ACEOF
14638 fi
14639
14640 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14641 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14642 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14643   echo $ECHO_N "(cached) $ECHO_C" >&6
14644 else
14645   ac_get_soname_save_LIBS=$LIBS
14646 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14647   cat >conftest.$ac_ext <<_ACEOF
14648 /* confdefs.h.  */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h.  */
14653
14654 /* Override any gcc2 internal prototype to avoid an error.  */
14655 #ifdef __cplusplus
14656 extern "C"
14657 #endif
14658 /* We use char because int might match the return type of a gcc2
14659    builtin and then its argument prototype would still apply.  */
14660 char XRenderQueryExtension ();
14661 int
14662 main ()
14663 {
14664 XRenderQueryExtension ();
14665   ;
14666   return 0;
14667 }
14668 _ACEOF
14669 rm -f conftest.$ac_objext conftest$ac_exeext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14671   (eval $ac_link) 2>conftest.er1
14672   ac_status=$?
14673   grep -v '^ *+' conftest.er1 >conftest.err
14674   rm -f conftest.er1
14675   cat conftest.err >&5
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); } &&
14678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680   (eval $ac_try) 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; } &&
14684          { ac_try='test -s conftest$ac_exeext'
14685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686   (eval $ac_try) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); }; }; then
14690   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^   ]*\).*$/\1/"`
14691   if test "x$ac_cv_lib_soname_Xrender" = "x"
14692   then
14693      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14694   fi
14695 else
14696   echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14700 fi
14701 rm -f conftest.err conftest.$ac_objext \
14702       conftest$ac_exeext conftest.$ac_ext
14703   LIBS=$ac_get_soname_save_LIBS
14704 fi
14705 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14706 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14707 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14708 then
14709 cat >>confdefs.h <<_ACEOF
14710 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14711 _ACEOF
14712 fi
14713
14714 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14715 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14716 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14717   echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719   ac_get_soname_save_LIBS=$LIBS
14720 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14721   cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727
14728 /* Override any gcc2 internal prototype to avoid an error.  */
14729 #ifdef __cplusplus
14730 extern "C"
14731 #endif
14732 /* We use char because int might match the return type of a gcc2
14733    builtin and then its argument prototype would still apply.  */
14734 char XRRQueryExtension ();
14735 int
14736 main ()
14737 {
14738 XRRQueryExtension ();
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745   (eval $ac_link) 2>conftest.er1
14746   ac_status=$?
14747   grep -v '^ *+' conftest.er1 >conftest.err
14748   rm -f conftest.er1
14749   cat conftest.err >&5
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } &&
14752          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; } &&
14758          { ac_try='test -s conftest$ac_exeext'
14759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760   (eval $ac_try) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764   ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^      ]*\).*$/\1/"`
14765   if test "x$ac_cv_lib_soname_Xrandr" = "x"
14766   then
14767      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14768   fi
14769 else
14770   echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14774 fi
14775 rm -f conftest.err conftest.$ac_objext \
14776       conftest$ac_exeext conftest.$ac_ext
14777   LIBS=$ac_get_soname_save_LIBS
14778 fi
14779 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14780 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14781 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14782 then
14783 cat >>confdefs.h <<_ACEOF
14784 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14785 _ACEOF
14786 fi
14787
14788 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14789 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14790 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14791   echo $ECHO_N "(cached) $ECHO_C" >&6
14792 else
14793   ac_get_soname_save_LIBS=$LIBS
14794 LIBS="-lfreetype $X_LIBS $LIBS"
14795   cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h.  */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h.  */
14801
14802 /* Override any gcc2 internal prototype to avoid an error.  */
14803 #ifdef __cplusplus
14804 extern "C"
14805 #endif
14806 /* We use char because int might match the return type of a gcc2
14807    builtin and then its argument prototype would still apply.  */
14808 char FT_Init_FreeType ();
14809 int
14810 main ()
14811 {
14812 FT_Init_FreeType ();
14813   ;
14814   return 0;
14815 }
14816 _ACEOF
14817 rm -f conftest.$ac_objext conftest$ac_exeext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14819   (eval $ac_link) 2>conftest.er1
14820   ac_status=$?
14821   grep -v '^ *+' conftest.er1 >conftest.err
14822   rm -f conftest.er1
14823   cat conftest.err >&5
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); } &&
14826          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828   (eval $ac_try) 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; } &&
14832          { ac_try='test -s conftest$ac_exeext'
14833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834   (eval $ac_try) 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); }; }; then
14838   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^        ]*\).*$/\1/"`
14839   if test "x$ac_cv_lib_soname_freetype" = "x"
14840   then
14841      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14842   fi
14843 else
14844   echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14848 fi
14849 rm -f conftest.err conftest.$ac_objext \
14850       conftest$ac_exeext conftest.$ac_ext
14851   LIBS=$ac_get_soname_save_LIBS
14852 fi
14853 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14854 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14855 if test "x$ac_cv_lib_soname_freetype" != xNONE
14856 then
14857 cat >>confdefs.h <<_ACEOF
14858 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14859 _ACEOF
14860 fi
14861
14862 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14863 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14864 if test "${ac_cv_lib_soname_GL+set}" = set; then
14865   echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867   ac_get_soname_save_LIBS=$LIBS
14868 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14869   cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875
14876 /* Override any gcc2 internal prototype to avoid an error.  */
14877 #ifdef __cplusplus
14878 extern "C"
14879 #endif
14880 /* We use char because int might match the return type of a gcc2
14881    builtin and then its argument prototype would still apply.  */
14882 char glXQueryExtension ();
14883 int
14884 main ()
14885 {
14886 glXQueryExtension ();
14887   ;
14888   return 0;
14889 }
14890 _ACEOF
14891 rm -f conftest.$ac_objext conftest$ac_exeext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14893   (eval $ac_link) 2>conftest.er1
14894   ac_status=$?
14895   grep -v '^ *+' conftest.er1 >conftest.err
14896   rm -f conftest.er1
14897   cat conftest.err >&5
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); } &&
14900          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902   (eval $ac_try) 2>&5
14903   ac_status=$?
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); }; } &&
14906          { ac_try='test -s conftest$ac_exeext'
14907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908   (eval $ac_try) 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); }; }; then
14912   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^  ]*\).*$/\1/"`
14913   if test "x$ac_cv_lib_soname_GL" = "x"
14914   then
14915      ac_cv_lib_soname_GL="libGL.$LIBEXT"
14916   fi
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14922 fi
14923 rm -f conftest.err conftest.$ac_objext \
14924       conftest$ac_exeext conftest.$ac_ext
14925   LIBS=$ac_get_soname_save_LIBS
14926 fi
14927 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14928 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14929 if test "x$ac_cv_lib_soname_GL" != xNONE
14930 then
14931 cat >>confdefs.h <<_ACEOF
14932 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14933 _ACEOF
14934 fi
14935
14936 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14937 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14938 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941   ac_get_soname_save_LIBS=$LIBS
14942 LIBS="-ltxc_dxtn  $LIBS"
14943   cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h.  */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h.  */
14949
14950 /* Override any gcc2 internal prototype to avoid an error.  */
14951 #ifdef __cplusplus
14952 extern "C"
14953 #endif
14954 /* We use char because int might match the return type of a gcc2
14955    builtin and then its argument prototype would still apply.  */
14956 char fetch_2d_texel_rgba_dxt1 ();
14957 int
14958 main ()
14959 {
14960 fetch_2d_texel_rgba_dxt1 ();
14961   ;
14962   return 0;
14963 }
14964 _ACEOF
14965 rm -f conftest.$ac_objext conftest$ac_exeext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14967   (eval $ac_link) 2>conftest.er1
14968   ac_status=$?
14969   grep -v '^ *+' conftest.er1 >conftest.err
14970   rm -f conftest.er1
14971   cat conftest.err >&5
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); } &&
14974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976   (eval $ac_try) 2>&5
14977   ac_status=$?
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); }; } &&
14980          { ac_try='test -s conftest$ac_exeext'
14981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982   (eval $ac_try) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; }; then
14986   ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^        ]*\).*$/\1/"`
14987   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14988   then
14989      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14990   fi
14991 else
14992   echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14994
14995 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14996 fi
14997 rm -f conftest.err conftest.$ac_objext \
14998       conftest$ac_exeext conftest.$ac_ext
14999   LIBS=$ac_get_soname_save_LIBS
15000 fi
15001 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15002 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
15003 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
15004 then
15005 cat >>confdefs.h <<_ACEOF
15006 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15007 _ACEOF
15008 fi
15009
15010 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15011 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15012 if test "${ac_cv_lib_soname_cups+set}" = set; then
15013   echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015   ac_get_soname_save_LIBS=$LIBS
15016 LIBS="-lcups  $LIBS"
15017   cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h.  */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h.  */
15023
15024 /* Override any gcc2 internal prototype to avoid an error.  */
15025 #ifdef __cplusplus
15026 extern "C"
15027 #endif
15028 /* We use char because int might match the return type of a gcc2
15029    builtin and then its argument prototype would still apply.  */
15030 char cupsGetDefault ();
15031 int
15032 main ()
15033 {
15034 cupsGetDefault ();
15035   ;
15036   return 0;
15037 }
15038 _ACEOF
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041   (eval $ac_link) 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; } &&
15054          { ac_try='test -s conftest$ac_exeext'
15055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056   (eval $ac_try) 2>&5
15057   ac_status=$?
15058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059   (exit $ac_status); }; }; then
15060   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^    ]*\).*$/\1/"`
15061   if test "x$ac_cv_lib_soname_cups" = "x"
15062   then
15063      ac_cv_lib_soname_cups="libcups.$LIBEXT"
15064   fi
15065 else
15066   echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15068
15069 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15070 fi
15071 rm -f conftest.err conftest.$ac_objext \
15072       conftest$ac_exeext conftest.$ac_ext
15073   LIBS=$ac_get_soname_save_LIBS
15074 fi
15075 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15076 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15077 if test "x$ac_cv_lib_soname_cups" != xNONE
15078 then
15079 cat >>confdefs.h <<_ACEOF
15080 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15081 _ACEOF
15082 fi
15083
15084 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15085 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15086 if test "${ac_cv_lib_soname_jack+set}" = set; then
15087   echo $ECHO_N "(cached) $ECHO_C" >&6
15088 else
15089   ac_get_soname_save_LIBS=$LIBS
15090 LIBS="-ljack  $LIBS"
15091   cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h.  */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h.  */
15097
15098 /* Override any gcc2 internal prototype to avoid an error.  */
15099 #ifdef __cplusplus
15100 extern "C"
15101 #endif
15102 /* We use char because int might match the return type of a gcc2
15103    builtin and then its argument prototype would still apply.  */
15104 char jack_client_new ();
15105 int
15106 main ()
15107 {
15108 jack_client_new ();
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 rm -f conftest.$ac_objext conftest$ac_exeext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15115   (eval $ac_link) 2>conftest.er1
15116   ac_status=$?
15117   grep -v '^ *+' conftest.er1 >conftest.err
15118   rm -f conftest.er1
15119   cat conftest.err >&5
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); } &&
15122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124   (eval $ac_try) 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; } &&
15128          { ac_try='test -s conftest$ac_exeext'
15129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130   (eval $ac_try) 2>&5
15131   ac_status=$?
15132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133   (exit $ac_status); }; }; then
15134   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^    ]*\).*$/\1/"`
15135   if test "x$ac_cv_lib_soname_jack" = "x"
15136   then
15137      ac_cv_lib_soname_jack="libjack.$LIBEXT"
15138   fi
15139 else
15140   echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15142
15143 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15144 fi
15145 rm -f conftest.err conftest.$ac_objext \
15146       conftest$ac_exeext conftest.$ac_ext
15147   LIBS=$ac_get_soname_save_LIBS
15148 fi
15149 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15150 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15151 if test "x$ac_cv_lib_soname_jack" != xNONE
15152 then
15153 cat >>confdefs.h <<_ACEOF
15154 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15155 _ACEOF
15156 fi
15157
15158 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15159 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15160 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15161   echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163   ac_get_soname_save_LIBS=$LIBS
15164 LIBS="-lfontconfig  $LIBS"
15165   cat >conftest.$ac_ext <<_ACEOF
15166 /* confdefs.h.  */
15167 _ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h.  */
15171
15172 /* Override any gcc2 internal prototype to avoid an error.  */
15173 #ifdef __cplusplus
15174 extern "C"
15175 #endif
15176 /* We use char because int might match the return type of a gcc2
15177    builtin and then its argument prototype would still apply.  */
15178 char FcInit ();
15179 int
15180 main ()
15181 {
15182 FcInit ();
15183   ;
15184   return 0;
15185 }
15186 _ACEOF
15187 rm -f conftest.$ac_objext conftest$ac_exeext
15188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15189   (eval $ac_link) 2>conftest.er1
15190   ac_status=$?
15191   grep -v '^ *+' conftest.er1 >conftest.err
15192   rm -f conftest.er1
15193   cat conftest.err >&5
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); } &&
15196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198   (eval $ac_try) 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); }; } &&
15202          { ac_try='test -s conftest$ac_exeext'
15203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204   (eval $ac_try) 2>&5
15205   ac_status=$?
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); }; }; then
15208   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^  ]*\).*$/\1/"`
15209   if test "x$ac_cv_lib_soname_fontconfig" = "x"
15210   then
15211      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15212   fi
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15218 fi
15219 rm -f conftest.err conftest.$ac_objext \
15220       conftest$ac_exeext conftest.$ac_ext
15221   LIBS=$ac_get_soname_save_LIBS
15222 fi
15223 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15224 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15225 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15226 then
15227 cat >>confdefs.h <<_ACEOF
15228 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15229 _ACEOF
15230 fi
15231
15232 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15233 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15234 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15235   echo $ECHO_N "(cached) $ECHO_C" >&6
15236 else
15237   ac_get_soname_save_LIBS=$LIBS
15238 LIBS="-lssl  $LIBS"
15239   cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h.  */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h.  */
15245
15246 /* Override any gcc2 internal prototype to avoid an error.  */
15247 #ifdef __cplusplus
15248 extern "C"
15249 #endif
15250 /* We use char because int might match the return type of a gcc2
15251    builtin and then its argument prototype would still apply.  */
15252 char SSL_library_init ();
15253 int
15254 main ()
15255 {
15256 SSL_library_init ();
15257   ;
15258   return 0;
15259 }
15260 _ACEOF
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15263   (eval $ac_link) 2>conftest.er1
15264   ac_status=$?
15265   grep -v '^ *+' conftest.er1 >conftest.err
15266   rm -f conftest.er1
15267   cat conftest.err >&5
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); } &&
15270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272   (eval $ac_try) 2>&5
15273   ac_status=$?
15274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275   (exit $ac_status); }; } &&
15276          { ac_try='test -s conftest$ac_exeext'
15277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278   (eval $ac_try) 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); }; }; then
15282   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^       ]*\).*$/\1/"`
15283   if test "x$ac_cv_lib_soname_ssl" = "x"
15284   then
15285      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15286   fi
15287 else
15288   echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15292 fi
15293 rm -f conftest.err conftest.$ac_objext \
15294       conftest$ac_exeext conftest.$ac_ext
15295   LIBS=$ac_get_soname_save_LIBS
15296 fi
15297 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15298 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15299 if test "x$ac_cv_lib_soname_ssl" != xNONE
15300 then
15301 cat >>confdefs.h <<_ACEOF
15302 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15303 _ACEOF
15304 fi
15305
15306 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15307 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15308 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15309   echo $ECHO_N "(cached) $ECHO_C" >&6
15310 else
15311   ac_get_soname_save_LIBS=$LIBS
15312 LIBS="-lcrypto  $LIBS"
15313   cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h.  */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h.  */
15319
15320 /* Override any gcc2 internal prototype to avoid an error.  */
15321 #ifdef __cplusplus
15322 extern "C"
15323 #endif
15324 /* We use char because int might match the return type of a gcc2
15325    builtin and then its argument prototype would still apply.  */
15326 char BIO_new_socket ();
15327 int
15328 main ()
15329 {
15330 BIO_new_socket ();
15331   ;
15332   return 0;
15333 }
15334 _ACEOF
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337   (eval $ac_link) 2>conftest.er1
15338   ac_status=$?
15339   grep -v '^ *+' conftest.er1 >conftest.err
15340   rm -f conftest.er1
15341   cat conftest.err >&5
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); } &&
15344          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346   (eval $ac_try) 2>&5
15347   ac_status=$?
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); }; } &&
15350          { ac_try='test -s conftest$ac_exeext'
15351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352   (eval $ac_try) 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; }; then
15356   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^      ]*\).*$/\1/"`
15357   if test "x$ac_cv_lib_soname_crypto" = "x"
15358   then
15359      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15360   fi
15361 else
15362   echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15364
15365 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15366 fi
15367 rm -f conftest.err conftest.$ac_objext \
15368       conftest$ac_exeext conftest.$ac_ext
15369   LIBS=$ac_get_soname_save_LIBS
15370 fi
15371 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15372 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15373 if test "x$ac_cv_lib_soname_crypto" != xNONE
15374 then
15375 cat >>confdefs.h <<_ACEOF
15376 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15377 _ACEOF
15378 fi
15379
15380 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15381 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15382 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15383   echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385   ac_get_soname_save_LIBS=$LIBS
15386 LIBS="-lncurses  $LIBS"
15387   cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h.  */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h.  */
15393
15394 /* Override any gcc2 internal prototype to avoid an error.  */
15395 #ifdef __cplusplus
15396 extern "C"
15397 #endif
15398 /* We use char because int might match the return type of a gcc2
15399    builtin and then its argument prototype would still apply.  */
15400 char waddch ();
15401 int
15402 main ()
15403 {
15404 waddch ();
15405   ;
15406   return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15411   (eval $ac_link) 2>conftest.er1
15412   ac_status=$?
15413   grep -v '^ *+' conftest.er1 >conftest.err
15414   rm -f conftest.er1
15415   cat conftest.err >&5
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } &&
15418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420   (eval $ac_try) 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; } &&
15424          { ac_try='test -s conftest$ac_exeext'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; }; then
15430   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^   ]*\).*$/\1/"`
15431   if test "x$ac_cv_lib_soname_ncurses" = "x"
15432   then
15433      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15434   fi
15435 else
15436   echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15438
15439 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15440 fi
15441 rm -f conftest.err conftest.$ac_objext \
15442       conftest$ac_exeext conftest.$ac_ext
15443   LIBS=$ac_get_soname_save_LIBS
15444 fi
15445 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15446 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15447 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15448 then
15449 cat >>confdefs.h <<_ACEOF
15450 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15451 _ACEOF
15452 fi
15453
15454 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15455 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15456 if test "${ac_cv_lib_soname_curses+set}" = set; then
15457   echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459   ac_get_soname_save_LIBS=$LIBS
15460 LIBS="-lcurses  $LIBS"
15461   cat >conftest.$ac_ext <<_ACEOF
15462 /* confdefs.h.  */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h.  */
15467
15468 /* Override any gcc2 internal prototype to avoid an error.  */
15469 #ifdef __cplusplus
15470 extern "C"
15471 #endif
15472 /* We use char because int might match the return type of a gcc2
15473    builtin and then its argument prototype would still apply.  */
15474 char waddch ();
15475 int
15476 main ()
15477 {
15478 waddch ();
15479   ;
15480   return 0;
15481 }
15482 _ACEOF
15483 rm -f conftest.$ac_objext conftest$ac_exeext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15485   (eval $ac_link) 2>conftest.er1
15486   ac_status=$?
15487   grep -v '^ *+' conftest.er1 >conftest.err
15488   rm -f conftest.er1
15489   cat conftest.err >&5
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); } &&
15492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494   (eval $ac_try) 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; } &&
15498          { ac_try='test -s conftest$ac_exeext'
15499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500   (eval $ac_try) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; }; then
15504   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^      ]*\).*$/\1/"`
15505   if test "x$ac_cv_lib_soname_curses" = "x"
15506   then
15507      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15508   fi
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15514 fi
15515 rm -f conftest.err conftest.$ac_objext \
15516       conftest$ac_exeext conftest.$ac_ext
15517   LIBS=$ac_get_soname_save_LIBS
15518 fi
15519 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15520 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15521 if test "x$ac_cv_lib_soname_curses" != xNONE
15522 then
15523 cat >>confdefs.h <<_ACEOF
15524 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15525 _ACEOF
15526 fi
15527
15528 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15529 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15530 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15531   echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533   ac_get_soname_save_LIBS=$LIBS
15534 LIBS="-ljpeg  $LIBS"
15535   cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h.  */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h.  */
15541
15542 /* Override any gcc2 internal prototype to avoid an error.  */
15543 #ifdef __cplusplus
15544 extern "C"
15545 #endif
15546 /* We use char because int might match the return type of a gcc2
15547    builtin and then its argument prototype would still apply.  */
15548 char jpeg_start_decompress ();
15549 int
15550 main ()
15551 {
15552 jpeg_start_decompress ();
15553   ;
15554   return 0;
15555 }
15556 _ACEOF
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15559   (eval $ac_link) 2>conftest.er1
15560   ac_status=$?
15561   grep -v '^ *+' conftest.er1 >conftest.err
15562   rm -f conftest.er1
15563   cat conftest.err >&5
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); } &&
15566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568   (eval $ac_try) 2>&5
15569   ac_status=$?
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); }; } &&
15572          { ac_try='test -s conftest$ac_exeext'
15573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574   (eval $ac_try) 2>&5
15575   ac_status=$?
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); }; }; then
15578   ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^    ]*\).*$/\1/"`
15579   if test "x$ac_cv_lib_soname_jpeg" = "x"
15580   then
15581      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15582   fi
15583 else
15584   echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15588 fi
15589 rm -f conftest.err conftest.$ac_objext \
15590       conftest$ac_exeext conftest.$ac_ext
15591   LIBS=$ac_get_soname_save_LIBS
15592 fi
15593 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15594 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15595 if test "x$ac_cv_lib_soname_jpeg" != xNONE
15596 then
15597 cat >>confdefs.h <<_ACEOF
15598 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15599 _ACEOF
15600 fi
15601
15602 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15603 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15604 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15605   echo $ECHO_N "(cached) $ECHO_C" >&6
15606 else
15607   ac_get_soname_save_LIBS=$LIBS
15608 LIBS="-lungif  $LIBS"
15609   cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h.  */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h.  */
15615
15616 /* Override any gcc2 internal prototype to avoid an error.  */
15617 #ifdef __cplusplus
15618 extern "C"
15619 #endif
15620 /* We use char because int might match the return type of a gcc2
15621    builtin and then its argument prototype would still apply.  */
15622 char DGifOpen ();
15623 int
15624 main ()
15625 {
15626 DGifOpen ();
15627   ;
15628   return 0;
15629 }
15630 _ACEOF
15631 rm -f conftest.$ac_objext conftest$ac_exeext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633   (eval $ac_link) 2>conftest.er1
15634   ac_status=$?
15635   grep -v '^ *+' conftest.er1 >conftest.err
15636   rm -f conftest.er1
15637   cat conftest.err >&5
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); } &&
15640          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642   (eval $ac_try) 2>&5
15643   ac_status=$?
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); }; } &&
15646          { ac_try='test -s conftest$ac_exeext'
15647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648   (eval $ac_try) 2>&5
15649   ac_status=$?
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); }; }; then
15652   ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^         ]*\).*$/\1/"`
15653   if test "x$ac_cv_lib_soname_ungif" = "x"
15654   then
15655      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15656   fi
15657 else
15658   echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15660
15661 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15662 fi
15663 rm -f conftest.err conftest.$ac_objext \
15664       conftest$ac_exeext conftest.$ac_ext
15665   LIBS=$ac_get_soname_save_LIBS
15666 fi
15667 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15668 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15669 if test "x$ac_cv_lib_soname_ungif" != xNONE
15670 then
15671 cat >>confdefs.h <<_ACEOF
15672 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15673 _ACEOF
15674 fi
15675
15676 echo "$as_me:$LINENO: checking for -lgif soname" >&5
15677 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15678 if test "${ac_cv_lib_soname_gif+set}" = set; then
15679   echo $ECHO_N "(cached) $ECHO_C" >&6
15680 else
15681   ac_get_soname_save_LIBS=$LIBS
15682 LIBS="-lgif  $LIBS"
15683   cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689
15690 /* Override any gcc2 internal prototype to avoid an error.  */
15691 #ifdef __cplusplus
15692 extern "C"
15693 #endif
15694 /* We use char because int might match the return type of a gcc2
15695    builtin and then its argument prototype would still apply.  */
15696 char DGifOpen ();
15697 int
15698 main ()
15699 {
15700 DGifOpen ();
15701   ;
15702   return 0;
15703 }
15704 _ACEOF
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15707   (eval $ac_link) 2>conftest.er1
15708   ac_status=$?
15709   grep -v '^ *+' conftest.er1 >conftest.err
15710   rm -f conftest.er1
15711   cat conftest.err >&5
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); } &&
15714          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716   (eval $ac_try) 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); }; } &&
15720          { ac_try='test -s conftest$ac_exeext'
15721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722   (eval $ac_try) 2>&5
15723   ac_status=$?
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); }; }; then
15726   ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^       ]*\).*$/\1/"`
15727   if test "x$ac_cv_lib_soname_gif" = "x"
15728   then
15729      ac_cv_lib_soname_gif="libgif.$LIBEXT"
15730   fi
15731 else
15732   echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15734
15735 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15736 fi
15737 rm -f conftest.err conftest.$ac_objext \
15738       conftest$ac_exeext conftest.$ac_ext
15739   LIBS=$ac_get_soname_save_LIBS
15740 fi
15741 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15742 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15743 if test "x$ac_cv_lib_soname_gif" != xNONE
15744 then
15745 cat >>confdefs.h <<_ACEOF
15746 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15747 _ACEOF
15748 fi
15749
15750 echo "$as_me:$LINENO: checking for -llcms soname" >&5
15751 echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
15752 if test "${ac_cv_lib_soname_lcms+set}" = set; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755   ac_get_soname_save_LIBS=$LIBS
15756 LIBS="-llcms  $LIBS"
15757   cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h.  */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h.  */
15763
15764 /* Override any gcc2 internal prototype to avoid an error.  */
15765 #ifdef __cplusplus
15766 extern "C"
15767 #endif
15768 /* We use char because int might match the return type of a gcc2
15769    builtin and then its argument prototype would still apply.  */
15770 char cmsOpenProfileFromFile ();
15771 int
15772 main ()
15773 {
15774 cmsOpenProfileFromFile ();
15775   ;
15776   return 0;
15777 }
15778 _ACEOF
15779 rm -f conftest.$ac_objext conftest$ac_exeext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15781   (eval $ac_link) 2>conftest.er1
15782   ac_status=$?
15783   grep -v '^ *+' conftest.er1 >conftest.err
15784   rm -f conftest.er1
15785   cat conftest.err >&5
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); } &&
15788          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790   (eval $ac_try) 2>&5
15791   ac_status=$?
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); }; } &&
15794          { ac_try='test -s conftest$ac_exeext'
15795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796   (eval $ac_try) 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; }; then
15800   ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^    ]*\).*$/\1/"`
15801   if test "x$ac_cv_lib_soname_lcms" = "x"
15802   then
15803      ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15804   fi
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15810 fi
15811 rm -f conftest.err conftest.$ac_objext \
15812       conftest$ac_exeext conftest.$ac_ext
15813   LIBS=$ac_get_soname_save_LIBS
15814 fi
15815 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
15816 echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
15817 if test "x$ac_cv_lib_soname_lcms" != xNONE
15818 then
15819 cat >>confdefs.h <<_ACEOF
15820 #define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
15821 _ACEOF
15822 fi
15823
15824 echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15825 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6
15826 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15827   echo $ECHO_N "(cached) $ECHO_C" >&6
15828 else
15829   ac_get_soname_save_LIBS=$LIBS
15830 LIBS="-lcapi20  $LIBS"
15831   cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h.  */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h.  */
15837
15838 /* Override any gcc2 internal prototype to avoid an error.  */
15839 #ifdef __cplusplus
15840 extern "C"
15841 #endif
15842 /* We use char because int might match the return type of a gcc2
15843    builtin and then its argument prototype would still apply.  */
15844 char capi20_isinstalled ();
15845 int
15846 main ()
15847 {
15848 capi20_isinstalled ();
15849   ;
15850   return 0;
15851 }
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855   (eval $ac_link) 2>conftest.er1
15856   ac_status=$?
15857   grep -v '^ *+' conftest.er1 >conftest.err
15858   rm -f conftest.er1
15859   cat conftest.err >&5
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); } &&
15862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; } &&
15868          { ac_try='test -s conftest$ac_exeext'
15869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870   (eval $ac_try) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; }; then
15874   ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed "s/^.*\(libcapi20\.$LIBEXT[^      ]*\).*$/\1/"`
15875   if test "x$ac_cv_lib_soname_capi20" = "x"
15876   then
15877      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15878   fi
15879 else
15880   echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15884 fi
15885 rm -f conftest.err conftest.$ac_objext \
15886       conftest$ac_exeext conftest.$ac_ext
15887   LIBS=$ac_get_soname_save_LIBS
15888 fi
15889 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15890 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6
15891 if test "x$ac_cv_lib_soname_capi20" != xNONE
15892 then
15893 cat >>confdefs.h <<_ACEOF
15894 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15895 _ACEOF
15896 fi
15897 fi
15898
15899
15900
15901 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15902 # for constant arguments.  Useless!
15903 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15904 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15905 if test "${ac_cv_working_alloca_h+set}" = set; then
15906   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908   cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914 #include <alloca.h>
15915 int
15916 main ()
15917 {
15918 char *p = (char *) alloca (2 * sizeof (int));
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext conftest$ac_exeext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15925   (eval $ac_link) 2>conftest.er1
15926   ac_status=$?
15927   grep -v '^ *+' conftest.er1 >conftest.err
15928   rm -f conftest.er1
15929   cat conftest.err >&5
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); } &&
15932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934   (eval $ac_try) 2>&5
15935   ac_status=$?
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); }; } &&
15938          { ac_try='test -s conftest$ac_exeext'
15939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940   (eval $ac_try) 2>&5
15941   ac_status=$?
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); }; }; then
15944   ac_cv_working_alloca_h=yes
15945 else
15946   echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949 ac_cv_working_alloca_h=no
15950 fi
15951 rm -f conftest.err conftest.$ac_objext \
15952       conftest$ac_exeext conftest.$ac_ext
15953 fi
15954 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15955 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15956 if test $ac_cv_working_alloca_h = yes; then
15957
15958 cat >>confdefs.h <<\_ACEOF
15959 #define HAVE_ALLOCA_H 1
15960 _ACEOF
15961
15962 fi
15963
15964 echo "$as_me:$LINENO: checking for alloca" >&5
15965 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15966 if test "${ac_cv_func_alloca_works+set}" = set; then
15967   echo $ECHO_N "(cached) $ECHO_C" >&6
15968 else
15969   cat >conftest.$ac_ext <<_ACEOF
15970 /* confdefs.h.  */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h.  */
15975 #ifdef __GNUC__
15976 # define alloca __builtin_alloca
15977 #else
15978 # ifdef _MSC_VER
15979 #  include <malloc.h>
15980 #  define alloca _alloca
15981 # else
15982 #  if HAVE_ALLOCA_H
15983 #   include <alloca.h>
15984 #  else
15985 #   ifdef _AIX
15986  #pragma alloca
15987 #   else
15988 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15989 char *alloca ();
15990 #    endif
15991 #   endif
15992 #  endif
15993 # endif
15994 #endif
15995
15996 int
15997 main ()
15998 {
15999 char *p = (char *) alloca (1);
16000   ;
16001   return 0;
16002 }
16003 _ACEOF
16004 rm -f conftest.$ac_objext conftest$ac_exeext
16005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16006   (eval $ac_link) 2>conftest.er1
16007   ac_status=$?
16008   grep -v '^ *+' conftest.er1 >conftest.err
16009   rm -f conftest.er1
16010   cat conftest.err >&5
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } &&
16013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015   (eval $ac_try) 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; } &&
16019          { ac_try='test -s conftest$ac_exeext'
16020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021   (eval $ac_try) 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; }; then
16025   ac_cv_func_alloca_works=yes
16026 else
16027   echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16029
16030 ac_cv_func_alloca_works=no
16031 fi
16032 rm -f conftest.err conftest.$ac_objext \
16033       conftest$ac_exeext conftest.$ac_ext
16034 fi
16035 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16036 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16037
16038 if test $ac_cv_func_alloca_works = yes; then
16039
16040 cat >>confdefs.h <<\_ACEOF
16041 #define HAVE_ALLOCA 1
16042 _ACEOF
16043
16044 else
16045   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16046 # that cause trouble.  Some versions do not even contain alloca or
16047 # contain a buggy version.  If you still want to use their alloca,
16048 # use ar to extract alloca.o from them instead of compiling alloca.c.
16049
16050 ALLOCA=alloca.$ac_objext
16051
16052 cat >>confdefs.h <<\_ACEOF
16053 #define C_ALLOCA 1
16054 _ACEOF
16055
16056
16057 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16058 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16059 if test "${ac_cv_os_cray+set}" = set; then
16060   echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062   cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h.  */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h.  */
16068 #if defined(CRAY) && ! defined(CRAY2)
16069 webecray
16070 #else
16071 wenotbecray
16072 #endif
16073
16074 _ACEOF
16075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16076   $EGREP "webecray" >/dev/null 2>&1; then
16077   ac_cv_os_cray=yes
16078 else
16079   ac_cv_os_cray=no
16080 fi
16081 rm -f conftest*
16082
16083 fi
16084 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16085 echo "${ECHO_T}$ac_cv_os_cray" >&6
16086 if test $ac_cv_os_cray = yes; then
16087   for ac_func in _getb67 GETB67 getb67; do
16088     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089 echo "$as_me:$LINENO: checking for $ac_func" >&5
16090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16091 if eval "test \"\${$as_ac_var+set}\" = set"; then
16092   echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094   cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h.  */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h.  */
16100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16102 #define $ac_func innocuous_$ac_func
16103
16104 /* System header to define __stub macros and hopefully few prototypes,
16105     which can conflict with char $ac_func (); below.
16106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16107     <limits.h> exists even on freestanding compilers.  */
16108
16109 #ifdef __STDC__
16110 # include <limits.h>
16111 #else
16112 # include <assert.h>
16113 #endif
16114
16115 #undef $ac_func
16116
16117 /* Override any gcc2 internal prototype to avoid an error.  */
16118 #ifdef __cplusplus
16119 extern "C"
16120 {
16121 #endif
16122 /* We use char because int might match the return type of a gcc2
16123    builtin and then its argument prototype would still apply.  */
16124 char $ac_func ();
16125 /* The GNU C library defines this for functions which it implements
16126     to always fail with ENOSYS.  Some functions are actually named
16127     something starting with __ and the normal name is an alias.  */
16128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16129 choke me
16130 #else
16131 char (*f) () = $ac_func;
16132 #endif
16133 #ifdef __cplusplus
16134 }
16135 #endif
16136
16137 int
16138 main ()
16139 {
16140 return f != $ac_func;
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext conftest$ac_exeext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16147   (eval $ac_link) 2>conftest.er1
16148   ac_status=$?
16149   grep -v '^ *+' conftest.er1 >conftest.err
16150   rm -f conftest.er1
16151   cat conftest.err >&5
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); } &&
16154          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156   (eval $ac_try) 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); }; } &&
16160          { ac_try='test -s conftest$ac_exeext'
16161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162   (eval $ac_try) 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); }; }; then
16166   eval "$as_ac_var=yes"
16167 else
16168   echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16170
16171 eval "$as_ac_var=no"
16172 fi
16173 rm -f conftest.err conftest.$ac_objext \
16174       conftest$ac_exeext conftest.$ac_ext
16175 fi
16176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16178 if test `eval echo '${'$as_ac_var'}'` = yes; then
16179
16180 cat >>confdefs.h <<_ACEOF
16181 #define CRAY_STACKSEG_END $ac_func
16182 _ACEOF
16183
16184     break
16185 fi
16186
16187   done
16188 fi
16189
16190 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16191 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16192 if test "${ac_cv_c_stack_direction+set}" = set; then
16193   echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195   if test "$cross_compiling" = yes; then
16196   ac_cv_c_stack_direction=0
16197 else
16198   cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h.  */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h.  */
16204 int
16205 find_stack_direction ()
16206 {
16207   static char *addr = 0;
16208   auto char dummy;
16209   if (addr == 0)
16210     {
16211       addr = &dummy;
16212       return find_stack_direction ();
16213     }
16214   else
16215     return (&dummy > addr) ? 1 : -1;
16216 }
16217
16218 int
16219 main ()
16220 {
16221   exit (find_stack_direction () < 0);
16222 }
16223 _ACEOF
16224 rm -f conftest$ac_exeext
16225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16226   (eval $ac_link) 2>&5
16227   ac_status=$?
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231   (eval $ac_try) 2>&5
16232   ac_status=$?
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); }; }; then
16235   ac_cv_c_stack_direction=1
16236 else
16237   echo "$as_me: program exited with status $ac_status" >&5
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16240
16241 ( exit $ac_status )
16242 ac_cv_c_stack_direction=-1
16243 fi
16244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16245 fi
16246 fi
16247 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16248 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16249
16250 cat >>confdefs.h <<_ACEOF
16251 #define STACK_DIRECTION $ac_cv_c_stack_direction
16252 _ACEOF
16253
16254
16255 fi
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316 for ac_func in \
16317         _lwp_create \
16318         _lwp_self \
16319         _pclose \
16320         _popen \
16321         _snprintf \
16322         _spawnvp \
16323         _stricmp \
16324         _strnicmp \
16325         _vsnprintf \
16326         chsize \
16327         clone \
16328         epoll_create \
16329         ffs \
16330         finite \
16331         fork \
16332         fpclass \
16333         fstatfs \
16334         fstatvfs \
16335         ftruncate \
16336         futimes \
16337         getnetbyname \
16338         getopt_long \
16339         getpagesize \
16340         getprotobyname \
16341         getprotobynumber \
16342         getpwuid \
16343         getservbyport \
16344         gettid \
16345         gettimeofday \
16346         getuid \
16347         inet_network \
16348         lstat \
16349         memmove \
16350         mmap \
16351         pclose \
16352         popen \
16353         pread \
16354         pwrite \
16355         readlink \
16356         rfork \
16357         sched_yield \
16358         select \
16359         sendmsg \
16360         settimeofday \
16361         sigaltstack \
16362         sigprocmask \
16363         snprintf \
16364         spawnvp \
16365         statfs \
16366         statvfs \
16367         strcasecmp \
16368         strerror \
16369         strncasecmp \
16370         tcgetattr \
16371         timegm \
16372         usleep \
16373         vsnprintf \
16374         wait4 \
16375         waitpid \
16376
16377 do
16378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16379 echo "$as_me:$LINENO: checking for $ac_func" >&5
16380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16381 if eval "test \"\${$as_ac_var+set}\" = set"; then
16382   echo $ECHO_N "(cached) $ECHO_C" >&6
16383 else
16384   cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16392 #define $ac_func innocuous_$ac_func
16393
16394 /* System header to define __stub macros and hopefully few prototypes,
16395     which can conflict with char $ac_func (); below.
16396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16397     <limits.h> exists even on freestanding compilers.  */
16398
16399 #ifdef __STDC__
16400 # include <limits.h>
16401 #else
16402 # include <assert.h>
16403 #endif
16404
16405 #undef $ac_func
16406
16407 /* Override any gcc2 internal prototype to avoid an error.  */
16408 #ifdef __cplusplus
16409 extern "C"
16410 {
16411 #endif
16412 /* We use char because int might match the return type of a gcc2
16413    builtin and then its argument prototype would still apply.  */
16414 char $ac_func ();
16415 /* The GNU C library defines this for functions which it implements
16416     to always fail with ENOSYS.  Some functions are actually named
16417     something starting with __ and the normal name is an alias.  */
16418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16419 choke me
16420 #else
16421 char (*f) () = $ac_func;
16422 #endif
16423 #ifdef __cplusplus
16424 }
16425 #endif
16426
16427 int
16428 main ()
16429 {
16430 return f != $ac_func;
16431   ;
16432   return 0;
16433 }
16434 _ACEOF
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16437   (eval $ac_link) 2>conftest.er1
16438   ac_status=$?
16439   grep -v '^ *+' conftest.er1 >conftest.err
16440   rm -f conftest.er1
16441   cat conftest.err >&5
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); } &&
16444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446   (eval $ac_try) 2>&5
16447   ac_status=$?
16448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); }; } &&
16450          { ac_try='test -s conftest$ac_exeext'
16451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452   (eval $ac_try) 2>&5
16453   ac_status=$?
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); }; }; then
16456   eval "$as_ac_var=yes"
16457 else
16458   echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16460
16461 eval "$as_ac_var=no"
16462 fi
16463 rm -f conftest.err conftest.$ac_objext \
16464       conftest$ac_exeext conftest.$ac_ext
16465 fi
16466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16468 if test `eval echo '${'$as_ac_var'}'` = yes; then
16469   cat >>confdefs.h <<_ACEOF
16470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16471 _ACEOF
16472
16473 fi
16474 done
16475
16476
16477
16478
16479
16480 for ac_header in sys/mount.h sys/user.h
16481 do
16482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16483 echo "$as_me:$LINENO: checking for $ac_header" >&5
16484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16486   echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488   cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h.  */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h.  */
16494 #include <sys/types.h>
16495      #if HAVE_SYS_PARAM_H
16496      # include <sys/param.h>
16497      #endif
16498
16499 #include <$ac_header>
16500 _ACEOF
16501 rm -f conftest.$ac_objext
16502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16503   (eval $ac_compile) 2>conftest.er1
16504   ac_status=$?
16505   grep -v '^ *+' conftest.er1 >conftest.err
16506   rm -f conftest.er1
16507   cat conftest.err >&5
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } &&
16510          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512   (eval $ac_try) 2>&5
16513   ac_status=$?
16514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515   (exit $ac_status); }; } &&
16516          { ac_try='test -s conftest.$ac_objext'
16517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518   (eval $ac_try) 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; }; then
16522   eval "$as_ac_Header=yes"
16523 else
16524   echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16526
16527 eval "$as_ac_Header=no"
16528 fi
16529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16530 fi
16531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16534   cat >>confdefs.h <<_ACEOF
16535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16536 _ACEOF
16537
16538 fi
16539
16540 done
16541
16542
16543
16544
16545
16546
16547
16548 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16549 do
16550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16551 echo "$as_me:$LINENO: checking for $ac_header" >&5
16552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16554   echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556   cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h.  */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h.  */
16562 #include <sys/types.h>
16563      #if HAVE_SYS_SOCKET_H
16564      # include <sys/socket.h>
16565      #endif
16566
16567 #include <$ac_header>
16568 _ACEOF
16569 rm -f conftest.$ac_objext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16571   (eval $ac_compile) 2>conftest.er1
16572   ac_status=$?
16573   grep -v '^ *+' conftest.er1 >conftest.err
16574   rm -f conftest.er1
16575   cat conftest.err >&5
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); } &&
16578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580   (eval $ac_try) 2>&5
16581   ac_status=$?
16582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583   (exit $ac_status); }; } &&
16584          { ac_try='test -s conftest.$ac_objext'
16585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586   (eval $ac_try) 2>&5
16587   ac_status=$?
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); }; }; then
16590   eval "$as_ac_Header=yes"
16591 else
16592   echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595 eval "$as_ac_Header=no"
16596 fi
16597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16598 fi
16599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16602   cat >>confdefs.h <<_ACEOF
16603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16604 _ACEOF
16605
16606 fi
16607
16608 done
16609
16610
16611
16612 for ac_header in resolv.h
16613 do
16614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16615 echo "$as_me:$LINENO: checking for $ac_header" >&5
16616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16618   echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620   cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h.  */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h.  */
16626 #include <sys/types.h>
16627      #if HAVE_SYS_SOCKET_H
16628      # include <sys/socket.h>
16629      #endif
16630      #if HAVE_NETINET_IN_H
16631      # include <netinet/in.h>
16632      #endif
16633      #if HAVE_ARPA_NAMESER_H
16634      # include <arpa/nameser.h>
16635      #endif
16636
16637 #include <$ac_header>
16638 _ACEOF
16639 rm -f conftest.$ac_objext
16640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16641   (eval $ac_compile) 2>conftest.er1
16642   ac_status=$?
16643   grep -v '^ *+' conftest.er1 >conftest.err
16644   rm -f conftest.er1
16645   cat conftest.err >&5
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); } &&
16648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650   (eval $ac_try) 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; } &&
16654          { ac_try='test -s conftest.$ac_objext'
16655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656   (eval $ac_try) 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; }; then
16660   eval "$as_ac_Header=yes"
16661 else
16662   echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 eval "$as_ac_Header=no"
16666 fi
16667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16668 fi
16669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16672   cat >>confdefs.h <<_ACEOF
16673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16674 _ACEOF
16675
16676 fi
16677
16678 done
16679
16680
16681
16682 for ac_header in ucontext.h
16683 do
16684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16685 echo "$as_me:$LINENO: checking for $ac_header" >&5
16686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16688   echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690   cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h.  */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h.  */
16696 #include <signal.h>
16697
16698 #include <$ac_header>
16699 _ACEOF
16700 rm -f conftest.$ac_objext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702   (eval $ac_compile) 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711   (eval $ac_try) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; } &&
16715          { ac_try='test -s conftest.$ac_objext'
16716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717   (eval $ac_try) 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; }; then
16721   eval "$as_ac_Header=yes"
16722 else
16723   echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16725
16726 eval "$as_ac_Header=no"
16727 fi
16728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16729 fi
16730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16733   cat >>confdefs.h <<_ACEOF
16734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16735 _ACEOF
16736
16737 fi
16738
16739 done
16740
16741
16742
16743 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16744 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16745 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16746   echo $ECHO_N "(cached) $ECHO_C" >&6
16747 else
16748   cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h.  */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h.  */
16754 #include <sys/types.h>
16755     #ifdef HAVE_SYS_SOCKET_H
16756     # include <sys/socket.h>
16757     #endif
16758     #include <netipx/ipx.h>
16759 int
16760 main ()
16761 {
16762 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16763   ;
16764   return 0;
16765 }
16766 _ACEOF
16767 rm -f conftest.$ac_objext
16768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16769   (eval $ac_compile) 2>conftest.er1
16770   ac_status=$?
16771   grep -v '^ *+' conftest.er1 >conftest.err
16772   rm -f conftest.er1
16773   cat conftest.err >&5
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); } &&
16776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778   (eval $ac_try) 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; } &&
16782          { ac_try='test -s conftest.$ac_objext'
16783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784   (eval $ac_try) 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }; }; then
16788   ac_cv_c_ipx_gnu="yes"
16789 else
16790   echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16792
16793 ac_cv_c_ipx_gnu="no"
16794 fi
16795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16796
16797 fi
16798 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16799 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16800 if test "$ac_cv_c_ipx_gnu" = "yes"
16801 then
16802
16803 cat >>confdefs.h <<\_ACEOF
16804 #define HAVE_IPX_GNU 1
16805 _ACEOF
16806
16807 fi
16808
16809 if test "$ac_cv_c_ipx_gnu" = "no"
16810 then
16811  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16812 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16813 if test "${ac_cv_c_ipx_linux+set}" = set; then
16814   echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816   cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h.  */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h.  */
16822 #include <sys/types.h>
16823      #ifdef HAVE_SYS_SOCKET_H
16824      # include <sys/socket.h>
16825      #endif
16826      #include <asm/types.h>
16827      #include <linux/ipx.h>
16828 int
16829 main ()
16830 {
16831 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16832   ;
16833   return 0;
16834 }
16835 _ACEOF
16836 rm -f conftest.$ac_objext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838   (eval $ac_compile) 2>conftest.er1
16839   ac_status=$?
16840   grep -v '^ *+' conftest.er1 >conftest.err
16841   rm -f conftest.er1
16842   cat conftest.err >&5
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } &&
16845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847   (eval $ac_try) 2>&5
16848   ac_status=$?
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); }; } &&
16851          { ac_try='test -s conftest.$ac_objext'
16852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853   (eval $ac_try) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); }; }; then
16857   ac_cv_c_ipx_linux="yes"
16858 else
16859   echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862 ac_cv_c_ipx_linux="no"
16863 fi
16864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16865
16866 fi
16867 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16868 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16869   if test "$ac_cv_c_ipx_linux" = "yes"
16870   then
16871
16872 cat >>confdefs.h <<\_ACEOF
16873 #define HAVE_IPX_LINUX 1
16874 _ACEOF
16875
16876   fi
16877 fi
16878
16879
16880 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16881 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16882 if test "${ac_cv_c_const+set}" = set; then
16883   echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885   cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891
16892 int
16893 main ()
16894 {
16895 /* FIXME: Include the comments suggested by Paul. */
16896 #ifndef __cplusplus
16897   /* Ultrix mips cc rejects this.  */
16898   typedef int charset[2];
16899   const charset x;
16900   /* SunOS 4.1.1 cc rejects this.  */
16901   char const *const *ccp;
16902   char **p;
16903   /* NEC SVR4.0.2 mips cc rejects this.  */
16904   struct point {int x, y;};
16905   static struct point const zero = {0,0};
16906   /* AIX XL C 1.02.0.0 rejects this.
16907      It does not let you subtract one const X* pointer from another in
16908      an arm of an if-expression whose if-part is not a constant
16909      expression */
16910   const char *g = "string";
16911   ccp = &g + (g ? g-g : 0);
16912   /* HPUX 7.0 cc rejects these. */
16913   ++ccp;
16914   p = (char**) ccp;
16915   ccp = (char const *const *) p;
16916   { /* SCO 3.2v4 cc rejects this.  */
16917     char *t;
16918     char const *s = 0 ? (char *) 0 : (char const *) 0;
16919
16920     *t++ = 0;
16921   }
16922   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16923     int x[] = {25, 17};
16924     const int *foo = &x[0];
16925     ++foo;
16926   }
16927   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16928     typedef const int *iptr;
16929     iptr p = 0;
16930     ++p;
16931   }
16932   { /* AIX XL C 1.02.0.0 rejects this saying
16933        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16934     struct s { int j; const int *ap[3]; };
16935     struct s *b; b->j = 5;
16936   }
16937   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16938     const int foo = 10;
16939   }
16940 #endif
16941
16942   ;
16943   return 0;
16944 }
16945 _ACEOF
16946 rm -f conftest.$ac_objext
16947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16948   (eval $ac_compile) 2>conftest.er1
16949   ac_status=$?
16950   grep -v '^ *+' conftest.er1 >conftest.err
16951   rm -f conftest.er1
16952   cat conftest.err >&5
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); } &&
16955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957   (eval $ac_try) 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); }; } &&
16961          { ac_try='test -s conftest.$ac_objext'
16962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963   (eval $ac_try) 2>&5
16964   ac_status=$?
16965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); }; }; then
16967   ac_cv_c_const=yes
16968 else
16969   echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16971
16972 ac_cv_c_const=no
16973 fi
16974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16975 fi
16976 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16977 echo "${ECHO_T}$ac_cv_c_const" >&6
16978 if test $ac_cv_c_const = no; then
16979
16980 cat >>confdefs.h <<\_ACEOF
16981 #define const
16982 _ACEOF
16983
16984 fi
16985
16986 echo "$as_me:$LINENO: checking for inline" >&5
16987 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16988 if test "${ac_cv_c_inline+set}" = set; then
16989   echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991   ac_cv_c_inline=no
16992 for ac_kw in inline __inline__ __inline; do
16993   cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h.  */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h.  */
16999 #ifndef __cplusplus
17000 typedef int foo_t;
17001 static $ac_kw foo_t static_foo () {return 0; }
17002 $ac_kw foo_t foo () {return 0; }
17003 #endif
17004
17005 _ACEOF
17006 rm -f conftest.$ac_objext
17007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17008   (eval $ac_compile) 2>conftest.er1
17009   ac_status=$?
17010   grep -v '^ *+' conftest.er1 >conftest.err
17011   rm -f conftest.er1
17012   cat conftest.err >&5
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); } &&
17015          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; } &&
17021          { ac_try='test -s conftest.$ac_objext'
17022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023   (eval $ac_try) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; }; then
17027   ac_cv_c_inline=$ac_kw; break
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 fi
17033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17034 done
17035
17036 fi
17037 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17038 echo "${ECHO_T}$ac_cv_c_inline" >&6
17039
17040
17041 case $ac_cv_c_inline in
17042   inline | yes) ;;
17043   *)
17044     case $ac_cv_c_inline in
17045       no) ac_val=;;
17046       *) ac_val=$ac_cv_c_inline;;
17047     esac
17048     cat >>confdefs.h <<_ACEOF
17049 #ifndef __cplusplus
17050 #define inline $ac_val
17051 #endif
17052 _ACEOF
17053     ;;
17054 esac
17055
17056 echo "$as_me:$LINENO: checking for mode_t" >&5
17057 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17058 if test "${ac_cv_type_mode_t+set}" = set; then
17059   echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061   cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 $ac_includes_default
17068 int
17069 main ()
17070 {
17071 if ((mode_t *) 0)
17072   return 0;
17073 if (sizeof (mode_t))
17074   return 0;
17075   ;
17076   return 0;
17077 }
17078 _ACEOF
17079 rm -f conftest.$ac_objext
17080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17081   (eval $ac_compile) 2>conftest.er1
17082   ac_status=$?
17083   grep -v '^ *+' conftest.er1 >conftest.err
17084   rm -f conftest.er1
17085   cat conftest.err >&5
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); } &&
17088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090   (eval $ac_try) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); }; } &&
17094          { ac_try='test -s conftest.$ac_objext'
17095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096   (eval $ac_try) 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; }; then
17100   ac_cv_type_mode_t=yes
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105 ac_cv_type_mode_t=no
17106 fi
17107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17108 fi
17109 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17110 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17111 if test $ac_cv_type_mode_t = yes; then
17112
17113 cat >>confdefs.h <<_ACEOF
17114 #define HAVE_MODE_T 1
17115 _ACEOF
17116
17117
17118 fi
17119 echo "$as_me:$LINENO: checking for off_t" >&5
17120 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17121 if test "${ac_cv_type_off_t+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 $ac_includes_default
17131 int
17132 main ()
17133 {
17134 if ((off_t *) 0)
17135   return 0;
17136 if (sizeof (off_t))
17137   return 0;
17138   ;
17139   return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17144   (eval $ac_compile) 2>conftest.er1
17145   ac_status=$?
17146   grep -v '^ *+' conftest.er1 >conftest.err
17147   rm -f conftest.er1
17148   cat conftest.err >&5
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); } &&
17151          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153   (eval $ac_try) 2>&5
17154   ac_status=$?
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); }; } &&
17157          { ac_try='test -s conftest.$ac_objext'
17158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159   (eval $ac_try) 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); }; }; then
17163   ac_cv_type_off_t=yes
17164 else
17165   echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17167
17168 ac_cv_type_off_t=no
17169 fi
17170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17171 fi
17172 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17173 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17174 if test $ac_cv_type_off_t = yes; then
17175
17176 cat >>confdefs.h <<_ACEOF
17177 #define HAVE_OFF_T 1
17178 _ACEOF
17179
17180
17181 fi
17182 echo "$as_me:$LINENO: checking for pid_t" >&5
17183 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17184 if test "${ac_cv_type_pid_t+set}" = set; then
17185   echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187   cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h.  */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h.  */
17193 $ac_includes_default
17194 int
17195 main ()
17196 {
17197 if ((pid_t *) 0)
17198   return 0;
17199 if (sizeof (pid_t))
17200   return 0;
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext
17206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17207   (eval $ac_compile) 2>conftest.er1
17208   ac_status=$?
17209   grep -v '^ *+' conftest.er1 >conftest.err
17210   rm -f conftest.er1
17211   cat conftest.err >&5
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); } &&
17214          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216   (eval $ac_try) 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); }; } &&
17220          { ac_try='test -s conftest.$ac_objext'
17221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222   (eval $ac_try) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); }; }; then
17226   ac_cv_type_pid_t=yes
17227 else
17228   echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 ac_cv_type_pid_t=no
17232 fi
17233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17234 fi
17235 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17236 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17237 if test $ac_cv_type_pid_t = yes; then
17238
17239 cat >>confdefs.h <<_ACEOF
17240 #define HAVE_PID_T 1
17241 _ACEOF
17242
17243
17244 fi
17245 echo "$as_me:$LINENO: checking for size_t" >&5
17246 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17247 if test "${ac_cv_type_size_t+set}" = set; then
17248   echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250   cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h.  */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h.  */
17256 $ac_includes_default
17257 int
17258 main ()
17259 {
17260 if ((size_t *) 0)
17261   return 0;
17262 if (sizeof (size_t))
17263   return 0;
17264   ;
17265   return 0;
17266 }
17267 _ACEOF
17268 rm -f conftest.$ac_objext
17269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17270   (eval $ac_compile) 2>conftest.er1
17271   ac_status=$?
17272   grep -v '^ *+' conftest.er1 >conftest.err
17273   rm -f conftest.er1
17274   cat conftest.err >&5
17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276   (exit $ac_status); } &&
17277          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279   (eval $ac_try) 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); }; } &&
17283          { ac_try='test -s conftest.$ac_objext'
17284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285   (eval $ac_try) 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; }; then
17289   ac_cv_type_size_t=yes
17290 else
17291   echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 ac_cv_type_size_t=no
17295 fi
17296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17297 fi
17298 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17299 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17300 if test $ac_cv_type_size_t = yes; then
17301
17302 cat >>confdefs.h <<_ACEOF
17303 #define HAVE_SIZE_T 1
17304 _ACEOF
17305
17306
17307 fi
17308 echo "$as_me:$LINENO: checking for ssize_t" >&5
17309 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17310 if test "${ac_cv_type_ssize_t+set}" = set; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313   cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319 $ac_includes_default
17320 int
17321 main ()
17322 {
17323 if ((ssize_t *) 0)
17324   return 0;
17325 if (sizeof (ssize_t))
17326   return 0;
17327   ;
17328   return 0;
17329 }
17330 _ACEOF
17331 rm -f conftest.$ac_objext
17332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17333   (eval $ac_compile) 2>conftest.er1
17334   ac_status=$?
17335   grep -v '^ *+' conftest.er1 >conftest.err
17336   rm -f conftest.er1
17337   cat conftest.err >&5
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } &&
17340          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342   (eval $ac_try) 2>&5
17343   ac_status=$?
17344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); }; } &&
17346          { ac_try='test -s conftest.$ac_objext'
17347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348   (eval $ac_try) 2>&5
17349   ac_status=$?
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); }; }; then
17352   ac_cv_type_ssize_t=yes
17353 else
17354   echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17356
17357 ac_cv_type_ssize_t=no
17358 fi
17359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17360 fi
17361 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17362 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17363 if test $ac_cv_type_ssize_t = yes; then
17364
17365 cat >>confdefs.h <<_ACEOF
17366 #define HAVE_SSIZE_T 1
17367 _ACEOF
17368
17369
17370 fi
17371 echo "$as_me:$LINENO: checking for long long" >&5
17372 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17373 if test "${ac_cv_type_long_long+set}" = set; then
17374   echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376   cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h.  */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h.  */
17382 $ac_includes_default
17383 int
17384 main ()
17385 {
17386 if ((long long *) 0)
17387   return 0;
17388 if (sizeof (long long))
17389   return 0;
17390   ;
17391   return 0;
17392 }
17393 _ACEOF
17394 rm -f conftest.$ac_objext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17396   (eval $ac_compile) 2>conftest.er1
17397   ac_status=$?
17398   grep -v '^ *+' conftest.er1 >conftest.err
17399   rm -f conftest.er1
17400   cat conftest.err >&5
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); } &&
17403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405   (eval $ac_try) 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; } &&
17409          { ac_try='test -s conftest.$ac_objext'
17410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411   (eval $ac_try) 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; }; then
17415   ac_cv_type_long_long=yes
17416 else
17417   echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17419
17420 ac_cv_type_long_long=no
17421 fi
17422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17423 fi
17424 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17425 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17426 if test $ac_cv_type_long_long = yes; then
17427
17428 cat >>confdefs.h <<_ACEOF
17429 #define HAVE_LONG_LONG 1
17430 _ACEOF
17431
17432
17433 fi
17434 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17435 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17436 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17437   echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439   cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h.  */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h.  */
17445 $ac_includes_default
17446 int
17447 main ()
17448 {
17449 if ((fsblkcnt_t *) 0)
17450   return 0;
17451 if (sizeof (fsblkcnt_t))
17452   return 0;
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17459   (eval $ac_compile) 2>conftest.er1
17460   ac_status=$?
17461   grep -v '^ *+' conftest.er1 >conftest.err
17462   rm -f conftest.er1
17463   cat conftest.err >&5
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } &&
17466          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468   (eval $ac_try) 2>&5
17469   ac_status=$?
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); }; } &&
17472          { ac_try='test -s conftest.$ac_objext'
17473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474   (eval $ac_try) 2>&5
17475   ac_status=$?
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); }; }; then
17478   ac_cv_type_fsblkcnt_t=yes
17479 else
17480   echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17482
17483 ac_cv_type_fsblkcnt_t=no
17484 fi
17485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17486 fi
17487 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17488 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17489 if test $ac_cv_type_fsblkcnt_t = yes; then
17490
17491 cat >>confdefs.h <<_ACEOF
17492 #define HAVE_FSBLKCNT_T 1
17493 _ACEOF
17494
17495
17496 fi
17497 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17498 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17499 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508 $ac_includes_default
17509 int
17510 main ()
17511 {
17512 if ((fsfilcnt_t *) 0)
17513   return 0;
17514 if (sizeof (fsfilcnt_t))
17515   return 0;
17516   ;
17517   return 0;
17518 }
17519 _ACEOF
17520 rm -f conftest.$ac_objext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17522   (eval $ac_compile) 2>conftest.er1
17523   ac_status=$?
17524   grep -v '^ *+' conftest.er1 >conftest.err
17525   rm -f conftest.er1
17526   cat conftest.err >&5
17527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528   (exit $ac_status); } &&
17529          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531   (eval $ac_try) 2>&5
17532   ac_status=$?
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); }; } &&
17535          { ac_try='test -s conftest.$ac_objext'
17536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537   (eval $ac_try) 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); }; }; then
17541   ac_cv_type_fsfilcnt_t=yes
17542 else
17543   echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17545
17546 ac_cv_type_fsfilcnt_t=no
17547 fi
17548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17549 fi
17550 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17551 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17552 if test $ac_cv_type_fsfilcnt_t = yes; then
17553
17554 cat >>confdefs.h <<_ACEOF
17555 #define HAVE_FSFILCNT_T 1
17556 _ACEOF
17557
17558
17559 fi
17560
17561 echo "$as_me:$LINENO: checking for sigset_t" >&5
17562 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
17563 if test "${ac_cv_type_sigset_t+set}" = set; then
17564   echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566   cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h.  */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h.  */
17572 #include <signal.h>
17573
17574 int
17575 main ()
17576 {
17577 if ((sigset_t *) 0)
17578   return 0;
17579 if (sizeof (sigset_t))
17580   return 0;
17581   ;
17582   return 0;
17583 }
17584 _ACEOF
17585 rm -f conftest.$ac_objext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17587   (eval $ac_compile) 2>conftest.er1
17588   ac_status=$?
17589   grep -v '^ *+' conftest.er1 >conftest.err
17590   rm -f conftest.er1
17591   cat conftest.err >&5
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); } &&
17594          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596   (eval $ac_try) 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); }; } &&
17600          { ac_try='test -s conftest.$ac_objext'
17601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602   (eval $ac_try) 2>&5
17603   ac_status=$?
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); }; }; then
17606   ac_cv_type_sigset_t=yes
17607 else
17608   echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611 ac_cv_type_sigset_t=no
17612 fi
17613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17614 fi
17615 echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17616 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
17617 if test $ac_cv_type_sigset_t = yes; then
17618
17619 cat >>confdefs.h <<_ACEOF
17620 #define HAVE_SIGSET_T 1
17621 _ACEOF
17622
17623
17624 fi
17625
17626
17627 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17628 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17629 if test "${wine_cv_linux_input_h+set}" = set; then
17630   echo $ECHO_N "(cached) $ECHO_C" >&6
17631 else
17632   cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h.  */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h.  */
17638
17639             #include <linux/input.h>
17640
17641 int
17642 main ()
17643 {
17644
17645             int foo = EVIOCGBIT(EV_ABS,42);
17646             int bar = BTN_PINKIE;
17647             int fortytwo = 42;
17648
17649   ;
17650   return 0;
17651 }
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655   (eval $ac_compile) 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } &&
17662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664   (eval $ac_try) 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); }; } &&
17668          { ac_try='test -s conftest.$ac_objext'
17669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670   (eval $ac_try) 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; }; then
17674   wine_cv_linux_input_h=yes
17675 else
17676   echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679 wine_cv_linux_input_h=no
17680 fi
17681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17682
17683 fi
17684 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17685 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17686     if test "$wine_cv_linux_input_h" = "yes"
17687     then
17688
17689 cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_CORRECT_LINUXINPUT_H 1
17691 _ACEOF
17692
17693     fi
17694
17695 echo "$as_me:$LINENO: checking for sigaddset" >&5
17696 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6
17697 if test "${wine_cv_have_sigaddset+set}" = set; then
17698   echo $ECHO_N "(cached) $ECHO_C" >&6
17699 else
17700   cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h.  */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h.  */
17706 #include <signal.h>
17707 int
17708 main ()
17709 {
17710 sigset_t set; sigaddset(&set,SIGTERM);
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717   (eval $ac_link) 2>conftest.er1
17718   ac_status=$?
17719   grep -v '^ *+' conftest.er1 >conftest.err
17720   rm -f conftest.er1
17721   cat conftest.err >&5
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); } &&
17724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726   (eval $ac_try) 2>&5
17727   ac_status=$?
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); }; } &&
17730          { ac_try='test -s conftest$ac_exeext'
17731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732   (eval $ac_try) 2>&5
17733   ac_status=$?
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); }; }; then
17736   wine_cv_have_sigaddset=yes
17737 else
17738   echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17740
17741 wine_cv_have_sigaddset=no
17742 fi
17743 rm -f conftest.err conftest.$ac_objext \
17744       conftest$ac_exeext conftest.$ac_ext
17745 fi
17746 echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17747 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6
17748 if test "$wine_cv_have_sigaddset" = "yes"
17749 then
17750
17751 cat >>confdefs.h <<\_ACEOF
17752 #define HAVE_SIGADDSET 1
17753 _ACEOF
17754
17755 fi
17756
17757
17758 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17759 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17760 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17761   echo $ECHO_N "(cached) $ECHO_C" >&6
17762 else
17763   cat >conftest.$ac_ext <<_ACEOF
17764 /* confdefs.h.  */
17765 _ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h.  */
17769
17770 #include <netdb.h>
17771
17772 int
17773 main ()
17774 {
17775
17776     char *name=NULL;
17777     struct hostent he;
17778     struct hostent *result;
17779     char *buf=NULL;
17780     int bufsize=0;
17781     int res,errnr;
17782     char *addr=NULL;
17783     int addrlen=0;
17784     int addrtype=0;
17785     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17786     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17787
17788   ;
17789   return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794   (eval $ac_link) 2>conftest.er1
17795   ac_status=$?
17796   grep -v '^ *+' conftest.er1 >conftest.err
17797   rm -f conftest.er1
17798   cat conftest.err >&5
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); } &&
17801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803   (eval $ac_try) 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); }; } &&
17807          { ac_try='test -s conftest$ac_exeext'
17808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809   (eval $ac_try) 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; }; then
17813   wine_cv_linux_gethostbyname_r_6=yes
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818 wine_cv_linux_gethostbyname_r_6=no
17819
17820 fi
17821 rm -f conftest.err conftest.$ac_objext \
17822       conftest$ac_exeext conftest.$ac_ext
17823
17824 fi
17825 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17826 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17827    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17828    then
17829
17830 cat >>confdefs.h <<\_ACEOF
17831 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17832 _ACEOF
17833
17834    fi
17835
17836 if test "$ac_cv_header_linux_joystick_h" = "yes"
17837 then
17838    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17839 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17840 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17841   echo $ECHO_N "(cached) $ECHO_C" >&6
17842 else
17843   cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h.  */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h.  */
17849
17850         #include <sys/ioctl.h>
17851         #include <linux/joystick.h>
17852
17853         struct js_event blub;
17854         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17855         #error "no 2.2 header"
17856         #endif
17857
17858 int
17859 main ()
17860 {
17861 /*empty*/
17862   ;
17863   return 0;
17864 }
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17868   (eval $ac_compile) 2>conftest.er1
17869   ac_status=$?
17870   grep -v '^ *+' conftest.er1 >conftest.err
17871   rm -f conftest.er1
17872   cat conftest.err >&5
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); } &&
17875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; } &&
17881          { ac_try='test -s conftest.$ac_objext'
17882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883   (eval $ac_try) 2>&5
17884   ac_status=$?
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); }; }; then
17887   wine_cv_linux_joystick_22_api=yes
17888 else
17889   echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17891
17892 wine_cv_linux_joystick_22_api=no
17893 fi
17894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17895
17896 fi
17897 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17898 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17899    if test "$wine_cv_linux_joystick_22_api" = "yes"
17900    then
17901
17902 cat >>confdefs.h <<\_ACEOF
17903 #define HAVE_LINUX_22_JOYSTICK_API 1
17904 _ACEOF
17905
17906    fi
17907 fi
17908
17909
17910 if test "$ac_cv_header_sys_vfs_h" = "yes"
17911 then
17912     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17913 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17914 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17915   echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917   cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h.  */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h.  */
17923
17924         #include <sys/types.h>
17925         #ifdef HAVE_SYS_PARAM_H
17926         # include <sys/param.h>
17927         #endif
17928         #include <sys/vfs.h>
17929
17930 int
17931 main ()
17932 {
17933
17934                 struct statfs stfs;
17935
17936                 memset(&stfs,0,sizeof(stfs));
17937
17938   ;
17939   return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest.$ac_objext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17944   (eval $ac_compile) 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } &&
17951          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953   (eval $ac_try) 2>&5
17954   ac_status=$?
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); }; } &&
17957          { ac_try='test -s conftest.$ac_objext'
17958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959   (eval $ac_try) 2>&5
17960   ac_status=$?
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); }; }; then
17963   wine_cv_sys_vfs_has_statfs=yes
17964 else
17965   echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968 wine_cv_sys_vfs_has_statfs=no
17969
17970 fi
17971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17972
17973 fi
17974 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17975 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17976     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17977     then
17978
17979 cat >>confdefs.h <<\_ACEOF
17980 #define STATFS_DEFINED_BY_SYS_VFS 1
17981 _ACEOF
17982
17983     fi
17984 fi
17985
17986 if test "$ac_cv_header_sys_statfs_h" = "yes"
17987 then
17988     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17989 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17990 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17991   echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993   cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h.  */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h.  */
17999
18000         #include <sys/types.h>
18001         #ifdef HAVE_SYS_PARAM_H
18002         # include <sys/param.h>
18003         #endif
18004         #include <sys/statfs.h>
18005
18006 int
18007 main ()
18008 {
18009
18010                 struct statfs stfs;
18011
18012   ;
18013   return 0;
18014 }
18015 _ACEOF
18016 rm -f conftest.$ac_objext
18017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18018   (eval $ac_compile) 2>conftest.er1
18019   ac_status=$?
18020   grep -v '^ *+' conftest.er1 >conftest.err
18021   rm -f conftest.er1
18022   cat conftest.err >&5
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); } &&
18025          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027   (eval $ac_try) 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; } &&
18031          { ac_try='test -s conftest.$ac_objext'
18032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033   (eval $ac_try) 2>&5
18034   ac_status=$?
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); }; }; then
18037   wine_cv_sys_statfs_has_statfs=yes
18038 else
18039   echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18041
18042 wine_cv_sys_statfs_has_statfs=no
18043
18044 fi
18045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18046
18047 fi
18048 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18049 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18050     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18051     then
18052
18053 cat >>confdefs.h <<\_ACEOF
18054 #define STATFS_DEFINED_BY_SYS_STATFS 1
18055 _ACEOF
18056
18057     fi
18058 fi
18059
18060 if test "$ac_cv_header_sys_mount_h" = "yes"
18061 then
18062     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18063 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18064 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18065   echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067   cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h.  */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h.  */
18073
18074         #include <sys/types.h>
18075         #ifdef HAVE_SYS_PARAM_H
18076         # include <sys/param.h>
18077         #endif
18078         #include <sys/mount.h>
18079
18080 int
18081 main ()
18082 {
18083
18084                 struct statfs stfs;
18085
18086   ;
18087   return 0;
18088 }
18089 _ACEOF
18090 rm -f conftest.$ac_objext
18091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18092   (eval $ac_compile) 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } &&
18099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101   (eval $ac_try) 2>&5
18102   ac_status=$?
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); }; } &&
18105          { ac_try='test -s conftest.$ac_objext'
18106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107   (eval $ac_try) 2>&5
18108   ac_status=$?
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); }; }; then
18111   wine_cv_sys_mount_has_statfs=yes
18112 else
18113   echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18115
18116 wine_cv_sys_mount_has_statfs=no
18117
18118 fi
18119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18120
18121 fi
18122 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18123 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18124     if test "$wine_cv_sys_mount_has_statfs" = "yes"
18125     then
18126
18127 cat >>confdefs.h <<\_ACEOF
18128 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18129 _ACEOF
18130
18131     fi
18132 fi
18133
18134
18135 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18136 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18137 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146 #include <sys/types.h>
18147 #ifdef HAVE_SYS_PARAM_H
18148 # include <sys/param.h>
18149 #endif
18150 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18151 # include <sys/mount.h>
18152 #else
18153 # ifdef STATFS_DEFINED_BY_SYS_VFS
18154 #  include <sys/vfs.h>
18155 # else
18156 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18157 #   include <sys/statfs.h>
18158 #  endif
18159 # endif
18160 #endif
18161
18162 int
18163 main ()
18164 {
18165 static struct statfs ac_aggr;
18166 if (ac_aggr.f_bfree)
18167 return 0;
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext
18173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18174   (eval $ac_compile) 2>conftest.er1
18175   ac_status=$?
18176   grep -v '^ *+' conftest.er1 >conftest.err
18177   rm -f conftest.er1
18178   cat conftest.err >&5
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); } &&
18181          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18183   (eval $ac_try) 2>&5
18184   ac_status=$?
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); }; } &&
18187          { ac_try='test -s conftest.$ac_objext'
18188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189   (eval $ac_try) 2>&5
18190   ac_status=$?
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); }; }; then
18193   ac_cv_member_struct_statfs_f_bfree=yes
18194 else
18195   echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18197
18198 cat >conftest.$ac_ext <<_ACEOF
18199 /* confdefs.h.  */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h.  */
18204 #include <sys/types.h>
18205 #ifdef HAVE_SYS_PARAM_H
18206 # include <sys/param.h>
18207 #endif
18208 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18209 # include <sys/mount.h>
18210 #else
18211 # ifdef STATFS_DEFINED_BY_SYS_VFS
18212 #  include <sys/vfs.h>
18213 # else
18214 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18215 #   include <sys/statfs.h>
18216 #  endif
18217 # endif
18218 #endif
18219
18220 int
18221 main ()
18222 {
18223 static struct statfs ac_aggr;
18224 if (sizeof ac_aggr.f_bfree)
18225 return 0;
18226   ;
18227   return 0;
18228 }
18229 _ACEOF
18230 rm -f conftest.$ac_objext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18232   (eval $ac_compile) 2>conftest.er1
18233   ac_status=$?
18234   grep -v '^ *+' conftest.er1 >conftest.err
18235   rm -f conftest.er1
18236   cat conftest.err >&5
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); } &&
18239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241   (eval $ac_try) 2>&5
18242   ac_status=$?
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); }; } &&
18245          { ac_try='test -s conftest.$ac_objext'
18246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247   (eval $ac_try) 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; }; then
18251   ac_cv_member_struct_statfs_f_bfree=yes
18252 else
18253   echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18255
18256 ac_cv_member_struct_statfs_f_bfree=no
18257 fi
18258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18259 fi
18260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18261 fi
18262 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18263 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18264 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18265
18266 cat >>confdefs.h <<_ACEOF
18267 #define HAVE_STRUCT_STATFS_F_BFREE 1
18268 _ACEOF
18269
18270
18271 fi
18272 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18273 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18274 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18275   echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277   cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h.  */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h.  */
18283 #include <sys/types.h>
18284 #ifdef HAVE_SYS_PARAM_H
18285 # include <sys/param.h>
18286 #endif
18287 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18288 # include <sys/mount.h>
18289 #else
18290 # ifdef STATFS_DEFINED_BY_SYS_VFS
18291 #  include <sys/vfs.h>
18292 # else
18293 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18294 #   include <sys/statfs.h>
18295 #  endif
18296 # endif
18297 #endif
18298
18299 int
18300 main ()
18301 {
18302 static struct statfs ac_aggr;
18303 if (ac_aggr.f_bavail)
18304 return 0;
18305   ;
18306   return 0;
18307 }
18308 _ACEOF
18309 rm -f conftest.$ac_objext
18310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18311   (eval $ac_compile) 2>conftest.er1
18312   ac_status=$?
18313   grep -v '^ *+' conftest.er1 >conftest.err
18314   rm -f conftest.er1
18315   cat conftest.err >&5
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); } &&
18318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320   (eval $ac_try) 2>&5
18321   ac_status=$?
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); }; } &&
18324          { ac_try='test -s conftest.$ac_objext'
18325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326   (eval $ac_try) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; }; then
18330   ac_cv_member_struct_statfs_f_bavail=yes
18331 else
18332   echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18334
18335 cat >conftest.$ac_ext <<_ACEOF
18336 /* confdefs.h.  */
18337 _ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h.  */
18341 #include <sys/types.h>
18342 #ifdef HAVE_SYS_PARAM_H
18343 # include <sys/param.h>
18344 #endif
18345 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18346 # include <sys/mount.h>
18347 #else
18348 # ifdef STATFS_DEFINED_BY_SYS_VFS
18349 #  include <sys/vfs.h>
18350 # else
18351 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18352 #   include <sys/statfs.h>
18353 #  endif
18354 # endif
18355 #endif
18356
18357 int
18358 main ()
18359 {
18360 static struct statfs ac_aggr;
18361 if (sizeof ac_aggr.f_bavail)
18362 return 0;
18363   ;
18364   return 0;
18365 }
18366 _ACEOF
18367 rm -f conftest.$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369   (eval $ac_compile) 2>conftest.er1
18370   ac_status=$?
18371   grep -v '^ *+' conftest.er1 >conftest.err
18372   rm -f conftest.er1
18373   cat conftest.err >&5
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); } &&
18376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378   (eval $ac_try) 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); }; } &&
18382          { ac_try='test -s conftest.$ac_objext'
18383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384   (eval $ac_try) 2>&5
18385   ac_status=$?
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); }; }; then
18388   ac_cv_member_struct_statfs_f_bavail=yes
18389 else
18390   echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18392
18393 ac_cv_member_struct_statfs_f_bavail=no
18394 fi
18395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18396 fi
18397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18398 fi
18399 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18400 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18401 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18402
18403 cat >>confdefs.h <<_ACEOF
18404 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18405 _ACEOF
18406
18407
18408 fi
18409 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18410 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18411 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18412   echo $ECHO_N "(cached) $ECHO_C" >&6
18413 else
18414   cat >conftest.$ac_ext <<_ACEOF
18415 /* confdefs.h.  */
18416 _ACEOF
18417 cat confdefs.h >>conftest.$ac_ext
18418 cat >>conftest.$ac_ext <<_ACEOF
18419 /* end confdefs.h.  */
18420 #include <sys/types.h>
18421 #ifdef HAVE_SYS_PARAM_H
18422 # include <sys/param.h>
18423 #endif
18424 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18425 # include <sys/mount.h>
18426 #else
18427 # ifdef STATFS_DEFINED_BY_SYS_VFS
18428 #  include <sys/vfs.h>
18429 # else
18430 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18431 #   include <sys/statfs.h>
18432 #  endif
18433 # endif
18434 #endif
18435
18436 int
18437 main ()
18438 {
18439 static struct statfs ac_aggr;
18440 if (ac_aggr.f_frsize)
18441 return 0;
18442   ;
18443   return 0;
18444 }
18445 _ACEOF
18446 rm -f conftest.$ac_objext
18447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18448   (eval $ac_compile) 2>conftest.er1
18449   ac_status=$?
18450   grep -v '^ *+' conftest.er1 >conftest.err
18451   rm -f conftest.er1
18452   cat conftest.err >&5
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); } &&
18455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457   (eval $ac_try) 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; } &&
18461          { ac_try='test -s conftest.$ac_objext'
18462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463   (eval $ac_try) 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; }; then
18467   ac_cv_member_struct_statfs_f_frsize=yes
18468 else
18469   echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472 cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h.  */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h.  */
18478 #include <sys/types.h>
18479 #ifdef HAVE_SYS_PARAM_H
18480 # include <sys/param.h>
18481 #endif
18482 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18483 # include <sys/mount.h>
18484 #else
18485 # ifdef STATFS_DEFINED_BY_SYS_VFS
18486 #  include <sys/vfs.h>
18487 # else
18488 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18489 #   include <sys/statfs.h>
18490 #  endif
18491 # endif
18492 #endif
18493
18494 int
18495 main ()
18496 {
18497 static struct statfs ac_aggr;
18498 if (sizeof ac_aggr.f_frsize)
18499 return 0;
18500   ;
18501   return 0;
18502 }
18503 _ACEOF
18504 rm -f conftest.$ac_objext
18505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18506   (eval $ac_compile) 2>conftest.er1
18507   ac_status=$?
18508   grep -v '^ *+' conftest.er1 >conftest.err
18509   rm -f conftest.er1
18510   cat conftest.err >&5
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); } &&
18513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515   (eval $ac_try) 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); }; } &&
18519          { ac_try='test -s conftest.$ac_objext'
18520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521   (eval $ac_try) 2>&5
18522   ac_status=$?
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); }; }; then
18525   ac_cv_member_struct_statfs_f_frsize=yes
18526 else
18527   echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18529
18530 ac_cv_member_struct_statfs_f_frsize=no
18531 fi
18532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18533 fi
18534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18535 fi
18536 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18537 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18538 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18539
18540 cat >>confdefs.h <<_ACEOF
18541 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18542 _ACEOF
18543
18544
18545 fi
18546 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18547 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18548 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18549   echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551   cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h.  */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h.  */
18557 #include <sys/types.h>
18558 #ifdef HAVE_SYS_PARAM_H
18559 # include <sys/param.h>
18560 #endif
18561 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18562 # include <sys/mount.h>
18563 #else
18564 # ifdef STATFS_DEFINED_BY_SYS_VFS
18565 #  include <sys/vfs.h>
18566 # else
18567 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18568 #   include <sys/statfs.h>
18569 #  endif
18570 # endif
18571 #endif
18572
18573 int
18574 main ()
18575 {
18576 static struct statfs ac_aggr;
18577 if (ac_aggr.f_ffree)
18578 return 0;
18579   ;
18580   return 0;
18581 }
18582 _ACEOF
18583 rm -f conftest.$ac_objext
18584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18585   (eval $ac_compile) 2>conftest.er1
18586   ac_status=$?
18587   grep -v '^ *+' conftest.er1 >conftest.err
18588   rm -f conftest.er1
18589   cat conftest.err >&5
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); } &&
18592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594   (eval $ac_try) 2>&5
18595   ac_status=$?
18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); }; } &&
18598          { ac_try='test -s conftest.$ac_objext'
18599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600   (eval $ac_try) 2>&5
18601   ac_status=$?
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); }; }; then
18604   ac_cv_member_struct_statfs_f_ffree=yes
18605 else
18606   echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18608
18609 cat >conftest.$ac_ext <<_ACEOF
18610 /* confdefs.h.  */
18611 _ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h.  */
18615 #include <sys/types.h>
18616 #ifdef HAVE_SYS_PARAM_H
18617 # include <sys/param.h>
18618 #endif
18619 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18620 # include <sys/mount.h>
18621 #else
18622 # ifdef STATFS_DEFINED_BY_SYS_VFS
18623 #  include <sys/vfs.h>
18624 # else
18625 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18626 #   include <sys/statfs.h>
18627 #  endif
18628 # endif
18629 #endif
18630
18631 int
18632 main ()
18633 {
18634 static struct statfs ac_aggr;
18635 if (sizeof ac_aggr.f_ffree)
18636 return 0;
18637   ;
18638   return 0;
18639 }
18640 _ACEOF
18641 rm -f conftest.$ac_objext
18642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18643   (eval $ac_compile) 2>conftest.er1
18644   ac_status=$?
18645   grep -v '^ *+' conftest.er1 >conftest.err
18646   rm -f conftest.er1
18647   cat conftest.err >&5
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); } &&
18650          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652   (eval $ac_try) 2>&5
18653   ac_status=$?
18654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655   (exit $ac_status); }; } &&
18656          { ac_try='test -s conftest.$ac_objext'
18657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658   (eval $ac_try) 2>&5
18659   ac_status=$?
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); }; }; then
18662   ac_cv_member_struct_statfs_f_ffree=yes
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667 ac_cv_member_struct_statfs_f_ffree=no
18668 fi
18669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18670 fi
18671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18672 fi
18673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18674 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18675 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18676
18677 cat >>confdefs.h <<_ACEOF
18678 #define HAVE_STRUCT_STATFS_F_FFREE 1
18679 _ACEOF
18680
18681
18682 fi
18683 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18684 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18685 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18686   echo $ECHO_N "(cached) $ECHO_C" >&6
18687 else
18688   cat >conftest.$ac_ext <<_ACEOF
18689 /* confdefs.h.  */
18690 _ACEOF
18691 cat confdefs.h >>conftest.$ac_ext
18692 cat >>conftest.$ac_ext <<_ACEOF
18693 /* end confdefs.h.  */
18694 #include <sys/types.h>
18695 #ifdef HAVE_SYS_PARAM_H
18696 # include <sys/param.h>
18697 #endif
18698 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18699 # include <sys/mount.h>
18700 #else
18701 # ifdef STATFS_DEFINED_BY_SYS_VFS
18702 #  include <sys/vfs.h>
18703 # else
18704 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18705 #   include <sys/statfs.h>
18706 #  endif
18707 # endif
18708 #endif
18709
18710 int
18711 main ()
18712 {
18713 static struct statfs ac_aggr;
18714 if (ac_aggr.f_favail)
18715 return 0;
18716   ;
18717   return 0;
18718 }
18719 _ACEOF
18720 rm -f conftest.$ac_objext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18722   (eval $ac_compile) 2>conftest.er1
18723   ac_status=$?
18724   grep -v '^ *+' conftest.er1 >conftest.err
18725   rm -f conftest.er1
18726   cat conftest.err >&5
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); } &&
18729          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731   (eval $ac_try) 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); }; } &&
18735          { ac_try='test -s conftest.$ac_objext'
18736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737   (eval $ac_try) 2>&5
18738   ac_status=$?
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); }; }; then
18741   ac_cv_member_struct_statfs_f_favail=yes
18742 else
18743   echo "$as_me: failed program was:" >&5
18744 sed 's/^/| /' conftest.$ac_ext >&5
18745
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752 #include <sys/types.h>
18753 #ifdef HAVE_SYS_PARAM_H
18754 # include <sys/param.h>
18755 #endif
18756 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18757 # include <sys/mount.h>
18758 #else
18759 # ifdef STATFS_DEFINED_BY_SYS_VFS
18760 #  include <sys/vfs.h>
18761 # else
18762 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18763 #   include <sys/statfs.h>
18764 #  endif
18765 # endif
18766 #endif
18767
18768 int
18769 main ()
18770 {
18771 static struct statfs ac_aggr;
18772 if (sizeof ac_aggr.f_favail)
18773 return 0;
18774   ;
18775   return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18780   (eval $ac_compile) 2>conftest.er1
18781   ac_status=$?
18782   grep -v '^ *+' conftest.er1 >conftest.err
18783   rm -f conftest.er1
18784   cat conftest.err >&5
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); } &&
18787          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789   (eval $ac_try) 2>&5
18790   ac_status=$?
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); }; } &&
18793          { ac_try='test -s conftest.$ac_objext'
18794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795   (eval $ac_try) 2>&5
18796   ac_status=$?
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); }; }; then
18799   ac_cv_member_struct_statfs_f_favail=yes
18800 else
18801   echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18803
18804 ac_cv_member_struct_statfs_f_favail=no
18805 fi
18806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18807 fi
18808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18809 fi
18810 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18811 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18812 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18813
18814 cat >>confdefs.h <<_ACEOF
18815 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18816 _ACEOF
18817
18818
18819 fi
18820 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18821 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18822 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18823   echo $ECHO_N "(cached) $ECHO_C" >&6
18824 else
18825   cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831 #include <sys/types.h>
18832 #ifdef HAVE_SYS_PARAM_H
18833 # include <sys/param.h>
18834 #endif
18835 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18836 # include <sys/mount.h>
18837 #else
18838 # ifdef STATFS_DEFINED_BY_SYS_VFS
18839 #  include <sys/vfs.h>
18840 # else
18841 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18842 #   include <sys/statfs.h>
18843 #  endif
18844 # endif
18845 #endif
18846
18847 int
18848 main ()
18849 {
18850 static struct statfs ac_aggr;
18851 if (ac_aggr.f_namelen)
18852 return 0;
18853   ;
18854   return 0;
18855 }
18856 _ACEOF
18857 rm -f conftest.$ac_objext
18858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18859   (eval $ac_compile) 2>conftest.er1
18860   ac_status=$?
18861   grep -v '^ *+' conftest.er1 >conftest.err
18862   rm -f conftest.er1
18863   cat conftest.err >&5
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); } &&
18866          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868   (eval $ac_try) 2>&5
18869   ac_status=$?
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); }; } &&
18872          { ac_try='test -s conftest.$ac_objext'
18873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874   (eval $ac_try) 2>&5
18875   ac_status=$?
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); }; }; then
18878   ac_cv_member_struct_statfs_f_namelen=yes
18879 else
18880   echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18882
18883 cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h.  */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h.  */
18889 #include <sys/types.h>
18890 #ifdef HAVE_SYS_PARAM_H
18891 # include <sys/param.h>
18892 #endif
18893 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18894 # include <sys/mount.h>
18895 #else
18896 # ifdef STATFS_DEFINED_BY_SYS_VFS
18897 #  include <sys/vfs.h>
18898 # else
18899 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18900 #   include <sys/statfs.h>
18901 #  endif
18902 # endif
18903 #endif
18904
18905 int
18906 main ()
18907 {
18908 static struct statfs ac_aggr;
18909 if (sizeof ac_aggr.f_namelen)
18910 return 0;
18911   ;
18912   return 0;
18913 }
18914 _ACEOF
18915 rm -f conftest.$ac_objext
18916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18917   (eval $ac_compile) 2>conftest.er1
18918   ac_status=$?
18919   grep -v '^ *+' conftest.er1 >conftest.err
18920   rm -f conftest.er1
18921   cat conftest.err >&5
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); } &&
18924          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926   (eval $ac_try) 2>&5
18927   ac_status=$?
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); }; } &&
18930          { ac_try='test -s conftest.$ac_objext'
18931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932   (eval $ac_try) 2>&5
18933   ac_status=$?
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); }; }; then
18936   ac_cv_member_struct_statfs_f_namelen=yes
18937 else
18938   echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 ac_cv_member_struct_statfs_f_namelen=no
18942 fi
18943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18944 fi
18945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18946 fi
18947 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18948 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18949 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18950
18951 cat >>confdefs.h <<_ACEOF
18952 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18953 _ACEOF
18954
18955
18956 fi
18957
18958
18959 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18960 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
18961 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18962   echo $ECHO_N "(cached) $ECHO_C" >&6
18963 else
18964   cat >conftest.$ac_ext <<_ACEOF
18965 /* confdefs.h.  */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h.  */
18970 #ifdef HAVE_SYS_STATVFS_H
18971 #include <sys/statvfs.h>
18972 #endif
18973
18974 int
18975 main ()
18976 {
18977 static struct statvfs ac_aggr;
18978 if (ac_aggr.f_blocks)
18979 return 0;
18980   ;
18981   return 0;
18982 }
18983 _ACEOF
18984 rm -f conftest.$ac_objext
18985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18986   (eval $ac_compile) 2>conftest.er1
18987   ac_status=$?
18988   grep -v '^ *+' conftest.er1 >conftest.err
18989   rm -f conftest.er1
18990   cat conftest.err >&5
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); } &&
18993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995   (eval $ac_try) 2>&5
18996   ac_status=$?
18997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998   (exit $ac_status); }; } &&
18999          { ac_try='test -s conftest.$ac_objext'
19000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001   (eval $ac_try) 2>&5
19002   ac_status=$?
19003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004   (exit $ac_status); }; }; then
19005   ac_cv_member_struct_statvfs_f_blocks=yes
19006 else
19007   echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h.  */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h.  */
19016 #ifdef HAVE_SYS_STATVFS_H
19017 #include <sys/statvfs.h>
19018 #endif
19019
19020 int
19021 main ()
19022 {
19023 static struct statvfs ac_aggr;
19024 if (sizeof ac_aggr.f_blocks)
19025 return 0;
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19032   (eval $ac_compile) 2>conftest.er1
19033   ac_status=$?
19034   grep -v '^ *+' conftest.er1 >conftest.err
19035   rm -f conftest.er1
19036   cat conftest.err >&5
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); } &&
19039          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041   (eval $ac_try) 2>&5
19042   ac_status=$?
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); }; } &&
19045          { ac_try='test -s conftest.$ac_objext'
19046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047   (eval $ac_try) 2>&5
19048   ac_status=$?
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); }; }; then
19051   ac_cv_member_struct_statvfs_f_blocks=yes
19052 else
19053   echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 ac_cv_member_struct_statvfs_f_blocks=no
19057 fi
19058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19059 fi
19060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19061 fi
19062 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19063 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19064 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19065
19066 cat >>confdefs.h <<_ACEOF
19067 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19068 _ACEOF
19069
19070
19071 fi
19072
19073
19074 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19075 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19076 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 #include <sys/types.h>
19086 #ifdef HAVE_SYS_SOCKET_H
19087 # include <sys/socket.h>
19088 #endif
19089 #ifdef HAVE_SYS_UN_H
19090 # include <sys/un.h>
19091 #endif
19092
19093 int
19094 main ()
19095 {
19096 static struct msghdr ac_aggr;
19097 if (ac_aggr.msg_accrights)
19098 return 0;
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105   (eval $ac_compile) 2>conftest.er1
19106   ac_status=$?
19107   grep -v '^ *+' conftest.er1 >conftest.err
19108   rm -f conftest.er1
19109   cat conftest.err >&5
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); } &&
19112          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114   (eval $ac_try) 2>&5
19115   ac_status=$?
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); }; } &&
19118          { ac_try='test -s conftest.$ac_objext'
19119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120   (eval $ac_try) 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); }; }; then
19124   ac_cv_member_struct_msghdr_msg_accrights=yes
19125 else
19126   echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129 cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h.  */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h.  */
19135 #include <sys/types.h>
19136 #ifdef HAVE_SYS_SOCKET_H
19137 # include <sys/socket.h>
19138 #endif
19139 #ifdef HAVE_SYS_UN_H
19140 # include <sys/un.h>
19141 #endif
19142
19143 int
19144 main ()
19145 {
19146 static struct msghdr ac_aggr;
19147 if (sizeof ac_aggr.msg_accrights)
19148 return 0;
19149   ;
19150   return 0;
19151 }
19152 _ACEOF
19153 rm -f conftest.$ac_objext
19154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19155   (eval $ac_compile) 2>conftest.er1
19156   ac_status=$?
19157   grep -v '^ *+' conftest.er1 >conftest.err
19158   rm -f conftest.er1
19159   cat conftest.err >&5
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); } &&
19162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164   (eval $ac_try) 2>&5
19165   ac_status=$?
19166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167   (exit $ac_status); }; } &&
19168          { ac_try='test -s conftest.$ac_objext'
19169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170   (eval $ac_try) 2>&5
19171   ac_status=$?
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); }; }; then
19174   ac_cv_member_struct_msghdr_msg_accrights=yes
19175 else
19176   echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19178
19179 ac_cv_member_struct_msghdr_msg_accrights=no
19180 fi
19181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19182 fi
19183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19184 fi
19185 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19186 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19187 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19188
19189 cat >>confdefs.h <<_ACEOF
19190 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19191 _ACEOF
19192
19193
19194 fi
19195 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19196 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19197 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19198   echo $ECHO_N "(cached) $ECHO_C" >&6
19199 else
19200   cat >conftest.$ac_ext <<_ACEOF
19201 /* confdefs.h.  */
19202 _ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h.  */
19206 #include <sys/types.h>
19207 #ifdef HAVE_SYS_SOCKET_H
19208 # include <sys/socket.h>
19209 #endif
19210 #ifdef HAVE_SYS_UN_H
19211 # include <sys/un.h>
19212 #endif
19213
19214 int
19215 main ()
19216 {
19217 static struct sockaddr ac_aggr;
19218 if (ac_aggr.sa_len)
19219 return 0;
19220   ;
19221   return 0;
19222 }
19223 _ACEOF
19224 rm -f conftest.$ac_objext
19225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19226   (eval $ac_compile) 2>conftest.er1
19227   ac_status=$?
19228   grep -v '^ *+' conftest.er1 >conftest.err
19229   rm -f conftest.er1
19230   cat conftest.err >&5
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); } &&
19233          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235   (eval $ac_try) 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; } &&
19239          { ac_try='test -s conftest.$ac_objext'
19240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241   (eval $ac_try) 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; }; then
19245   ac_cv_member_struct_sockaddr_sa_len=yes
19246 else
19247   echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19249
19250 cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h.  */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h.  */
19256 #include <sys/types.h>
19257 #ifdef HAVE_SYS_SOCKET_H
19258 # include <sys/socket.h>
19259 #endif
19260 #ifdef HAVE_SYS_UN_H
19261 # include <sys/un.h>
19262 #endif
19263
19264 int
19265 main ()
19266 {
19267 static struct sockaddr ac_aggr;
19268 if (sizeof ac_aggr.sa_len)
19269 return 0;
19270   ;
19271   return 0;
19272 }
19273 _ACEOF
19274 rm -f conftest.$ac_objext
19275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276   (eval $ac_compile) 2>conftest.er1
19277   ac_status=$?
19278   grep -v '^ *+' conftest.er1 >conftest.err
19279   rm -f conftest.er1
19280   cat conftest.err >&5
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); } &&
19283          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285   (eval $ac_try) 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); }; } &&
19289          { ac_try='test -s conftest.$ac_objext'
19290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291   (eval $ac_try) 2>&5
19292   ac_status=$?
19293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); }; }; then
19295   ac_cv_member_struct_sockaddr_sa_len=yes
19296 else
19297   echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19299
19300 ac_cv_member_struct_sockaddr_sa_len=no
19301 fi
19302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19303 fi
19304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19305 fi
19306 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19307 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19308 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19309
19310 cat >>confdefs.h <<_ACEOF
19311 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19312 _ACEOF
19313
19314
19315 fi
19316 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19317 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19318 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19319   echo $ECHO_N "(cached) $ECHO_C" >&6
19320 else
19321   cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h.  */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h.  */
19327 #include <sys/types.h>
19328 #ifdef HAVE_SYS_SOCKET_H
19329 # include <sys/socket.h>
19330 #endif
19331 #ifdef HAVE_SYS_UN_H
19332 # include <sys/un.h>
19333 #endif
19334
19335 int
19336 main ()
19337 {
19338 static struct sockaddr_un ac_aggr;
19339 if (ac_aggr.sun_len)
19340 return 0;
19341   ;
19342   return 0;
19343 }
19344 _ACEOF
19345 rm -f conftest.$ac_objext
19346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19347   (eval $ac_compile) 2>conftest.er1
19348   ac_status=$?
19349   grep -v '^ *+' conftest.er1 >conftest.err
19350   rm -f conftest.er1
19351   cat conftest.err >&5
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); } &&
19354          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356   (eval $ac_try) 2>&5
19357   ac_status=$?
19358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359   (exit $ac_status); }; } &&
19360          { ac_try='test -s conftest.$ac_objext'
19361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362   (eval $ac_try) 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; }; then
19366   ac_cv_member_struct_sockaddr_un_sun_len=yes
19367 else
19368   echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19370
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h.  */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h.  */
19377 #include <sys/types.h>
19378 #ifdef HAVE_SYS_SOCKET_H
19379 # include <sys/socket.h>
19380 #endif
19381 #ifdef HAVE_SYS_UN_H
19382 # include <sys/un.h>
19383 #endif
19384
19385 int
19386 main ()
19387 {
19388 static struct sockaddr_un ac_aggr;
19389 if (sizeof ac_aggr.sun_len)
19390 return 0;
19391   ;
19392   return 0;
19393 }
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19397   (eval $ac_compile) 2>conftest.er1
19398   ac_status=$?
19399   grep -v '^ *+' conftest.er1 >conftest.err
19400   rm -f conftest.er1
19401   cat conftest.err >&5
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); } &&
19404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406   (eval $ac_try) 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); }; } &&
19410          { ac_try='test -s conftest.$ac_objext'
19411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412   (eval $ac_try) 2>&5
19413   ac_status=$?
19414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415   (exit $ac_status); }; }; then
19416   ac_cv_member_struct_sockaddr_un_sun_len=yes
19417 else
19418   echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 ac_cv_member_struct_sockaddr_un_sun_len=no
19422 fi
19423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19424 fi
19425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19426 fi
19427 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19428 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19429 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19430
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19433 _ACEOF
19434
19435
19436 fi
19437
19438
19439 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19440 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19441 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19442   echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444   cat >conftest.$ac_ext <<_ACEOF
19445 /* confdefs.h.  */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h.  */
19450 #include <signal.h>
19451
19452 int
19453 main ()
19454 {
19455 static siginfo_t ac_aggr;
19456 if (ac_aggr.si_fd)
19457 return 0;
19458   ;
19459   return 0;
19460 }
19461 _ACEOF
19462 rm -f conftest.$ac_objext
19463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19464   (eval $ac_compile) 2>conftest.er1
19465   ac_status=$?
19466   grep -v '^ *+' conftest.er1 >conftest.err
19467   rm -f conftest.er1
19468   cat conftest.err >&5
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); } &&
19471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473   (eval $ac_try) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); }; } &&
19477          { ac_try='test -s conftest.$ac_objext'
19478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479   (eval $ac_try) 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); }; }; then
19483   ac_cv_member_siginfo_t_si_fd=yes
19484 else
19485   echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19487
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h.  */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h.  */
19494 #include <signal.h>
19495
19496 int
19497 main ()
19498 {
19499 static siginfo_t ac_aggr;
19500 if (sizeof ac_aggr.si_fd)
19501 return 0;
19502   ;
19503   return 0;
19504 }
19505 _ACEOF
19506 rm -f conftest.$ac_objext
19507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19508   (eval $ac_compile) 2>conftest.er1
19509   ac_status=$?
19510   grep -v '^ *+' conftest.er1 >conftest.err
19511   rm -f conftest.er1
19512   cat conftest.err >&5
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); } &&
19515          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517   (eval $ac_try) 2>&5
19518   ac_status=$?
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); }; } &&
19521          { ac_try='test -s conftest.$ac_objext'
19522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523   (eval $ac_try) 2>&5
19524   ac_status=$?
19525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); }; }; then
19527   ac_cv_member_siginfo_t_si_fd=yes
19528 else
19529   echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19531
19532 ac_cv_member_siginfo_t_si_fd=no
19533 fi
19534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19535 fi
19536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19537 fi
19538 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19539 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19540 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19541
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_SIGINFO_T_SI_FD 1
19544 _ACEOF
19545
19546
19547 fi
19548
19549
19550 echo "$as_me:$LINENO: checking for struct option.name" >&5
19551 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19552 if test "${ac_cv_member_struct_option_name+set}" = set; then
19553   echo $ECHO_N "(cached) $ECHO_C" >&6
19554 else
19555   cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h.  */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h.  */
19561 #ifdef HAVE_GETOPT_H
19562 #include <getopt.h>
19563 #endif
19564
19565 int
19566 main ()
19567 {
19568 static struct option ac_aggr;
19569 if (ac_aggr.name)
19570 return 0;
19571   ;
19572   return 0;
19573 }
19574 _ACEOF
19575 rm -f conftest.$ac_objext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19577   (eval $ac_compile) 2>conftest.er1
19578   ac_status=$?
19579   grep -v '^ *+' conftest.er1 >conftest.err
19580   rm -f conftest.er1
19581   cat conftest.err >&5
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); } &&
19584          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586   (eval $ac_try) 2>&5
19587   ac_status=$?
19588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589   (exit $ac_status); }; } &&
19590          { ac_try='test -s conftest.$ac_objext'
19591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592   (eval $ac_try) 2>&5
19593   ac_status=$?
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); }; }; then
19596   ac_cv_member_struct_option_name=yes
19597 else
19598   echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601 cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607 #ifdef HAVE_GETOPT_H
19608 #include <getopt.h>
19609 #endif
19610
19611 int
19612 main ()
19613 {
19614 static struct option ac_aggr;
19615 if (sizeof ac_aggr.name)
19616 return 0;
19617   ;
19618   return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext
19622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19623   (eval $ac_compile) 2>conftest.er1
19624   ac_status=$?
19625   grep -v '^ *+' conftest.er1 >conftest.err
19626   rm -f conftest.er1
19627   cat conftest.err >&5
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } &&
19630          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; } &&
19636          { ac_try='test -s conftest.$ac_objext'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; }; then
19642   ac_cv_member_struct_option_name=yes
19643 else
19644   echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647 ac_cv_member_struct_option_name=no
19648 fi
19649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19650 fi
19651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19652 fi
19653 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19654 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19655 if test $ac_cv_member_struct_option_name = yes; then
19656
19657 cat >>confdefs.h <<_ACEOF
19658 #define HAVE_STRUCT_OPTION_NAME 1
19659 _ACEOF
19660
19661
19662 fi
19663
19664
19665 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19666 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19667 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19668   echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670   cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h.  */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h.  */
19676 $ac_includes_default
19677 int
19678 main ()
19679 {
19680 static struct stat ac_aggr;
19681 if (ac_aggr.st_blocks)
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_struct_stat_st_blocks=yes
19709 else
19710   echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19712
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h.  */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h.  */
19719 $ac_includes_default
19720 int
19721 main ()
19722 {
19723 static struct stat ac_aggr;
19724 if (sizeof ac_aggr.st_blocks)
19725 return 0;
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732   (eval $ac_compile) 2>conftest.er1
19733   ac_status=$?
19734   grep -v '^ *+' conftest.er1 >conftest.err
19735   rm -f conftest.er1
19736   cat conftest.err >&5
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); } &&
19739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741   (eval $ac_try) 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; } &&
19745          { ac_try='test -s conftest.$ac_objext'
19746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747   (eval $ac_try) 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }; }; then
19751   ac_cv_member_struct_stat_st_blocks=yes
19752 else
19753   echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 ac_cv_member_struct_stat_st_blocks=no
19757 fi
19758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19759 fi
19760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19761 fi
19762 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19763 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19764 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19765
19766 cat >>confdefs.h <<_ACEOF
19767 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19768 _ACEOF
19769
19770
19771 fi
19772
19773
19774
19775 case $host_cpu in
19776   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19777 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19778 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19779   echo $ECHO_N "(cached) $ECHO_C" >&6
19780 else
19781   cat >conftest.$ac_ext <<_ACEOF
19782 /* confdefs.h.  */
19783 _ACEOF
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h.  */
19787 #ifndef __i386__
19788 yes
19789 #endif
19790 _ACEOF
19791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19792   $EGREP "yes" >/dev/null 2>&1; then
19793   ac_cv_cpp_def___i386__=yes
19794 else
19795   ac_cv_cpp_def___i386__=no
19796 fi
19797 rm -f conftest*
19798
19799 fi
19800 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19801 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19802 if test $ac_cv_cpp_def___i386__ = yes; then
19803   CFLAGS="$CFLAGS -D__i386__"
19804   LINTFLAGS="$LINTFLAGS -D__i386__"
19805 fi
19806  ;;
19807   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19808 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19809 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h.  */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h.  */
19818 #ifndef __ALPHA__
19819 yes
19820 #endif
19821 _ACEOF
19822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19823   $EGREP "yes" >/dev/null 2>&1; then
19824   ac_cv_cpp_def___ALPHA__=yes
19825 else
19826   ac_cv_cpp_def___ALPHA__=no
19827 fi
19828 rm -f conftest*
19829
19830 fi
19831 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19832 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19833 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19834   CFLAGS="$CFLAGS -D__ALPHA__"
19835   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19836 fi
19837  ;;
19838   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19839 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19840 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843   cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h.  */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h.  */
19849 #ifndef __sparc__
19850 yes
19851 #endif
19852 _ACEOF
19853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19854   $EGREP "yes" >/dev/null 2>&1; then
19855   ac_cv_cpp_def___sparc__=yes
19856 else
19857   ac_cv_cpp_def___sparc__=no
19858 fi
19859 rm -f conftest*
19860
19861 fi
19862 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19863 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19864 if test $ac_cv_cpp_def___sparc__ = yes; then
19865   CFLAGS="$CFLAGS -D__sparc__"
19866   LINTFLAGS="$LINTFLAGS -D__sparc__"
19867 fi
19868  ;;
19869   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19870 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19871 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19872   echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874   cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880 #ifndef __powerpc__
19881 yes
19882 #endif
19883 _ACEOF
19884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19885   $EGREP "yes" >/dev/null 2>&1; then
19886   ac_cv_cpp_def___powerpc__=yes
19887 else
19888   ac_cv_cpp_def___powerpc__=no
19889 fi
19890 rm -f conftest*
19891
19892 fi
19893 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19894 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19895 if test $ac_cv_cpp_def___powerpc__ = yes; then
19896   CFLAGS="$CFLAGS -D__powerpc__"
19897   LINTFLAGS="$LINTFLAGS -D__powerpc__"
19898 fi
19899  ;;
19900 esac
19901
19902 case $host_vendor in
19903   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19904 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19905 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19906   echo $ECHO_N "(cached) $ECHO_C" >&6
19907 else
19908   cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 #ifndef __sun__
19915 yes
19916 #endif
19917 _ACEOF
19918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19919   $EGREP "yes" >/dev/null 2>&1; then
19920   ac_cv_cpp_def___sun__=yes
19921 else
19922   ac_cv_cpp_def___sun__=no
19923 fi
19924 rm -f conftest*
19925
19926 fi
19927 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19928 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19929 if test $ac_cv_cpp_def___sun__ = yes; then
19930   CFLAGS="$CFLAGS -D__sun__"
19931   LINTFLAGS="$LINTFLAGS -D__sun__"
19932 fi
19933  ;;
19934 esac
19935
19936
19937
19938
19939
19940           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19941
19942           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19943
19944           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19945
19946           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19947
19948           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19949
19950           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19951
19952           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19953
19954           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19955
19956           ac_config_commands="$ac_config_commands dlls/kernel/messages"
19957
19958           ac_config_commands="$ac_config_commands dlls/user/dde"
19959
19960           ac_config_commands="$ac_config_commands dlls/user/resources"
19961
19962           ac_config_commands="$ac_config_commands dlls/wineps/data"
19963
19964           ac_config_commands="$ac_config_commands include/wine"
19965
19966           ac_config_commands="$ac_config_commands misc"
19967
19968           ac_config_commands="$ac_config_commands programs/regedit/tests"
19969
19970           ac_config_commands="$ac_config_commands windows"
19971
19972
19973 MAKE_RULES=Make.rules
19974
19975
19976 MAKE_DLL_RULES=dlls/Makedll.rules
19977
19978
19979 MAKE_TEST_RULES=dlls/Maketest.rules
19980
19981
19982 MAKE_LIB_RULES=libs/Makelib.rules
19983
19984
19985 MAKE_PROG_RULES=programs/Makeprog.rules
19986
19987
19988                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     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/msi/tests/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"
19989
19990
19991 cat >confcache <<\_ACEOF
19992 # This file is a shell script that caches the results of configure
19993 # tests run on this system so they can be shared between configure
19994 # scripts and configure runs, see configure's option --config-cache.
19995 # It is not useful on other systems.  If it contains results you don't
19996 # want to keep, you may remove or edit it.
19997 #
19998 # config.status only pays attention to the cache file if you give it
19999 # the --recheck option to rerun configure.
20000 #
20001 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20002 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20003 # following values.
20004
20005 _ACEOF
20006
20007 # The following way of writing the cache mishandles newlines in values,
20008 # but we know of no workaround that is simple, portable, and efficient.
20009 # So, don't put newlines in cache variables' values.
20010 # Ultrix sh set writes to stderr and can't be redirected directly,
20011 # and sets the high bit in the cache file unless we assign to the vars.
20012 {
20013   (set) 2>&1 |
20014     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20015     *ac_space=\ *)
20016       # `set' does not quote correctly, so add quotes (double-quote
20017       # substitution turns \\\\ into \\, and sed turns \\ into \).
20018       sed -n \
20019         "s/'/'\\\\''/g;
20020           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20021       ;;
20022     *)
20023       # `set' quotes correctly as required by POSIX, so do not add quotes.
20024       sed -n \
20025         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20026       ;;
20027     esac;
20028 } |
20029   sed '
20030      t clear
20031      : clear
20032      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20033      t end
20034      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20035      : end' >>confcache
20036 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20037   if test -w $cache_file; then
20038     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20039     cat confcache >$cache_file
20040   else
20041     echo "not updating unwritable cache $cache_file"
20042   fi
20043 fi
20044 rm -f confcache
20045
20046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20047 # Let make expand exec_prefix.
20048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20049
20050 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20051 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20052 # trailing colons and then remove the whole line if VPATH becomes empty
20053 # (actually we leave an empty line to preserve line numbers).
20054 if test "x$srcdir" = x.; then
20055   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20056 s/:*\$(srcdir):*/:/;
20057 s/:*\${srcdir}:*/:/;
20058 s/:*@srcdir@:*/:/;
20059 s/^\([^=]*=[     ]*\):*/\1/;
20060 s/:*$//;
20061 s/^[^=]*=[       ]*$//;
20062 }'
20063 fi
20064
20065 DEFS=-DHAVE_CONFIG_H
20066
20067 ac_libobjs=
20068 ac_ltlibobjs=
20069 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20070   # 1. Remove the extension, and $U if already installed.
20071   ac_i=`echo "$ac_i" |
20072          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20073   # 2. Add them.
20074   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20075   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20076 done
20077 LIBOBJS=$ac_libobjs
20078
20079 LTLIBOBJS=$ac_ltlibobjs
20080
20081
20082
20083 : ${CONFIG_STATUS=./config.status}
20084 ac_clean_files_save=$ac_clean_files
20085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20086 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20087 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20088 cat >$CONFIG_STATUS <<_ACEOF
20089 #! $SHELL
20090 # Generated by $as_me.
20091 # Run this file to recreate the current configuration.
20092 # Compiler output produced by configure, useful for debugging
20093 # configure, is in config.log if it exists.
20094
20095 debug=false
20096 ac_cs_recheck=false
20097 ac_cs_silent=false
20098 SHELL=\${CONFIG_SHELL-$SHELL}
20099 _ACEOF
20100
20101 cat >>$CONFIG_STATUS <<\_ACEOF
20102 ## --------------------- ##
20103 ## M4sh Initialization.  ##
20104 ## --------------------- ##
20105
20106 # Be Bourne compatible
20107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20108   emulate sh
20109   NULLCMD=:
20110   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20111   # is contrary to our usage.  Disable this feature.
20112   alias -g '${1+"$@"}'='"$@"'
20113 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20114   set -o posix
20115 fi
20116 DUALCASE=1; export DUALCASE # for MKS sh
20117
20118 # Support unset when possible.
20119 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20120   as_unset=unset
20121 else
20122   as_unset=false
20123 fi
20124
20125
20126 # Work around bugs in pre-3.0 UWIN ksh.
20127 $as_unset ENV MAIL MAILPATH
20128 PS1='$ '
20129 PS2='> '
20130 PS4='+ '
20131
20132 # NLS nuisances.
20133 for as_var in \
20134   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20135   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20136   LC_TELEPHONE LC_TIME
20137 do
20138   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20139     eval $as_var=C; export $as_var
20140   else
20141     $as_unset $as_var
20142   fi
20143 done
20144
20145 # Required to use basename.
20146 if expr a : '\(a\)' >/dev/null 2>&1; then
20147   as_expr=expr
20148 else
20149   as_expr=false
20150 fi
20151
20152 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20153   as_basename=basename
20154 else
20155   as_basename=false
20156 fi
20157
20158
20159 # Name of the executable.
20160 as_me=`$as_basename "$0" ||
20161 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20162          X"$0" : 'X\(//\)$' \| \
20163          X"$0" : 'X\(/\)$' \| \
20164          .     : '\(.\)' 2>/dev/null ||
20165 echo X/"$0" |
20166     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20167           /^X\/\(\/\/\)$/{ s//\1/; q; }
20168           /^X\/\(\/\).*/{ s//\1/; q; }
20169           s/.*/./; q'`
20170
20171
20172 # PATH needs CR, and LINENO needs CR and PATH.
20173 # Avoid depending upon Character Ranges.
20174 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20175 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20176 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20177 as_cr_digits='0123456789'
20178 as_cr_alnum=$as_cr_Letters$as_cr_digits
20179
20180 # The user is always right.
20181 if test "${PATH_SEPARATOR+set}" != set; then
20182   echo "#! /bin/sh" >conf$$.sh
20183   echo  "exit 0"   >>conf$$.sh
20184   chmod +x conf$$.sh
20185   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20186     PATH_SEPARATOR=';'
20187   else
20188     PATH_SEPARATOR=:
20189   fi
20190   rm -f conf$$.sh
20191 fi
20192
20193
20194   as_lineno_1=$LINENO
20195   as_lineno_2=$LINENO
20196   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20197   test "x$as_lineno_1" != "x$as_lineno_2" &&
20198   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20199   # Find who we are.  Look in the path if we contain no path at all
20200   # relative or not.
20201   case $0 in
20202     *[\\/]* ) as_myself=$0 ;;
20203     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20204 for as_dir in $PATH
20205 do
20206   IFS=$as_save_IFS
20207   test -z "$as_dir" && as_dir=.
20208   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20209 done
20210
20211        ;;
20212   esac
20213   # We did not find ourselves, most probably we were run as `sh COMMAND'
20214   # in which case we are not to be found in the path.
20215   if test "x$as_myself" = x; then
20216     as_myself=$0
20217   fi
20218   if test ! -f "$as_myself"; then
20219     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20220 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20221    { (exit 1); exit 1; }; }
20222   fi
20223   case $CONFIG_SHELL in
20224   '')
20225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20227 do
20228   IFS=$as_save_IFS
20229   test -z "$as_dir" && as_dir=.
20230   for as_base in sh bash ksh sh5; do
20231          case $as_dir in
20232          /*)
20233            if ("$as_dir/$as_base" -c '
20234   as_lineno_1=$LINENO
20235   as_lineno_2=$LINENO
20236   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20237   test "x$as_lineno_1" != "x$as_lineno_2" &&
20238   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20239              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20240              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20241              CONFIG_SHELL=$as_dir/$as_base
20242              export CONFIG_SHELL
20243              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20244            fi;;
20245          esac
20246        done
20247 done
20248 ;;
20249   esac
20250
20251   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20252   # uniformly replaced by the line number.  The first 'sed' inserts a
20253   # line-number line before each line; the second 'sed' does the real
20254   # work.  The second script uses 'N' to pair each line-number line
20255   # with the numbered line, and appends trailing '-' during
20256   # substitution so that $LINENO is not a special case at line end.
20257   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20258   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20259   sed '=' <$as_myself |
20260     sed '
20261       N
20262       s,$,-,
20263       : loop
20264       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20265       t loop
20266       s,-$,,
20267       s,^['$as_cr_digits']*\n,,
20268     ' >$as_me.lineno &&
20269   chmod +x $as_me.lineno ||
20270     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20271 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20272    { (exit 1); exit 1; }; }
20273
20274   # Don't try to exec as it changes $[0], causing all sort of problems
20275   # (the dirname of $[0] is not the place where we might find the
20276   # original and so on.  Autoconf is especially sensible to this).
20277   . ./$as_me.lineno
20278   # Exit status is that of the last command.
20279   exit
20280 }
20281
20282
20283 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20284   *c*,-n*) ECHO_N= ECHO_C='
20285 ' ECHO_T='      ' ;;
20286   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20287   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20288 esac
20289
20290 if expr a : '\(a\)' >/dev/null 2>&1; then
20291   as_expr=expr
20292 else
20293   as_expr=false
20294 fi
20295
20296 rm -f conf$$ conf$$.exe conf$$.file
20297 echo >conf$$.file
20298 if ln -s conf$$.file conf$$ 2>/dev/null; then
20299   # We could just check for DJGPP; but this test a) works b) is more generic
20300   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20301   if test -f conf$$.exe; then
20302     # Don't use ln at all; we don't have any links
20303     as_ln_s='cp -p'
20304   else
20305     as_ln_s='ln -s'
20306   fi
20307 elif ln conf$$.file conf$$ 2>/dev/null; then
20308   as_ln_s=ln
20309 else
20310   as_ln_s='cp -p'
20311 fi
20312 rm -f conf$$ conf$$.exe conf$$.file
20313
20314 if mkdir -p . 2>/dev/null; then
20315   as_mkdir_p=:
20316 else
20317   test -d ./-p && rmdir ./-p
20318   as_mkdir_p=false
20319 fi
20320
20321 as_executable_p="test -f"
20322
20323 # Sed expression to map a string onto a valid CPP name.
20324 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20325
20326 # Sed expression to map a string onto a valid variable name.
20327 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20328
20329
20330 # IFS
20331 # We need space, tab and new line, in precisely that order.
20332 as_nl='
20333 '
20334 IFS="   $as_nl"
20335
20336 # CDPATH.
20337 $as_unset CDPATH
20338
20339 exec 6>&1
20340
20341 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20342 # report actual input values of CONFIG_FILES etc. instead of their
20343 # values after options handling.  Logging --version etc. is OK.
20344 exec 5>>config.log
20345 {
20346   echo
20347   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20348 ## Running $as_me. ##
20349 _ASBOX
20350 } >&5
20351 cat >&5 <<_CSEOF
20352
20353 This file was extended by Wine $as_me 20050111, which was
20354 generated by GNU Autoconf 2.59.  Invocation command line was
20355
20356   CONFIG_FILES    = $CONFIG_FILES
20357   CONFIG_HEADERS  = $CONFIG_HEADERS
20358   CONFIG_LINKS    = $CONFIG_LINKS
20359   CONFIG_COMMANDS = $CONFIG_COMMANDS
20360   $ $0 $@
20361
20362 _CSEOF
20363 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20364 echo >&5
20365 _ACEOF
20366
20367 # Files that config.status was made for.
20368 if test -n "$ac_config_files"; then
20369   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20370 fi
20371
20372 if test -n "$ac_config_headers"; then
20373   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20374 fi
20375
20376 if test -n "$ac_config_links"; then
20377   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20378 fi
20379
20380 if test -n "$ac_config_commands"; then
20381   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20382 fi
20383
20384 cat >>$CONFIG_STATUS <<\_ACEOF
20385
20386 ac_cs_usage="\
20387 \`$as_me' instantiates files from templates according to the
20388 current configuration.
20389
20390 Usage: $0 [OPTIONS] [FILE]...
20391
20392   -h, --help       print this help, then exit
20393   -V, --version    print version number, then exit
20394   -q, --quiet      do not print progress messages
20395   -d, --debug      don't remove temporary files
20396       --recheck    update $as_me by reconfiguring in the same conditions
20397   --file=FILE[:TEMPLATE]
20398                    instantiate the configuration file FILE
20399   --header=FILE[:TEMPLATE]
20400                    instantiate the configuration header FILE
20401
20402 Configuration files:
20403 $config_files
20404
20405 Configuration headers:
20406 $config_headers
20407
20408 Configuration commands:
20409 $config_commands
20410
20411 Report bugs to <bug-autoconf@gnu.org>."
20412 _ACEOF
20413
20414 cat >>$CONFIG_STATUS <<_ACEOF
20415 ac_cs_version="\\
20416 Wine config.status 20050111
20417 configured by $0, generated by GNU Autoconf 2.59,
20418   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20419
20420 Copyright (C) 2003 Free Software Foundation, Inc.
20421 This config.status script is free software; the Free Software Foundation
20422 gives unlimited permission to copy, distribute and modify it."
20423 srcdir=$srcdir
20424 INSTALL="$INSTALL"
20425 _ACEOF
20426
20427 cat >>$CONFIG_STATUS <<\_ACEOF
20428 # If no file are specified by the user, then we need to provide default
20429 # value.  By we need to know if files were specified by the user.
20430 ac_need_defaults=:
20431 while test $# != 0
20432 do
20433   case $1 in
20434   --*=*)
20435     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20436     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20437     ac_shift=:
20438     ;;
20439   -*)
20440     ac_option=$1
20441     ac_optarg=$2
20442     ac_shift=shift
20443     ;;
20444   *) # This is not an option, so the user has probably given explicit
20445      # arguments.
20446      ac_option=$1
20447      ac_need_defaults=false;;
20448   esac
20449
20450   case $ac_option in
20451   # Handling of the options.
20452 _ACEOF
20453 cat >>$CONFIG_STATUS <<\_ACEOF
20454   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20455     ac_cs_recheck=: ;;
20456   --version | --vers* | -V )
20457     echo "$ac_cs_version"; exit 0 ;;
20458   --he | --h)
20459     # Conflict between --help and --header
20460     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20461 Try \`$0 --help' for more information." >&5
20462 echo "$as_me: error: ambiguous option: $1
20463 Try \`$0 --help' for more information." >&2;}
20464    { (exit 1); exit 1; }; };;
20465   --help | --hel | -h )
20466     echo "$ac_cs_usage"; exit 0 ;;
20467   --debug | --d* | -d )
20468     debug=: ;;
20469   --file | --fil | --fi | --f )
20470     $ac_shift
20471     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20472     ac_need_defaults=false;;
20473   --header | --heade | --head | --hea )
20474     $ac_shift
20475     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20476     ac_need_defaults=false;;
20477   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20478   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20479     ac_cs_silent=: ;;
20480
20481   # This is an error.
20482   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20483 Try \`$0 --help' for more information." >&5
20484 echo "$as_me: error: unrecognized option: $1
20485 Try \`$0 --help' for more information." >&2;}
20486    { (exit 1); exit 1; }; } ;;
20487
20488   *) ac_config_targets="$ac_config_targets $1" ;;
20489
20490   esac
20491   shift
20492 done
20493
20494 ac_configure_extra_args=
20495
20496 if $ac_cs_silent; then
20497   exec 6>/dev/null
20498   ac_configure_extra_args="$ac_configure_extra_args --silent"
20499 fi
20500
20501 _ACEOF
20502 cat >>$CONFIG_STATUS <<_ACEOF
20503 if \$ac_cs_recheck; then
20504   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20505   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20506 fi
20507
20508 _ACEOF
20509
20510
20511
20512
20513
20514 cat >>$CONFIG_STATUS <<\_ACEOF
20515 for ac_config_target in $ac_config_targets
20516 do
20517   case "$ac_config_target" in
20518   # Handling of arguments.
20519   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20520   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20521   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20522   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20523   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20524   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20525   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20526   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20527   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20528   "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20529   "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20530   "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20531   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20532   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20533   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20534   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20535   "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20536   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20537   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20538   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20539   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20540   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20541   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20542   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20543   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20544   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20545   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20546   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20547   "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20548   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20549   "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20550   "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20551   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20552   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20553   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20554   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20555   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20556   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20557   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20558   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20559   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20560   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20561   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20562   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20563   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20564   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20565   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20566   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20567   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20568   "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20569   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20570   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20571   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20572   "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20573   "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20574   "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20575   "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20576   "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20577   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20578   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20579   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20580   "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20581   "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20582   "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20583   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20584   "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20585   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20586   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20587   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20588   "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20589   "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20590   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20591   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20592   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20593   "dlls/lzexpand/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/tests/Makefile" ;;
20594   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20595   "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20596   "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20597   "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20598   "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20599   "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20600   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20601   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20602   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20603   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20604   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20605   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20606   "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20607   "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20608   "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20609   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20610   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20611   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20612   "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
20613   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20614   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20615   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20616   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20617   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20618   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20619   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20620   "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20621   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20622   "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20623   "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20624   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20625   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20626   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20627   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20628   "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20629   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20630   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20631   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20632   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20633   "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20634   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20635   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20636   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20637   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20638   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20639   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20640   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20641   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20642   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20643   "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20644   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20645   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20646   "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20647   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20648   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20649   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20650   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20651   "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20652   "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20653   "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20654   "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
20655   "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20656   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20657   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20658   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20659   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20660   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20661   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20662   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20663   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20664   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20665   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20666   "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20667   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20668   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20669   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20670   "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20671   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20672   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20673   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20674   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20675   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20676   "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20677   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20678   "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20679   "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20680   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20681   "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20682   "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20683   "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20684   "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20685   "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20686   "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20687   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20688   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20689   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20690   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20691   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20692   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20693   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20694   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20695   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20696   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20697   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20698   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20699   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20700   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20701   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20702   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20703   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20704   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20705   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20706   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20707   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20708   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20709   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20710   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20711   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20712   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20713   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20714   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20715   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20716   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20717   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20718   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20719   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20720   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20721   "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20722   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20723   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20724   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20725   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20726   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20727   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20728   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20729   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20730   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20731   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20732   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20733   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20734   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20735   "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20736   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20737   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20738   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20739   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20740   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20741   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20742   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20743   "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20744   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20745   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20746   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20747   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20748   "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20749   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20750   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20751   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20752   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20753   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20754   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20755   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20756   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20757   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20758   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20759   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20760   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20761   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20762   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20763   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20764   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20765   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20766   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20767   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20768   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20769   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20770   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20771   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20772   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20773   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20774   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20775   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20776   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20777   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20778   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20779   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20780   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20781   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20782   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20783   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20784   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20785   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20786   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20787 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20788    { (exit 1); exit 1; }; };;
20789   esac
20790 done
20791
20792 # If the user did not use the arguments to specify the items to instantiate,
20793 # then the envvar interface is used.  Set only those that are not.
20794 # We use the long form for the default assignment because of an extremely
20795 # bizarre bug on SunOS 4.1.3.
20796 if $ac_need_defaults; then
20797   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20798   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20799   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20800 fi
20801
20802 # Have a temporary directory for convenience.  Make it in the build tree
20803 # simply because there is no reason to put it here, and in addition,
20804 # creating and moving files from /tmp can sometimes cause problems.
20805 # Create a temporary directory, and hook for its removal unless debugging.
20806 $debug ||
20807 {
20808   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20809   trap '{ (exit 1); exit 1; }' 1 2 13 15
20810 }
20811
20812 # Create a (secure) tmp directory for tmp files.
20813
20814 {
20815   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20816   test -n "$tmp" && test -d "$tmp"
20817 }  ||
20818 {
20819   tmp=./confstat$$-$RANDOM
20820   (umask 077 && mkdir $tmp)
20821 } ||
20822 {
20823    echo "$me: cannot create a temporary directory in ." >&2
20824    { (exit 1); exit 1; }
20825 }
20826
20827 _ACEOF
20828
20829 cat >>$CONFIG_STATUS <<_ACEOF
20830
20831 #
20832 # CONFIG_FILES section.
20833 #
20834
20835 # No need to generate the scripts if there are no CONFIG_FILES.
20836 # This happens for instance when ./config.status config.h
20837 if test -n "\$CONFIG_FILES"; then
20838   # Protect against being on the right side of a sed subst in config.status.
20839   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20840    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20841 s,@SHELL@,$SHELL,;t t
20842 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20843 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20844 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20845 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20846 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20847 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20848 s,@exec_prefix@,$exec_prefix,;t t
20849 s,@prefix@,$prefix,;t t
20850 s,@program_transform_name@,$program_transform_name,;t t
20851 s,@bindir@,$bindir,;t t
20852 s,@sbindir@,$sbindir,;t t
20853 s,@libexecdir@,$libexecdir,;t t
20854 s,@datadir@,$datadir,;t t
20855 s,@sysconfdir@,$sysconfdir,;t t
20856 s,@sharedstatedir@,$sharedstatedir,;t t
20857 s,@localstatedir@,$localstatedir,;t t
20858 s,@libdir@,$libdir,;t t
20859 s,@includedir@,$includedir,;t t
20860 s,@oldincludedir@,$oldincludedir,;t t
20861 s,@infodir@,$infodir,;t t
20862 s,@mandir@,$mandir,;t t
20863 s,@build_alias@,$build_alias,;t t
20864 s,@host_alias@,$host_alias,;t t
20865 s,@target_alias@,$target_alias,;t t
20866 s,@DEFS@,$DEFS,;t t
20867 s,@ECHO_C@,$ECHO_C,;t t
20868 s,@ECHO_N@,$ECHO_N,;t t
20869 s,@ECHO_T@,$ECHO_T,;t t
20870 s,@LIBS@,$LIBS,;t t
20871 s,@WIN16_FILES@,$WIN16_FILES,;t t
20872 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20873 s,@DLLDEFS@,$DLLDEFS,;t t
20874 s,@build@,$build,;t t
20875 s,@build_cpu@,$build_cpu,;t t
20876 s,@build_vendor@,$build_vendor,;t t
20877 s,@build_os@,$build_os,;t t
20878 s,@host@,$host,;t t
20879 s,@host_cpu@,$host_cpu,;t t
20880 s,@host_vendor@,$host_vendor,;t t
20881 s,@host_os@,$host_os,;t t
20882 s,@SET_MAKE@,$SET_MAKE,;t t
20883 s,@CC@,$CC,;t t
20884 s,@CFLAGS@,$CFLAGS,;t t
20885 s,@LDFLAGS@,$LDFLAGS,;t t
20886 s,@CPPFLAGS@,$CPPFLAGS,;t t
20887 s,@ac_ct_CC@,$ac_ct_CC,;t t
20888 s,@EXEEXT@,$EXEEXT,;t t
20889 s,@OBJEXT@,$OBJEXT,;t t
20890 s,@CXX@,$CXX,;t t
20891 s,@CXXFLAGS@,$CXXFLAGS,;t t
20892 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20893 s,@CPPBIN@,$CPPBIN,;t t
20894 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20895 s,@TOOLSDIR@,$TOOLSDIR,;t t
20896 s,@CPP@,$CPP,;t t
20897 s,@X_CFLAGS@,$X_CFLAGS,;t t
20898 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20899 s,@X_LIBS@,$X_LIBS,;t t
20900 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20901 s,@LEX@,$LEX,;t t
20902 s,@LEXLIB@,$LEXLIB,;t t
20903 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20904 s,@XLEX@,$XLEX,;t t
20905 s,@BISON@,$BISON,;t t
20906 s,@AS@,$AS,;t t
20907 s,@ac_ct_AS@,$ac_ct_AS,;t t
20908 s,@LD@,$LD,;t t
20909 s,@ac_ct_LD@,$ac_ct_LD,;t t
20910 s,@AR@,$AR,;t t
20911 s,@ac_ct_AR@,$ac_ct_AR,;t t
20912 s,@RANLIB@,$RANLIB,;t t
20913 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20914 s,@STRIP@,$STRIP,;t t
20915 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20916 s,@WINDRES@,$WINDRES,;t t
20917 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20918 s,@LN_S@,$LN_S,;t t
20919 s,@LN@,$LN,;t t
20920 s,@EGREP@,$EGREP,;t t
20921 s,@LDCONFIG@,$LDCONFIG,;t t
20922 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20923 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20924 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20925 s,@LINT@,$LINT,;t t
20926 s,@LINTFLAGS@,$LINTFLAGS,;t t
20927 s,@DB2HTML@,$DB2HTML,;t t
20928 s,@DB2PDF@,$DB2PDF,;t t
20929 s,@DB2PS@,$DB2PS,;t t
20930 s,@DB2TXT@,$DB2TXT,;t t
20931 s,@FONTFORGE@,$FONTFORGE,;t t
20932 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20933 s,@XLIB@,$XLIB,;t t
20934 s,@XFILES@,$XFILES,;t t
20935 s,@OPENGLFILES@,$OPENGLFILES,;t t
20936 s,@GLU32FILES@,$GLU32FILES,;t t
20937 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20938 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20939 s,@GLUT32FILES@,$GLUT32FILES,;t t
20940 s,@NASLIBS@,$NASLIBS,;t t
20941 s,@CURSESLIBS@,$CURSESLIBS,;t t
20942 s,@sane_devel@,$sane_devel,;t t
20943 s,@SANELIBS@,$SANELIBS,;t t
20944 s,@SANEINCL@,$SANEINCL,;t t
20945 s,@ICULIBS@,$ICULIBS,;t t
20946 s,@ft_devel@,$ft_devel,;t t
20947 s,@ft_devel2@,$ft_devel2,;t t
20948 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
20949 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20950 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
20951 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20952 s,@ARTSLIBS@,$ARTSLIBS,;t t
20953 s,@ARTSINCL@,$ARTSINCL,;t t
20954 s,@ALSALIBS@,$ALSALIBS,;t t
20955 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20956 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20957 s,@DLLEXT@,$DLLEXT,;t t
20958 s,@DLLFLAGS@,$DLLFLAGS,;t t
20959 s,@DLLIBS@,$DLLIBS,;t t
20960 s,@LDSHARED@,$LDSHARED,;t t
20961 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20962 s,@LIBEXT@,$LIBEXT,;t t
20963 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20964 s,@DLLTOOL@,$DLLTOOL,;t t
20965 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20966 s,@DLLWRAP@,$DLLWRAP,;t t
20967 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20968 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20969 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
20970 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
20971 s,@IOKITLIB@,$IOKITLIB,;t t
20972 s,@CROSSTEST@,$CROSSTEST,;t t
20973 s,@CROSSCC@,$CROSSCC,;t t
20974 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20975 s,@LDPATH@,$LDPATH,;t t
20976 s,@CRTLIBS@,$CRTLIBS,;t t
20977 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
20978 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20979 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20980 s,@LDD@,$LDD,;t t
20981 s,@ALLOCA@,$ALLOCA,;t t
20982 s,@LIBOBJS@,$LIBOBJS,;t t
20983 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20984 /@MAKE_RULES@/r $MAKE_RULES
20985 s,@MAKE_RULES@,,;t t
20986 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20987 s,@MAKE_DLL_RULES@,,;t t
20988 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20989 s,@MAKE_TEST_RULES@,,;t t
20990 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20991 s,@MAKE_LIB_RULES@,,;t t
20992 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20993 s,@MAKE_PROG_RULES@,,;t t
20994 CEOF
20995
20996 _ACEOF
20997
20998   cat >>$CONFIG_STATUS <<\_ACEOF
20999   # Split the substitutions into bite-sized pieces for seds with
21000   # small command number limits, like on Digital OSF/1 and HP-UX.
21001   ac_max_sed_lines=48
21002   ac_sed_frag=1 # Number of current file.
21003   ac_beg=1 # First line for current file.
21004   ac_end=$ac_max_sed_lines # Line after last line for current file.
21005   ac_more_lines=:
21006   ac_sed_cmds=
21007   while $ac_more_lines; do
21008     if test $ac_beg -gt 1; then
21009       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21010     else
21011       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21012     fi
21013     if test ! -s $tmp/subs.frag; then
21014       ac_more_lines=false
21015     else
21016       # The purpose of the label and of the branching condition is to
21017       # speed up the sed processing (if there are no `@' at all, there
21018       # is no need to browse any of the substitutions).
21019       # These are the two extra sed commands mentioned above.
21020       (echo ':t
21021   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21022       if test -z "$ac_sed_cmds"; then
21023         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21024       else
21025         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21026       fi
21027       ac_sed_frag=`expr $ac_sed_frag + 1`
21028       ac_beg=$ac_end
21029       ac_end=`expr $ac_end + $ac_max_sed_lines`
21030     fi
21031   done
21032   if test -z "$ac_sed_cmds"; then
21033     ac_sed_cmds=cat
21034   fi
21035 fi # test -n "$CONFIG_FILES"
21036
21037 _ACEOF
21038 cat >>$CONFIG_STATUS <<\_ACEOF
21039 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21040   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21041   case $ac_file in
21042   - | *:- | *:-:* ) # input from stdin
21043         cat >$tmp/stdin
21044         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21045         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21046   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21047         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21048   * )   ac_file_in=$ac_file.in ;;
21049   esac
21050
21051   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21052   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21054          X"$ac_file" : 'X\(//\)[^/]' \| \
21055          X"$ac_file" : 'X\(//\)$' \| \
21056          X"$ac_file" : 'X\(/\)' \| \
21057          .     : '\(.\)' 2>/dev/null ||
21058 echo X"$ac_file" |
21059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21061           /^X\(\/\/\)$/{ s//\1/; q; }
21062           /^X\(\/\).*/{ s//\1/; q; }
21063           s/.*/./; q'`
21064   { if $as_mkdir_p; then
21065     mkdir -p "$ac_dir"
21066   else
21067     as_dir="$ac_dir"
21068     as_dirs=
21069     while test ! -d "$as_dir"; do
21070       as_dirs="$as_dir $as_dirs"
21071       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21073          X"$as_dir" : 'X\(//\)[^/]' \| \
21074          X"$as_dir" : 'X\(//\)$' \| \
21075          X"$as_dir" : 'X\(/\)' \| \
21076          .     : '\(.\)' 2>/dev/null ||
21077 echo X"$as_dir" |
21078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21079           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21080           /^X\(\/\/\)$/{ s//\1/; q; }
21081           /^X\(\/\).*/{ s//\1/; q; }
21082           s/.*/./; q'`
21083     done
21084     test ! -n "$as_dirs" || mkdir $as_dirs
21085   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21087    { (exit 1); exit 1; }; }; }
21088
21089   ac_builddir=.
21090
21091 if test "$ac_dir" != .; then
21092   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21093   # A "../" for each directory in $ac_dir_suffix.
21094   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21095 else
21096   ac_dir_suffix= ac_top_builddir=
21097 fi
21098
21099 case $srcdir in
21100   .)  # No --srcdir option.  We are building in place.
21101     ac_srcdir=.
21102     if test -z "$ac_top_builddir"; then
21103        ac_top_srcdir=.
21104     else
21105        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21106     fi ;;
21107   [\\/]* | ?:[\\/]* )  # Absolute path.
21108     ac_srcdir=$srcdir$ac_dir_suffix;
21109     ac_top_srcdir=$srcdir ;;
21110   *) # Relative path.
21111     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21112     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21113 esac
21114
21115 # Do not use `cd foo && pwd` to compute absolute paths, because
21116 # the directories may not exist.
21117 case `pwd` in
21118 .) ac_abs_builddir="$ac_dir";;
21119 *)
21120   case "$ac_dir" in
21121   .) ac_abs_builddir=`pwd`;;
21122   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21123   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21124   esac;;
21125 esac
21126 case $ac_abs_builddir in
21127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21128 *)
21129   case ${ac_top_builddir}. in
21130   .) ac_abs_top_builddir=$ac_abs_builddir;;
21131   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21132   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21133   esac;;
21134 esac
21135 case $ac_abs_builddir in
21136 .) ac_abs_srcdir=$ac_srcdir;;
21137 *)
21138   case $ac_srcdir in
21139   .) ac_abs_srcdir=$ac_abs_builddir;;
21140   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21141   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21142   esac;;
21143 esac
21144 case $ac_abs_builddir in
21145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21146 *)
21147   case $ac_top_srcdir in
21148   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21149   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21150   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21151   esac;;
21152 esac
21153
21154
21155   case $INSTALL in
21156   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21157   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21158   esac
21159
21160   # Let's still pretend it is `configure' which instantiates (i.e., don't
21161   # use $as_me), people would be surprised to read:
21162   #    /* config.h.  Generated by config.status.  */
21163   if test x"$ac_file" = x-; then
21164     configure_input=
21165   else
21166     configure_input="$ac_file.  "
21167   fi
21168   configure_input=$configure_input"Generated from `echo $ac_file_in |
21169                                      sed 's,.*/,,'` by configure."
21170
21171   # First look for the input files in the build tree, otherwise in the
21172   # src tree.
21173   ac_file_inputs=`IFS=:
21174     for f in $ac_file_in; do
21175       case $f in
21176       -) echo $tmp/stdin ;;
21177       [\\/$]*)
21178          # Absolute (can't be DOS-style, as IFS=:)
21179          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21180 echo "$as_me: error: cannot find input file: $f" >&2;}
21181    { (exit 1); exit 1; }; }
21182          echo "$f";;
21183       *) # Relative
21184          if test -f "$f"; then
21185            # Build tree
21186            echo "$f"
21187          elif test -f "$srcdir/$f"; then
21188            # Source tree
21189            echo "$srcdir/$f"
21190          else
21191            # /dev/null tree
21192            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21193 echo "$as_me: error: cannot find input file: $f" >&2;}
21194    { (exit 1); exit 1; }; }
21195          fi;;
21196       esac
21197     done` || { (exit 1); exit 1; }
21198
21199   if test x"$ac_file" != x-; then
21200     { echo "$as_me:$LINENO: creating $ac_file" >&5
21201 echo "$as_me: creating $ac_file" >&6;}
21202     rm -f "$ac_file"
21203   fi
21204 _ACEOF
21205 cat >>$CONFIG_STATUS <<_ACEOF
21206   sed "$ac_vpsub
21207 $extrasub
21208 _ACEOF
21209 cat >>$CONFIG_STATUS <<\_ACEOF
21210 :t
21211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21212 s,@configure_input@,$configure_input,;t t
21213 s,@srcdir@,$ac_srcdir,;t t
21214 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21215 s,@top_srcdir@,$ac_top_srcdir,;t t
21216 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21217 s,@builddir@,$ac_builddir,;t t
21218 s,@abs_builddir@,$ac_abs_builddir,;t t
21219 s,@top_builddir@,$ac_top_builddir,;t t
21220 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21221 s,@INSTALL@,$ac_INSTALL,;t t
21222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21223   rm -f $tmp/stdin
21224   if test x"$ac_file" != x-; then
21225     mv $tmp/out $ac_file
21226   else
21227     cat $tmp/out
21228     rm -f $tmp/out
21229   fi
21230
21231 done
21232 _ACEOF
21233 cat >>$CONFIG_STATUS <<\_ACEOF
21234
21235 #
21236 # CONFIG_HEADER section.
21237 #
21238
21239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21241 #
21242 # ac_d sets the value in "#define NAME VALUE" lines.
21243 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21244 ac_dB='[         ].*$,\1#\2'
21245 ac_dC=' '
21246 ac_dD=',;t'
21247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21248 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21249 ac_uB='$,\1#\2define\3'
21250 ac_uC=' '
21251 ac_uD=',;t'
21252
21253 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21254   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21255   case $ac_file in
21256   - | *:- | *:-:* ) # input from stdin
21257         cat >$tmp/stdin
21258         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21259         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21260   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21261         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21262   * )   ac_file_in=$ac_file.in ;;
21263   esac
21264
21265   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21266 echo "$as_me: creating $ac_file" >&6;}
21267
21268   # First look for the input files in the build tree, otherwise in the
21269   # src tree.
21270   ac_file_inputs=`IFS=:
21271     for f in $ac_file_in; do
21272       case $f in
21273       -) echo $tmp/stdin ;;
21274       [\\/$]*)
21275          # Absolute (can't be DOS-style, as IFS=:)
21276          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21277 echo "$as_me: error: cannot find input file: $f" >&2;}
21278    { (exit 1); exit 1; }; }
21279          # Do quote $f, to prevent DOS paths from being IFS'd.
21280          echo "$f";;
21281       *) # Relative
21282          if test -f "$f"; then
21283            # Build tree
21284            echo "$f"
21285          elif test -f "$srcdir/$f"; then
21286            # Source tree
21287            echo "$srcdir/$f"
21288          else
21289            # /dev/null tree
21290            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21291 echo "$as_me: error: cannot find input file: $f" >&2;}
21292    { (exit 1); exit 1; }; }
21293          fi;;
21294       esac
21295     done` || { (exit 1); exit 1; }
21296   # Remove the trailing spaces.
21297   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21298
21299 _ACEOF
21300
21301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21302 # `conftest.undefs', that substitutes the proper values into
21303 # config.h.in to produce config.h.  The first handles `#define'
21304 # templates, and the second `#undef' templates.
21305 # And first: Protect against being on the right side of a sed subst in
21306 # config.status.  Protect against being in an unquoted here document
21307 # in config.status.
21308 rm -f conftest.defines conftest.undefs
21309 # Using a here document instead of a string reduces the quoting nightmare.
21310 # Putting comments in sed scripts is not portable.
21311 #
21312 # `end' is used to avoid that the second main sed command (meant for
21313 # 0-ary CPP macros) applies to n-ary macro definitions.
21314 # See the Autoconf documentation for `clear'.
21315 cat >confdef2sed.sed <<\_ACEOF
21316 s/[\\&,]/\\&/g
21317 s,[\\$`],\\&,g
21318 t clear
21319 : clear
21320 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21321 t end
21322 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21323 : end
21324 _ACEOF
21325 # If some macros were called several times there might be several times
21326 # the same #defines, which is useless.  Nevertheless, we may not want to
21327 # sort them, since we want the *last* AC-DEFINE to be honored.
21328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21330 rm -f confdef2sed.sed
21331
21332 # This sed command replaces #undef with comments.  This is necessary, for
21333 # example, in the case of _POSIX_SOURCE, which is predefined and required
21334 # on some systems where configure will not decide to define it.
21335 cat >>conftest.undefs <<\_ACEOF
21336 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21337 _ACEOF
21338
21339 # Break up conftest.defines because some shells have a limit on the size
21340 # of here documents, and old seds have small limits too (100 cmds).
21341 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21342 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21343 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21344 echo '  :' >>$CONFIG_STATUS
21345 rm -f conftest.tail
21346 while grep . conftest.defines >/dev/null
21347 do
21348   # Write a limited-size here document to $tmp/defines.sed.
21349   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21350   # Speed up: don't consider the non `#define' lines.
21351   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21352   # Work around the forget-to-reset-the-flag bug.
21353   echo 't clr' >>$CONFIG_STATUS
21354   echo ': clr' >>$CONFIG_STATUS
21355   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21356   echo 'CEOF
21357   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21358   rm -f $tmp/in
21359   mv $tmp/out $tmp/in
21360 ' >>$CONFIG_STATUS
21361   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21362   rm -f conftest.defines
21363   mv conftest.tail conftest.defines
21364 done
21365 rm -f conftest.defines
21366 echo '  fi # grep' >>$CONFIG_STATUS
21367 echo >>$CONFIG_STATUS
21368
21369 # Break up conftest.undefs because some shells have a limit on the size
21370 # of here documents, and old seds have small limits too (100 cmds).
21371 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21372 rm -f conftest.tail
21373 while grep . conftest.undefs >/dev/null
21374 do
21375   # Write a limited-size here document to $tmp/undefs.sed.
21376   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21377   # Speed up: don't consider the non `#undef'
21378   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21379   # Work around the forget-to-reset-the-flag bug.
21380   echo 't clr' >>$CONFIG_STATUS
21381   echo ': clr' >>$CONFIG_STATUS
21382   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21383   echo 'CEOF
21384   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21385   rm -f $tmp/in
21386   mv $tmp/out $tmp/in
21387 ' >>$CONFIG_STATUS
21388   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21389   rm -f conftest.undefs
21390   mv conftest.tail conftest.undefs
21391 done
21392 rm -f conftest.undefs
21393
21394 cat >>$CONFIG_STATUS <<\_ACEOF
21395   # Let's still pretend it is `configure' which instantiates (i.e., don't
21396   # use $as_me), people would be surprised to read:
21397   #    /* config.h.  Generated by config.status.  */
21398   if test x"$ac_file" = x-; then
21399     echo "/* Generated by configure.  */" >$tmp/config.h
21400   else
21401     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21402   fi
21403   cat $tmp/in >>$tmp/config.h
21404   rm -f $tmp/in
21405   if test x"$ac_file" != x-; then
21406     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21407       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21408 echo "$as_me: $ac_file is unchanged" >&6;}
21409     else
21410       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21412          X"$ac_file" : 'X\(//\)[^/]' \| \
21413          X"$ac_file" : 'X\(//\)$' \| \
21414          X"$ac_file" : 'X\(/\)' \| \
21415          .     : '\(.\)' 2>/dev/null ||
21416 echo X"$ac_file" |
21417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21418           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21419           /^X\(\/\/\)$/{ s//\1/; q; }
21420           /^X\(\/\).*/{ s//\1/; q; }
21421           s/.*/./; q'`
21422       { if $as_mkdir_p; then
21423     mkdir -p "$ac_dir"
21424   else
21425     as_dir="$ac_dir"
21426     as_dirs=
21427     while test ! -d "$as_dir"; do
21428       as_dirs="$as_dir $as_dirs"
21429       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21431          X"$as_dir" : 'X\(//\)[^/]' \| \
21432          X"$as_dir" : 'X\(//\)$' \| \
21433          X"$as_dir" : 'X\(/\)' \| \
21434          .     : '\(.\)' 2>/dev/null ||
21435 echo X"$as_dir" |
21436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21438           /^X\(\/\/\)$/{ s//\1/; q; }
21439           /^X\(\/\).*/{ s//\1/; q; }
21440           s/.*/./; q'`
21441     done
21442     test ! -n "$as_dirs" || mkdir $as_dirs
21443   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21445    { (exit 1); exit 1; }; }; }
21446
21447       rm -f $ac_file
21448       mv $tmp/config.h $ac_file
21449     fi
21450   else
21451     cat $tmp/config.h
21452     rm -f $tmp/config.h
21453   fi
21454 done
21455 _ACEOF
21456 cat >>$CONFIG_STATUS <<\_ACEOF
21457
21458 #
21459 # CONFIG_COMMANDS section.
21460 #
21461 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21462   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21463   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21464   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21465 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21466          X"$ac_dest" : 'X\(//\)[^/]' \| \
21467          X"$ac_dest" : 'X\(//\)$' \| \
21468          X"$ac_dest" : 'X\(/\)' \| \
21469          .     : '\(.\)' 2>/dev/null ||
21470 echo X"$ac_dest" |
21471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21472           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21473           /^X\(\/\/\)$/{ s//\1/; q; }
21474           /^X\(\/\).*/{ s//\1/; q; }
21475           s/.*/./; q'`
21476   { if $as_mkdir_p; then
21477     mkdir -p "$ac_dir"
21478   else
21479     as_dir="$ac_dir"
21480     as_dirs=
21481     while test ! -d "$as_dir"; do
21482       as_dirs="$as_dir $as_dirs"
21483       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21485          X"$as_dir" : 'X\(//\)[^/]' \| \
21486          X"$as_dir" : 'X\(//\)$' \| \
21487          X"$as_dir" : 'X\(/\)' \| \
21488          .     : '\(.\)' 2>/dev/null ||
21489 echo X"$as_dir" |
21490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21491           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21492           /^X\(\/\/\)$/{ s//\1/; q; }
21493           /^X\(\/\).*/{ s//\1/; q; }
21494           s/.*/./; q'`
21495     done
21496     test ! -n "$as_dirs" || mkdir $as_dirs
21497   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21499    { (exit 1); exit 1; }; }; }
21500
21501   ac_builddir=.
21502
21503 if test "$ac_dir" != .; then
21504   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21505   # A "../" for each directory in $ac_dir_suffix.
21506   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21507 else
21508   ac_dir_suffix= ac_top_builddir=
21509 fi
21510
21511 case $srcdir in
21512   .)  # No --srcdir option.  We are building in place.
21513     ac_srcdir=.
21514     if test -z "$ac_top_builddir"; then
21515        ac_top_srcdir=.
21516     else
21517        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21518     fi ;;
21519   [\\/]* | ?:[\\/]* )  # Absolute path.
21520     ac_srcdir=$srcdir$ac_dir_suffix;
21521     ac_top_srcdir=$srcdir ;;
21522   *) # Relative path.
21523     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21524     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21525 esac
21526
21527 # Do not use `cd foo && pwd` to compute absolute paths, because
21528 # the directories may not exist.
21529 case `pwd` in
21530 .) ac_abs_builddir="$ac_dir";;
21531 *)
21532   case "$ac_dir" in
21533   .) ac_abs_builddir=`pwd`;;
21534   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21535   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21536   esac;;
21537 esac
21538 case $ac_abs_builddir in
21539 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21540 *)
21541   case ${ac_top_builddir}. in
21542   .) ac_abs_top_builddir=$ac_abs_builddir;;
21543   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21544   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21545   esac;;
21546 esac
21547 case $ac_abs_builddir in
21548 .) ac_abs_srcdir=$ac_srcdir;;
21549 *)
21550   case $ac_srcdir in
21551   .) ac_abs_srcdir=$ac_abs_builddir;;
21552   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21553   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21554   esac;;
21555 esac
21556 case $ac_abs_builddir in
21557 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21558 *)
21559   case $ac_top_srcdir in
21560   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21561   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21562   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21563   esac;;
21564 esac
21565
21566
21567   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21568 echo "$as_me: executing $ac_dest commands" >&6;}
21569   case $ac_dest in
21570     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21571 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21572     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21573 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21574     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21575 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21576     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21577 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21578     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21579 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21580     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21581 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21582     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21583 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21584     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21585 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21586     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21587 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21588     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21589 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21590     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21591 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21592     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21593 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21594     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21595 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21596     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21597 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21598     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21599 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21600     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21601 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21602   esac
21603 done
21604 _ACEOF
21605
21606 cat >>$CONFIG_STATUS <<\_ACEOF
21607
21608 { (exit 0); exit 0; }
21609 _ACEOF
21610 chmod +x $CONFIG_STATUS
21611 ac_clean_files=$ac_clean_files_save
21612
21613
21614 # configure is writing to config.log, and then calls config.status.
21615 # config.status does its own redirection, appending to config.log.
21616 # Unfortunately, on DOS this fails, as config.log is still kept open
21617 # by configure, so config.status won't be able to write to it; its
21618 # output is simply discarded.  So we exec the FD to /dev/null,
21619 # effectively closing config.log, so it can be properly (re)opened and
21620 # appended to by config.status.  When coming back to configure, we
21621 # need to make the FD available again.
21622 if test "$no_create" != yes; then
21623   ac_cs_success=:
21624   ac_config_status_args=
21625   test "$silent" = yes &&
21626     ac_config_status_args="$ac_config_status_args --quiet"
21627   exec 5>/dev/null
21628   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21629   exec 5>>config.log
21630   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21631   # would make configure fail if this is the last instruction.
21632   $ac_cs_success || { (exit 1); exit 1; }
21633 fi
21634
21635
21636 if test "$have_x" = "no"
21637 then
21638   echo
21639   echo "*** Warning: X development files not found. Wine will be built without"
21640   echo "*** X support, which currently does not work, and would probably not be"
21641   echo "*** what you want anyway. You will need to install devel packages of"
21642   echo "*** Xlib/Xfree86 at the very least."
21643 fi
21644
21645 if test "$wine_cv_opengl_version_OK" = "no"
21646 then
21647   echo
21648   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21649   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21650 fi
21651
21652 if test "$wine_cv_msg_freetype" = "yes"
21653 then
21654   echo
21655   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21656   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21657   echo "*** freetype-devel package (or its equivalent on your distribution) to"
21658   echo "*** enable Wine to use TrueType fonts."
21659 fi
21660
21661 echo
21662 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
21663 echo
21664