configure: Added checks for HAL libraries.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 0.9.12.
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='0.9.12'
273 PACKAGE_STRING='Wine 0.9.12'
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL 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 FONTFORGE PKG_CONFIG PRELINK LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS XML2LIBS XML2INCL XSLTLIBS XSLTINCL HALINCL CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS RESOLVLIBS LCMSLIBS LDAPLIBS FREETYPELIBS FREETYPEINCL ft_devel ft_devel2 FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ESDCONFIG ESDLIBS ESDINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS BUILTINFLAG DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDEXERPATH LDDLLRPATH COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS MAIN_BINARY EXTRA_BINARIES LDD LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_IMPLIB_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 0.9.12 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 0.9.12:";;
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   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
865                           binaries)
866
867 Optional Packages:
868   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870   --without-opengl        do not use OpenGL
871   --without-curses        do not use curses
872   --with-wine-tools=<dir> use Wine tools from directory <dir>
873   --with-x                use the X Window System
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CXX         C++ compiler command
883   CXXFLAGS    C++ compiler flags
884   CPP         C preprocessor
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <wine-devel@winehq.org>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
928 *)
929   case "$ac_dir" in
930   .) ac_abs_builddir=`pwd`;;
931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932   *) ac_abs_builddir=`pwd`/"$ac_dir";;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *)
938   case ${ac_top_builddir}. in
939   .) ac_abs_top_builddir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942   esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
946 *)
947   case $ac_srcdir in
948   .) ac_abs_srcdir=$ac_abs_builddir;;
949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951   esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *)
956   case $ac_top_srcdir in
957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960   esac;;
961 esac
962
963     cd $ac_dir
964     # Check for guested configure; otherwise get Cygnus style configure.
965     if test -f $ac_srcdir/configure.gnu; then
966       echo
967       $SHELL $ac_srcdir/configure.gnu  --help=recursive
968     elif test -f $ac_srcdir/configure; then
969       echo
970       $SHELL $ac_srcdir/configure  --help=recursive
971     elif test -f $ac_srcdir/configure.ac ||
972            test -f $ac_srcdir/configure.in; then
973       echo
974       $ac_configure --help
975     else
976       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977     fi
978     cd "$ac_popdir"
979   done
980 fi
981
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984   cat <<\_ACEOF
985 Wine configure 0.9.12
986 generated by GNU Autoconf 2.59
987
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992   exit 0
993 fi
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
998
999 It was created by Wine $as_me 0.9.12, which was
1000 generated by GNU Autoconf 2.59.  Invocation command line was
1001
1002   $ $0 $@
1003
1004 _ACEOF
1005 {
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1010
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1019
1020 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1021 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1024 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1025 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1026 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1027
1028 _ASUNAME
1029
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1032 do
1033   IFS=$as_save_IFS
1034   test -z "$as_dir" && as_dir=.
1035   echo "PATH: $as_dir"
1036 done
1037
1038 } >&5
1039
1040 cat >&5 <<_ACEOF
1041
1042
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1046
1047 _ACEOF
1048
1049
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1061 do
1062   for ac_arg
1063   do
1064     case $ac_arg in
1065     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067     | -silent | --silent | --silen | --sile | --sil)
1068       continue ;;
1069     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071     esac
1072     case $ac_pass in
1073     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074     2)
1075       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076       if test $ac_must_keep_next = true; then
1077         ac_must_keep_next=false # Got value, back to normal.
1078       else
1079         case $ac_arg in
1080           *=* | --config-cache | -C | -disable-* | --disable-* \
1081           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083           | -with-* | --with-* | -without-* | --without-* | --x)
1084             case "$ac_configure_args0 " in
1085               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086             esac
1087             ;;
1088           -* ) ac_must_keep_next=true ;;
1089         esac
1090       fi
1091       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092       # Get rid of the leading space.
1093       ac_sep=" "
1094       ;;
1095     esac
1096   done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log.  We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107   # Save into config.log some information that might help in debugging.
1108   {
1109     echo
1110
1111     cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116     echo
1117     # The following way of writing the cache mishandles newlines in values,
1118 {
1119   (set) 2>&1 |
1120     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121     *ac_space=\ *)
1122       sed -n \
1123         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125       ;;
1126     *)
1127       sed -n \
1128         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129       ;;
1130     esac;
1131 }
1132     echo
1133
1134     cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139     echo
1140     for ac_var in $ac_subst_vars
1141     do
1142       eval ac_val=$`echo $ac_var`
1143       echo "$ac_var='"'"'$ac_val'"'"'"
1144     done | sort
1145     echo
1146
1147     if test -n "$ac_subst_files"; then
1148       cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153       echo
1154       for ac_var in $ac_subst_files
1155       do
1156         eval ac_val=$`echo $ac_var`
1157         echo "$ac_var='"'"'$ac_val'"'"'"
1158       done | sort
1159       echo
1160     fi
1161
1162     if test -s confdefs.h; then
1163       cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168       echo
1169       sed "/^$/d" confdefs.h | sort
1170       echo
1171     fi
1172     test "$ac_signal" != 0 &&
1173       echo "$as_me: caught signal $ac_signal"
1174     echo "$as_me: exit $exit_status"
1175   } >&5
1176   rm -f core *.core &&
1177   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178     exit $exit_status
1179      ' 0
1180 for ac_signal in 1 2 13 15; do
1181   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1184
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1189
1190 # Predefined preprocessor variables.
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1215
1216
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220   if test "x$prefix" != xNONE; then
1221     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222   else
1223     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224   fi
1225 fi
1226 for ac_site_file in $CONFIG_SITE; do
1227   if test -r "$ac_site_file"; then
1228     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230     sed 's/^/| /' "$ac_site_file" >&5
1231     . "$ac_site_file"
1232   fi
1233 done
1234
1235 if test -r "$cache_file"; then
1236   # Some versions of bash will fail to source /dev/null (special
1237   # files actually), so we avoid doing that.
1238   if test -f "$cache_file"; then
1239     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241     case $cache_file in
1242       [\\/]* | ?:[\\/]* ) . $cache_file;;
1243       *)                      . ./$cache_file;;
1244     esac
1245   fi
1246 else
1247   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249   >$cache_file
1250 fi
1251
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258   eval ac_new_set=\$ac_env_${ac_var}_set
1259   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260   eval ac_new_val="\$ac_env_${ac_var}_value"
1261   case $ac_old_set,$ac_new_set in
1262     set,)
1263       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265       ac_cache_corrupted=: ;;
1266     ,set)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,);;
1271     *)
1272       if test "x$ac_old_val" != "x$ac_new_val"; then
1273         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1276 echo "$as_me:   former value:  $ac_old_val" >&2;}
1277         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1278 echo "$as_me:   current value: $ac_new_val" >&2;}
1279         ac_cache_corrupted=:
1280       fi;;
1281   esac
1282   # Pass precious variables to config.status.
1283   if test "$ac_new_set" = set; then
1284     case $ac_new_val in
1285     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287     *) ac_arg=$ac_var=$ac_new_val ;;
1288     esac
1289     case " $ac_configure_args " in
1290       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1291       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292     esac
1293   fi
1294 done
1295 if $ac_cache_corrupted; then
1296   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300    { (exit 1); exit 1; }; }
1301 fi
1302
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336           ac_config_headers="$ac_config_headers include/config.h"
1337
1338 ac_aux_dir=
1339 for ac_dir in tools $srcdir/tools; do
1340   if test -f $ac_dir/install-sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install-sh -c"
1343     break
1344   elif test -f $ac_dir/install.sh; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/install.sh -c"
1347     break
1348   elif test -f $ac_dir/shtool; then
1349     ac_aux_dir=$ac_dir
1350     ac_install_sh="$ac_aux_dir/shtool install -c"
1351     break
1352   fi
1353 done
1354 if test -z "$ac_aux_dir"; then
1355   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363
1364
1365 # Check whether --enable-win16 or --disable-win16 was given.
1366 if test "${enable_win16+set}" = set; then
1367   enableval="$enable_win16"
1368
1369 fi;
1370 # Check whether --enable-win64 or --disable-win64 was given.
1371 if test "${enable_win64+set}" = set; then
1372   enableval="$enable_win64"
1373
1374 fi;
1375
1376
1377 # Check whether --with-opengl or --without-opengl was given.
1378 if test "${with_opengl+set}" = set; then
1379   withval="$with_opengl"
1380
1381 fi;
1382
1383 # Check whether --with-curses or --without-curses was given.
1384 if test "${with_curses+set}" = set; then
1385   withval="$with_curses"
1386
1387 fi;
1388
1389 # Check whether --with-wine-tools or --without-wine-tools was given.
1390 if test "${with_wine_tools+set}" = set; then
1391   withval="$with_wine_tools"
1392
1393 fi;
1394
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399    { (exit 1); exit 1; }; }
1400
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408   ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412    { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427 echo "$as_me:$LINENO: checking host system type" >&5
1428 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1429 if test "${ac_cv_host+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   ac_cv_host_alias=$host_alias
1433 test -z "$ac_cv_host_alias" &&
1434   ac_cv_host_alias=$ac_cv_build_alias
1435 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1436   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1437 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1438    { (exit 1); exit 1; }; }
1439
1440 fi
1441 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1442 echo "${ECHO_T}$ac_cv_host" >&6
1443 host=$ac_cv_host
1444 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447
1448
1449 case $host in
1450   x86_64*linux*)
1451     if test "x$enable_win64" != "xyes"
1452     then
1453       test -n "$CC" || CC="gcc -m32"
1454       test -n "$LD" || LD="ld -m elf_i386"
1455       test -n "$AS" || AS="as --32"
1456       host_cpu="i386"
1457     fi
1458     ;;
1459 esac
1460
1461 case $host_cpu in
1462   *i[3456789]86*)
1463     if test "x$enable_win16" != "xno"
1464     then
1465       enable_win16="yes"
1466     fi
1467     ;;
1468 esac
1469
1470 WIN16_FILES="\$(WIN16_FILES)"
1471
1472 WIN16_INSTALL="\$(WIN16_INSTALL)"
1473
1474 if test "x$enable_win16" != "xyes"
1475 then
1476   WIN16_FILES=""
1477   WIN16_INSTALL=""
1478 fi
1479
1480
1481 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1482 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1483 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1484 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   cat >conftest.make <<\_ACEOF
1488 all:
1489         @echo 'ac_maketemp="$(MAKE)"'
1490 _ACEOF
1491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1492 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1493 if test -n "$ac_maketemp"; then
1494   eval ac_cv_prog_make_${ac_make}_set=yes
1495 else
1496   eval ac_cv_prog_make_${ac_make}_set=no
1497 fi
1498 rm -f conftest.make
1499 fi
1500 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1501   echo "$as_me:$LINENO: result: yes" >&5
1502 echo "${ECHO_T}yes" >&6
1503   SET_MAKE=
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507   SET_MAKE="MAKE=${MAKE-make}"
1508 fi
1509
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 if test -n "$ac_tool_prefix"; then
1516   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$CC"; then
1524   ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544   echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551 fi
1552 if test -z "$ac_cv_prog_CC"; then
1553   ac_ct_CC=$CC
1554   # Extract the first word of "gcc", so it can be a program name with args.
1555 set dummy gcc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$ac_ct_CC"; then
1562   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_ac_ct_CC="gcc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589   CC=$ac_ct_CC
1590 else
1591   CC="$ac_cv_prog_CC"
1592 fi
1593
1594 if test -z "$CC"; then
1595   if test -n "$ac_tool_prefix"; then
1596   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597 set dummy ${ac_tool_prefix}cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$CC"; then
1604   ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     ac_cv_prog_CC="${ac_tool_prefix}cc"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624   echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631 fi
1632 if test -z "$ac_cv_prog_CC"; then
1633   ac_ct_CC=$CC
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$ac_ct_CC"; then
1642   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   for ac_exec_ext in '' $ac_executable_extensions; do
1650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651     ac_cv_prog_ac_ct_CC="cc"
1652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653     break 2
1654   fi
1655 done
1656 done
1657
1658 fi
1659 fi
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665   echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1667 fi
1668
1669   CC=$ac_ct_CC
1670 else
1671   CC="$ac_cv_prog_CC"
1672 fi
1673
1674 fi
1675 if test -z "$CC"; then
1676   # Extract the first word of "cc", so it can be a program name with args.
1677 set dummy cc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   if test -n "$CC"; then
1684   ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686   ac_prog_rejected=no
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1695        ac_prog_rejected=yes
1696        continue
1697      fi
1698     ac_cv_prog_CC="cc"
1699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700     break 2
1701   fi
1702 done
1703 done
1704
1705 if test $ac_prog_rejected = yes; then
1706   # We found a bogon in the path, so make sure we never use it.
1707   set dummy $ac_cv_prog_CC
1708   shift
1709   if test $# != 0; then
1710     # We chose a different compiler from the bogus one.
1711     # However, it has the same basename, so the bogon will be chosen
1712     # first if we set CC to just the basename; use the full file name.
1713     shift
1714     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1715   fi
1716 fi
1717 fi
1718 fi
1719 CC=$ac_cv_prog_CC
1720 if test -n "$CC"; then
1721   echo "$as_me:$LINENO: result: $CC" >&5
1722 echo "${ECHO_T}$CC" >&6
1723 else
1724   echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1726 fi
1727
1728 fi
1729 if test -z "$CC"; then
1730   if test -n "$ac_tool_prefix"; then
1731   for ac_prog in cl
1732   do
1733     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$CC"; then
1741   ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761   echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768     test -n "$CC" && break
1769   done
1770 fi
1771 if test -z "$CC"; then
1772   ac_ct_CC=$CC
1773   for ac_prog in cl
1774 do
1775   # Extract the first word of "$ac_prog", so it can be a program name with args.
1776 set dummy $ac_prog; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   if test -n "$ac_ct_CC"; then
1783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1787 do
1788   IFS=$as_save_IFS
1789   test -z "$as_dir" && as_dir=.
1790   for ac_exec_ext in '' $ac_executable_extensions; do
1791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792     ac_cv_prog_ac_ct_CC="$ac_prog"
1793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794     break 2
1795   fi
1796 done
1797 done
1798
1799 fi
1800 fi
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806   echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1808 fi
1809
1810   test -n "$ac_ct_CC" && break
1811 done
1812
1813   CC=$ac_ct_CC
1814 fi
1815
1816 fi
1817
1818
1819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1820 See \`config.log' for more details." >&5
1821 echo "$as_me: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&2;}
1823    { (exit 1); exit 1; }; }
1824
1825 # Provide some information about the compiler.
1826 echo "$as_me:$LINENO:" \
1827      "checking for C compiler version" >&5
1828 ac_compiler=`set X $ac_compile; echo $2`
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1830   (eval $ac_compiler --version </dev/null >&5) 2>&5
1831   ac_status=$?
1832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833   (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1835   (eval $ac_compiler -v </dev/null >&5) 2>&5
1836   ac_status=$?
1837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838   (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1840   (eval $ac_compiler -V </dev/null >&5) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }
1844
1845 cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h.  */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h.  */
1851
1852 int
1853 main ()
1854 {
1855
1856   ;
1857   return 0;
1858 }
1859 _ACEOF
1860 ac_clean_files_save=$ac_clean_files
1861 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1862 # Try to create an executable without -o first, disregard a.out.
1863 # It will help us diagnose broken compilers, and finding out an intuition
1864 # of exeext.
1865 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1866 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1867 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1869   (eval $ac_link_default) 2>&5
1870   ac_status=$?
1871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872   (exit $ac_status); }; then
1873   # Find the output, starting from the most likely.  This scheme is
1874 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875 # resort.
1876
1877 # Be careful to initialize this variable, since it used to be cached.
1878 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1879 ac_cv_exeext=
1880 # b.out is created by i960 compilers.
1881 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1882 do
1883   test -f "$ac_file" || continue
1884   case $ac_file in
1885     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1886         ;;
1887     conftest.$ac_ext )
1888         # This is the source file.
1889         ;;
1890     [ab].out )
1891         # We found the default executable, but exeext='' is most
1892         # certainly right.
1893         break;;
1894     *.* )
1895         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896         # FIXME: I believe we export ac_cv_exeext for Libtool,
1897         # but it would be cool to find out if it's true.  Does anybody
1898         # maintain Libtool? --akim.
1899         export ac_cv_exeext
1900         break;;
1901     * )
1902         break;;
1903   esac
1904 done
1905 else
1906   echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: C compiler cannot create executables
1912 See \`config.log' for more details." >&2;}
1913    { (exit 77); exit 77; }; }
1914 fi
1915
1916 ac_exeext=$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_file" >&5
1918 echo "${ECHO_T}$ac_file" >&6
1919
1920 # Check the compiler produces executables we can run.  If not, either
1921 # the compiler is broken, or we cross compile.
1922 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1923 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1924 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1925 # If not cross compiling, check that we can run a simple program.
1926 if test "$cross_compiling" != yes; then
1927   if { ac_try='./$ac_file'
1928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929   (eval $ac_try) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }; }; then
1933     cross_compiling=no
1934   else
1935     if test "$cross_compiling" = maybe; then
1936         cross_compiling=yes
1937     else
1938         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1939 If you meant to cross compile, use \`--host'.
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&2;}
1944    { (exit 1); exit 1; }; }
1945     fi
1946   fi
1947 fi
1948 echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6
1950
1951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1952 ac_clean_files=$ac_clean_files_save
1953 # Check the compiler produces executables we can run.  If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1957 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1958 echo "${ECHO_T}$cross_compiling" >&6
1959
1960 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1963   (eval $ac_link) 2>&5
1964   ac_status=$?
1965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966   (exit $ac_status); }; then
1967   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1968 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1969 # work properly (i.e., refer to `conftest.exe'), while it won't with
1970 # `rm'.
1971 for ac_file in conftest.exe conftest conftest.*; do
1972   test -f "$ac_file" || continue
1973   case $ac_file in
1974     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1976           export ac_cv_exeext
1977           break;;
1978     * ) break;;
1979   esac
1980 done
1981 else
1982   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1985 See \`config.log' for more details." >&2;}
1986    { (exit 1); exit 1; }; }
1987 fi
1988
1989 rm -f conftest$ac_cv_exeext
1990 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1991 echo "${ECHO_T}$ac_cv_exeext" >&6
1992
1993 rm -f conftest.$ac_ext
1994 EXEEXT=$ac_cv_exeext
1995 ac_exeext=$EXEEXT
1996 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1997 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1998 if test "${ac_cv_objext+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h.  */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h.  */
2007
2008 int
2009 main ()
2010 {
2011
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 rm -f conftest.o conftest.obj
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018   (eval $ac_compile) 2>&5
2019   ac_status=$?
2020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021   (exit $ac_status); }; then
2022   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2023   case $ac_file in
2024     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2025     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2026        break;;
2027   esac
2028 done
2029 else
2030   echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2036 See \`config.log' for more details." >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2041 fi
2042 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2043 echo "${ECHO_T}$ac_cv_objext" >&6
2044 OBJEXT=$ac_cv_objext
2045 ac_objext=$OBJEXT
2046 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   cat >conftest.$ac_ext <<_ACEOF
2052 /* confdefs.h.  */
2053 _ACEOF
2054 cat confdefs.h >>conftest.$ac_ext
2055 cat >>conftest.$ac_ext <<_ACEOF
2056 /* end confdefs.h.  */
2057
2058 int
2059 main ()
2060 {
2061 #ifndef __GNUC__
2062        choke me
2063 #endif
2064
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 rm -f conftest.$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071   (eval $ac_compile) 2>conftest.er1
2072   ac_status=$?
2073   grep -v '^ *+' conftest.er1 >conftest.err
2074   rm -f conftest.er1
2075   cat conftest.err >&5
2076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077   (exit $ac_status); } &&
2078          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080   (eval $ac_try) 2>&5
2081   ac_status=$?
2082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083   (exit $ac_status); }; } &&
2084          { ac_try='test -s conftest.$ac_objext'
2085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086   (eval $ac_try) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; }; then
2090   ac_compiler_gnu=yes
2091 else
2092   echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2094
2095 ac_compiler_gnu=no
2096 fi
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2099
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103 GCC=`test $ac_compiler_gnu = yes && echo yes`
2104 ac_test_CFLAGS=${CFLAGS+set}
2105 ac_save_CFLAGS=$CFLAGS
2106 CFLAGS="-g"
2107 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_g+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h.  */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h.  */
2118
2119 int
2120 main ()
2121 {
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129   (eval $ac_compile) 2>conftest.er1
2130   ac_status=$?
2131   grep -v '^ *+' conftest.er1 >conftest.err
2132   rm -f conftest.er1
2133   cat conftest.err >&5
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); } &&
2136          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138   (eval $ac_try) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; } &&
2142          { ac_try='test -s conftest.$ac_objext'
2143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144   (eval $ac_try) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }; }; then
2148   ac_cv_prog_cc_g=yes
2149 else
2150   echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 ac_cv_prog_cc_g=no
2154 fi
2155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2156 fi
2157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2158 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2159 if test "$ac_test_CFLAGS" = set; then
2160   CFLAGS=$ac_save_CFLAGS
2161 elif test $ac_cv_prog_cc_g = yes; then
2162   if test "$GCC" = yes; then
2163     CFLAGS="-g -O2"
2164   else
2165     CFLAGS="-g"
2166   fi
2167 else
2168   if test "$GCC" = yes; then
2169     CFLAGS="-O2"
2170   else
2171     CFLAGS=
2172   fi
2173 fi
2174 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2175 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   ac_cv_prog_cc_stdc=no
2180 ac_save_CC=$CC
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h.  */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h.  */
2187 #include <stdarg.h>
2188 #include <stdio.h>
2189 #include <sys/types.h>
2190 #include <sys/stat.h>
2191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2192 struct buf { int x; };
2193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194 static char *e (p, i)
2195      char **p;
2196      int i;
2197 {
2198   return p[i];
2199 }
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2201 {
2202   char *s;
2203   va_list v;
2204   va_start (v,p);
2205   s = g (p, va_arg (v,int));
2206   va_end (v);
2207   return s;
2208 }
2209
2210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2211    function prototypes and stuff, but not '\xHH' hex character constants.
2212    These don't provoke an error unfortunately, instead are silently treated
2213    as 'x'.  The following induces an error, until -std1 is added to get
2214    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2215    array size at least.  It's necessary to write '\x00'==0 to get something
2216    that's true only with -std1.  */
2217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2218
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2223 int argc;
2224 char **argv;
2225 int
2226 main ()
2227 {
2228 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 # Don't try gcc -ansi; that turns off useful extensions and
2234 # breaks some systems' header files.
2235 # AIX                   -qlanglvl=ansi
2236 # Ultrix and OSF/1      -std1
2237 # HP-UX 10.20 and later -Ae
2238 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2239 # SVR4                  -Xc -D__EXTENSIONS__
2240 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2241 do
2242   CC="$ac_save_CC $ac_arg"
2243   rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>conftest.er1
2246   ac_status=$?
2247   grep -v '^ *+' conftest.er1 >conftest.err
2248   rm -f conftest.er1
2249   cat conftest.err >&5
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); } &&
2252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254   (eval $ac_try) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); }; } &&
2258          { ac_try='test -s conftest.$ac_objext'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; }; then
2264   ac_cv_prog_cc_stdc=$ac_arg
2265 break
2266 else
2267   echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 fi
2271 rm -f conftest.err conftest.$ac_objext
2272 done
2273 rm -f conftest.$ac_ext conftest.$ac_objext
2274 CC=$ac_save_CC
2275
2276 fi
2277
2278 case "x$ac_cv_prog_cc_stdc" in
2279   x|xno)
2280     echo "$as_me:$LINENO: result: none needed" >&5
2281 echo "${ECHO_T}none needed" >&6 ;;
2282   *)
2283     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285     CC="$CC $ac_cv_prog_cc_stdc" ;;
2286 esac
2287
2288 # Some people use a C++ compiler to compile C.  Since we use `exit',
2289 # in C++ we need to declare it.  In case someone uses the same compiler
2290 # for both compiling C and C++ we need to have the C++ compiler decide
2291 # the declaration of exit, since it's the most demanding environment.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #ifndef __cplusplus
2294   choke me
2295 #endif
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>conftest.er1
2300   ac_status=$?
2301   grep -v '^ *+' conftest.er1 >conftest.err
2302   rm -f conftest.er1
2303   cat conftest.err >&5
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); } &&
2306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308   (eval $ac_try) 2>&5
2309   ac_status=$?
2310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311   (exit $ac_status); }; } &&
2312          { ac_try='test -s conftest.$ac_objext'
2313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314   (eval $ac_try) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }; }; then
2318   for ac_declaration in \
2319    '' \
2320    'extern "C" void std::exit (int) throw (); using std::exit;' \
2321    'extern "C" void std::exit (int); using std::exit;' \
2322    'extern "C" void exit (int) throw ();' \
2323    'extern "C" void exit (int);' \
2324    'void exit (int);'
2325 do
2326   cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332 $ac_declaration
2333 #include <stdlib.h>
2334 int
2335 main ()
2336 {
2337 exit (42);
2338   ;
2339   return 0;
2340 }
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344   (eval $ac_compile) 2>conftest.er1
2345   ac_status=$?
2346   grep -v '^ *+' conftest.er1 >conftest.err
2347   rm -f conftest.er1
2348   cat conftest.err >&5
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); } &&
2351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353   (eval $ac_try) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; } &&
2357          { ac_try='test -s conftest.$ac_objext'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; }; then
2363   :
2364 else
2365   echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 continue
2369 fi
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377 $ac_declaration
2378 int
2379 main ()
2380 {
2381 exit (42);
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; } &&
2401          { ac_try='test -s conftest.$ac_objext'
2402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403   (eval $ac_try) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; }; then
2407   break
2408 else
2409   echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 fi
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 rm -f conftest*
2416 if test -n "$ac_declaration"; then
2417   echo '#ifdef __cplusplus' >>confdefs.h
2418   echo $ac_declaration      >>confdefs.h
2419   echo '#endif'             >>confdefs.h
2420 fi
2421
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 fi
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
2434 ac_ext=cc
2435 ac_cpp='$CXXCPP $CPPFLAGS'
2436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2441   do
2442     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CXX+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   if test -n "$CXX"; then
2450   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457   for ac_exec_ext in '' $ac_executable_extensions; do
2458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464 done
2465
2466 fi
2467 fi
2468 CXX=$ac_cv_prog_CXX
2469 if test -n "$CXX"; then
2470   echo "$as_me:$LINENO: result: $CXX" >&5
2471 echo "${ECHO_T}$CXX" >&6
2472 else
2473   echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477     test -n "$CXX" && break
2478   done
2479 fi
2480 if test -z "$CXX"; then
2481   ac_ct_CXX=$CXX
2482   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2483 do
2484   # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$ac_ct_CXX"; then
2492   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501     ac_cv_prog_ac_ct_CXX="$ac_prog"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507
2508 fi
2509 fi
2510 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2511 if test -n "$ac_ct_CXX"; then
2512   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2513 echo "${ECHO_T}$ac_ct_CXX" >&6
2514 else
2515   echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2517 fi
2518
2519   test -n "$ac_ct_CXX" && break
2520 done
2521 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2522
2523   CXX=$ac_ct_CXX
2524 fi
2525
2526
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO:" \
2529      "checking for C++ compiler version" >&5
2530 ac_compiler=`set X $ac_compile; echo $2`
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2532   (eval $ac_compiler --version </dev/null >&5) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2537   (eval $ac_compiler -v </dev/null >&5) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2542   (eval $ac_compiler -V </dev/null >&5) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }
2546
2547 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2548 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2549 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2550   echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552   cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562 #ifndef __GNUC__
2563        choke me
2564 #endif
2565
2566   ;
2567   return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572   (eval $ac_compile) 2>conftest.er1
2573   ac_status=$?
2574   grep -v '^ *+' conftest.er1 >conftest.err
2575   rm -f conftest.er1
2576   cat conftest.err >&5
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); } &&
2579          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_compiler_gnu=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_compiler_gnu=no
2597 fi
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2600
2601 fi
2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CXXFLAGS=${CXXFLAGS+set}
2606 ac_save_CXXFLAGS=$CXXFLAGS
2607 CXXFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h.  */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h.  */
2619
2620 int
2621 main ()
2622 {
2623
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630   (eval $ac_compile) 2>conftest.er1
2631   ac_status=$?
2632   grep -v '^ *+' conftest.er1 >conftest.err
2633   rm -f conftest.er1
2634   cat conftest.err >&5
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } &&
2637          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; } &&
2643          { ac_try='test -s conftest.$ac_objext'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   ac_cv_prog_cxx_g=yes
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 ac_cv_prog_cxx_g=no
2655 fi
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660 if test "$ac_test_CXXFLAGS" = set; then
2661   CXXFLAGS=$ac_save_CXXFLAGS
2662 elif test $ac_cv_prog_cxx_g = yes; then
2663   if test "$GXX" = yes; then
2664     CXXFLAGS="-g -O2"
2665   else
2666     CXXFLAGS="-g"
2667   fi
2668 else
2669   if test "$GXX" = yes; then
2670     CXXFLAGS="-O2"
2671   else
2672     CXXFLAGS=
2673   fi
2674 fi
2675 for ac_declaration in \
2676    '' \
2677    'extern "C" void std::exit (int) throw (); using std::exit;' \
2678    'extern "C" void std::exit (int); using std::exit;' \
2679    'extern "C" void exit (int) throw ();' \
2680    'extern "C" void exit (int);' \
2681    'void exit (int);'
2682 do
2683   cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689 $ac_declaration
2690 #include <stdlib.h>
2691 int
2692 main ()
2693 {
2694 exit (42);
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701   (eval $ac_compile) 2>conftest.er1
2702   ac_status=$?
2703   grep -v '^ *+' conftest.er1 >conftest.err
2704   rm -f conftest.er1
2705   cat conftest.err >&5
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); } &&
2708          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; } &&
2714          { ac_try='test -s conftest.$ac_objext'
2715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; }; then
2720   :
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 continue
2726 fi
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728   cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h.  */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h.  */
2734 $ac_declaration
2735 int
2736 main ()
2737 {
2738 exit (42);
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745   (eval $ac_compile) 2>conftest.er1
2746   ac_status=$?
2747   grep -v '^ *+' conftest.er1 >conftest.err
2748   rm -f conftest.er1
2749   cat conftest.err >&5
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); } &&
2752          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; } &&
2758          { ac_try='test -s conftest.$ac_objext'
2759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }; }; then
2764   break
2765 else
2766   echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769 fi
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772 rm -f conftest*
2773 if test -n "$ac_declaration"; then
2774   echo '#ifdef __cplusplus' >>confdefs.h
2775   echo $ac_declaration      >>confdefs.h
2776   echo '#endif'             >>confdefs.h
2777 fi
2778
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785 if test -n "$ac_tool_prefix"; then
2786   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   if test -n "$CPPBIN"; then
2794   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801   for ac_exec_ext in '' $ac_executable_extensions; do
2802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808 done
2809
2810 fi
2811 fi
2812 CPPBIN=$ac_cv_prog_CPPBIN
2813 if test -n "$CPPBIN"; then
2814   echo "$as_me:$LINENO: result: $CPPBIN" >&5
2815 echo "${ECHO_T}$CPPBIN" >&6
2816 else
2817   echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2819 fi
2820
2821 fi
2822 if test -z "$ac_cv_prog_CPPBIN"; then
2823   ac_ct_CPPBIN=$CPPBIN
2824   # Extract the first word of "cpp", so it can be a program name with args.
2825 set dummy cpp; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   if test -n "$ac_ct_CPPBIN"; then
2832   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841     ac_cv_prog_ac_ct_CPPBIN="cpp"
2842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847
2848   test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2849 fi
2850 fi
2851 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2852 if test -n "$ac_ct_CPPBIN"; then
2853   echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2854 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2855 else
2856   echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2858 fi
2859
2860   CPPBIN=$ac_ct_CPPBIN
2861 else
2862   CPPBIN="$ac_cv_prog_CPPBIN"
2863 fi
2864
2865
2866 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2867 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2868 if test "${wine_cv_toolsdir+set}" = set; then
2869   echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871   if test -z "$with_wine_tools"; then
2872      if test "$cross_compiling" = "yes"; then
2873        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2874 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2875    { (exit 1); exit 1; }; }
2876      else
2877        wine_cv_toolsdir="\$(TOPOBJDIR)"
2878      fi
2879    elif test -d "$with_wine_tools/tools/winebuild"; then
2880      case $with_wine_tools in
2881        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2882        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2883      esac
2884    else
2885      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2886 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2887    { (exit 1); exit 1; }; }
2888    fi
2889 fi
2890 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2891 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2892 TOOLSDIR=$wine_cv_toolsdir
2893
2894
2895
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905   CPP=
2906 fi
2907 if test -z "$CPP"; then
2908   if test "${ac_cv_prog_CPP+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911       # Double quotes because CPP needs to be expanded
2912     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2913     do
2914       ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2916 do
2917   # Use a header file that comes with gcc, so configuring glibc
2918   # with a fresh cross-compiler works.
2919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920   # <limits.h> exists even on freestanding compilers.
2921   # On the NeXT, cc -E runs the code through the compiler's parser,
2922   # not just through cpp. "Syntax error" is here to catch this case.
2923   cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934                      Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } >/dev/null; then
2944   if test -s conftest.err; then
2945     ac_cpp_err=$ac_c_preproc_warn_flag
2946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   :
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959   # Broken: fails on valid input.
2960 continue
2961 fi
2962 rm -f conftest.err conftest.$ac_ext
2963
2964   # OK, works on sane cases.  Now check whether non-existent headers
2965   # can be detected and how.
2966   cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } >/dev/null; then
2982   if test -s conftest.err; then
2983     ac_cpp_err=$ac_c_preproc_warn_flag
2984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985   else
2986     ac_cpp_err=
2987   fi
2988 else
2989   ac_cpp_err=yes
2990 fi
2991 if test -z "$ac_cpp_err"; then
2992   # Broken: success on invalid input.
2993 continue
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998   # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3001 fi
3002 rm -f conftest.err conftest.$ac_ext
3003
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008   break
3009 fi
3010
3011     done
3012     ac_cv_prog_CPP=$CPP
3013
3014 fi
3015   CPP=$ac_cv_prog_CPP
3016 else
3017   ac_cv_prog_CPP=$CPP
3018 fi
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3023 do
3024   # Use a header file that comes with gcc, so configuring glibc
3025   # with a fresh cross-compiler works.
3026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027   # <limits.h> exists even on freestanding compilers.
3028   # On the NeXT, cc -E runs the code through the compiler's parser,
3029   # not just through cpp. "Syntax error" is here to catch this case.
3030   cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h.  */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h.  */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041                      Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } >/dev/null; then
3051   if test -s conftest.err; then
3052     ac_cpp_err=$ac_c_preproc_warn_flag
3053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054   else
3055     ac_cpp_err=
3056   fi
3057 else
3058   ac_cpp_err=yes
3059 fi
3060 if test -z "$ac_cpp_err"; then
3061   :
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066   # Broken: fails on valid input.
3067 continue
3068 fi
3069 rm -f conftest.err conftest.$ac_ext
3070
3071   # OK, works on sane cases.  Now check whether non-existent headers
3072   # can be detected and how.
3073   cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } >/dev/null; then
3089   if test -s conftest.err; then
3090     ac_cpp_err=$ac_c_preproc_warn_flag
3091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092   else
3093     ac_cpp_err=
3094   fi
3095 else
3096   ac_cpp_err=yes
3097 fi
3098 if test -z "$ac_cpp_err"; then
3099   # Broken: success on invalid input.
3100 continue
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105   # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3108 fi
3109 rm -f conftest.err conftest.$ac_ext
3110
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3115   :
3116 else
3117   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121    { (exit 1); exit 1; }; }
3122 fi
3123
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
3130
3131
3132 if test "x$ac_path_x_has_been_run" != xyes; then
3133   echo "$as_me:$LINENO: checking for X" >&5
3134 echo $ECHO_N "checking for X... $ECHO_C" >&6
3135
3136 ac_path_x_has_been_run=yes
3137
3138 # Check whether --with-x or --without-x was given.
3139 if test "${with_x+set}" = set; then
3140   withval="$with_x"
3141
3142 fi;
3143 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3144 if test "x$with_x" = xno; then
3145   # The user explicitly disabled X.
3146   have_x=disabled
3147 else
3148   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3149     # Both variables are already set.
3150     have_x=yes
3151   else
3152     if test "${ac_cv_have_x+set}" = set; then
3153   echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155   # One or both of the vars are not set, and there is no cached value.
3156 ac_x_includes=no ac_x_libraries=no
3157 rm -fr conftest.dir
3158 if mkdir conftest.dir; then
3159   cd conftest.dir
3160   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3161   cat >Imakefile <<'_ACEOF'
3162 acfindx:
3163         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3164 _ACEOF
3165   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3166     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3167     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3168     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3169     for ac_extension in a so sl; do
3170       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3171          test -f $ac_im_libdir/libX11.$ac_extension; then
3172         ac_im_usrlibdir=$ac_im_libdir; break
3173       fi
3174     done
3175     # Screen out bogus values from the imake configuration.  They are
3176     # bogus both because they are the default anyway, and because
3177     # using them would break gcc on systems where it needs fixed includes.
3178     case $ac_im_incroot in
3179         /usr/include) ;;
3180         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3181     esac
3182     case $ac_im_usrlibdir in
3183         /usr/lib | /lib) ;;
3184         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3185     esac
3186   fi
3187   cd ..
3188   rm -fr conftest.dir
3189 fi
3190
3191 # Standard set of common directories for X headers.
3192 # Check X11 before X11Rn because it is often a symlink to the current release.
3193 ac_x_header_dirs='
3194 /usr/X11/include
3195 /usr/X11R6/include
3196 /usr/X11R5/include
3197 /usr/X11R4/include
3198
3199 /usr/include/X11
3200 /usr/include/X11R6
3201 /usr/include/X11R5
3202 /usr/include/X11R4
3203
3204 /usr/local/X11/include
3205 /usr/local/X11R6/include
3206 /usr/local/X11R5/include
3207 /usr/local/X11R4/include
3208
3209 /usr/local/include/X11
3210 /usr/local/include/X11R6
3211 /usr/local/include/X11R5
3212 /usr/local/include/X11R4
3213
3214 /usr/X386/include
3215 /usr/x386/include
3216 /usr/XFree86/include/X11
3217
3218 /usr/include
3219 /usr/local/include
3220 /usr/unsupported/include
3221 /usr/athena/include
3222 /usr/local/x11r5/include
3223 /usr/lpp/Xamples/include
3224
3225 /usr/openwin/include
3226 /usr/openwin/share/include'
3227
3228 if test "$ac_x_includes" = no; then
3229   # Guess where to find include files, by looking for a specified header file.
3230   # First, try using that file with no special directory specified.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #include <X11/Xlib.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null; then
3247   if test -s conftest.err; then
3248     ac_cpp_err=$ac_c_preproc_warn_flag
3249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250   else
3251     ac_cpp_err=
3252   fi
3253 else
3254   ac_cpp_err=yes
3255 fi
3256 if test -z "$ac_cpp_err"; then
3257   # We can compile using X headers with no special include directory.
3258 ac_x_includes=
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   for ac_dir in $ac_x_header_dirs; do
3264   if test -r "$ac_dir/X11/Xlib.h"; then
3265     ac_x_includes=$ac_dir
3266     break
3267   fi
3268 done
3269 fi
3270 rm -f conftest.err conftest.$ac_ext
3271 fi # $ac_x_includes = no
3272
3273 if test "$ac_x_libraries" = no; then
3274   # Check for the libraries.
3275   # See if we find them without any special options.
3276   # Don't add to $LIBS permanently.
3277   ac_save_LIBS=$LIBS
3278   LIBS="-lX11 $LIBS"
3279   cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285 #include <X11/Xlib.h>
3286 int
3287 main ()
3288 {
3289 XrmInitialize ()
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.$ac_objext conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296   (eval $ac_link) 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } &&
3303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305   (eval $ac_try) 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; } &&
3309          { ac_try='test -s conftest$ac_exeext'
3310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311   (eval $ac_try) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; }; then
3315   LIBS=$ac_save_LIBS
3316 # We can link X programs with no special library path.
3317 ac_x_libraries=
3318 else
3319   echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 LIBS=$ac_save_LIBS
3323 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3324 do
3325   # Don't even attempt the hair of trying to link an X program!
3326   for ac_extension in a so sl; do
3327     if test -r $ac_dir/libX11.$ac_extension; then
3328       ac_x_libraries=$ac_dir
3329       break 2
3330     fi
3331   done
3332 done
3333 fi
3334 rm -f conftest.err conftest.$ac_objext \
3335       conftest$ac_exeext conftest.$ac_ext
3336 fi # $ac_x_libraries = no
3337
3338 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3339   # Didn't find X anywhere.  Cache the known absence of X.
3340   ac_cv_have_x="have_x=no"
3341 else
3342   # Record where we found X for the cache.
3343   ac_cv_have_x="have_x=yes \
3344                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3345 fi
3346 fi
3347
3348   fi
3349   eval "$ac_cv_have_x"
3350 fi # $with_x != no
3351
3352 if test "$have_x" != yes; then
3353   echo "$as_me:$LINENO: result: $have_x" >&5
3354 echo "${ECHO_T}$have_x" >&6
3355   no_x=yes
3356 else
3357   # If each of the values was on the command line, it overrides each guess.
3358   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3359   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3360   # Update the cache value to reflect the command line values.
3361   ac_cv_have_x="have_x=yes \
3362                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3363   # It might be that x_includes is empty (headers are found in the
3364   # standard search path. Then output the corresponding message
3365   ac_out_x_includes=$x_includes
3366   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3367   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3368 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3369 fi
3370
3371 fi
3372 if test "$no_x" = yes; then
3373   # Not all programs may use this symbol, but it does not hurt to define it.
3374
3375 cat >>confdefs.h <<\_ACEOF
3376 #define X_DISPLAY_MISSING 1
3377 _ACEOF
3378
3379   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3380 else
3381   if test -n "$x_includes"; then
3382     X_CFLAGS="$X_CFLAGS -I$x_includes"
3383   fi
3384
3385   # It would also be nice to do this for all -L options, not just this one.
3386   if test -n "$x_libraries"; then
3387     X_LIBS="$X_LIBS -L$x_libraries"
3388     # For Solaris; some versions of Sun CC require a space after -R and
3389     # others require no space.  Words are not sufficient . . . .
3390     case `(uname -sr) 2>/dev/null` in
3391     "SunOS 5"*)
3392       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3393 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3394       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3395       cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401
3402 int
3403 main ()
3404 {
3405
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412   (eval $ac_link) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; } &&
3425          { ac_try='test -s conftest$ac_exeext'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   ac_R_nospace=yes
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 ac_R_nospace=no
3437 fi
3438 rm -f conftest.err conftest.$ac_objext \
3439       conftest$ac_exeext conftest.$ac_ext
3440       if test $ac_R_nospace = yes; then
3441         echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443         X_LIBS="$X_LIBS -R$x_libraries"
3444       else
3445         LIBS="$ac_xsave_LIBS -R $x_libraries"
3446         cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452
3453 int
3454 main ()
3455 {
3456
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.$ac_objext conftest$ac_exeext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3463   (eval $ac_link) 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } &&
3470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472   (eval $ac_try) 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; } &&
3476          { ac_try='test -s conftest$ac_exeext'
3477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478   (eval $ac_try) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }; }; then
3482   ac_R_space=yes
3483 else
3484   echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 ac_R_space=no
3488 fi
3489 rm -f conftest.err conftest.$ac_objext \
3490       conftest$ac_exeext conftest.$ac_ext
3491         if test $ac_R_space = yes; then
3492           echo "$as_me:$LINENO: result: yes" >&5
3493 echo "${ECHO_T}yes" >&6
3494           X_LIBS="$X_LIBS -R $x_libraries"
3495         else
3496           echo "$as_me:$LINENO: result: neither works" >&5
3497 echo "${ECHO_T}neither works" >&6
3498         fi
3499       fi
3500       LIBS=$ac_xsave_LIBS
3501     esac
3502   fi
3503
3504   # Check for system-dependent libraries X programs must link with.
3505   # Do this before checking for the system-independent R6 libraries
3506   # (-lICE), since we may need -lsocket or whatever for X linking.
3507
3508   if test "$ISC" = yes; then
3509     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3510   else
3511     # Martyn Johnson says this is needed for Ultrix, if the X
3512     # libraries were built with DECnet support.  And Karl Berry says
3513     # the Alpha needs dnet_stub (dnet does not exist).
3514     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3515     cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h.  */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h.  */
3521
3522 /* Override any gcc2 internal prototype to avoid an error.  */
3523 #ifdef __cplusplus
3524 extern "C"
3525 #endif
3526 /* We use char because int might match the return type of a gcc2
3527    builtin and then its argument prototype would still apply.  */
3528 char XOpenDisplay ();
3529 int
3530 main ()
3531 {
3532 XOpenDisplay ();
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext conftest$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539   (eval $ac_link) 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; } &&
3552          { ac_try='test -s conftest$ac_exeext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   :
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3564 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3565 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   ac_check_lib_save_LIBS=$LIBS
3569 LIBS="-ldnet  $LIBS"
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576
3577 /* Override any gcc2 internal prototype to avoid an error.  */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 /* We use char because int might match the return type of a gcc2
3582    builtin and then its argument prototype would still apply.  */
3583 char dnet_ntoa ();
3584 int
3585 main ()
3586 {
3587 dnet_ntoa ();
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 rm -f conftest.$ac_objext conftest$ac_exeext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594   (eval $ac_link) 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } &&
3601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603   (eval $ac_try) 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; } &&
3607          { ac_try='test -s conftest$ac_exeext'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; }; then
3613   ac_cv_lib_dnet_dnet_ntoa=yes
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 ac_cv_lib_dnet_dnet_ntoa=no
3619 fi
3620 rm -f conftest.err conftest.$ac_objext \
3621       conftest$ac_exeext conftest.$ac_ext
3622 LIBS=$ac_check_lib_save_LIBS
3623 fi
3624 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3625 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3626 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3627   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3628 fi
3629
3630     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3631       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3632 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3633 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   ac_check_lib_save_LIBS=$LIBS
3637 LIBS="-ldnet_stub  $LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644
3645 /* Override any gcc2 internal prototype to avoid an error.  */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 /* We use char because int might match the return type of a gcc2
3650    builtin and then its argument prototype would still apply.  */
3651 char dnet_ntoa ();
3652 int
3653 main ()
3654 {
3655 dnet_ntoa ();
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662   (eval $ac_link) 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; } &&
3675          { ac_try='test -s conftest$ac_exeext'
3676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677   (eval $ac_try) 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; }; then
3681   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3682 else
3683   echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 ac_cv_lib_dnet_stub_dnet_ntoa=no
3687 fi
3688 rm -f conftest.err conftest.$ac_objext \
3689       conftest$ac_exeext conftest.$ac_ext
3690 LIBS=$ac_check_lib_save_LIBS
3691 fi
3692 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3693 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3694 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3695   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3696 fi
3697
3698     fi
3699 fi
3700 rm -f conftest.err conftest.$ac_objext \
3701       conftest$ac_exeext conftest.$ac_ext
3702     LIBS="$ac_xsave_LIBS"
3703
3704     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3705     # to get the SysV transport functions.
3706     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3707     # needs -lnsl.
3708     # The nsl library prevents programs from opening the X display
3709     # on Irix 5.2, according to T.E. Dickey.
3710     # The functions gethostbyname, getservbyname, and inet_addr are
3711     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3712     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3713 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3714 if test "${ac_cv_func_gethostbyname+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h.  */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h.  */
3723 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3725 #define gethostbyname innocuous_gethostbyname
3726
3727 /* System header to define __stub macros and hopefully few prototypes,
3728     which can conflict with char gethostbyname (); below.
3729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730     <limits.h> exists even on freestanding compilers.  */
3731
3732 #ifdef __STDC__
3733 # include <limits.h>
3734 #else
3735 # include <assert.h>
3736 #endif
3737
3738 #undef gethostbyname
3739
3740 /* Override any gcc2 internal prototype to avoid an error.  */
3741 #ifdef __cplusplus
3742 extern "C"
3743 {
3744 #endif
3745 /* We use char because int might match the return type of a gcc2
3746    builtin and then its argument prototype would still apply.  */
3747 char gethostbyname ();
3748 /* The GNU C library defines this for functions which it implements
3749     to always fail with ENOSYS.  Some functions are actually named
3750     something starting with __ and the normal name is an alias.  */
3751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3752 choke me
3753 #else
3754 char (*f) () = gethostbyname;
3755 #endif
3756 #ifdef __cplusplus
3757 }
3758 #endif
3759
3760 int
3761 main ()
3762 {
3763 return f != gethostbyname;
3764   ;
3765   return 0;
3766 }
3767 _ACEOF
3768 rm -f conftest.$ac_objext conftest$ac_exeext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770   (eval $ac_link) 2>conftest.er1
3771   ac_status=$?
3772   grep -v '^ *+' conftest.er1 >conftest.err
3773   rm -f conftest.er1
3774   cat conftest.err >&5
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } &&
3777          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest$ac_exeext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   ac_cv_func_gethostbyname=yes
3790 else
3791   echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 ac_cv_func_gethostbyname=no
3795 fi
3796 rm -f conftest.err conftest.$ac_objext \
3797       conftest$ac_exeext conftest.$ac_ext
3798 fi
3799 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3800 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3801
3802     if test $ac_cv_func_gethostbyname = no; then
3803       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3804 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3805 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   ac_check_lib_save_LIBS=$LIBS
3809 LIBS="-lnsl  $LIBS"
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816
3817 /* Override any gcc2 internal prototype to avoid an error.  */
3818 #ifdef __cplusplus
3819 extern "C"
3820 #endif
3821 /* We use char because int might match the return type of a gcc2
3822    builtin and then its argument prototype would still apply.  */
3823 char gethostbyname ();
3824 int
3825 main ()
3826 {
3827 gethostbyname ();
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834   (eval $ac_link) 2>conftest.er1
3835   ac_status=$?
3836   grep -v '^ *+' conftest.er1 >conftest.err
3837   rm -f conftest.er1
3838   cat conftest.err >&5
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); } &&
3841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843   (eval $ac_try) 2>&5
3844   ac_status=$?
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); }; } &&
3847          { ac_try='test -s conftest$ac_exeext'
3848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849   (eval $ac_try) 2>&5
3850   ac_status=$?
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); }; }; then
3853   ac_cv_lib_nsl_gethostbyname=yes
3854 else
3855   echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858 ac_cv_lib_nsl_gethostbyname=no
3859 fi
3860 rm -f conftest.err conftest.$ac_objext \
3861       conftest$ac_exeext conftest.$ac_ext
3862 LIBS=$ac_check_lib_save_LIBS
3863 fi
3864 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3866 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3867   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3868 fi
3869
3870       if test $ac_cv_lib_nsl_gethostbyname = no; then
3871         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3872 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3873 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   ac_check_lib_save_LIBS=$LIBS
3877 LIBS="-lbsd  $LIBS"
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884
3885 /* Override any gcc2 internal prototype to avoid an error.  */
3886 #ifdef __cplusplus
3887 extern "C"
3888 #endif
3889 /* We use char because int might match the return type of a gcc2
3890    builtin and then its argument prototype would still apply.  */
3891 char gethostbyname ();
3892 int
3893 main ()
3894 {
3895 gethostbyname ();
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902   (eval $ac_link) 2>conftest.er1
3903   ac_status=$?
3904   grep -v '^ *+' conftest.er1 >conftest.err
3905   rm -f conftest.er1
3906   cat conftest.err >&5
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); } &&
3909          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911   (eval $ac_try) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); }; } &&
3915          { ac_try='test -s conftest$ac_exeext'
3916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917   (eval $ac_try) 2>&5
3918   ac_status=$?
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); }; }; then
3921   ac_cv_lib_bsd_gethostbyname=yes
3922 else
3923   echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 ac_cv_lib_bsd_gethostbyname=no
3927 fi
3928 rm -f conftest.err conftest.$ac_objext \
3929       conftest$ac_exeext conftest.$ac_ext
3930 LIBS=$ac_check_lib_save_LIBS
3931 fi
3932 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3933 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3934 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3935   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3936 fi
3937
3938       fi
3939     fi
3940
3941     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3942     # socket/setsockopt and other routines are undefined under SCO ODT
3943     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3944     # on later versions), says Simon Leinen: it contains gethostby*
3945     # variants that don't use the name server (or something).  -lsocket
3946     # must be given before -lnsl if both are needed.  We assume that
3947     # if connect needs -lnsl, so does gethostbyname.
3948     echo "$as_me:$LINENO: checking for connect" >&5
3949 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3950 if test "${ac_cv_func_connect+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h.  */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h.  */
3959 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3961 #define connect innocuous_connect
3962
3963 /* System header to define __stub macros and hopefully few prototypes,
3964     which can conflict with char connect (); below.
3965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966     <limits.h> exists even on freestanding compilers.  */
3967
3968 #ifdef __STDC__
3969 # include <limits.h>
3970 #else
3971 # include <assert.h>
3972 #endif
3973
3974 #undef connect
3975
3976 /* Override any gcc2 internal prototype to avoid an error.  */
3977 #ifdef __cplusplus
3978 extern "C"
3979 {
3980 #endif
3981 /* We use char because int might match the return type of a gcc2
3982    builtin and then its argument prototype would still apply.  */
3983 char connect ();
3984 /* The GNU C library defines this for functions which it implements
3985     to always fail with ENOSYS.  Some functions are actually named
3986     something starting with __ and the normal name is an alias.  */
3987 #if defined (__stub_connect) || defined (__stub___connect)
3988 choke me
3989 #else
3990 char (*f) () = connect;
3991 #endif
3992 #ifdef __cplusplus
3993 }
3994 #endif
3995
3996 int
3997 main ()
3998 {
3999 return f != connect;
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006   (eval $ac_link) 2>conftest.er1
4007   ac_status=$?
4008   grep -v '^ *+' conftest.er1 >conftest.err
4009   rm -f conftest.er1
4010   cat conftest.err >&5
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } &&
4013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015   (eval $ac_try) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }; } &&
4019          { ac_try='test -s conftest$ac_exeext'
4020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021   (eval $ac_try) 2>&5
4022   ac_status=$?
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); }; }; then
4025   ac_cv_func_connect=yes
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 ac_cv_func_connect=no
4031 fi
4032 rm -f conftest.err conftest.$ac_objext \
4033       conftest$ac_exeext conftest.$ac_ext
4034 fi
4035 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4036 echo "${ECHO_T}$ac_cv_func_connect" >&6
4037
4038     if test $ac_cv_func_connect = no; then
4039       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4040 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4041 if test "${ac_cv_lib_socket_connect+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   ac_check_lib_save_LIBS=$LIBS
4045 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052
4053 /* Override any gcc2 internal prototype to avoid an error.  */
4054 #ifdef __cplusplus
4055 extern "C"
4056 #endif
4057 /* We use char because int might match the return type of a gcc2
4058    builtin and then its argument prototype would still apply.  */
4059 char connect ();
4060 int
4061 main ()
4062 {
4063 connect ();
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest.$ac_objext conftest$ac_exeext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070   (eval $ac_link) 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } &&
4077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; } &&
4083          { ac_try='test -s conftest$ac_exeext'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; }; then
4089   ac_cv_lib_socket_connect=yes
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 ac_cv_lib_socket_connect=no
4095 fi
4096 rm -f conftest.err conftest.$ac_objext \
4097       conftest$ac_exeext conftest.$ac_ext
4098 LIBS=$ac_check_lib_save_LIBS
4099 fi
4100 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4101 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4102 if test $ac_cv_lib_socket_connect = yes; then
4103   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4104 fi
4105
4106     fi
4107
4108     # Guillermo Gomez says -lposix is necessary on A/UX.
4109     echo "$as_me:$LINENO: checking for remove" >&5
4110 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4111 if test "${ac_cv_func_remove+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4122 #define remove innocuous_remove
4123
4124 /* System header to define __stub macros and hopefully few prototypes,
4125     which can conflict with char remove (); below.
4126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127     <limits.h> exists even on freestanding compilers.  */
4128
4129 #ifdef __STDC__
4130 # include <limits.h>
4131 #else
4132 # include <assert.h>
4133 #endif
4134
4135 #undef remove
4136
4137 /* Override any gcc2 internal prototype to avoid an error.  */
4138 #ifdef __cplusplus
4139 extern "C"
4140 {
4141 #endif
4142 /* We use char because int might match the return type of a gcc2
4143    builtin and then its argument prototype would still apply.  */
4144 char remove ();
4145 /* The GNU C library defines this for functions which it implements
4146     to always fail with ENOSYS.  Some functions are actually named
4147     something starting with __ and the normal name is an alias.  */
4148 #if defined (__stub_remove) || defined (__stub___remove)
4149 choke me
4150 #else
4151 char (*f) () = remove;
4152 #endif
4153 #ifdef __cplusplus
4154 }
4155 #endif
4156
4157 int
4158 main ()
4159 {
4160 return f != remove;
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167   (eval $ac_link) 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } &&
4174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176   (eval $ac_try) 2>&5
4177   ac_status=$?
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); }; } &&
4180          { ac_try='test -s conftest$ac_exeext'
4181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182   (eval $ac_try) 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; }; then
4186   ac_cv_func_remove=yes
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 ac_cv_func_remove=no
4192 fi
4193 rm -f conftest.err conftest.$ac_objext \
4194       conftest$ac_exeext conftest.$ac_ext
4195 fi
4196 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4197 echo "${ECHO_T}$ac_cv_func_remove" >&6
4198
4199     if test $ac_cv_func_remove = no; then
4200       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4201 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4202 if test "${ac_cv_lib_posix_remove+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   ac_check_lib_save_LIBS=$LIBS
4206 LIBS="-lposix  $LIBS"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213
4214 /* Override any gcc2 internal prototype to avoid an error.  */
4215 #ifdef __cplusplus
4216 extern "C"
4217 #endif
4218 /* We use char because int might match the return type of a gcc2
4219    builtin and then its argument prototype would still apply.  */
4220 char remove ();
4221 int
4222 main ()
4223 {
4224 remove ();
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231   (eval $ac_link) 2>conftest.er1
4232   ac_status=$?
4233   grep -v '^ *+' conftest.er1 >conftest.err
4234   rm -f conftest.er1
4235   cat conftest.err >&5
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } &&
4238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; } &&
4244          { ac_try='test -s conftest$ac_exeext'
4245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246   (eval $ac_try) 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; }; then
4250   ac_cv_lib_posix_remove=yes
4251 else
4252   echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 ac_cv_lib_posix_remove=no
4256 fi
4257 rm -f conftest.err conftest.$ac_objext \
4258       conftest$ac_exeext conftest.$ac_ext
4259 LIBS=$ac_check_lib_save_LIBS
4260 fi
4261 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4262 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4263 if test $ac_cv_lib_posix_remove = yes; then
4264   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4265 fi
4266
4267     fi
4268
4269     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4270     echo "$as_me:$LINENO: checking for shmat" >&5
4271 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4272 if test "${ac_cv_func_shmat+set}" = set; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275   cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4283 #define shmat innocuous_shmat
4284
4285 /* System header to define __stub macros and hopefully few prototypes,
4286     which can conflict with char shmat (); below.
4287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288     <limits.h> exists even on freestanding compilers.  */
4289
4290 #ifdef __STDC__
4291 # include <limits.h>
4292 #else
4293 # include <assert.h>
4294 #endif
4295
4296 #undef shmat
4297
4298 /* Override any gcc2 internal prototype to avoid an error.  */
4299 #ifdef __cplusplus
4300 extern "C"
4301 {
4302 #endif
4303 /* We use char because int might match the return type of a gcc2
4304    builtin and then its argument prototype would still apply.  */
4305 char shmat ();
4306 /* The GNU C library defines this for functions which it implements
4307     to always fail with ENOSYS.  Some functions are actually named
4308     something starting with __ and the normal name is an alias.  */
4309 #if defined (__stub_shmat) || defined (__stub___shmat)
4310 choke me
4311 #else
4312 char (*f) () = shmat;
4313 #endif
4314 #ifdef __cplusplus
4315 }
4316 #endif
4317
4318 int
4319 main ()
4320 {
4321 return f != shmat;
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328   (eval $ac_link) 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } &&
4335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; } &&
4341          { ac_try='test -s conftest$ac_exeext'
4342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343   (eval $ac_try) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   ac_cv_func_shmat=yes
4348 else
4349   echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 ac_cv_func_shmat=no
4353 fi
4354 rm -f conftest.err conftest.$ac_objext \
4355       conftest$ac_exeext conftest.$ac_ext
4356 fi
4357 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4358 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4359
4360     if test $ac_cv_func_shmat = no; then
4361       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4362 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4363 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   ac_check_lib_save_LIBS=$LIBS
4367 LIBS="-lipc  $LIBS"
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374
4375 /* Override any gcc2 internal prototype to avoid an error.  */
4376 #ifdef __cplusplus
4377 extern "C"
4378 #endif
4379 /* We use char because int might match the return type of a gcc2
4380    builtin and then its argument prototype would still apply.  */
4381 char shmat ();
4382 int
4383 main ()
4384 {
4385 shmat ();
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392   (eval $ac_link) 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } &&
4399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401   (eval $ac_try) 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; } &&
4405          { ac_try='test -s conftest$ac_exeext'
4406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407   (eval $ac_try) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; }; then
4411   ac_cv_lib_ipc_shmat=yes
4412 else
4413   echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ac_cv_lib_ipc_shmat=no
4417 fi
4418 rm -f conftest.err conftest.$ac_objext \
4419       conftest$ac_exeext conftest.$ac_ext
4420 LIBS=$ac_check_lib_save_LIBS
4421 fi
4422 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4423 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4424 if test $ac_cv_lib_ipc_shmat = yes; then
4425   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4426 fi
4427
4428     fi
4429   fi
4430
4431   # Check for libraries that X11R6 Xt/Xaw programs need.
4432   ac_save_LDFLAGS=$LDFLAGS
4433   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4434   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4435   # check for ICE first), but we must link in the order -lSM -lICE or
4436   # we get undefined symbols.  So assume we have SM if we have ICE.
4437   # These have to be linked with before -lX11, unlike the other
4438   # libraries we check for below, so use a different variable.
4439   # John Interrante, Karl Berry
4440   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4441 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4442 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   ac_check_lib_save_LIBS=$LIBS
4446 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453
4454 /* Override any gcc2 internal prototype to avoid an error.  */
4455 #ifdef __cplusplus
4456 extern "C"
4457 #endif
4458 /* We use char because int might match the return type of a gcc2
4459    builtin and then its argument prototype would still apply.  */
4460 char IceConnectionNumber ();
4461 int
4462 main ()
4463 {
4464 IceConnectionNumber ();
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 rm -f conftest.$ac_objext conftest$ac_exeext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4471   (eval $ac_link) 2>conftest.er1
4472   ac_status=$?
4473   grep -v '^ *+' conftest.er1 >conftest.err
4474   rm -f conftest.er1
4475   cat conftest.err >&5
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); } &&
4478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; } &&
4484          { ac_try='test -s conftest$ac_exeext'
4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486   (eval $ac_try) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   ac_cv_lib_ICE_IceConnectionNumber=yes
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 ac_cv_lib_ICE_IceConnectionNumber=no
4496 fi
4497 rm -f conftest.err conftest.$ac_objext \
4498       conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4500 fi
4501 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4502 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4503 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4504   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4505 fi
4506
4507   LDFLAGS=$ac_save_LDFLAGS
4508
4509 fi
4510
4511 for ac_prog in flex lex
4512 do
4513   # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_prog_LEX+set}" = set; then
4518   echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520   if test -n "$LEX"; then
4521   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528   for ac_exec_ext in '' $ac_executable_extensions; do
4529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530     ac_cv_prog_LEX="$ac_prog"
4531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535 done
4536
4537 fi
4538 fi
4539 LEX=$ac_cv_prog_LEX
4540 if test -n "$LEX"; then
4541   echo "$as_me:$LINENO: result: $LEX" >&5
4542 echo "${ECHO_T}$LEX" >&6
4543 else
4544   echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546 fi
4547
4548   test -n "$LEX" && break
4549 done
4550 test -n "$LEX" || LEX=":"
4551
4552 if test -z "$LEXLIB"
4553 then
4554   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4555 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4556 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   ac_check_lib_save_LIBS=$LIBS
4560 LIBS="-lfl  $LIBS"
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567
4568 /* Override any gcc2 internal prototype to avoid an error.  */
4569 #ifdef __cplusplus
4570 extern "C"
4571 #endif
4572 /* We use char because int might match the return type of a gcc2
4573    builtin and then its argument prototype would still apply.  */
4574 char yywrap ();
4575 int
4576 main ()
4577 {
4578 yywrap ();
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext conftest$ac_exeext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585   (eval $ac_link) 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } &&
4592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594   (eval $ac_try) 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }; } &&
4598          { ac_try='test -s conftest$ac_exeext'
4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   ac_cv_lib_fl_yywrap=yes
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 ac_cv_lib_fl_yywrap=no
4610 fi
4611 rm -f conftest.err conftest.$ac_objext \
4612       conftest$ac_exeext conftest.$ac_ext
4613 LIBS=$ac_check_lib_save_LIBS
4614 fi
4615 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4616 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4617 if test $ac_cv_lib_fl_yywrap = yes; then
4618   LEXLIB="-lfl"
4619 else
4620   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4621 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4622 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-ll  $LIBS"
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633
4634 /* Override any gcc2 internal prototype to avoid an error.  */
4635 #ifdef __cplusplus
4636 extern "C"
4637 #endif
4638 /* We use char because int might match the return type of a gcc2
4639    builtin and then its argument prototype would still apply.  */
4640 char yywrap ();
4641 int
4642 main ()
4643 {
4644 yywrap ();
4645   ;
4646   return 0;
4647 }
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651   (eval $ac_link) 2>conftest.er1
4652   ac_status=$?
4653   grep -v '^ *+' conftest.er1 >conftest.err
4654   rm -f conftest.er1
4655   cat conftest.err >&5
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } &&
4658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; } &&
4664          { ac_try='test -s conftest$ac_exeext'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   ac_cv_lib_l_yywrap=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675 ac_cv_lib_l_yywrap=no
4676 fi
4677 rm -f conftest.err conftest.$ac_objext \
4678       conftest$ac_exeext conftest.$ac_ext
4679 LIBS=$ac_check_lib_save_LIBS
4680 fi
4681 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4682 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4683 if test $ac_cv_lib_l_yywrap = yes; then
4684   LEXLIB="-ll"
4685 fi
4686
4687 fi
4688
4689 fi
4690
4691 if test "x$LEX" != "x:"; then
4692   echo "$as_me:$LINENO: checking lex output file root" >&5
4693 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4694 if test "${ac_cv_prog_lex_root+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   # The minimal lex program is just a single line: %%.  But some broken lexes
4698 # (Solaris, I think it was) want two %% lines, so accommodate them.
4699 cat >conftest.l <<_ACEOF
4700 %%
4701 %%
4702 _ACEOF
4703 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4704   (eval $LEX conftest.l) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }
4708 if test -f lex.yy.c; then
4709   ac_cv_prog_lex_root=lex.yy
4710 elif test -f lexyy.c; then
4711   ac_cv_prog_lex_root=lexyy
4712 else
4713   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4714 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4715    { (exit 1); exit 1; }; }
4716 fi
4717 fi
4718 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4719 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4720 rm -f conftest.l
4721 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4722
4723 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4724 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4725 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   # POSIX says lex can declare yytext either as a pointer or an array; the
4729 # default is implementation-dependent. Figure out which it is, since
4730 # not all implementations provide the %pointer and %array declarations.
4731 ac_cv_prog_lex_yytext_pointer=no
4732 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4733 ac_save_LIBS=$LIBS
4734 LIBS="$LIBS $LEXLIB"
4735 cat >conftest.$ac_ext <<_ACEOF
4736 `cat $LEX_OUTPUT_ROOT.c`
4737 _ACEOF
4738 rm -f conftest.$ac_objext conftest$ac_exeext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740   (eval $ac_link) 2>conftest.er1
4741   ac_status=$?
4742   grep -v '^ *+' conftest.er1 >conftest.err
4743   rm -f conftest.er1
4744   cat conftest.err >&5
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); } &&
4747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749   (eval $ac_try) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); }; } &&
4753          { ac_try='test -s conftest$ac_exeext'
4754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755   (eval $ac_try) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   ac_cv_prog_lex_yytext_pointer=yes
4760 else
4761   echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 fi
4765 rm -f conftest.err conftest.$ac_objext \
4766       conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_save_LIBS
4768 rm -f "${LEX_OUTPUT_ROOT}.c"
4769
4770 fi
4771 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4772 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4773 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4774
4775 cat >>confdefs.h <<\_ACEOF
4776 #define YYTEXT_POINTER 1
4777 _ACEOF
4778
4779 fi
4780
4781 fi
4782
4783 for ac_prog in $LEX flex lex
4784 do
4785   # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_XLEX+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   if test -n "$XLEX"; then
4793   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800   for ac_exec_ext in '' $ac_executable_extensions; do
4801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802     ac_cv_prog_XLEX="$ac_prog"
4803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807 done
4808
4809 fi
4810 fi
4811 XLEX=$ac_cv_prog_XLEX
4812 if test -n "$XLEX"; then
4813   echo "$as_me:$LINENO: result: $XLEX" >&5
4814 echo "${ECHO_T}$XLEX" >&6
4815 else
4816   echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4818 fi
4819
4820   test -n "$XLEX" && break
4821 done
4822 test -n "$XLEX" || XLEX="none"
4823
4824 if test "$XLEX" = "none"
4825 then
4826   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4827 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4828    { (exit 1); exit 1; }; }
4829 fi
4830
4831 for ac_prog in bison
4832 do
4833   # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4837 if test "${ac_cv_prog_BISON+set}" = set; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   if test -n "$BISON"; then
4841   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848   for ac_exec_ext in '' $ac_executable_extensions; do
4849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850     ac_cv_prog_BISON="$ac_prog"
4851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852     break 2
4853   fi
4854 done
4855 done
4856
4857 fi
4858 fi
4859 BISON=$ac_cv_prog_BISON
4860 if test -n "$BISON"; then
4861   echo "$as_me:$LINENO: result: $BISON" >&5
4862 echo "${ECHO_T}$BISON" >&6
4863 else
4864   echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4866 fi
4867
4868   test -n "$BISON" && break
4869 done
4870 test -n "$BISON" || BISON="none"
4871
4872 if test "$BISON" = "none"
4873 then
4874   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4875 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4876    { (exit 1); exit 1; }; }
4877 fi
4878
4879 if test -n "$ac_tool_prefix"; then
4880   for ac_prog in gas as
4881   do
4882     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_AS+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   if test -n "$AS"; then
4890   ac_cv_prog_AS="$AS" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897   for ac_exec_ext in '' $ac_executable_extensions; do
4898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904 done
4905
4906 fi
4907 fi
4908 AS=$ac_cv_prog_AS
4909 if test -n "$AS"; then
4910   echo "$as_me:$LINENO: result: $AS" >&5
4911 echo "${ECHO_T}$AS" >&6
4912 else
4913   echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4915 fi
4916
4917     test -n "$AS" && break
4918   done
4919 fi
4920 if test -z "$AS"; then
4921   ac_ct_AS=$AS
4922   for ac_prog in gas as
4923 do
4924   # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   if test -n "$ac_ct_AS"; then
4932   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937   IFS=$as_save_IFS
4938   test -z "$as_dir" && as_dir=.
4939   for ac_exec_ext in '' $ac_executable_extensions; do
4940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941     ac_cv_prog_ac_ct_AS="$ac_prog"
4942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943     break 2
4944   fi
4945 done
4946 done
4947
4948 fi
4949 fi
4950 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4951 if test -n "$ac_ct_AS"; then
4952   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4953 echo "${ECHO_T}$ac_ct_AS" >&6
4954 else
4955   echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6
4957 fi
4958
4959   test -n "$ac_ct_AS" && break
4960 done
4961 test -n "$ac_ct_AS" || ac_ct_AS="as"
4962
4963   AS=$ac_ct_AS
4964 fi
4965
4966 if test -n "$ac_tool_prefix"; then
4967   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4968 set dummy ${ac_tool_prefix}ld; ac_word=$2
4969 echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971 if test "${ac_cv_prog_LD+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   if test -n "$LD"; then
4975   ac_cv_prog_LD="$LD" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982   for ac_exec_ext in '' $ac_executable_extensions; do
4983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984     ac_cv_prog_LD="${ac_tool_prefix}ld"
4985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986     break 2
4987   fi
4988 done
4989 done
4990
4991 fi
4992 fi
4993 LD=$ac_cv_prog_LD
4994 if test -n "$LD"; then
4995   echo "$as_me:$LINENO: result: $LD" >&5
4996 echo "${ECHO_T}$LD" >&6
4997 else
4998   echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5000 fi
5001
5002 fi
5003 if test -z "$ac_cv_prog_LD"; then
5004   ac_ct_LD=$LD
5005   # Extract the first word of "ld", so it can be a program name with args.
5006 set dummy ld; ac_word=$2
5007 echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   if test -n "$ac_ct_LD"; then
5013   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020   for ac_exec_ext in '' $ac_executable_extensions; do
5021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022     ac_cv_prog_ac_ct_LD="ld"
5023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027 done
5028
5029   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5030 fi
5031 fi
5032 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5033 if test -n "$ac_ct_LD"; then
5034   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5035 echo "${ECHO_T}$ac_ct_LD" >&6
5036 else
5037   echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5039 fi
5040
5041   LD=$ac_ct_LD
5042 else
5043   LD="$ac_cv_prog_LD"
5044 fi
5045
5046 if test -n "$ac_tool_prefix"; then
5047   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}ar; ac_word=$2
5049 echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051 if test "${ac_cv_prog_AR+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   if test -n "$AR"; then
5055   ac_cv_prog_AR="$AR" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   for ac_exec_ext in '' $ac_executable_extensions; do
5063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064     ac_cv_prog_AR="${ac_tool_prefix}ar"
5065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069 done
5070
5071 fi
5072 fi
5073 AR=$ac_cv_prog_AR
5074 if test -n "$AR"; then
5075   echo "$as_me:$LINENO: result: $AR" >&5
5076 echo "${ECHO_T}$AR" >&6
5077 else
5078   echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5080 fi
5081
5082 fi
5083 if test -z "$ac_cv_prog_AR"; then
5084   ac_ct_AR=$AR
5085   # Extract the first word of "ar", so it can be a program name with args.
5086 set dummy ar; ac_word=$2
5087 echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5090   echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092   if test -n "$ac_ct_AR"; then
5093   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098   IFS=$as_save_IFS
5099   test -z "$as_dir" && as_dir=.
5100   for ac_exec_ext in '' $ac_executable_extensions; do
5101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102     ac_cv_prog_ac_ct_AR="ar"
5103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104     break 2
5105   fi
5106 done
5107 done
5108
5109   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5110 fi
5111 fi
5112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5113 if test -n "$ac_ct_AR"; then
5114   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5115 echo "${ECHO_T}$ac_ct_AR" >&6
5116 else
5117   echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5119 fi
5120
5121   AR=$ac_ct_AR
5122 else
5123   AR="$ac_cv_prog_AR"
5124 fi
5125
5126 if test -n "$ac_tool_prefix"; then
5127   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_RANLIB+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   if test -n "$RANLIB"; then
5135   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142   for ac_exec_ext in '' $ac_executable_extensions; do
5143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149 done
5150
5151 fi
5152 fi
5153 RANLIB=$ac_cv_prog_RANLIB
5154 if test -n "$RANLIB"; then
5155   echo "$as_me:$LINENO: result: $RANLIB" >&5
5156 echo "${ECHO_T}$RANLIB" >&6
5157 else
5158   echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5160 fi
5161
5162 fi
5163 if test -z "$ac_cv_prog_RANLIB"; then
5164   ac_ct_RANLIB=$RANLIB
5165   # Extract the first word of "ranlib", so it can be a program name with args.
5166 set dummy ranlib; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   if test -n "$ac_ct_RANLIB"; then
5173   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180   for ac_exec_ext in '' $ac_executable_extensions; do
5181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182     ac_cv_prog_ac_ct_RANLIB="ranlib"
5183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187 done
5188
5189   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5190 fi
5191 fi
5192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5193 if test -n "$ac_ct_RANLIB"; then
5194   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5195 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5196 else
5197   echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5199 fi
5200
5201   RANLIB=$ac_ct_RANLIB
5202 else
5203   RANLIB="$ac_cv_prog_RANLIB"
5204 fi
5205
5206 if test -n "$ac_tool_prefix"; then
5207   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5208 set dummy ${ac_tool_prefix}strip; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_STRIP+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   if test -n "$STRIP"; then
5215   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222   for ac_exec_ext in '' $ac_executable_extensions; do
5223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229 done
5230
5231 fi
5232 fi
5233 STRIP=$ac_cv_prog_STRIP
5234 if test -n "$STRIP"; then
5235   echo "$as_me:$LINENO: result: $STRIP" >&5
5236 echo "${ECHO_T}$STRIP" >&6
5237 else
5238   echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5240 fi
5241
5242 fi
5243 if test -z "$ac_cv_prog_STRIP"; then
5244   ac_ct_STRIP=$STRIP
5245   # Extract the first word of "strip", so it can be a program name with args.
5246 set dummy strip; ac_word=$2
5247 echo "$as_me:$LINENO: checking for $ac_word" >&5
5248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5249 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5250   echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252   if test -n "$ac_ct_STRIP"; then
5253   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258   IFS=$as_save_IFS
5259   test -z "$as_dir" && as_dir=.
5260   for ac_exec_ext in '' $ac_executable_extensions; do
5261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262     ac_cv_prog_ac_ct_STRIP="strip"
5263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267 done
5268
5269   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5270 fi
5271 fi
5272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5273 if test -n "$ac_ct_STRIP"; then
5274   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5275 echo "${ECHO_T}$ac_ct_STRIP" >&6
5276 else
5277   echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5279 fi
5280
5281   STRIP=$ac_ct_STRIP
5282 else
5283   STRIP="$ac_cv_prog_STRIP"
5284 fi
5285
5286 if test -n "$ac_tool_prefix"; then
5287   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}windres; ac_word=$2
5289 echo "$as_me:$LINENO: checking for $ac_word" >&5
5290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5291 if test "${ac_cv_prog_WINDRES+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   if test -n "$WINDRES"; then
5295   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300   IFS=$as_save_IFS
5301   test -z "$as_dir" && as_dir=.
5302   for ac_exec_ext in '' $ac_executable_extensions; do
5303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306     break 2
5307   fi
5308 done
5309 done
5310
5311 fi
5312 fi
5313 WINDRES=$ac_cv_prog_WINDRES
5314 if test -n "$WINDRES"; then
5315   echo "$as_me:$LINENO: result: $WINDRES" >&5
5316 echo "${ECHO_T}$WINDRES" >&6
5317 else
5318   echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5320 fi
5321
5322 fi
5323 if test -z "$ac_cv_prog_WINDRES"; then
5324   ac_ct_WINDRES=$WINDRES
5325   # Extract the first word of "windres", so it can be a program name with args.
5326 set dummy windres; ac_word=$2
5327 echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   if test -n "$ac_ct_WINDRES"; then
5333   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338   IFS=$as_save_IFS
5339   test -z "$as_dir" && as_dir=.
5340   for ac_exec_ext in '' $ac_executable_extensions; do
5341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342     ac_cv_prog_ac_ct_WINDRES="windres"
5343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344     break 2
5345   fi
5346 done
5347 done
5348
5349   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5350 fi
5351 fi
5352 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5353 if test -n "$ac_ct_WINDRES"; then
5354   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5355 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5356 else
5357   echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6
5359 fi
5360
5361   WINDRES=$ac_ct_WINDRES
5362 else
5363   WINDRES="$ac_cv_prog_WINDRES"
5364 fi
5365
5366 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5368 LN_S=$as_ln_s
5369 if test "$LN_S" = "ln -s"; then
5370   echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5372 else
5373   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5374 echo "${ECHO_T}no, using $LN_S" >&6
5375 fi
5376
5377 echo "$as_me:$LINENO: checking whether ln works" >&5
5378 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5379 rm -f conf$$ conf$$.file
5380 echo >conf$$.file
5381 if ln conf$$.file conf$$ 2>/dev/null; then
5382   LN=ln
5383
5384   echo "$as_me:$LINENO: result: yes" >&5
5385 echo "${ECHO_T}yes" >&6
5386 else
5387   LN="cp -p"
5388
5389   echo "$as_me:$LINENO: result: no, using $LN" >&5
5390 echo "${ECHO_T}no, using $LN" >&6
5391 fi
5392 rm -f conf$$ conf$$.file
5393 echo "$as_me:$LINENO: checking for egrep" >&5
5394 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5395 if test "${ac_cv_prog_egrep+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5399     then ac_cv_prog_egrep='grep -E'
5400     else ac_cv_prog_egrep='egrep'
5401     fi
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5404 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5405  EGREP=$ac_cv_prog_egrep
5406
5407
5408 # Extract the first word of "ldconfig", so it can be a program name with args.
5409 set dummy ldconfig; ac_word=$2
5410 echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5412 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   case $LDCONFIG in
5416   [\\/]* | ?:[\\/]*)
5417   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5418   ;;
5419   *)
5420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in /sbin /usr/sbin $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425   for ac_exec_ext in '' $ac_executable_extensions; do
5426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432 done
5433
5434   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5435   ;;
5436 esac
5437 fi
5438 LDCONFIG=$ac_cv_path_LDCONFIG
5439
5440 if test -n "$LDCONFIG"; then
5441   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5442 echo "${ECHO_T}$LDCONFIG" >&6
5443 else
5444   echo "$as_me:$LINENO: result: no" >&5
5445 echo "${ECHO_T}no" >&6
5446 fi
5447
5448 # Find a good install program.  We prefer a C program (faster),
5449 # so one script is as good as another.  But avoid the broken or
5450 # incompatible versions:
5451 # SysV /etc/install, /usr/sbin/install
5452 # SunOS /usr/etc/install
5453 # IRIX /sbin/install
5454 # AIX /bin/install
5455 # AmigaOS /C/install, which installs bootblocks on floppy discs
5456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5459 # OS/2's system install, which has a completely different semantic
5460 # ./install, which can be erroneously created by make from ./install.sh.
5461 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5462 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5463 if test -z "$INSTALL"; then
5464 if test "${ac_cv_path_install+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472   # Account for people who put trailing slashes in PATH elements.
5473 case $as_dir/ in
5474   ./ | .// | /cC/* | \
5475   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5476   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5477   /usr/ucb/* ) ;;
5478   *)
5479     # OSF1 and SCO ODT 3.0 have their own names for install.
5480     # Don't use installbsd from OSF since it installs stuff as root
5481     # by default.
5482     for ac_prog in ginstall scoinst install; do
5483       for ac_exec_ext in '' $ac_executable_extensions; do
5484         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5485           if test $ac_prog = install &&
5486             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5487             # AIX install.  It has an incompatible calling convention.
5488             :
5489           elif test $ac_prog = install &&
5490             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5491             # program-specific install script used by HP pwplus--don't use.
5492             :
5493           else
5494             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5495             break 3
5496           fi
5497         fi
5498       done
5499     done
5500     ;;
5501 esac
5502 done
5503
5504
5505 fi
5506   if test "${ac_cv_path_install+set}" = set; then
5507     INSTALL=$ac_cv_path_install
5508   else
5509     # As a last resort, use the slow shell script.  We don't cache a
5510     # path for INSTALL within a source directory, because that will
5511     # break other packages using the cache if that directory is
5512     # removed, or if the path is relative.
5513     INSTALL=$ac_install_sh
5514   fi
5515 fi
5516 echo "$as_me:$LINENO: result: $INSTALL" >&5
5517 echo "${ECHO_T}$INSTALL" >&6
5518
5519 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5520 # It thinks the first close brace ends the variable substitution.
5521 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5522
5523 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5524
5525 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5526
5527 case "$INSTALL" in
5528   [\\/$]* | ?:[\\/]* ) ;;
5529   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5530 esac
5531
5532 for ac_prog in lclint lint
5533 do
5534   # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_prog_LINT+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   if test -n "$LINT"; then
5542   ac_cv_prog_LINT="$LINT" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549   for ac_exec_ext in '' $ac_executable_extensions; do
5550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551     ac_cv_prog_LINT="$ac_prog"
5552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556 done
5557
5558 fi
5559 fi
5560 LINT=$ac_cv_prog_LINT
5561 if test -n "$LINT"; then
5562   echo "$as_me:$LINENO: result: $LINT" >&5
5563 echo "${ECHO_T}$LINT" >&6
5564 else
5565   echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5567 fi
5568
5569   test -n "$LINT" && break
5570 done
5571
5572 if test "$LINT" = "lint"
5573 then
5574   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5575   fi
5576
5577
5578
5579 for ac_prog in fontforge
5580 do
5581   # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5585 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   if test -n "$FONTFORGE"; then
5589   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596   for ac_exec_ext in '' $ac_executable_extensions; do
5597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598     ac_cv_prog_FONTFORGE="$ac_prog"
5599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603 done
5604
5605 fi
5606 fi
5607 FONTFORGE=$ac_cv_prog_FONTFORGE
5608 if test -n "$FONTFORGE"; then
5609   echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5610 echo "${ECHO_T}$FONTFORGE" >&6
5611 else
5612   echo "$as_me:$LINENO: result: no" >&5
5613 echo "${ECHO_T}no" >&6
5614 fi
5615
5616   test -n "$FONTFORGE" && break
5617 done
5618 test -n "$FONTFORGE" || FONTFORGE="false"
5619
5620 for ac_prog in pkg-config
5621 do
5622   # Extract the first word of "$ac_prog", so it can be a program name with args.
5623 set dummy $ac_prog; ac_word=$2
5624 echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   if test -n "$PKG_CONFIG"; then
5630   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637   for ac_exec_ext in '' $ac_executable_extensions; do
5638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639     ac_cv_prog_PKG_CONFIG="$ac_prog"
5640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644 done
5645
5646 fi
5647 fi
5648 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5649 if test -n "$PKG_CONFIG"; then
5650   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5651 echo "${ECHO_T}$PKG_CONFIG" >&6
5652 else
5653   echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5655 fi
5656
5657   test -n "$PKG_CONFIG" && break
5658 done
5659 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5660
5661
5662 case $host_cpu in
5663   *i[3456789]86*)
5664     for ac_prog in prelink
5665 do
5666   # Extract the first word of "$ac_prog", so it can be a program name with args.
5667 set dummy $ac_prog; ac_word=$2
5668 echo "$as_me:$LINENO: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670 if test "${ac_cv_prog_PRELINK+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   if test -n "$PRELINK"; then
5674   ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in /sbin /usr/sbin $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681   for ac_exec_ext in '' $ac_executable_extensions; do
5682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683     ac_cv_prog_PRELINK="$ac_prog"
5684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688 done
5689
5690 fi
5691 fi
5692 PRELINK=$ac_cv_prog_PRELINK
5693 if test -n "$PRELINK"; then
5694   echo "$as_me:$LINENO: result: $PRELINK" >&5
5695 echo "${ECHO_T}$PRELINK" >&6
5696 else
5697   echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6
5699 fi
5700
5701   test -n "$PRELINK" && break
5702 done
5703 test -n "$PRELINK" || PRELINK="false"
5704
5705     ;;
5706 esac
5707
5708
5709
5710 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5711 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5712 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   ac_check_lib_save_LIBS=$LIBS
5716 LIBS="-li386  $LIBS"
5717 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723
5724 /* Override any gcc2 internal prototype to avoid an error.  */
5725 #ifdef __cplusplus
5726 extern "C"
5727 #endif
5728 /* We use char because int might match the return type of a gcc2
5729    builtin and then its argument prototype would still apply.  */
5730 char i386_set_ldt ();
5731 int
5732 main ()
5733 {
5734 i386_set_ldt ();
5735   ;
5736   return 0;
5737 }
5738 _ACEOF
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741   (eval $ac_link) 2>conftest.er1
5742   ac_status=$?
5743   grep -v '^ *+' conftest.er1 >conftest.err
5744   rm -f conftest.er1
5745   cat conftest.err >&5
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } &&
5748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750   (eval $ac_try) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; } &&
5754          { ac_try='test -s conftest$ac_exeext'
5755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756   (eval $ac_try) 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); }; }; then
5760   ac_cv_lib_i386_i386_set_ldt=yes
5761 else
5762   echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 ac_cv_lib_i386_i386_set_ldt=no
5766 fi
5767 rm -f conftest.err conftest.$ac_objext \
5768       conftest$ac_exeext conftest.$ac_ext
5769 LIBS=$ac_check_lib_save_LIBS
5770 fi
5771 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5772 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5773 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5774   cat >>confdefs.h <<_ACEOF
5775 #define HAVE_LIBI386 1
5776 _ACEOF
5777
5778   LIBS="-li386 $LIBS"
5779
5780 fi
5781
5782
5783 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5784 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5785 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788   ac_check_lib_save_LIBS=$LIBS
5789 LIBS="-lossaudio  $LIBS"
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796
5797 /* Override any gcc2 internal prototype to avoid an error.  */
5798 #ifdef __cplusplus
5799 extern "C"
5800 #endif
5801 /* We use char because int might match the return type of a gcc2
5802    builtin and then its argument prototype would still apply.  */
5803 char _oss_ioctl ();
5804 int
5805 main ()
5806 {
5807 _oss_ioctl ();
5808   ;
5809   return 0;
5810 }
5811 _ACEOF
5812 rm -f conftest.$ac_objext conftest$ac_exeext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5814   (eval $ac_link) 2>conftest.er1
5815   ac_status=$?
5816   grep -v '^ *+' conftest.er1 >conftest.err
5817   rm -f conftest.er1
5818   cat conftest.err >&5
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); } &&
5821          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823   (eval $ac_try) 2>&5
5824   ac_status=$?
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); }; } &&
5827          { ac_try='test -s conftest$ac_exeext'
5828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; }; then
5833   ac_cv_lib_ossaudio__oss_ioctl=yes
5834 else
5835   echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ac_cv_lib_ossaudio__oss_ioctl=no
5839 fi
5840 rm -f conftest.err conftest.$ac_objext \
5841       conftest$ac_exeext conftest.$ac_ext
5842 LIBS=$ac_check_lib_save_LIBS
5843 fi
5844 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5845 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5846 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5847   cat >>confdefs.h <<_ACEOF
5848 #define HAVE_LIBOSSAUDIO 1
5849 _ACEOF
5850
5851   LIBS="-lossaudio $LIBS"
5852
5853 fi
5854
5855
5856 for ac_func in gethostbyname
5857 do
5858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5859 echo "$as_me:$LINENO: checking for $ac_func" >&5
5860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5861 if eval "test \"\${$as_ac_var+set}\" = set"; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h.  */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h.  */
5870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5872 #define $ac_func innocuous_$ac_func
5873
5874 /* System header to define __stub macros and hopefully few prototypes,
5875     which can conflict with char $ac_func (); below.
5876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5877     <limits.h> exists even on freestanding compilers.  */
5878
5879 #ifdef __STDC__
5880 # include <limits.h>
5881 #else
5882 # include <assert.h>
5883 #endif
5884
5885 #undef $ac_func
5886
5887 /* Override any gcc2 internal prototype to avoid an error.  */
5888 #ifdef __cplusplus
5889 extern "C"
5890 {
5891 #endif
5892 /* We use char because int might match the return type of a gcc2
5893    builtin and then its argument prototype would still apply.  */
5894 char $ac_func ();
5895 /* The GNU C library defines this for functions which it implements
5896     to always fail with ENOSYS.  Some functions are actually named
5897     something starting with __ and the normal name is an alias.  */
5898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5899 choke me
5900 #else
5901 char (*f) () = $ac_func;
5902 #endif
5903 #ifdef __cplusplus
5904 }
5905 #endif
5906
5907 int
5908 main ()
5909 {
5910 return f != $ac_func;
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917   (eval $ac_link) 2>conftest.er1
5918   ac_status=$?
5919   grep -v '^ *+' conftest.er1 >conftest.err
5920   rm -f conftest.er1
5921   cat conftest.err >&5
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); } &&
5924          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926   (eval $ac_try) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }; } &&
5930          { ac_try='test -s conftest$ac_exeext'
5931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932   (eval $ac_try) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; }; then
5936   eval "$as_ac_var=yes"
5937 else
5938   echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941 eval "$as_ac_var=no"
5942 fi
5943 rm -f conftest.err conftest.$ac_objext \
5944       conftest$ac_exeext conftest.$ac_ext
5945 fi
5946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5948 if test `eval echo '${'$as_ac_var'}'` = yes; then
5949   cat >>confdefs.h <<_ACEOF
5950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5951 _ACEOF
5952
5953 else
5954
5955 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5956 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5957 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5958   echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960   ac_check_lib_save_LIBS=$LIBS
5961 LIBS="-lnsl  $LIBS"
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h.  */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h.  */
5968
5969 /* Override any gcc2 internal prototype to avoid an error.  */
5970 #ifdef __cplusplus
5971 extern "C"
5972 #endif
5973 /* We use char because int might match the return type of a gcc2
5974    builtin and then its argument prototype would still apply.  */
5975 char gethostbyname ();
5976 int
5977 main ()
5978 {
5979 gethostbyname ();
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest.$ac_objext conftest$ac_exeext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5986   (eval $ac_link) 2>conftest.er1
5987   ac_status=$?
5988   grep -v '^ *+' conftest.er1 >conftest.err
5989   rm -f conftest.er1
5990   cat conftest.err >&5
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); } &&
5993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995   (eval $ac_try) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest$ac_exeext'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   ac_cv_lib_nsl_gethostbyname=yes
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_cv_lib_nsl_gethostbyname=no
6011 fi
6012 rm -f conftest.err conftest.$ac_objext \
6013       conftest$ac_exeext conftest.$ac_ext
6014 LIBS=$ac_check_lib_save_LIBS
6015 fi
6016 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6017 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6018 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6019   cat >>confdefs.h <<_ACEOF
6020 #define HAVE_LIBNSL 1
6021 _ACEOF
6022
6023   LIBS="-lnsl $LIBS"
6024
6025 fi
6026
6027 fi
6028 done
6029
6030
6031 for ac_func in connect
6032 do
6033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6034 echo "$as_me:$LINENO: checking for $ac_func" >&5
6035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6036 if eval "test \"\${$as_ac_var+set}\" = set"; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h.  */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h.  */
6045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6047 #define $ac_func innocuous_$ac_func
6048
6049 /* System header to define __stub macros and hopefully few prototypes,
6050     which can conflict with char $ac_func (); below.
6051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6052     <limits.h> exists even on freestanding compilers.  */
6053
6054 #ifdef __STDC__
6055 # include <limits.h>
6056 #else
6057 # include <assert.h>
6058 #endif
6059
6060 #undef $ac_func
6061
6062 /* Override any gcc2 internal prototype to avoid an error.  */
6063 #ifdef __cplusplus
6064 extern "C"
6065 {
6066 #endif
6067 /* We use char because int might match the return type of a gcc2
6068    builtin and then its argument prototype would still apply.  */
6069 char $ac_func ();
6070 /* The GNU C library defines this for functions which it implements
6071     to always fail with ENOSYS.  Some functions are actually named
6072     something starting with __ and the normal name is an alias.  */
6073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6074 choke me
6075 #else
6076 char (*f) () = $ac_func;
6077 #endif
6078 #ifdef __cplusplus
6079 }
6080 #endif
6081
6082 int
6083 main ()
6084 {
6085 return f != $ac_func;
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092   (eval $ac_link) 2>conftest.er1
6093   ac_status=$?
6094   grep -v '^ *+' conftest.er1 >conftest.err
6095   rm -f conftest.er1
6096   cat conftest.err >&5
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); } &&
6099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101   (eval $ac_try) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); }; } &&
6105          { ac_try='test -s conftest$ac_exeext'
6106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107   (eval $ac_try) 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; }; then
6111   eval "$as_ac_var=yes"
6112 else
6113   echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 eval "$as_ac_var=no"
6117 fi
6118 rm -f conftest.err conftest.$ac_objext \
6119       conftest$ac_exeext conftest.$ac_ext
6120 fi
6121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6123 if test `eval echo '${'$as_ac_var'}'` = yes; then
6124   cat >>confdefs.h <<_ACEOF
6125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6126 _ACEOF
6127
6128 else
6129
6130 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6131 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6132 if test "${ac_cv_lib_socket_connect+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   ac_check_lib_save_LIBS=$LIBS
6136 LIBS="-lsocket  $LIBS"
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143
6144 /* Override any gcc2 internal prototype to avoid an error.  */
6145 #ifdef __cplusplus
6146 extern "C"
6147 #endif
6148 /* We use char because int might match the return type of a gcc2
6149    builtin and then its argument prototype would still apply.  */
6150 char connect ();
6151 int
6152 main ()
6153 {
6154 connect ();
6155   ;
6156   return 0;
6157 }
6158 _ACEOF
6159 rm -f conftest.$ac_objext conftest$ac_exeext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6161   (eval $ac_link) 2>conftest.er1
6162   ac_status=$?
6163   grep -v '^ *+' conftest.er1 >conftest.err
6164   rm -f conftest.er1
6165   cat conftest.err >&5
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } &&
6168          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170   (eval $ac_try) 2>&5
6171   ac_status=$?
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); }; } &&
6174          { ac_try='test -s conftest$ac_exeext'
6175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176   (eval $ac_try) 2>&5
6177   ac_status=$?
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); }; }; then
6180   ac_cv_lib_socket_connect=yes
6181 else
6182   echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6184
6185 ac_cv_lib_socket_connect=no
6186 fi
6187 rm -f conftest.err conftest.$ac_objext \
6188       conftest$ac_exeext conftest.$ac_ext
6189 LIBS=$ac_check_lib_save_LIBS
6190 fi
6191 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6192 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6193 if test $ac_cv_lib_socket_connect = yes; then
6194   cat >>confdefs.h <<_ACEOF
6195 #define HAVE_LIBSOCKET 1
6196 _ACEOF
6197
6198   LIBS="-lsocket $LIBS"
6199
6200 fi
6201
6202 fi
6203 done
6204
6205
6206 for ac_func in inet_aton
6207 do
6208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6209 echo "$as_me:$LINENO: checking for $ac_func" >&5
6210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6211 if eval "test \"\${$as_ac_var+set}\" = set"; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h.  */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h.  */
6220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6222 #define $ac_func innocuous_$ac_func
6223
6224 /* System header to define __stub macros and hopefully few prototypes,
6225     which can conflict with char $ac_func (); below.
6226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227     <limits.h> exists even on freestanding compilers.  */
6228
6229 #ifdef __STDC__
6230 # include <limits.h>
6231 #else
6232 # include <assert.h>
6233 #endif
6234
6235 #undef $ac_func
6236
6237 /* Override any gcc2 internal prototype to avoid an error.  */
6238 #ifdef __cplusplus
6239 extern "C"
6240 {
6241 #endif
6242 /* We use char because int might match the return type of a gcc2
6243    builtin and then its argument prototype would still apply.  */
6244 char $ac_func ();
6245 /* The GNU C library defines this for functions which it implements
6246     to always fail with ENOSYS.  Some functions are actually named
6247     something starting with __ and the normal name is an alias.  */
6248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6249 choke me
6250 #else
6251 char (*f) () = $ac_func;
6252 #endif
6253 #ifdef __cplusplus
6254 }
6255 #endif
6256
6257 int
6258 main ()
6259 {
6260 return f != $ac_func;
6261   ;
6262   return 0;
6263 }
6264 _ACEOF
6265 rm -f conftest.$ac_objext conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267   (eval $ac_link) 2>conftest.er1
6268   ac_status=$?
6269   grep -v '^ *+' conftest.er1 >conftest.err
6270   rm -f conftest.er1
6271   cat conftest.err >&5
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); } &&
6274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276   (eval $ac_try) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }; } &&
6280          { ac_try='test -s conftest$ac_exeext'
6281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282   (eval $ac_try) 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }; }; then
6286   eval "$as_ac_var=yes"
6287 else
6288   echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 eval "$as_ac_var=no"
6292 fi
6293 rm -f conftest.err conftest.$ac_objext \
6294       conftest$ac_exeext conftest.$ac_ext
6295 fi
6296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6298 if test `eval echo '${'$as_ac_var'}'` = yes; then
6299   cat >>confdefs.h <<_ACEOF
6300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6301 _ACEOF
6302
6303 else
6304
6305 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6306 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6307 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6308   echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310   ac_check_lib_save_LIBS=$LIBS
6311 LIBS="-lresolv  $LIBS"
6312 cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318
6319 /* Override any gcc2 internal prototype to avoid an error.  */
6320 #ifdef __cplusplus
6321 extern "C"
6322 #endif
6323 /* We use char because int might match the return type of a gcc2
6324    builtin and then its argument prototype would still apply.  */
6325 char inet_aton ();
6326 int
6327 main ()
6328 {
6329 inet_aton ();
6330   ;
6331   return 0;
6332 }
6333 _ACEOF
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336   (eval $ac_link) 2>conftest.er1
6337   ac_status=$?
6338   grep -v '^ *+' conftest.er1 >conftest.err
6339   rm -f conftest.er1
6340   cat conftest.err >&5
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } &&
6343          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; } &&
6349          { ac_try='test -s conftest$ac_exeext'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; }; then
6355   ac_cv_lib_resolv_inet_aton=yes
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 ac_cv_lib_resolv_inet_aton=no
6361 fi
6362 rm -f conftest.err conftest.$ac_objext \
6363       conftest$ac_exeext conftest.$ac_ext
6364 LIBS=$ac_check_lib_save_LIBS
6365 fi
6366 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6367 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6368 if test $ac_cv_lib_resolv_inet_aton = yes; then
6369   cat >>confdefs.h <<_ACEOF
6370 #define HAVE_LIBRESOLV 1
6371 _ACEOF
6372
6373   LIBS="-lresolv $LIBS"
6374
6375 fi
6376
6377 fi
6378 done
6379
6380
6381 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6382 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6383 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   ac_check_lib_save_LIBS=$LIBS
6387 LIBS="-lxpg4  $LIBS"
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h.  */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h.  */
6394
6395 /* Override any gcc2 internal prototype to avoid an error.  */
6396 #ifdef __cplusplus
6397 extern "C"
6398 #endif
6399 /* We use char because int might match the return type of a gcc2
6400    builtin and then its argument prototype would still apply.  */
6401 char _xpg4_setrunelocale ();
6402 int
6403 main ()
6404 {
6405 _xpg4_setrunelocale ();
6406   ;
6407   return 0;
6408 }
6409 _ACEOF
6410 rm -f conftest.$ac_objext conftest$ac_exeext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412   (eval $ac_link) 2>conftest.er1
6413   ac_status=$?
6414   grep -v '^ *+' conftest.er1 >conftest.err
6415   rm -f conftest.er1
6416   cat conftest.err >&5
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } &&
6419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421   (eval $ac_try) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); }; } &&
6425          { ac_try='test -s conftest$ac_exeext'
6426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427   (eval $ac_try) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; }; then
6431   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6432 else
6433   echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6437 fi
6438 rm -f conftest.err conftest.$ac_objext \
6439       conftest$ac_exeext conftest.$ac_ext
6440 LIBS=$ac_check_lib_save_LIBS
6441 fi
6442 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6443 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6444 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6445   cat >>confdefs.h <<_ACEOF
6446 #define HAVE_LIBXPG4 1
6447 _ACEOF
6448
6449   LIBS="-lxpg4 $LIBS"
6450
6451 fi
6452
6453
6454 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6455 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6456 if test "${ac_cv_lib_poll_poll+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   ac_check_lib_save_LIBS=$LIBS
6460 LIBS="-lpoll  $LIBS"
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467
6468 /* Override any gcc2 internal prototype to avoid an error.  */
6469 #ifdef __cplusplus
6470 extern "C"
6471 #endif
6472 /* We use char because int might match the return type of a gcc2
6473    builtin and then its argument prototype would still apply.  */
6474 char poll ();
6475 int
6476 main ()
6477 {
6478 poll ();
6479   ;
6480   return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext conftest$ac_exeext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6485   (eval $ac_link) 2>conftest.er1
6486   ac_status=$?
6487   grep -v '^ *+' conftest.er1 >conftest.err
6488   rm -f conftest.er1
6489   cat conftest.err >&5
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } &&
6492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494   (eval $ac_try) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); }; } &&
6498          { ac_try='test -s conftest$ac_exeext'
6499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500   (eval $ac_try) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); }; }; then
6504   ac_cv_lib_poll_poll=yes
6505 else
6506   echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6508
6509 ac_cv_lib_poll_poll=no
6510 fi
6511 rm -f conftest.err conftest.$ac_objext \
6512       conftest$ac_exeext conftest.$ac_ext
6513 LIBS=$ac_check_lib_save_LIBS
6514 fi
6515 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6516 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6517 if test $ac_cv_lib_poll_poll = yes; then
6518   cat >>confdefs.h <<_ACEOF
6519 #define HAVE_LIBPOLL 1
6520 _ACEOF
6521
6522   LIBS="-lpoll $LIBS"
6523
6524 fi
6525
6526
6527 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6528 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6529 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   ac_check_lib_save_LIBS=$LIBS
6533 LIBS="-lresolv  $LIBS"
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h.  */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h.  */
6540
6541 /* Override any gcc2 internal prototype to avoid an error.  */
6542 #ifdef __cplusplus
6543 extern "C"
6544 #endif
6545 /* We use char because int might match the return type of a gcc2
6546    builtin and then its argument prototype would still apply.  */
6547 char res_9_init ();
6548 int
6549 main ()
6550 {
6551 res_9_init ();
6552   ;
6553   return 0;
6554 }
6555 _ACEOF
6556 rm -f conftest.$ac_objext conftest$ac_exeext
6557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558   (eval $ac_link) 2>conftest.er1
6559   ac_status=$?
6560   grep -v '^ *+' conftest.er1 >conftest.err
6561   rm -f conftest.er1
6562   cat conftest.err >&5
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); } &&
6565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; } &&
6571          { ac_try='test -s conftest$ac_exeext'
6572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573   (eval $ac_try) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; }; then
6577   ac_cv_lib_resolv_res_9_init=yes
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 ac_cv_lib_resolv_res_9_init=no
6583 fi
6584 rm -f conftest.err conftest.$ac_objext \
6585       conftest$ac_exeext conftest.$ac_ext
6586 LIBS=$ac_check_lib_save_LIBS
6587 fi
6588 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6589 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6590 if test $ac_cv_lib_resolv_res_9_init = yes; then
6591   cat >>confdefs.h <<_ACEOF
6592 #define HAVE_LIBRESOLV 1
6593 _ACEOF
6594
6595   LIBS="-lresolv $LIBS"
6596
6597 fi
6598
6599 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6600 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6601 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   ac_check_lib_save_LIBS=$LIBS
6605 LIBS="-lpthread  $LIBS"
6606 cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h.  */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h.  */
6612
6613 /* Override any gcc2 internal prototype to avoid an error.  */
6614 #ifdef __cplusplus
6615 extern "C"
6616 #endif
6617 /* We use char because int might match the return type of a gcc2
6618    builtin and then its argument prototype would still apply.  */
6619 char pthread_create ();
6620 int
6621 main ()
6622 {
6623 pthread_create ();
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest.$ac_objext conftest$ac_exeext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6630   (eval $ac_link) 2>conftest.er1
6631   ac_status=$?
6632   grep -v '^ *+' conftest.er1 >conftest.err
6633   rm -f conftest.er1
6634   cat conftest.err >&5
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } &&
6637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; } &&
6643          { ac_try='test -s conftest$ac_exeext'
6644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645   (eval $ac_try) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); }; }; then
6649   ac_cv_lib_pthread_pthread_create=yes
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 ac_cv_lib_pthread_pthread_create=no
6655 fi
6656 rm -f conftest.err conftest.$ac_objext \
6657       conftest$ac_exeext conftest.$ac_ext
6658 LIBS=$ac_check_lib_save_LIBS
6659 fi
6660 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6661 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6662 if test $ac_cv_lib_pthread_pthread_create = yes; then
6663   LIBPTHREAD="-lpthread"
6664
6665 fi
6666
6667
6668 XLIB=""
6669
6670 XFILES=""
6671
6672 OPENGLFILES=""
6673
6674 GLU32FILES=""
6675
6676 OPENGL_LIBS=""
6677
6678
6679
6680 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6681 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6682 if test "${ac_cv_header_stdc+set}" = set; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h.  */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h.  */
6691 #include <stdlib.h>
6692 #include <stdarg.h>
6693 #include <string.h>
6694 #include <float.h>
6695
6696 int
6697 main ()
6698 {
6699
6700   ;
6701   return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706   (eval $ac_compile) 2>conftest.er1
6707   ac_status=$?
6708   grep -v '^ *+' conftest.er1 >conftest.err
6709   rm -f conftest.er1
6710   cat conftest.err >&5
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); } &&
6713          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715   (eval $ac_try) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; } &&
6719          { ac_try='test -s conftest.$ac_objext'
6720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721   (eval $ac_try) 2>&5
6722   ac_status=$?
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); }; }; then
6725   ac_cv_header_stdc=yes
6726 else
6727   echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_cv_header_stdc=no
6731 fi
6732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733
6734 if test $ac_cv_header_stdc = yes; then
6735   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6736   cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h.  */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h.  */
6742 #include <string.h>
6743
6744 _ACEOF
6745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6746   $EGREP "memchr" >/dev/null 2>&1; then
6747   :
6748 else
6749   ac_cv_header_stdc=no
6750 fi
6751 rm -f conftest*
6752
6753 fi
6754
6755 if test $ac_cv_header_stdc = yes; then
6756   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6757   cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h.  */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h.  */
6763 #include <stdlib.h>
6764
6765 _ACEOF
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767   $EGREP "free" >/dev/null 2>&1; then
6768   :
6769 else
6770   ac_cv_header_stdc=no
6771 fi
6772 rm -f conftest*
6773
6774 fi
6775
6776 if test $ac_cv_header_stdc = yes; then
6777   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6778   if test "$cross_compiling" = yes; then
6779   :
6780 else
6781   cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787 #include <ctype.h>
6788 #if ((' ' & 0x0FF) == 0x020)
6789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6791 #else
6792 # define ISLOWER(c) \
6793                    (('a' <= (c) && (c) <= 'i') \
6794                      || ('j' <= (c) && (c) <= 'r') \
6795                      || ('s' <= (c) && (c) <= 'z'))
6796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6797 #endif
6798
6799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6800 int
6801 main ()
6802 {
6803   int i;
6804   for (i = 0; i < 256; i++)
6805     if (XOR (islower (i), ISLOWER (i))
6806         || toupper (i) != TOUPPER (i))
6807       exit(2);
6808   exit (0);
6809 }
6810 _ACEOF
6811 rm -f conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813   (eval $ac_link) 2>&5
6814   ac_status=$?
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818   (eval $ac_try) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }; }; then
6822   :
6823 else
6824   echo "$as_me: program exited with status $ac_status" >&5
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828 ( exit $ac_status )
6829 ac_cv_header_stdc=no
6830 fi
6831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6832 fi
6833 fi
6834 fi
6835 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6836 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6837 if test $ac_cv_header_stdc = yes; then
6838
6839 cat >>confdefs.h <<\_ACEOF
6840 #define STDC_HEADERS 1
6841 _ACEOF
6842
6843 fi
6844
6845 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6856                   inttypes.h stdint.h unistd.h
6857 do
6858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6859 echo "$as_me:$LINENO: checking for $ac_header" >&5
6860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870 $ac_includes_default
6871
6872 #include <$ac_header>
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876   (eval $ac_compile) 2>conftest.er1
6877   ac_status=$?
6878   grep -v '^ *+' conftest.er1 >conftest.err
6879   rm -f conftest.er1
6880   cat conftest.err >&5
6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); } &&
6883          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885   (eval $ac_try) 2>&5
6886   ac_status=$?
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); }; } &&
6889          { ac_try='test -s conftest.$ac_objext'
6890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891   (eval $ac_try) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; }; then
6895   eval "$as_ac_Header=yes"
6896 else
6897   echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 eval "$as_ac_Header=no"
6901 fi
6902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6903 fi
6904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6907   cat >>confdefs.h <<_ACEOF
6908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6909 _ACEOF
6910
6911 fi
6912
6913 done
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020 for ac_header in \
7021         IOKit/IOKitLib.h \
7022         alsa/asoundlib.h \
7023         arpa/inet.h \
7024         arpa/nameser.h \
7025         asm/types.h \
7026         capi20.h \
7027         cups/cups.h \
7028         curses.h \
7029         direct.h \
7030         dlfcn.h \
7031         elf.h \
7032         float.h \
7033         fontconfig/fontconfig.h \
7034         getopt.h \
7035         gif_lib.h \
7036         ieeefp.h \
7037         io.h \
7038         jack/jack.h \
7039         jpeglib.h \
7040         lber.h \
7041         lcms.h \
7042         lcms/lcms.h \
7043         ldap.h \
7044         libaudioio.h \
7045         link.h \
7046         linux/cdrom.h \
7047         linux/compiler.h \
7048         linux/hdreg.h \
7049         linux/input.h \
7050         linux/ioctl.h \
7051         linux/joystick.h \
7052         linux/major.h \
7053         linux/param.h \
7054         linux/serial.h \
7055         linux/ucdrom.h \
7056         mach/machine.h \
7057         machine/cpu.h \
7058         machine/limits.h \
7059         machine/soundcard.h \
7060         mntent.h \
7061         ncurses.h \
7062         netdb.h \
7063         netinet/in.h \
7064         netinet/in_systm.h \
7065         netinet/tcp.h \
7066         netinet/tcp_fsm.h \
7067         openssl/err.h \
7068         openssl/ssl.h \
7069         poll.h \
7070         process.h \
7071         pthread.h \
7072         pwd.h \
7073         regex.h \
7074         sched.h \
7075         scsi/scsi.h \
7076         scsi/scsi_ioctl.h \
7077         scsi/sg.h \
7078         soundcard.h \
7079         stdint.h \
7080         strings.h \
7081         sys/asoundlib.h \
7082         sys/cdio.h \
7083         sys/elf32.h \
7084         sys/epoll.h \
7085         sys/errno.h \
7086         sys/exec_elf.h \
7087         sys/filio.h \
7088         sys/ioctl.h \
7089         sys/ipc.h \
7090         sys/limits.h \
7091         sys/link.h \
7092         sys/lwp.h \
7093         sys/mman.h \
7094         sys/modem.h \
7095         sys/msg.h \
7096         sys/mtio.h \
7097         sys/param.h \
7098         sys/poll.h \
7099         sys/prctl.h \
7100         sys/ptrace.h \
7101         sys/reg.h \
7102         sys/resource.h \
7103         sys/scsiio.h \
7104         sys/shm.h \
7105         sys/signal.h \
7106         sys/socket.h \
7107         sys/sockio.h \
7108         sys/soundcard.h \
7109         sys/statvfs.h \
7110         sys/strtio.h \
7111         sys/syscall.h \
7112         sys/sysctl.h \
7113         sys/time.h \
7114         sys/times.h \
7115         sys/uio.h \
7116         sys/un.h \
7117         sys/vm86.h \
7118         sys/wait.h \
7119         syscall.h \
7120         termios.h \
7121         unicode/ubidi.h \
7122         unistd.h \
7123         utime.h \
7124         valgrind/memcheck.h
7125
7126 do
7127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129   echo "$as_me:$LINENO: checking for $ac_header" >&5
7130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7132   echo $ECHO_N "(cached) $ECHO_C" >&6
7133 fi
7134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7136 else
7137   # Is the header compilable?
7138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146 $ac_includes_default
7147 #include <$ac_header>
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151   (eval $ac_compile) 2>conftest.er1
7152   ac_status=$?
7153   grep -v '^ *+' conftest.er1 >conftest.err
7154   rm -f conftest.er1
7155   cat conftest.err >&5
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); } &&
7158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; } &&
7164          { ac_try='test -s conftest.$ac_objext'
7165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166   (eval $ac_try) 2>&5
7167   ac_status=$?
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); }; }; then
7170   ac_header_compiler=yes
7171 else
7172   echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 ac_header_compiler=no
7176 fi
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7179 echo "${ECHO_T}$ac_header_compiler" >&6
7180
7181 # Is the header present?
7182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190 #include <$ac_header>
7191 _ACEOF
7192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7194   ac_status=$?
7195   grep -v '^ *+' conftest.er1 >conftest.err
7196   rm -f conftest.er1
7197   cat conftest.err >&5
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); } >/dev/null; then
7200   if test -s conftest.err; then
7201     ac_cpp_err=$ac_c_preproc_warn_flag
7202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7203   else
7204     ac_cpp_err=
7205   fi
7206 else
7207   ac_cpp_err=yes
7208 fi
7209 if test -z "$ac_cpp_err"; then
7210   ac_header_preproc=yes
7211 else
7212   echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215   ac_header_preproc=no
7216 fi
7217 rm -f conftest.err conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7219 echo "${ECHO_T}$ac_header_preproc" >&6
7220
7221 # So?  What about this header?
7222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7223   yes:no: )
7224     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7228     ac_header_preproc=yes
7229     ;;
7230   no:yes:* )
7231     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7233     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7234 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7235     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7237     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7238 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7241     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7243     (
7244       cat <<\_ASBOX
7245 ## ------------------------------------ ##
7246 ## Report this to wine-devel@winehq.org ##
7247 ## ------------------------------------ ##
7248 _ASBOX
7249     ) |
7250       sed "s/^/$as_me: WARNING:     /" >&2
7251     ;;
7252 esac
7253 echo "$as_me:$LINENO: checking for $ac_header" >&5
7254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   eval "$as_ac_Header=\$ac_header_preproc"
7259 fi
7260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7262
7263 fi
7264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7265   cat >>confdefs.h <<_ACEOF
7266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 _ACEOF
7268
7269 fi
7270
7271 done
7272
7273 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7274 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7275 if test "${ac_cv_header_stat_broken+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 #include <sys/types.h>
7285 #include <sys/stat.h>
7286
7287 #if defined(S_ISBLK) && defined(S_IFDIR)
7288 # if S_ISBLK (S_IFDIR)
7289 You lose.
7290 # endif
7291 #endif
7292
7293 #if defined(S_ISBLK) && defined(S_IFCHR)
7294 # if S_ISBLK (S_IFCHR)
7295 You lose.
7296 # endif
7297 #endif
7298
7299 #if defined(S_ISLNK) && defined(S_IFREG)
7300 # if S_ISLNK (S_IFREG)
7301 You lose.
7302 # endif
7303 #endif
7304
7305 #if defined(S_ISSOCK) && defined(S_IFREG)
7306 # if S_ISSOCK (S_IFREG)
7307 You lose.
7308 # endif
7309 #endif
7310
7311 _ACEOF
7312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313   $EGREP "You lose" >/dev/null 2>&1; then
7314   ac_cv_header_stat_broken=yes
7315 else
7316   ac_cv_header_stat_broken=no
7317 fi
7318 rm -f conftest*
7319
7320 fi
7321 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7322 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7323 if test $ac_cv_header_stat_broken = yes; then
7324
7325 cat >>confdefs.h <<\_ACEOF
7326 #define STAT_MACROS_BROKEN 1
7327 _ACEOF
7328
7329 fi
7330
7331
7332
7333
7334
7335
7336
7337 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7338 do
7339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7340 echo "$as_me:$LINENO: checking for $ac_header" >&5
7341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h.  */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h.  */
7351 #include <sys/types.h>
7352      #if HAVE_SYS_PARAM_H
7353      # include <sys/param.h>
7354      #endif
7355
7356 #include <$ac_header>
7357 _ACEOF
7358 rm -f conftest.$ac_objext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360   (eval $ac_compile) 2>conftest.er1
7361   ac_status=$?
7362   grep -v '^ *+' conftest.er1 >conftest.err
7363   rm -f conftest.er1
7364   cat conftest.err >&5
7365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366   (exit $ac_status); } &&
7367          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369   (eval $ac_try) 2>&5
7370   ac_status=$?
7371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372   (exit $ac_status); }; } &&
7373          { ac_try='test -s conftest.$ac_objext'
7374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375   (eval $ac_try) 2>&5
7376   ac_status=$?
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); }; }; then
7379   eval "$as_ac_Header=yes"
7380 else
7381   echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384 eval "$as_ac_Header=no"
7385 fi
7386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387 fi
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7391   cat >>confdefs.h <<_ACEOF
7392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7393 _ACEOF
7394
7395 fi
7396
7397 done
7398
7399
7400
7401
7402
7403
7404
7405
7406 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
7407 do
7408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h.  */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h.  */
7420 #include <sys/types.h>
7421      #if HAVE_SYS_SOCKET_H
7422      # include <sys/socket.h>
7423      #endif
7424
7425 #include <$ac_header>
7426 _ACEOF
7427 rm -f conftest.$ac_objext
7428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7429   (eval $ac_compile) 2>conftest.er1
7430   ac_status=$?
7431   grep -v '^ *+' conftest.er1 >conftest.err
7432   rm -f conftest.er1
7433   cat conftest.err >&5
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); } &&
7436          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438   (eval $ac_try) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); }; } &&
7442          { ac_try='test -s conftest.$ac_objext'
7443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444   (eval $ac_try) 2>&5
7445   ac_status=$?
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); }; }; then
7448   eval "$as_ac_Header=yes"
7449 else
7450   echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 eval "$as_ac_Header=no"
7454 fi
7455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7456 fi
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7460   cat >>confdefs.h <<_ACEOF
7461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7462 _ACEOF
7463
7464 fi
7465
7466 done
7467
7468
7469
7470 for ac_header in resolv.h
7471 do
7472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h.  */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h.  */
7484 #include <sys/types.h>
7485      #if HAVE_SYS_SOCKET_H
7486      # include <sys/socket.h>
7487      #endif
7488      #if HAVE_NETINET_IN_H
7489      # include <netinet/in.h>
7490      #endif
7491      #if HAVE_ARPA_NAMESER_H
7492      # include <arpa/nameser.h>
7493      #endif
7494
7495 #include <$ac_header>
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499   (eval $ac_compile) 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } &&
7506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508   (eval $ac_try) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; } &&
7512          { ac_try='test -s conftest.$ac_objext'
7513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514   (eval $ac_try) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); }; }; then
7518   eval "$as_ac_Header=yes"
7519 else
7520   echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523 eval "$as_ac_Header=no"
7524 fi
7525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7526 fi
7527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7530   cat >>confdefs.h <<_ACEOF
7531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7532 _ACEOF
7533
7534 fi
7535
7536 done
7537
7538
7539
7540 for ac_header in ucontext.h
7541 do
7542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7543 echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554 #include <signal.h>
7555
7556 #include <$ac_header>
7557 _ACEOF
7558 rm -f conftest.$ac_objext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7560   (eval $ac_compile) 2>conftest.er1
7561   ac_status=$?
7562   grep -v '^ *+' conftest.er1 >conftest.err
7563   rm -f conftest.er1
7564   cat conftest.err >&5
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); } &&
7567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569   (eval $ac_try) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; } &&
7573          { ac_try='test -s conftest.$ac_objext'
7574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575   (eval $ac_try) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); }; }; then
7579   eval "$as_ac_Header=yes"
7580 else
7581   echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7583
7584 eval "$as_ac_Header=no"
7585 fi
7586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7587 fi
7588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7591   cat >>confdefs.h <<_ACEOF
7592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7593 _ACEOF
7594
7595 fi
7596
7597 done
7598
7599
7600
7601
7602 for ac_header in linux/ipx.h linux/videodev.h
7603 do
7604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h.  */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h.  */
7616 #ifdef HAVE_SYS_TIME_H
7617 #include <sys/time.h>
7618 #endif
7619 #include <sys/types.h>
7620 #ifdef HAVE_ASM_TYPES_H
7621 #include <asm/types.h>
7622 #endif
7623
7624 #include <$ac_header>
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628   (eval $ac_compile) 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } &&
7635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637   (eval $ac_try) 2>&5
7638   ac_status=$?
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); }; } &&
7641          { ac_try='test -s conftest.$ac_objext'
7642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643   (eval $ac_try) 2>&5
7644   ac_status=$?
7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646   (exit $ac_status); }; }; then
7647   eval "$as_ac_Header=yes"
7648 else
7649   echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652 eval "$as_ac_Header=no"
7653 fi
7654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7655 fi
7656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7659   cat >>confdefs.h <<_ACEOF
7660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7661 _ACEOF
7662
7663 fi
7664
7665 done
7666
7667
7668
7669 for ac_header in linux/capi.h
7670 do
7671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672 echo "$as_me:$LINENO: checking for $ac_header" >&5
7673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h.  */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h.  */
7683 #define __user
7684
7685 #include <$ac_header>
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689   (eval $ac_compile) 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } &&
7696          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698   (eval $ac_try) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; } &&
7702          { ac_try='test -s conftest.$ac_objext'
7703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704   (eval $ac_try) 2>&5
7705   ac_status=$?
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); }; }; then
7708   eval "$as_ac_Header=yes"
7709 else
7710   echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7712
7713 eval "$as_ac_Header=no"
7714 fi
7715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7716 fi
7717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7720   cat >>confdefs.h <<_ACEOF
7721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7722 _ACEOF
7723
7724 fi
7725
7726 done
7727
7728
7729
7730 if test "$have_x" = "yes"
7731 then
7732     XLIB="-lXext -lX11"
7733     ac_save_CPPFLAGS="$CPPFLAGS"
7734     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746 for ac_header in X11/Xlib.h \
7747                       X11/XKBlib.h \
7748                       X11/Xutil.h \
7749                       X11/extensions/shape.h \
7750                       X11/extensions/XInput.h \
7751                       X11/extensions/XShm.h \
7752                       X11/extensions/Xrandr.h \
7753                       X11/extensions/Xrender.h \
7754                       X11/extensions/xf86dga.h \
7755                       X11/extensions/xf86vmode.h
7756 do
7757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7758 echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763   cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h.  */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h.  */
7769 #ifdef HAVE_X11_XLIB_H
7770 # include <X11/Xlib.h>
7771 #endif
7772 #ifdef HAVE_X11_XUTIL_H
7773 # include <X11/Xutil.h>
7774 #endif
7775
7776 #include <$ac_header>
7777 _ACEOF
7778 rm -f conftest.$ac_objext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780   (eval $ac_compile) 2>conftest.er1
7781   ac_status=$?
7782   grep -v '^ *+' conftest.er1 >conftest.err
7783   rm -f conftest.er1
7784   cat conftest.err >&5
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } &&
7787          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; } &&
7793          { ac_try='test -s conftest.$ac_objext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   eval "$as_ac_Header=yes"
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 eval "$as_ac_Header=no"
7805 fi
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807 fi
7808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7811   cat >>confdefs.h <<_ACEOF
7812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7813 _ACEOF
7814
7815 fi
7816
7817 done
7818
7819
7820                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7821         then
7822               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7823 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7824 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   ac_check_lib_save_LIBS=$LIBS
7828 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h.  */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h.  */
7835
7836 /* Override any gcc2 internal prototype to avoid an error.  */
7837 #ifdef __cplusplus
7838 extern "C"
7839 #endif
7840 /* We use char because int might match the return type of a gcc2
7841    builtin and then its argument prototype would still apply.  */
7842 char XkbQueryExtension ();
7843 int
7844 main ()
7845 {
7846 XkbQueryExtension ();
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853   (eval $ac_link) 2>conftest.er1
7854   ac_status=$?
7855   grep -v '^ *+' conftest.er1 >conftest.err
7856   rm -f conftest.er1
7857   cat conftest.err >&5
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); } &&
7860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862   (eval $ac_try) 2>&5
7863   ac_status=$?
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); }; } &&
7866          { ac_try='test -s conftest$ac_exeext'
7867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868   (eval $ac_try) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; }; then
7872   ac_cv_lib_X11_XkbQueryExtension=yes
7873 else
7874   echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877 ac_cv_lib_X11_XkbQueryExtension=no
7878 fi
7879 rm -f conftest.err conftest.$ac_objext \
7880       conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7882 fi
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7884 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7885 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_XKB 1
7889 _ACEOF
7890
7891 fi
7892
7893         fi
7894
7895                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7896         then
7897               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7898 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7899 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   ac_check_lib_save_LIBS=$LIBS
7903 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h.  */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h.  */
7910
7911 /* Override any gcc2 internal prototype to avoid an error.  */
7912 #ifdef __cplusplus
7913 extern "C"
7914 #endif
7915 /* We use char because int might match the return type of a gcc2
7916    builtin and then its argument prototype would still apply.  */
7917 char XShmQueryExtension ();
7918 int
7919 main ()
7920 {
7921 XShmQueryExtension ();
7922   ;
7923   return 0;
7924 }
7925 _ACEOF
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7928   (eval $ac_link) 2>conftest.er1
7929   ac_status=$?
7930   grep -v '^ *+' conftest.er1 >conftest.err
7931   rm -f conftest.er1
7932   cat conftest.err >&5
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); } &&
7935          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937   (eval $ac_try) 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); }; } &&
7941          { ac_try='test -s conftest$ac_exeext'
7942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943   (eval $ac_try) 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); }; }; then
7947   ac_cv_lib_Xext_XShmQueryExtension=yes
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952 ac_cv_lib_Xext_XShmQueryExtension=no
7953 fi
7954 rm -f conftest.err conftest.$ac_objext \
7955       conftest$ac_exeext conftest.$ac_ext
7956 LIBS=$ac_check_lib_save_LIBS
7957 fi
7958 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7959 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7960 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7961
7962 cat >>confdefs.h <<\_ACEOF
7963 #define HAVE_LIBXXSHM 1
7964 _ACEOF
7965
7966 fi
7967
7968         fi
7969
7970                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7971         then
7972               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7973 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7974 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   ac_check_lib_save_LIBS=$LIBS
7978 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h.  */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h.  */
7985
7986 /* Override any gcc2 internal prototype to avoid an error.  */
7987 #ifdef __cplusplus
7988 extern "C"
7989 #endif
7990 /* We use char because int might match the return type of a gcc2
7991    builtin and then its argument prototype would still apply.  */
7992 char XShapeQueryExtension ();
7993 int
7994 main ()
7995 {
7996 XShapeQueryExtension ();
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext conftest$ac_exeext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8003   (eval $ac_link) 2>conftest.er1
8004   ac_status=$?
8005   grep -v '^ *+' conftest.er1 >conftest.err
8006   rm -f conftest.er1
8007   cat conftest.err >&5
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } &&
8010          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012   (eval $ac_try) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; } &&
8016          { ac_try='test -s conftest$ac_exeext'
8017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018   (eval $ac_try) 2>&5
8019   ac_status=$?
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); }; }; then
8022   ac_cv_lib_Xext_XShapeQueryExtension=yes
8023 else
8024   echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8026
8027 ac_cv_lib_Xext_XShapeQueryExtension=no
8028 fi
8029 rm -f conftest.err conftest.$ac_objext \
8030       conftest$ac_exeext conftest.$ac_ext
8031 LIBS=$ac_check_lib_save_LIBS
8032 fi
8033 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8034 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8035 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8036
8037 cat >>confdefs.h <<\_ACEOF
8038 #define HAVE_LIBXSHAPE 1
8039 _ACEOF
8040
8041 fi
8042
8043         fi
8044
8045                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8046         then
8047               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8048 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8049 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   ac_check_lib_save_LIBS=$LIBS
8053 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 /* Override any gcc2 internal prototype to avoid an error.  */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 /* We use char because int might match the return type of a gcc2
8066    builtin and then its argument prototype would still apply.  */
8067 char XDGAQueryExtension ();
8068 int
8069 main ()
8070 {
8071 XDGAQueryExtension ();
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078   (eval $ac_link) 2>conftest.er1
8079   ac_status=$?
8080   grep -v '^ *+' conftest.er1 >conftest.err
8081   rm -f conftest.er1
8082   cat conftest.err >&5
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } &&
8085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087   (eval $ac_try) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); }; } &&
8091          { ac_try='test -s conftest$ac_exeext'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8103 fi
8104 rm -f conftest.err conftest.$ac_objext \
8105       conftest$ac_exeext conftest.$ac_ext
8106 LIBS=$ac_check_lib_save_LIBS
8107 fi
8108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8109 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8110 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8111
8112 cat >>confdefs.h <<\_ACEOF
8113 #define HAVE_LIBXXF86DGA2 1
8114 _ACEOF
8115
8116                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8117
8118 fi
8119
8120         fi
8121
8122                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8123         then
8124                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8125 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8126 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8127   echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129   ac_check_lib_save_LIBS=$LIBS
8130 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h.  */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h.  */
8137
8138 /* Override any gcc2 internal prototype to avoid an error.  */
8139 #ifdef __cplusplus
8140 extern "C"
8141 #endif
8142 /* We use char because int might match the return type of a gcc2
8143    builtin and then its argument prototype would still apply.  */
8144 char XF86VidModeQueryExtension ();
8145 int
8146 main ()
8147 {
8148 XF86VidModeQueryExtension ();
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155   (eval $ac_link) 2>conftest.er1
8156   ac_status=$?
8157   grep -v '^ *+' conftest.er1 >conftest.err
8158   rm -f conftest.er1
8159   cat conftest.err >&5
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } &&
8162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164   (eval $ac_try) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; } &&
8168          { ac_try='test -s conftest$ac_exeext'
8169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170   (eval $ac_try) 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8180 fi
8181 rm -f conftest.err conftest.$ac_objext \
8182       conftest$ac_exeext conftest.$ac_ext
8183 LIBS=$ac_check_lib_save_LIBS
8184 fi
8185 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8186 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8187 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8188
8189 cat >>confdefs.h <<\_ACEOF
8190 #define HAVE_LIBXXF86VM 1
8191 _ACEOF
8192
8193                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8194
8195 fi
8196
8197         fi
8198
8199                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8200         then
8201                 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h.  */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h.  */
8207 #include <X11/Xlib.h>
8208 #include <X11/extensions/Xrandr.h>
8209 int
8210 main ()
8211 {
8212 static typeof(XRRSetScreenConfigAndRate) * func;
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 rm -f conftest.$ac_objext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8219   (eval $ac_compile) 2>conftest.er1
8220   ac_status=$?
8221   grep -v '^ *+' conftest.er1 >conftest.err
8222   rm -f conftest.er1
8223   cat conftest.err >&5
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); } &&
8226          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228   (eval $ac_try) 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); }; } &&
8232          { ac_try='test -s conftest.$ac_objext'
8233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234   (eval $ac_try) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); }; }; then
8238
8239 cat >>confdefs.h <<\_ACEOF
8240 #define HAVE_LIBXRANDR 1
8241 _ACEOF
8242
8243 else
8244   echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247 fi
8248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8249         fi
8250
8251                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8252         then
8253               echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8254 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8255 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8256   echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258   ac_check_lib_save_LIBS=$LIBS
8259 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266
8267 /* Override any gcc2 internal prototype to avoid an error.  */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 /* We use char because int might match the return type of a gcc2
8272    builtin and then its argument prototype would still apply.  */
8273 char XRenderSetPictureTransform ();
8274 int
8275 main ()
8276 {
8277 XRenderSetPictureTransform ();
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284   (eval $ac_link) 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } &&
8291          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293   (eval $ac_try) 2>&5
8294   ac_status=$?
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); }; } &&
8297          { ac_try='test -s conftest$ac_exeext'
8298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299   (eval $ac_try) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; }; then
8303   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8304 else
8305   echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8309 fi
8310 rm -f conftest.err conftest.$ac_objext \
8311       conftest$ac_exeext conftest.$ac_ext
8312 LIBS=$ac_check_lib_save_LIBS
8313 fi
8314 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8315 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8316 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8317
8318 cat >>confdefs.h <<\_ACEOF
8319 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8320 _ACEOF
8321
8322 fi
8323
8324         fi
8325
8326         if test "x$with_opengl" != "xno"
8327     then
8328
8329
8330
8331
8332 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
8333 do
8334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8335 echo "$as_me:$LINENO: checking for $ac_header" >&5
8336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346 #ifdef HAVE_GL_GLX_H
8347 # include <GL/glx.h>
8348 #endif
8349
8350 #include <$ac_header>
8351 _ACEOF
8352 rm -f conftest.$ac_objext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8354   (eval $ac_compile) 2>conftest.er1
8355   ac_status=$?
8356   grep -v '^ *+' conftest.er1 >conftest.err
8357   rm -f conftest.er1
8358   cat conftest.err >&5
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } &&
8361          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363   (eval $ac_try) 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; } &&
8367          { ac_try='test -s conftest.$ac_objext'
8368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369   (eval $ac_try) 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); }; }; then
8373   eval "$as_ac_Header=yes"
8374 else
8375   echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8377
8378 eval "$as_ac_Header=no"
8379 fi
8380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8381 fi
8382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385   cat >>confdefs.h <<_ACEOF
8386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387 _ACEOF
8388
8389 fi
8390
8391 done
8392
8393         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8394         then
8395                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8396 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8397 if test "${wine_cv_opengl_version_OK+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406 #include <GL/gl.h>
8407 int
8408 main ()
8409 {
8410 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8417   (eval $ac_compile) 2>conftest.er1
8418   ac_status=$?
8419   grep -v '^ *+' conftest.er1 >conftest.err
8420   rm -f conftest.er1
8421   cat conftest.err >&5
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); } &&
8424          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; } &&
8430          { ac_try='test -s conftest.$ac_objext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   wine_cv_opengl_version_OK="yes"
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 wine_cv_opengl_version_OK="no"
8442
8443 fi
8444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8445
8446 fi
8447 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8448 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8449
8450             if test "$wine_cv_opengl_version_OK" = "yes"
8451             then
8452                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8453 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8454 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   ac_check_lib_save_LIBS=$LIBS
8458 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8459 cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h.  */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h.  */
8465
8466 /* Override any gcc2 internal prototype to avoid an error.  */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 /* We use char because int might match the return type of a gcc2
8471    builtin and then its argument prototype would still apply.  */
8472 char glXCreateContext ();
8473 int
8474 main ()
8475 {
8476 glXCreateContext ();
8477   ;
8478   return 0;
8479 }
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483   (eval $ac_link) 2>conftest.er1
8484   ac_status=$?
8485   grep -v '^ *+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492   (eval $ac_try) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; } &&
8496          { ac_try='test -s conftest$ac_exeext'
8497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498   (eval $ac_try) 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; }; then
8502   ac_cv_lib_GL_glXCreateContext=yes
8503 else
8504   echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 ac_cv_lib_GL_glXCreateContext=no
8508 fi
8509 rm -f conftest.err conftest.$ac_objext \
8510       conftest$ac_exeext conftest.$ac_ext
8511 LIBS=$ac_check_lib_save_LIBS
8512 fi
8513 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8514 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8515 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8516   OPENGL_LIBS="-lGL"
8517
8518 fi
8519
8520
8521                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8522                 then
8523                         OPENGLFILES='$(OPENGLFILES)'
8524
8525 cat >>confdefs.h <<\_ACEOF
8526 #define HAVE_OPENGL 1
8527 _ACEOF
8528
8529                 else
8530                     if test -f /usr/X11R6/lib/libGL.a
8531                     then
8532                        { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8533 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8534 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8535 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8536    { (exit 1); exit 1; }; }
8537                     fi
8538                 fi
8539
8540                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8541 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8542 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   ac_check_lib_save_LIBS=$LIBS
8546 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8547                  $LIBS"
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h.  */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h.  */
8554
8555 /* Override any gcc2 internal prototype to avoid an error.  */
8556 #ifdef __cplusplus
8557 extern "C"
8558 #endif
8559 /* We use char because int might match the return type of a gcc2
8560    builtin and then its argument prototype would still apply.  */
8561 char gluLookAt ();
8562 int
8563 main ()
8564 {
8565 gluLookAt ();
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572   (eval $ac_link) 2>conftest.er1
8573   ac_status=$?
8574   grep -v '^ *+' conftest.er1 >conftest.err
8575   rm -f conftest.er1
8576   cat conftest.err >&5
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); } &&
8579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581   (eval $ac_try) 2>&5
8582   ac_status=$?
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); }; } &&
8585          { ac_try='test -s conftest$ac_exeext'
8586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587   (eval $ac_try) 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); }; }; then
8591   ac_cv_lib_GLU_gluLookAt=yes
8592 else
8593   echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8595
8596 ac_cv_lib_GLU_gluLookAt=no
8597 fi
8598 rm -f conftest.err conftest.$ac_objext \
8599       conftest$ac_exeext conftest.$ac_ext
8600 LIBS=$ac_check_lib_save_LIBS
8601 fi
8602 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8603 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8604 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8605   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8606                              GLU32FILES='$(GLU32FILES)'
8607
8608 fi
8609
8610              fi
8611
8612                           echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8613 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8614 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8615   echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617   ac_check_lib_save_LIBS=$LIBS
8618 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h.  */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h.  */
8625
8626 /* Override any gcc2 internal prototype to avoid an error.  */
8627 #ifdef __cplusplus
8628 extern "C"
8629 #endif
8630 /* We use char because int might match the return type of a gcc2
8631    builtin and then its argument prototype would still apply.  */
8632 char glutMainLoop ();
8633 int
8634 main ()
8635 {
8636 glutMainLoop ();
8637   ;
8638   return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8643   (eval $ac_link) 2>conftest.er1
8644   ac_status=$?
8645   grep -v '^ *+' conftest.er1 >conftest.err
8646   rm -f conftest.er1
8647   cat conftest.err >&5
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); } &&
8650          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; } &&
8656          { ac_try='test -s conftest$ac_exeext'
8657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658   (eval $ac_try) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); }; }; then
8662   ac_cv_lib_glut_glutMainLoop=yes
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667 ac_cv_lib_glut_glutMainLoop=no
8668 fi
8669 rm -f conftest.err conftest.$ac_objext \
8670       conftest$ac_exeext conftest.$ac_ext
8671 LIBS=$ac_check_lib_save_LIBS
8672 fi
8673 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8674 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8675 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8676   GLUT_LIBS="-lglut -lXmu -lXi"
8677
8678                         GLUT32FILES='$(GLUT32FILES)'
8679
8680 fi
8681
8682          fi
8683     fi
8684
8685         NASLIBS=""
8686
8687
8688 for ac_header in audio/audiolib.h
8689 do
8690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8692   echo "$as_me:$LINENO: checking for $ac_header" >&5
8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 fi
8697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8699 else
8700   # Is the header compilable?
8701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h.  */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h.  */
8709 $ac_includes_default
8710 #include <$ac_header>
8711 _ACEOF
8712 rm -f conftest.$ac_objext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714   (eval $ac_compile) 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; } &&
8727          { ac_try='test -s conftest.$ac_objext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_header_compiler=yes
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_header_compiler=no
8739 fi
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8742 echo "${ECHO_T}$ac_header_compiler" >&6
8743
8744 # Is the header present?
8745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 #include <$ac_header>
8754 _ACEOF
8755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8757   ac_status=$?
8758   grep -v '^ *+' conftest.er1 >conftest.err
8759   rm -f conftest.er1
8760   cat conftest.err >&5
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } >/dev/null; then
8763   if test -s conftest.err; then
8764     ac_cpp_err=$ac_c_preproc_warn_flag
8765     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8766   else
8767     ac_cpp_err=
8768   fi
8769 else
8770   ac_cpp_err=yes
8771 fi
8772 if test -z "$ac_cpp_err"; then
8773   ac_header_preproc=yes
8774 else
8775   echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778   ac_header_preproc=no
8779 fi
8780 rm -f conftest.err conftest.$ac_ext
8781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8782 echo "${ECHO_T}$ac_header_preproc" >&6
8783
8784 # So?  What about this header?
8785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8786   yes:no: )
8787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8791     ac_header_preproc=yes
8792     ;;
8793   no:yes:* )
8794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8796     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8797 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8798     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8800     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8801 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8804     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8806     (
8807       cat <<\_ASBOX
8808 ## ------------------------------------ ##
8809 ## Report this to wine-devel@winehq.org ##
8810 ## ------------------------------------ ##
8811 _ASBOX
8812     ) |
8813       sed "s/^/$as_me: WARNING:     /" >&2
8814     ;;
8815 esac
8816 echo "$as_me:$LINENO: checking for $ac_header" >&5
8817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821   eval "$as_ac_Header=\$ac_header_preproc"
8822 fi
8823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8825
8826 fi
8827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8828   cat >>confdefs.h <<_ACEOF
8829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8830 _ACEOF
8831
8832 for ac_header in audio/soundlib.h
8833 do
8834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8835 echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8838   echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840   cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846 #include <audio/audiolib.h>
8847
8848 #include <$ac_header>
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852   (eval $ac_compile) 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; } &&
8865          { ac_try='test -s conftest.$ac_objext'
8866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   eval "$as_ac_Header=yes"
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 eval "$as_ac_Header=no"
8877 fi
8878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8879 fi
8880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8883   cat >>confdefs.h <<_ACEOF
8884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8885 _ACEOF
8886
8887 fi
8888
8889 done
8890
8891           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8892 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8893 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8894   echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896   ac_check_lib_save_LIBS=$LIBS
8897 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904
8905 /* Override any gcc2 internal prototype to avoid an error.  */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 /* We use char because int might match the return type of a gcc2
8910    builtin and then its argument prototype would still apply.  */
8911 char AuCreateFlow ();
8912 int
8913 main ()
8914 {
8915 AuCreateFlow ();
8916   ;
8917   return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922   (eval $ac_link) 2>conftest.er1
8923   ac_status=$?
8924   grep -v '^ *+' conftest.er1 >conftest.err
8925   rm -f conftest.er1
8926   cat conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } &&
8929          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931   (eval $ac_try) 2>&5
8932   ac_status=$?
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); }; } &&
8935          { ac_try='test -s conftest$ac_exeext'
8936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937   (eval $ac_try) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; }; then
8941   ac_cv_lib_audio_AuCreateFlow=yes
8942 else
8943   echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946 ac_cv_lib_audio_AuCreateFlow=no
8947 fi
8948 rm -f conftest.err conftest.$ac_objext \
8949       conftest$ac_exeext conftest.$ac_ext
8950 LIBS=$ac_check_lib_save_LIBS
8951 fi
8952 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8953 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8954 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8955
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_NAS 1
8958 _ACEOF
8959
8960                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8961 fi
8962
8963 fi
8964
8965 done
8966
8967
8968     CPPFLAGS="$ac_save_CPPFLAGS"
8969     XFILES='$(XFILES)'
8970 else
8971     XLIB=""
8972     X_CFLAGS=""
8973     X_LIBS=""
8974 fi
8975
8976
8977 XML2LIBS=""
8978
8979 XML2INCL=""
8980
8981 XSLTLIBS=""
8982
8983 XSLTINCL=""
8984
8985 if test "$PKG_CONFIG" != "false"
8986 then
8987     ac_save_CPPFLAGS="$CPPFLAGS"
8988     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0`"
8989     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0`"
8990     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8991
8992 for ac_header in libxml/parser.h
8993 do
8994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996   echo "$as_me:$LINENO: checking for $ac_header" >&5
8997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 fi
9001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9003 else
9004   # Is the header compilable?
9005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h.  */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h.  */
9013 $ac_includes_default
9014 #include <$ac_header>
9015 _ACEOF
9016 rm -f conftest.$ac_objext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9018   (eval $ac_compile) 2>conftest.er1
9019   ac_status=$?
9020   grep -v '^ *+' conftest.er1 >conftest.err
9021   rm -f conftest.er1
9022   cat conftest.err >&5
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); } &&
9025          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027   (eval $ac_try) 2>&5
9028   ac_status=$?
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); }; } &&
9031          { ac_try='test -s conftest.$ac_objext'
9032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033   (eval $ac_try) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); }; }; then
9037   ac_header_compiler=yes
9038 else
9039   echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9041
9042 ac_header_compiler=no
9043 fi
9044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9046 echo "${ECHO_T}$ac_header_compiler" >&6
9047
9048 # Is the header present?
9049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9051 cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h.  */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h.  */
9057 #include <$ac_header>
9058 _ACEOF
9059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9061   ac_status=$?
9062   grep -v '^ *+' conftest.er1 >conftest.err
9063   rm -f conftest.er1
9064   cat conftest.err >&5
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); } >/dev/null; then
9067   if test -s conftest.err; then
9068     ac_cpp_err=$ac_c_preproc_warn_flag
9069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9070   else
9071     ac_cpp_err=
9072   fi
9073 else
9074   ac_cpp_err=yes
9075 fi
9076 if test -z "$ac_cpp_err"; then
9077   ac_header_preproc=yes
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082   ac_header_preproc=no
9083 fi
9084 rm -f conftest.err conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086 echo "${ECHO_T}$ac_header_preproc" >&6
9087
9088 # So?  What about this header?
9089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9090   yes:no: )
9091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9095     ac_header_preproc=yes
9096     ;;
9097   no:yes:* )
9098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9110     (
9111       cat <<\_ASBOX
9112 ## ------------------------------------ ##
9113 ## Report this to wine-devel@winehq.org ##
9114 ## ------------------------------------ ##
9115 _ASBOX
9116     ) |
9117       sed "s/^/$as_me: WARNING:     /" >&2
9118     ;;
9119 esac
9120 echo "$as_me:$LINENO: checking for $ac_header" >&5
9121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123   echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125   eval "$as_ac_Header=\$ac_header_preproc"
9126 fi
9127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9129
9130 fi
9131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9132   cat >>confdefs.h <<_ACEOF
9133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9134 _ACEOF
9135  echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
9136 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6
9137 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
9138   echo $ECHO_N "(cached) $ECHO_C" >&6
9139 else
9140   ac_check_lib_save_LIBS=$LIBS
9141 LIBS="-lxml2 $ac_xml_libs $LIBS"
9142 cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h.  */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h.  */
9148
9149 /* Override any gcc2 internal prototype to avoid an error.  */
9150 #ifdef __cplusplus
9151 extern "C"
9152 #endif
9153 /* We use char because int might match the return type of a gcc2
9154    builtin and then its argument prototype would still apply.  */
9155 char xmlParseMemory ();
9156 int
9157 main ()
9158 {
9159 xmlParseMemory ();
9160   ;
9161   return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166   (eval $ac_link) 2>conftest.er1
9167   ac_status=$?
9168   grep -v '^ *+' conftest.er1 >conftest.err
9169   rm -f conftest.er1
9170   cat conftest.err >&5
9171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172   (exit $ac_status); } &&
9173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175   (eval $ac_try) 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); }; } &&
9179          { ac_try='test -s conftest$ac_exeext'
9180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181   (eval $ac_try) 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); }; }; then
9185   ac_cv_lib_xml2_xmlParseMemory=yes
9186 else
9187   echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190 ac_cv_lib_xml2_xmlParseMemory=no
9191 fi
9192 rm -f conftest.err conftest.$ac_objext \
9193       conftest$ac_exeext conftest.$ac_ext
9194 LIBS=$ac_check_lib_save_LIBS
9195 fi
9196 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9197 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6
9198 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
9199
9200 cat >>confdefs.h <<\_ACEOF
9201 #define HAVE_LIBXML2 1
9202 _ACEOF
9203
9204              XML2LIBS="$ac_xml_libs"
9205              XML2INCL="$ac_xml_cflags"
9206 fi
9207
9208          echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
9209 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6
9210 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
9211   echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213   ac_check_lib_save_LIBS=$LIBS
9214 LIBS="-lxml2 $ac_xml_libs $LIBS"
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221
9222 /* Override any gcc2 internal prototype to avoid an error.  */
9223 #ifdef __cplusplus
9224 extern "C"
9225 #endif
9226 /* We use char because int might match the return type of a gcc2
9227    builtin and then its argument prototype would still apply.  */
9228 char xmlReadMemory ();
9229 int
9230 main ()
9231 {
9232 xmlReadMemory ();
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239   (eval $ac_link) 2>conftest.er1
9240   ac_status=$?
9241   grep -v '^ *+' conftest.er1 >conftest.err
9242   rm -f conftest.er1
9243   cat conftest.err >&5
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); } &&
9246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248   (eval $ac_try) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); }; } &&
9252          { ac_try='test -s conftest$ac_exeext'
9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254   (eval $ac_try) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; }; then
9258   ac_cv_lib_xml2_xmlReadMemory=yes
9259 else
9260   echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 ac_cv_lib_xml2_xmlReadMemory=no
9264 fi
9265 rm -f conftest.err conftest.$ac_objext \
9266       conftest$ac_exeext conftest.$ac_ext
9267 LIBS=$ac_check_lib_save_LIBS
9268 fi
9269 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9270 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6
9271 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
9272
9273 cat >>confdefs.h <<\_ACEOF
9274 #define HAVE_XMLREADMEMORY 1
9275 _ACEOF
9276
9277 fi
9278
9279
9280 fi
9281
9282 done
9283
9284     CPPFLAGS="$ac_save_CPPFLAGS"
9285     ac_xslt_libs="`$PKG_CONFIG --libs libxslt`"
9286     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt`"
9287     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9288
9289
9290 for ac_header in libxslt/pattern.h libxslt/transform.h
9291 do
9292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9293 echo "$as_me:$LINENO: checking for $ac_header" >&5
9294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304 #ifdef HAVE_LIBXSLT_PATTERN_H
9305 # include <libxslt/pattern.h>
9306 #endif
9307
9308 #include <$ac_header>
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312   (eval $ac_compile) 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } &&
9319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321   (eval $ac_try) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; } &&
9325          { ac_try='test -s conftest.$ac_objext'
9326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327   (eval $ac_try) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); }; }; then
9331   eval "$as_ac_Header=yes"
9332 else
9333   echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9335
9336 eval "$as_ac_Header=no"
9337 fi
9338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9339 fi
9340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9343   cat >>confdefs.h <<_ACEOF
9344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9345 _ACEOF
9346  echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
9347 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6
9348 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   ac_check_lib_save_LIBS=$LIBS
9352 LIBS="-lxslt $ac_xslt_libs $LIBS"
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359
9360 /* Override any gcc2 internal prototype to avoid an error.  */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 /* We use char because int might match the return type of a gcc2
9365    builtin and then its argument prototype would still apply.  */
9366 char xsltCompilePattern ();
9367 int
9368 main ()
9369 {
9370 xsltCompilePattern ();
9371   ;
9372   return 0;
9373 }
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377   (eval $ac_link) 2>conftest.er1
9378   ac_status=$?
9379   grep -v '^ *+' conftest.er1 >conftest.err
9380   rm -f conftest.er1
9381   cat conftest.err >&5
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); } &&
9384          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386   (eval $ac_try) 2>&5
9387   ac_status=$?
9388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); }; } &&
9390          { ac_try='test -s conftest$ac_exeext'
9391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392   (eval $ac_try) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; }; then
9396   ac_cv_lib_xslt_xsltCompilePattern=yes
9397 else
9398   echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401 ac_cv_lib_xslt_xsltCompilePattern=no
9402 fi
9403 rm -f conftest.err conftest.$ac_objext \
9404       conftest$ac_exeext conftest.$ac_ext
9405 LIBS=$ac_check_lib_save_LIBS
9406 fi
9407 echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
9408 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6
9409 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
9410
9411 cat >>confdefs.h <<\_ACEOF
9412 #define HAVE_LIBXSLT 1
9413 _ACEOF
9414
9415              XSLTLIBS="$ac_xslt_libs"
9416              XSLTINCL="$ac_xslt_cflags"
9417 fi
9418
9419
9420 fi
9421
9422 done
9423
9424     CPPFLAGS="$ac_save_CPPFLAGS"
9425 fi
9426
9427 HALINCL=""
9428
9429 if test "$PKG_CONFIG" != "false"
9430 then
9431     ac_save_CPPFLAGS="$CPPFLAGS"
9432     ac_hal_libs="`$PKG_CONFIG --libs hal`"
9433     ac_hal_cflags="`$PKG_CONFIG --cflags hal`"
9434     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9435
9436
9437 for ac_header in dbus/dbus.h hal/libhal.h
9438 do
9439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9441   echo "$as_me:$LINENO: checking for $ac_header" >&5
9442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9444   echo $ECHO_N "(cached) $ECHO_C" >&6
9445 fi
9446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9448 else
9449   # Is the header compilable?
9450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9452 cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h.  */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h.  */
9458 $ac_includes_default
9459 #include <$ac_header>
9460 _ACEOF
9461 rm -f conftest.$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463   (eval $ac_compile) 2>conftest.er1
9464   ac_status=$?
9465   grep -v '^ *+' conftest.er1 >conftest.err
9466   rm -f conftest.er1
9467   cat conftest.err >&5
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); } &&
9470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472   (eval $ac_try) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); }; } &&
9476          { ac_try='test -s conftest.$ac_objext'
9477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478   (eval $ac_try) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; }; then
9482   ac_header_compiler=yes
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487 ac_header_compiler=no
9488 fi
9489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9491 echo "${ECHO_T}$ac_header_compiler" >&6
9492
9493 # Is the header present?
9494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h.  */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h.  */
9502 #include <$ac_header>
9503 _ACEOF
9504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9506   ac_status=$?
9507   grep -v '^ *+' conftest.er1 >conftest.err
9508   rm -f conftest.er1
9509   cat conftest.err >&5
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } >/dev/null; then
9512   if test -s conftest.err; then
9513     ac_cpp_err=$ac_c_preproc_warn_flag
9514     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9515   else
9516     ac_cpp_err=
9517   fi
9518 else
9519   ac_cpp_err=yes
9520 fi
9521 if test -z "$ac_cpp_err"; then
9522   ac_header_preproc=yes
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527   ac_header_preproc=no
9528 fi
9529 rm -f conftest.err conftest.$ac_ext
9530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9531 echo "${ECHO_T}$ac_header_preproc" >&6
9532
9533 # So?  What about this header?
9534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9535   yes:no: )
9536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9540     ac_header_preproc=yes
9541     ;;
9542   no:yes:* )
9543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9545     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9546 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9547     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9549     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9550 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9553     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9555     (
9556       cat <<\_ASBOX
9557 ## ------------------------------------ ##
9558 ## Report this to wine-devel@winehq.org ##
9559 ## ------------------------------------ ##
9560 _ASBOX
9561     ) |
9562       sed "s/^/$as_me: WARNING:     /" >&2
9563     ;;
9564 esac
9565 echo "$as_me:$LINENO: checking for $ac_header" >&5
9566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9568   echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570   eval "$as_ac_Header=\$ac_header_preproc"
9571 fi
9572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9574
9575 fi
9576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9577   cat >>confdefs.h <<_ACEOF
9578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9579 _ACEOF
9580  echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
9581 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6
9582 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
9583   echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585   ac_check_lib_save_LIBS=$LIBS
9586 LIBS="-lhal $ac_hal_libs $LIBS"
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h.  */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h.  */
9593
9594 /* Override any gcc2 internal prototype to avoid an error.  */
9595 #ifdef __cplusplus
9596 extern "C"
9597 #endif
9598 /* We use char because int might match the return type of a gcc2
9599    builtin and then its argument prototype would still apply.  */
9600 char libhal_ctx_new ();
9601 int
9602 main ()
9603 {
9604 libhal_ctx_new ();
9605   ;
9606   return 0;
9607 }
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611   (eval $ac_link) 2>conftest.er1
9612   ac_status=$?
9613   grep -v '^ *+' conftest.er1 >conftest.err
9614   rm -f conftest.er1
9615   cat conftest.err >&5
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); } &&
9618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620   (eval $ac_try) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; } &&
9624          { ac_try='test -s conftest$ac_exeext'
9625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626   (eval $ac_try) 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); }; }; then
9630   ac_cv_lib_hal_libhal_ctx_new=yes
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635 ac_cv_lib_hal_libhal_ctx_new=no
9636 fi
9637 rm -f conftest.err conftest.$ac_objext \
9638       conftest$ac_exeext conftest.$ac_ext
9639 LIBS=$ac_check_lib_save_LIBS
9640 fi
9641 echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
9642 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6
9643 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
9644
9645 cat >>confdefs.h <<\_ACEOF
9646 #define HAVE_LIBHAL 1
9647 _ACEOF
9648
9649              HALINCL="$ac_hal_cflags"
9650 fi
9651
9652 fi
9653
9654 done
9655
9656     CPPFLAGS="$ac_save_CPPFLAGS"
9657 fi
9658
9659 CURSESLIBS=""
9660 if test "x$with_curses" != "xno"
9661 then
9662     if test "$ac_cv_header_ncurses_h" = "yes"
9663     then
9664         echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9665 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9666 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9667   echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669   ac_check_lib_save_LIBS=$LIBS
9670 LIBS="-lncurses  $LIBS"
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h.  */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h.  */
9677
9678 /* Override any gcc2 internal prototype to avoid an error.  */
9679 #ifdef __cplusplus
9680 extern "C"
9681 #endif
9682 /* We use char because int might match the return type of a gcc2
9683    builtin and then its argument prototype would still apply.  */
9684 char waddch ();
9685 int
9686 main ()
9687 {
9688 waddch ();
9689   ;
9690   return 0;
9691 }
9692 _ACEOF
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695   (eval $ac_link) 2>conftest.er1
9696   ac_status=$?
9697   grep -v '^ *+' conftest.er1 >conftest.err
9698   rm -f conftest.er1
9699   cat conftest.err >&5
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } &&
9702          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; } &&
9708          { ac_try='test -s conftest$ac_exeext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   ac_cv_lib_ncurses_waddch=yes
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 ac_cv_lib_ncurses_waddch=no
9720 fi
9721 rm -f conftest.err conftest.$ac_objext \
9722       conftest$ac_exeext conftest.$ac_ext
9723 LIBS=$ac_check_lib_save_LIBS
9724 fi
9725 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9726 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9727 if test $ac_cv_lib_ncurses_waddch = yes; then
9728
9729 cat >>confdefs.h <<\_ACEOF
9730 #define HAVE_LIBNCURSES 1
9731 _ACEOF
9732
9733              CURSESLIBS="-lncurses"
9734 fi
9735
9736     elif test "$ac_cv_header_curses_h" = "yes"
9737     then
9738         echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9739 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9740 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743   ac_check_lib_save_LIBS=$LIBS
9744 LIBS="-lcurses  $LIBS"
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751
9752 /* Override any gcc2 internal prototype to avoid an error.  */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 /* We use char because int might match the return type of a gcc2
9757    builtin and then its argument prototype would still apply.  */
9758 char waddch ();
9759 int
9760 main ()
9761 {
9762 waddch ();
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769   (eval $ac_link) 2>conftest.er1
9770   ac_status=$?
9771   grep -v '^ *+' conftest.er1 >conftest.err
9772   rm -f conftest.er1
9773   cat conftest.err >&5
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } &&
9776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; } &&
9782          { ac_try='test -s conftest$ac_exeext'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; }; then
9788   ac_cv_lib_curses_waddch=yes
9789 else
9790   echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 ac_cv_lib_curses_waddch=no
9794 fi
9795 rm -f conftest.err conftest.$ac_objext \
9796       conftest$ac_exeext conftest.$ac_ext
9797 LIBS=$ac_check_lib_save_LIBS
9798 fi
9799 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9800 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9801 if test $ac_cv_lib_curses_waddch = yes; then
9802
9803 cat >>confdefs.h <<\_ACEOF
9804 #define HAVE_LIBCURSES 1
9805 _ACEOF
9806
9807              CURSESLIBS="-lcurses"
9808 fi
9809
9810     fi
9811 fi
9812
9813
9814 # Extract the first word of "sane-config", so it can be a program name with args.
9815 set dummy sane-config; ac_word=$2
9816 echo "$as_me:$LINENO: checking for $ac_word" >&5
9817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9818 if test "${ac_cv_prog_sane_devel+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   if test -n "$sane_devel"; then
9822   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9823 else
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9826 do
9827   IFS=$as_save_IFS
9828   test -z "$as_dir" && as_dir=.
9829   for ac_exec_ext in '' $ac_executable_extensions; do
9830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9831     ac_cv_prog_sane_devel="sane-config"
9832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9833     break 2
9834   fi
9835 done
9836 done
9837
9838   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9839 fi
9840 fi
9841 sane_devel=$ac_cv_prog_sane_devel
9842 if test -n "$sane_devel"; then
9843   echo "$as_me:$LINENO: result: $sane_devel" >&5
9844 echo "${ECHO_T}$sane_devel" >&6
9845 else
9846   echo "$as_me:$LINENO: result: no" >&5
9847 echo "${ECHO_T}no" >&6
9848 fi
9849
9850 SANELIBS=""
9851
9852 SANEINCL=""
9853
9854 if test "$sane_devel" != "no"
9855 then
9856     SANELIBS="`$sane_devel --libs`"
9857     SANEINCL="`$sane_devel --cflags`"
9858     ac_save_CPPFLAGS="$CPPFLAGS"
9859     ac_save_LIBS="$LIBS"
9860     CPPFLAGS="$CPPFLAGS $SANEINCL"
9861     LIBS="$LIBS $SANELIBS"
9862     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9863   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9864 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9865 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 fi
9868 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9869 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9870 else
9871   # Is the header compilable?
9872 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9873 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h.  */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h.  */
9880 $ac_includes_default
9881 #include <sane/sane.h>
9882 _ACEOF
9883 rm -f conftest.$ac_objext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9885   (eval $ac_compile) 2>conftest.er1
9886   ac_status=$?
9887   grep -v '^ *+' conftest.er1 >conftest.err
9888   rm -f conftest.er1
9889   cat conftest.err >&5
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); } &&
9892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894   (eval $ac_try) 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; } &&
9898          { ac_try='test -s conftest.$ac_objext'
9899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900   (eval $ac_try) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); }; }; then
9904   ac_header_compiler=yes
9905 else
9906   echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909 ac_header_compiler=no
9910 fi
9911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9913 echo "${ECHO_T}$ac_header_compiler" >&6
9914
9915 # Is the header present?
9916 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9917 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h.  */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h.  */
9924 #include <sane/sane.h>
9925 _ACEOF
9926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } >/dev/null; then
9934   if test -s conftest.err; then
9935     ac_cpp_err=$ac_c_preproc_warn_flag
9936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9937   else
9938     ac_cpp_err=
9939   fi
9940 else
9941   ac_cpp_err=yes
9942 fi
9943 if test -z "$ac_cpp_err"; then
9944   ac_header_preproc=yes
9945 else
9946   echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949   ac_header_preproc=no
9950 fi
9951 rm -f conftest.err conftest.$ac_ext
9952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9953 echo "${ECHO_T}$ac_header_preproc" >&6
9954
9955 # So?  What about this header?
9956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9957   yes:no: )
9958     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9959 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9960     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9961 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9962     ac_header_preproc=yes
9963     ;;
9964   no:yes:* )
9965     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9966 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9967     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
9968 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
9969     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9970 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9971     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
9972 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9973     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9974 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9975     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9976 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9977     (
9978       cat <<\_ASBOX
9979 ## ------------------------------------ ##
9980 ## Report this to wine-devel@winehq.org ##
9981 ## ------------------------------------ ##
9982 _ASBOX
9983     ) |
9984       sed "s/^/$as_me: WARNING:     /" >&2
9985     ;;
9986 esac
9987 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9988 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9989 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   ac_cv_header_sane_sane_h=$ac_header_preproc
9993 fi
9994 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9995 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9996
9997 fi
9998 if test $ac_cv_header_sane_sane_h = yes; then
9999   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10000 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10001 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10002   echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004   ac_check_lib_save_LIBS=$LIBS
10005 LIBS="-lsane  $LIBS"
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h.  */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h.  */
10012
10013 /* Override any gcc2 internal prototype to avoid an error.  */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 /* We use char because int might match the return type of a gcc2
10018    builtin and then its argument prototype would still apply.  */
10019 char sane_open ();
10020 int
10021 main ()
10022 {
10023 sane_open ();
10024   ;
10025   return 0;
10026 }
10027 _ACEOF
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030   (eval $ac_link) 2>conftest.er1
10031   ac_status=$?
10032   grep -v '^ *+' conftest.er1 >conftest.err
10033   rm -f conftest.er1
10034   cat conftest.err >&5
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); } &&
10037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039   (eval $ac_try) 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; } &&
10043          { ac_try='test -s conftest$ac_exeext'
10044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045   (eval $ac_try) 2>&5
10046   ac_status=$?
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); }; }; then
10049   ac_cv_lib_sane_sane_open=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_cv_lib_sane_sane_open=no
10055 fi
10056 rm -f conftest.err conftest.$ac_objext \
10057       conftest$ac_exeext conftest.$ac_ext
10058 LIBS=$ac_check_lib_save_LIBS
10059 fi
10060 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10061 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10062 if test $ac_cv_lib_sane_sane_open = yes; then
10063
10064 cat >>confdefs.h <<\_ACEOF
10065 #define HAVE_SANE 1
10066 _ACEOF
10067
10068 else
10069   SANELIBS=""
10070                                   SANEINCL=""
10071 fi
10072
10073 else
10074   SANELIBS=""
10075                     SANEINCL=""
10076 fi
10077
10078
10079     LIBS="$ac_save_LIBS"
10080     CPPFLAGS="$ac_save_CPPFLAGS"
10081 fi
10082
10083 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10084 then
10085     saved_libs="$LIBS"
10086     ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10087     ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
10088     ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
10089     echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
10090 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
10091     LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10092     cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h.  */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h.  */
10098 #include <unicode/ubidi.h>
10099 int
10100 main ()
10101 {
10102 ubidi_open()
10103   ;
10104   return 0;
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109   (eval $ac_link) 2>conftest.er1
10110   ac_status=$?
10111   grep -v '^ *+' conftest.er1 >conftest.err
10112   rm -f conftest.er1
10113   cat conftest.err >&5
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } &&
10116          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; } &&
10122          { ac_try='test -s conftest$ac_exeext'
10123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124   (eval $ac_try) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128
10129 cat >>confdefs.h <<\_ACEOF
10130 #define HAVE_ICU 1
10131 _ACEOF
10132
10133                  ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10134
10135                  echo "$as_me:$LINENO: result: yes" >&5
10136 echo "${ECHO_T}yes" >&6
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141 echo "$as_me:$LINENO: result: no" >&5
10142 echo "${ECHO_T}no" >&6
10143 fi
10144 rm -f conftest.err conftest.$ac_objext \
10145       conftest$ac_exeext conftest.$ac_ext
10146     LIBS="$saved_libs"
10147 fi
10148
10149 RESOLVLIBS=""
10150
10151 if test "$ac_cv_header_resolv_h" = "yes"
10152 then
10153     echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
10154 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
10155 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-lresolv  $LIBS"
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h.  */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h.  */
10166
10167 /* Override any gcc2 internal prototype to avoid an error.  */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 /* We use char because int might match the return type of a gcc2
10172    builtin and then its argument prototype would still apply.  */
10173 char res_query ();
10174 int
10175 main ()
10176 {
10177 res_query ();
10178   ;
10179   return 0;
10180 }
10181 _ACEOF
10182 rm -f conftest.$ac_objext conftest$ac_exeext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10184   (eval $ac_link) 2>conftest.er1
10185   ac_status=$?
10186   grep -v '^ *+' conftest.er1 >conftest.err
10187   rm -f conftest.er1
10188   cat conftest.err >&5
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); } &&
10191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193   (eval $ac_try) 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; } &&
10197          { ac_try='test -s conftest$ac_exeext'
10198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199   (eval $ac_try) 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; }; then
10203   ac_cv_lib_resolv_res_query=yes
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208 ac_cv_lib_resolv_res_query=no
10209 fi
10210 rm -f conftest.err conftest.$ac_objext \
10211       conftest$ac_exeext conftest.$ac_ext
10212 LIBS=$ac_check_lib_save_LIBS
10213 fi
10214 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
10215 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6
10216 if test $ac_cv_lib_resolv_res_query = yes; then
10217
10218 cat >>confdefs.h <<\_ACEOF
10219 #define HAVE_RESOLV 1
10220 _ACEOF
10221
10222          RESOLVLIBS="-lresolv"
10223 fi
10224
10225 fi
10226
10227 LCMSLIBS=""
10228
10229 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10230 then
10231     echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
10232 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6
10233 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
10234   echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236   ac_check_lib_save_LIBS=$LIBS
10237 LIBS="-llcms  $LIBS"
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h.  */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h.  */
10244
10245 /* Override any gcc2 internal prototype to avoid an error.  */
10246 #ifdef __cplusplus
10247 extern "C"
10248 #endif
10249 /* We use char because int might match the return type of a gcc2
10250    builtin and then its argument prototype would still apply.  */
10251 char cmsOpenProfileFromFile ();
10252 int
10253 main ()
10254 {
10255 cmsOpenProfileFromFile ();
10256   ;
10257   return 0;
10258 }
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262   (eval $ac_link) 2>conftest.er1
10263   ac_status=$?
10264   grep -v '^ *+' conftest.er1 >conftest.err
10265   rm -f conftest.er1
10266   cat conftest.err >&5
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); } &&
10269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271   (eval $ac_try) 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); }; } &&
10275          { ac_try='test -s conftest$ac_exeext'
10276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277   (eval $ac_try) 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); }; }; then
10281   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10282 else
10283   echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10285
10286 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10287 fi
10288 rm -f conftest.err conftest.$ac_objext \
10289       conftest$ac_exeext conftest.$ac_ext
10290 LIBS=$ac_check_lib_save_LIBS
10291 fi
10292 echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10293 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6
10294 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
10295
10296 cat >>confdefs.h <<\_ACEOF
10297 #define HAVE_LCMS 1
10298 _ACEOF
10299
10300          LCMSLIBS="-llcms"
10301 fi
10302
10303 fi
10304
10305 LDAPLIBS=""
10306
10307 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
10308 then
10309     echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
10310 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6
10311 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
10312   echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314   ac_check_lib_save_LIBS=$LIBS
10315 LIBS="-lldap_r $LIBPTHREAD $LIBS"
10316 cat >conftest.$ac_ext <<_ACEOF
10317 /* confdefs.h.  */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h.  */
10322
10323 /* Override any gcc2 internal prototype to avoid an error.  */
10324 #ifdef __cplusplus
10325 extern "C"
10326 #endif
10327 /* We use char because int might match the return type of a gcc2
10328    builtin and then its argument prototype would still apply.  */
10329 char ldap_initialize ();
10330 int
10331 main ()
10332 {
10333 ldap_initialize ();
10334   ;
10335   return 0;
10336 }
10337 _ACEOF
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10340   (eval $ac_link) 2>conftest.er1
10341   ac_status=$?
10342   grep -v '^ *+' conftest.er1 >conftest.err
10343   rm -f conftest.er1
10344   cat conftest.err >&5
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); } &&
10347          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349   (eval $ac_try) 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); }; } &&
10353          { ac_try='test -s conftest$ac_exeext'
10354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355   (eval $ac_try) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; }; then
10359   ac_cv_lib_ldap_r_ldap_initialize=yes
10360 else
10361   echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10363
10364 ac_cv_lib_ldap_r_ldap_initialize=no
10365 fi
10366 rm -f conftest.err conftest.$ac_objext \
10367       conftest$ac_exeext conftest.$ac_ext
10368 LIBS=$ac_check_lib_save_LIBS
10369 fi
10370 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
10371 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6
10372 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
10373   echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10374 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6
10375 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10376   echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378   ac_check_lib_save_LIBS=$LIBS
10379 LIBS="-llber $LIBPTHREAD $LIBS"
10380 cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386
10387 /* Override any gcc2 internal prototype to avoid an error.  */
10388 #ifdef __cplusplus
10389 extern "C"
10390 #endif
10391 /* We use char because int might match the return type of a gcc2
10392    builtin and then its argument prototype would still apply.  */
10393 char ber_init ();
10394 int
10395 main ()
10396 {
10397 ber_init ();
10398   ;
10399   return 0;
10400 }
10401 _ACEOF
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404   (eval $ac_link) 2>conftest.er1
10405   ac_status=$?
10406   grep -v '^ *+' conftest.er1 >conftest.err
10407   rm -f conftest.er1
10408   cat conftest.err >&5
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } &&
10411          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; } &&
10417          { ac_try='test -s conftest$ac_exeext'
10418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419   (eval $ac_try) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); }; }; then
10423   ac_cv_lib_lber_ber_init=yes
10424 else
10425   echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10427
10428 ac_cv_lib_lber_ber_init=no
10429 fi
10430 rm -f conftest.err conftest.$ac_objext \
10431       conftest$ac_exeext conftest.$ac_ext
10432 LIBS=$ac_check_lib_save_LIBS
10433 fi
10434 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10435 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6
10436 if test $ac_cv_lib_lber_ber_init = yes; then
10437
10438 cat >>confdefs.h <<\_ACEOF
10439 #define HAVE_LDAP 1
10440 _ACEOF
10441
10442              LDAPLIBS="-lldap_r -llber"
10443 fi
10444
10445 fi
10446
10447     ac_wine_check_funcs_save_LIBS="$LIBS"
10448 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
10449
10450
10451
10452
10453 for ac_func in \
10454         ldap_count_references \
10455         ldap_first_reference \
10456         ldap_next_reference \
10457         ldap_parse_reference
10458 do
10459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10460 echo "$as_me:$LINENO: checking for $ac_func" >&5
10461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10462 if eval "test \"\${$as_ac_var+set}\" = set"; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10473 #define $ac_func innocuous_$ac_func
10474
10475 /* System header to define __stub macros and hopefully few prototypes,
10476     which can conflict with char $ac_func (); below.
10477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10478     <limits.h> exists even on freestanding compilers.  */
10479
10480 #ifdef __STDC__
10481 # include <limits.h>
10482 #else
10483 # include <assert.h>
10484 #endif
10485
10486 #undef $ac_func
10487
10488 /* Override any gcc2 internal prototype to avoid an error.  */
10489 #ifdef __cplusplus
10490 extern "C"
10491 {
10492 #endif
10493 /* We use char because int might match the return type of a gcc2
10494    builtin and then its argument prototype would still apply.  */
10495 char $ac_func ();
10496 /* The GNU C library defines this for functions which it implements
10497     to always fail with ENOSYS.  Some functions are actually named
10498     something starting with __ and the normal name is an alias.  */
10499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10500 choke me
10501 #else
10502 char (*f) () = $ac_func;
10503 #endif
10504 #ifdef __cplusplus
10505 }
10506 #endif
10507
10508 int
10509 main ()
10510 {
10511 return f != $ac_func;
10512   ;
10513   return 0;
10514 }
10515 _ACEOF
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518   (eval $ac_link) 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } &&
10525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527   (eval $ac_try) 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; } &&
10531          { ac_try='test -s conftest$ac_exeext'
10532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533   (eval $ac_try) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; }; then
10537   eval "$as_ac_var=yes"
10538 else
10539   echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10541
10542 eval "$as_ac_var=no"
10543 fi
10544 rm -f conftest.err conftest.$ac_objext \
10545       conftest$ac_exeext conftest.$ac_ext
10546 fi
10547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10549 if test `eval echo '${'$as_ac_var'}'` = yes; then
10550   cat >>confdefs.h <<_ACEOF
10551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10552 _ACEOF
10553
10554 fi
10555 done
10556
10557 LIBS="$ac_wine_check_funcs_save_LIBS"
10558 fi
10559
10560 FREETYPELIBS=""
10561
10562 FREETYPEINCL=""
10563
10564 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10565 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10566 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569   ac_check_lib_save_LIBS=$LIBS
10570 LIBS="-lfreetype $X_LIBS $LIBS"
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577
10578 /* Override any gcc2 internal prototype to avoid an error.  */
10579 #ifdef __cplusplus
10580 extern "C"
10581 #endif
10582 /* We use char because int might match the return type of a gcc2
10583    builtin and then its argument prototype would still apply.  */
10584 char FT_Init_FreeType ();
10585 int
10586 main ()
10587 {
10588 FT_Init_FreeType ();
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595   (eval $ac_link) 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604   (eval $ac_try) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; } &&
10608          { ac_try='test -s conftest$ac_exeext'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }; then
10614   ac_cv_lib_freetype_FT_Init_FreeType=yes
10615 else
10616   echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619 ac_cv_lib_freetype_FT_Init_FreeType=no
10620 fi
10621 rm -f conftest.err conftest.$ac_objext \
10622       conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10624 fi
10625 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10626 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10627 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10628   ft_lib=yes
10629 else
10630   ft_lib=no
10631 fi
10632
10633 if test "$ft_lib" = "no"
10634 then
10635     wine_cv_msg_freetype=no
10636 else
10637     # Extract the first word of "freetype-config", so it can be a program name with args.
10638 set dummy freetype-config; ac_word=$2
10639 echo "$as_me:$LINENO: checking for $ac_word" >&5
10640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10641 if test "${ac_cv_prog_ft_devel+set}" = set; then
10642   echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644   if test -n "$ft_devel"; then
10645   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10646 else
10647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10648 for as_dir in $PATH
10649 do
10650   IFS=$as_save_IFS
10651   test -z "$as_dir" && as_dir=.
10652   for ac_exec_ext in '' $ac_executable_extensions; do
10653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10654     ac_cv_prog_ft_devel="freetype-config"
10655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10656     break 2
10657   fi
10658 done
10659 done
10660
10661   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10662 fi
10663 fi
10664 ft_devel=$ac_cv_prog_ft_devel
10665 if test -n "$ft_devel"; then
10666   echo "$as_me:$LINENO: result: $ft_devel" >&5
10667 echo "${ECHO_T}$ft_devel" >&6
10668 else
10669   echo "$as_me:$LINENO: result: no" >&5
10670 echo "${ECHO_T}no" >&6
10671 fi
10672
10673     if test "$ft_devel" = "no"
10674     then
10675         # Extract the first word of "freetype2-config", so it can be a program name with args.
10676 set dummy freetype2-config; ac_word=$2
10677 echo "$as_me:$LINENO: checking for $ac_word" >&5
10678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10679 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   if test -n "$ft_devel2"; then
10683   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10684 else
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10687 do
10688   IFS=$as_save_IFS
10689   test -z "$as_dir" && as_dir=.
10690   for ac_exec_ext in '' $ac_executable_extensions; do
10691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692     ac_cv_prog_ft_devel2="freetype2-config"
10693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10694     break 2
10695   fi
10696 done
10697 done
10698
10699   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10700 fi
10701 fi
10702 ft_devel2=$ac_cv_prog_ft_devel2
10703 if test -n "$ft_devel2"; then
10704   echo "$as_me:$LINENO: result: $ft_devel2" >&5
10705 echo "${ECHO_T}$ft_devel2" >&6
10706 else
10707   echo "$as_me:$LINENO: result: no" >&5
10708 echo "${ECHO_T}no" >&6
10709 fi
10710
10711         if test "$ft_devel2" = "freetype2-config"
10712         then
10713                 ft_devel=$ft_devel2
10714         fi
10715     fi
10716     if test "$ft_devel" = "no"
10717     then
10718         wine_cv_msg_freetype=yes
10719     else
10720         FREETYPELIBS=`$ft_devel --libs`
10721         FREETYPEINCL=`$ft_devel --cflags`
10722         ac_save_CPPFLAGS="$CPPFLAGS"
10723         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735 for ac_header in ft2build.h \
10736                          freetype/freetype.h \
10737                          freetype/ftglyph.h \
10738                          freetype/tttables.h \
10739                          freetype/ftnames.h \
10740                          freetype/ftsnames.h \
10741                          freetype/ttnameid.h \
10742                          freetype/ftoutln.h \
10743                          freetype/ftwinfnt.h \
10744                          freetype/ftmodapi.h \
10745                          freetype/internal/sfnt.h
10746 do
10747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10748 echo "$as_me:$LINENO: checking for $ac_header" >&5
10749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h.  */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h.  */
10759 #if HAVE_FT2BUILD_H
10760                           #include <ft2build.h>
10761                           #endif
10762
10763 #include <$ac_header>
10764 _ACEOF
10765 rm -f conftest.$ac_objext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10767   (eval $ac_compile) 2>conftest.er1
10768   ac_status=$?
10769   grep -v '^ *+' conftest.er1 >conftest.err
10770   rm -f conftest.er1
10771   cat conftest.err >&5
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); } &&
10774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776   (eval $ac_try) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; } &&
10780          { ac_try='test -s conftest.$ac_objext'
10781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782   (eval $ac_try) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; }; then
10786   eval "$as_ac_Header=yes"
10787 else
10788   echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791 eval "$as_ac_Header=no"
10792 fi
10793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10794 fi
10795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10798   cat >>confdefs.h <<_ACEOF
10799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10800 _ACEOF
10801
10802 fi
10803
10804 done
10805
10806         cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h.  */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h.  */
10812 #include <ft2build.h>
10813                     #include <freetype/fttrigon.h>
10814 _ACEOF
10815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10817   ac_status=$?
10818   grep -v '^ *+' conftest.er1 >conftest.err
10819   rm -f conftest.er1
10820   cat conftest.err >&5
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); } >/dev/null; then
10823   if test -s conftest.err; then
10824     ac_cpp_err=$ac_c_preproc_warn_flag
10825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10826   else
10827     ac_cpp_err=
10828   fi
10829 else
10830   ac_cpp_err=yes
10831 fi
10832 if test -z "$ac_cpp_err"; then
10833
10834 cat >>confdefs.h <<\_ACEOF
10835 #define HAVE_FREETYPE_FTTRIGON_H 1
10836 _ACEOF
10837
10838                     wine_cv_fttrigon=yes
10839 else
10840   echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10842
10843   wine_cv_fttrigon=no
10844 fi
10845 rm -f conftest.err conftest.$ac_ext
10846         echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
10847 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6
10848 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851   cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h.  */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h.  */
10857 #include <freetype/ftmodapi.h>
10858
10859 int
10860 main ()
10861 {
10862 if ((FT_TrueTypeEngineType *) 0)
10863   return 0;
10864 if (sizeof (FT_TrueTypeEngineType))
10865   return 0;
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 rm -f conftest.$ac_objext
10871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10872   (eval $ac_compile) 2>conftest.er1
10873   ac_status=$?
10874   grep -v '^ *+' conftest.er1 >conftest.err
10875   rm -f conftest.er1
10876   cat conftest.err >&5
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); } &&
10879          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881   (eval $ac_try) 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); }; } &&
10885          { ac_try='test -s conftest.$ac_objext'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; }; then
10891   ac_cv_type_FT_TrueTypeEngineType=yes
10892 else
10893   echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 ac_cv_type_FT_TrueTypeEngineType=no
10897 fi
10898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10899 fi
10900 echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
10901 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6
10902 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
10903
10904 cat >>confdefs.h <<_ACEOF
10905 #define HAVE_FT_TRUETYPEENGINETYPE 1
10906 _ACEOF
10907
10908
10909 fi
10910
10911         ac_save_CFLAGS="$CFLAGS"
10912         CFLAGS="$CFLAGS $FREETYPELIBS"
10913
10914 for ac_func in FT_Load_Sfnt_Table
10915 do
10916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10917 echo "$as_me:$LINENO: checking for $ac_func" >&5
10918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10919 if eval "test \"\${$as_ac_var+set}\" = set"; then
10920   echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922   cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h.  */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h.  */
10928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10930 #define $ac_func innocuous_$ac_func
10931
10932 /* System header to define __stub macros and hopefully few prototypes,
10933     which can conflict with char $ac_func (); below.
10934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10935     <limits.h> exists even on freestanding compilers.  */
10936
10937 #ifdef __STDC__
10938 # include <limits.h>
10939 #else
10940 # include <assert.h>
10941 #endif
10942
10943 #undef $ac_func
10944
10945 /* Override any gcc2 internal prototype to avoid an error.  */
10946 #ifdef __cplusplus
10947 extern "C"
10948 {
10949 #endif
10950 /* We use char because int might match the return type of a gcc2
10951    builtin and then its argument prototype would still apply.  */
10952 char $ac_func ();
10953 /* The GNU C library defines this for functions which it implements
10954     to always fail with ENOSYS.  Some functions are actually named
10955     something starting with __ and the normal name is an alias.  */
10956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10957 choke me
10958 #else
10959 char (*f) () = $ac_func;
10960 #endif
10961 #ifdef __cplusplus
10962 }
10963 #endif
10964
10965 int
10966 main ()
10967 {
10968 return f != $ac_func;
10969   ;
10970   return 0;
10971 }
10972 _ACEOF
10973 rm -f conftest.$ac_objext conftest$ac_exeext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975   (eval $ac_link) 2>conftest.er1
10976   ac_status=$?
10977   grep -v '^ *+' conftest.er1 >conftest.err
10978   rm -f conftest.er1
10979   cat conftest.err >&5
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); } &&
10982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984   (eval $ac_try) 2>&5
10985   ac_status=$?
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); }; } &&
10988          { ac_try='test -s conftest$ac_exeext'
10989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990   (eval $ac_try) 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; }; then
10994   eval "$as_ac_var=yes"
10995 else
10996   echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10998
10999 eval "$as_ac_var=no"
11000 fi
11001 rm -f conftest.err conftest.$ac_objext \
11002       conftest$ac_exeext conftest.$ac_ext
11003 fi
11004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11006 if test `eval echo '${'$as_ac_var'}'` = yes; then
11007   cat >>confdefs.h <<_ACEOF
11008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11009 _ACEOF
11010
11011 fi
11012 done
11013
11014         CFLAGS="$ac_save_CFLAGS"
11015         CPPFLAGS="$ac_save_CPPFLAGS"
11016                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11017         then
11018
11019 cat >>confdefs.h <<\_ACEOF
11020 #define HAVE_FREETYPE 1
11021 _ACEOF
11022
11023             wine_cv_msg_freetype=no
11024         else
11025             FREETYPELIBS=""
11026             FREETYPEINCL=""
11027             wine_cv_msg_freetype=yes
11028         fi
11029     fi
11030 fi
11031
11032 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
11033 then
11034   FONTSSUBDIRS="fonts"
11035
11036   wine_cv_msg_fonts=no
11037 else
11038   wine_cv_msg_fonts=yes
11039 fi
11040
11041 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
11042 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
11043 if test "${ac_cv_c_ppdev+set}" = set; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046   cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h.  */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h.  */
11052 #include <linux/ppdev.h>
11053 int
11054 main ()
11055 {
11056 ioctl (1,PPCLAIM,0)
11057   ;
11058   return 0;
11059 }
11060 _ACEOF
11061 rm -f conftest.$ac_objext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063   (eval $ac_compile) 2>conftest.er1
11064   ac_status=$?
11065   grep -v '^ *+' conftest.er1 >conftest.err
11066   rm -f conftest.er1
11067   cat conftest.err >&5
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } &&
11070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072   (eval $ac_try) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; } &&
11076          { ac_try='test -s conftest.$ac_objext'
11077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078   (eval $ac_try) 2>&5
11079   ac_status=$?
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); }; }; then
11082   ac_cv_c_ppdev="yes"
11083 else
11084   echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087 ac_cv_c_ppdev="no"
11088 fi
11089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11090
11091 fi
11092 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
11093 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
11094 if test "$ac_cv_c_ppdev" = "yes"
11095 then
11096
11097 cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_PPDEV 1
11099 _ACEOF
11100
11101 fi
11102
11103 echo "$as_me:$LINENO: checking for va_copy" >&5
11104 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
11105 if test "${ac_cv_c_va_copy+set}" = set; then
11106   echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108   cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114 #include <stdarg.h>
11115 int
11116 main ()
11117 {
11118 va_list ap1, ap2;
11119     va_copy(ap1,ap2);
11120
11121   ;
11122   return 0;
11123 }
11124 _ACEOF
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127   (eval $ac_link) 2>conftest.er1
11128   ac_status=$?
11129   grep -v '^ *+' conftest.er1 >conftest.err
11130   rm -f conftest.er1
11131   cat conftest.err >&5
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); } &&
11134          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136   (eval $ac_try) 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; } &&
11140          { ac_try='test -s conftest$ac_exeext'
11141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142   (eval $ac_try) 2>&5
11143   ac_status=$?
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); }; }; then
11146   ac_cv_c_va_copy="yes"
11147 else
11148   echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151 ac_cv_c_va_copy="no"
11152 fi
11153 rm -f conftest.err conftest.$ac_objext \
11154       conftest$ac_exeext conftest.$ac_ext
11155
11156 fi
11157 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
11158 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
11159 if test "$ac_cv_c_va_copy" = "yes"
11160 then
11161
11162 cat >>confdefs.h <<\_ACEOF
11163 #define HAVE_VA_COPY 1
11164 _ACEOF
11165
11166 fi
11167 echo "$as_me:$LINENO: checking for __va_copy" >&5
11168 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
11169 if test "${ac_cv_c___va_copy+set}" = set; then
11170   echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172   cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178 #include <stdarg.h>
11179 int
11180 main ()
11181 {
11182 va_list ap1, ap2;
11183     __va_copy(ap1,ap2);
11184
11185   ;
11186   return 0;
11187 }
11188 _ACEOF
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191   (eval $ac_link) 2>conftest.er1
11192   ac_status=$?
11193   grep -v '^ *+' conftest.er1 >conftest.err
11194   rm -f conftest.er1
11195   cat conftest.err >&5
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); } &&
11198          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200   (eval $ac_try) 2>&5
11201   ac_status=$?
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); }; } &&
11204          { ac_try='test -s conftest$ac_exeext'
11205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206   (eval $ac_try) 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); }; }; then
11210   ac_cv_c___va_copy="yes"
11211 else
11212   echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ac_cv_c___va_copy="no"
11216 fi
11217 rm -f conftest.err conftest.$ac_objext \
11218       conftest$ac_exeext conftest.$ac_ext
11219
11220 fi
11221 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
11222 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
11223 if test "$ac_cv_c___va_copy" = "yes"
11224 then
11225
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE___VA_COPY 1
11228 _ACEOF
11229
11230 fi
11231
11232 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11233 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11234 if test "${ac_cv_c_sigsetjmp+set}" = set; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h.  */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h.  */
11243 #include <setjmp.h>
11244 int
11245 main ()
11246 {
11247 sigjmp_buf buf;
11248     sigsetjmp( buf, 1 );
11249     siglongjmp( buf, 1 );
11250   ;
11251   return 0;
11252 }
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256   (eval $ac_link) 2>conftest.er1
11257   ac_status=$?
11258   grep -v '^ *+' conftest.er1 >conftest.err
11259   rm -f conftest.er1
11260   cat conftest.err >&5
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } &&
11263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265   (eval $ac_try) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; } &&
11269          { ac_try='test -s conftest$ac_exeext'
11270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271   (eval $ac_try) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }; then
11275   ac_cv_c_sigsetjmp="yes"
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 ac_cv_c_sigsetjmp="no"
11281 fi
11282 rm -f conftest.err conftest.$ac_objext \
11283       conftest$ac_exeext conftest.$ac_ext
11284
11285 fi
11286 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11287 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
11288 if test "$ac_cv_c_sigsetjmp" = "yes"
11289 then
11290
11291 cat >>confdefs.h <<\_ACEOF
11292 #define HAVE_SIGSETJMP 1
11293 _ACEOF
11294
11295 fi
11296
11297 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11298 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
11299 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308 #define _GNU_SOURCE
11309 #include <pthread.h>
11310
11311 int
11312 main ()
11313 {
11314 if ((pthread_rwlock_t *) 0)
11315   return 0;
11316 if (sizeof (pthread_rwlock_t))
11317   return 0;
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11324   (eval $ac_compile) 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; } &&
11337          { ac_try='test -s conftest.$ac_objext'
11338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339   (eval $ac_try) 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }; }; then
11343   ac_cv_type_pthread_rwlock_t=yes
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348 ac_cv_type_pthread_rwlock_t=no
11349 fi
11350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11351 fi
11352 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11353 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11354 if test $ac_cv_type_pthread_rwlock_t = yes; then
11355
11356 cat >>confdefs.h <<_ACEOF
11357 #define HAVE_PTHREAD_RWLOCK_T 1
11358 _ACEOF
11359
11360
11361 fi
11362 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11363 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11364 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11365   echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367   cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h.  */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h.  */
11373 #define _GNU_SOURCE
11374 #include <pthread.h>
11375
11376 int
11377 main ()
11378 {
11379 if ((pthread_rwlockattr_t *) 0)
11380   return 0;
11381 if (sizeof (pthread_rwlockattr_t))
11382   return 0;
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 rm -f conftest.$ac_objext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11389   (eval $ac_compile) 2>conftest.er1
11390   ac_status=$?
11391   grep -v '^ *+' conftest.er1 >conftest.err
11392   rm -f conftest.er1
11393   cat conftest.err >&5
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); } &&
11396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398   (eval $ac_try) 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; } &&
11402          { ac_try='test -s conftest.$ac_objext'
11403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404   (eval $ac_try) 2>&5
11405   ac_status=$?
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); }; }; then
11408   ac_cv_type_pthread_rwlockattr_t=yes
11409 else
11410   echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11412
11413 ac_cv_type_pthread_rwlockattr_t=no
11414 fi
11415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11416 fi
11417 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11418 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11419 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11420
11421 cat >>confdefs.h <<_ACEOF
11422 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11423 _ACEOF
11424
11425
11426 fi
11427
11428
11429 ac_wine_check_funcs_save_LIBS="$LIBS"
11430 LIBS="$LIBS $LIBPTHREAD"
11431
11432
11433
11434 for ac_func in \
11435         pthread_getattr_np \
11436         pthread_get_stackaddr_np \
11437         pthread_get_stacksize_np
11438 do
11439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11440 echo "$as_me:$LINENO: checking for $ac_func" >&5
11441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11442 if eval "test \"\${$as_ac_var+set}\" = set"; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445   cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11453 #define $ac_func innocuous_$ac_func
11454
11455 /* System header to define __stub macros and hopefully few prototypes,
11456     which can conflict with char $ac_func (); below.
11457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458     <limits.h> exists even on freestanding compilers.  */
11459
11460 #ifdef __STDC__
11461 # include <limits.h>
11462 #else
11463 # include <assert.h>
11464 #endif
11465
11466 #undef $ac_func
11467
11468 /* Override any gcc2 internal prototype to avoid an error.  */
11469 #ifdef __cplusplus
11470 extern "C"
11471 {
11472 #endif
11473 /* We use char because int might match the return type of a gcc2
11474    builtin and then its argument prototype would still apply.  */
11475 char $ac_func ();
11476 /* The GNU C library defines this for functions which it implements
11477     to always fail with ENOSYS.  Some functions are actually named
11478     something starting with __ and the normal name is an alias.  */
11479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11480 choke me
11481 #else
11482 char (*f) () = $ac_func;
11483 #endif
11484 #ifdef __cplusplus
11485 }
11486 #endif
11487
11488 int
11489 main ()
11490 {
11491 return f != $ac_func;
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498   (eval $ac_link) 2>conftest.er1
11499   ac_status=$?
11500   grep -v '^ *+' conftest.er1 >conftest.err
11501   rm -f conftest.er1
11502   cat conftest.err >&5
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); } &&
11505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507   (eval $ac_try) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; } &&
11511          { ac_try='test -s conftest$ac_exeext'
11512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513   (eval $ac_try) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; }; then
11517   eval "$as_ac_var=yes"
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 eval "$as_ac_var=no"
11523 fi
11524 rm -f conftest.err conftest.$ac_objext \
11525       conftest$ac_exeext conftest.$ac_ext
11526 fi
11527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11529 if test `eval echo '${'$as_ac_var'}'` = yes; then
11530   cat >>confdefs.h <<_ACEOF
11531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11532 _ACEOF
11533
11534 fi
11535 done
11536
11537 LIBS="$ac_wine_check_funcs_save_LIBS"
11538
11539 # Extract the first word of "artsc-config", so it can be a program name with args.
11540 set dummy artsc-config; ac_word=$2
11541 echo "$as_me:$LINENO: checking for $ac_word" >&5
11542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11543 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11544   echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546   case $ARTSCCONFIG in
11547   [\\/]* | ?:[\\/]*)
11548   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11549   ;;
11550   *)
11551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11553 do
11554   IFS=$as_save_IFS
11555   test -z "$as_dir" && as_dir=.
11556   for ac_exec_ext in '' $ac_executable_extensions; do
11557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560     break 2
11561   fi
11562 done
11563 done
11564
11565   ;;
11566 esac
11567 fi
11568 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11569
11570 if test -n "$ARTSCCONFIG"; then
11571   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11572 echo "${ECHO_T}$ARTSCCONFIG" >&6
11573 else
11574   echo "$as_me:$LINENO: result: no" >&5
11575 echo "${ECHO_T}no" >&6
11576 fi
11577
11578 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11579 then
11580     ARTSC_CFLAGS=""
11581     for i in `$ARTSCCONFIG --cflags`
11582     do
11583       case "$i" in
11584         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11585       esac
11586     done
11587     ARTSC_LIBS=""
11588     for i in `$ARTSCCONFIG --libs`
11589     do
11590       case "$i" in
11591         -L/usr/lib|-L/usr/lib64) ;;
11592         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
11593       esac
11594     done
11595     save_CFLAGS="$CFLAGS"
11596     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11597     echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
11598 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6
11599 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602   ac_check_lib_save_LIBS=$LIBS
11603 LIBS="-lartsc $ARTSC_LIBS $LIBS"
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h.  */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h.  */
11610
11611 /* Override any gcc2 internal prototype to avoid an error.  */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 /* We use char because int might match the return type of a gcc2
11616    builtin and then its argument prototype would still apply.  */
11617 char arts_init ();
11618 int
11619 main ()
11620 {
11621 arts_init ();
11622   ;
11623   return 0;
11624 }
11625 _ACEOF
11626 rm -f conftest.$ac_objext conftest$ac_exeext
11627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11628   (eval $ac_link) 2>conftest.er1
11629   ac_status=$?
11630   grep -v '^ *+' conftest.er1 >conftest.err
11631   rm -f conftest.er1
11632   cat conftest.err >&5
11633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634   (exit $ac_status); } &&
11635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637   (eval $ac_try) 2>&5
11638   ac_status=$?
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   (exit $ac_status); }; } &&
11641          { ac_try='test -s conftest$ac_exeext'
11642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643   (eval $ac_try) 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; }; then
11647   ac_cv_lib_artsc_arts_init=yes
11648 else
11649   echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11651
11652 ac_cv_lib_artsc_arts_init=no
11653 fi
11654 rm -f conftest.err conftest.$ac_objext \
11655       conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11657 fi
11658 echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
11659 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6
11660 if test $ac_cv_lib_artsc_arts_init = yes; then
11661   cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667 #include <artsc.h>
11668 int
11669 main ()
11670 {
11671 arts_stream_t stream;
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11678   (eval $ac_compile) 2>conftest.er1
11679   ac_status=$?
11680   grep -v '^ *+' conftest.er1 >conftest.err
11681   rm -f conftest.er1
11682   cat conftest.err >&5
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); } &&
11685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687   (eval $ac_try) 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); }; } &&
11691          { ac_try='test -s conftest.$ac_objext'
11692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693   (eval $ac_try) 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); }; }; then
11697   ARTSLIBS=$ARTSC_LIBS
11698
11699             ARTSINCL=$ARTSC_CFLAGS
11700
11701
11702 cat >>confdefs.h <<\_ACEOF
11703 #define HAVE_ARTS 1
11704 _ACEOF
11705
11706 else
11707   echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11709
11710 fi
11711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11712 fi
11713
11714     CFLAGS="$save_CFLAGS"
11715 fi
11716
11717 # Extract the first word of "esd-config", so it can be a program name with args.
11718 set dummy esd-config; ac_word=$2
11719 echo "$as_me:$LINENO: checking for $ac_word" >&5
11720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11721 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
11722   echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724   case $ESDCONFIG in
11725   [\\/]* | ?:[\\/]*)
11726   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
11727   ;;
11728   *)
11729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11731 do
11732   IFS=$as_save_IFS
11733   test -z "$as_dir" && as_dir=.
11734   for ac_exec_ext in '' $ac_executable_extensions; do
11735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11736     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11738     break 2
11739   fi
11740 done
11741 done
11742
11743   ;;
11744 esac
11745 fi
11746 ESDCONFIG=$ac_cv_path_ESDCONFIG
11747
11748 if test -n "$ESDCONFIG"; then
11749   echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
11750 echo "${ECHO_T}$ESDCONFIG" >&6
11751 else
11752   echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6
11754 fi
11755
11756 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
11757 then
11758     ESD_CFLAGS=""
11759     for i in `$ESDCONFIG --cflags`
11760     do
11761       case "$i" in
11762         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
11763       esac
11764     done
11765     ESD_LIBS=`$ESDCONFIG --libs`
11766     save_CFLAGS="$CFLAGS"
11767     CFLAGS="$CFLAGS $ESD_CFLAGS"
11768     echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
11769 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6
11770 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
11771   echo $ECHO_N "(cached) $ECHO_C" >&6
11772 else
11773   ac_check_lib_save_LIBS=$LIBS
11774 LIBS="-lesd  $LIBS"
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h.  */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h.  */
11781
11782 /* Override any gcc2 internal prototype to avoid an error.  */
11783 #ifdef __cplusplus
11784 extern "C"
11785 #endif
11786 /* We use char because int might match the return type of a gcc2
11787    builtin and then its argument prototype would still apply.  */
11788 char esd_open_sound ();
11789 int
11790 main ()
11791 {
11792 esd_open_sound ();
11793   ;
11794   return 0;
11795 }
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799   (eval $ac_link) 2>conftest.er1
11800   ac_status=$?
11801   grep -v '^ *+' conftest.er1 >conftest.err
11802   rm -f conftest.er1
11803   cat conftest.err >&5
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); } &&
11806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808   (eval $ac_try) 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; } &&
11812          { ac_try='test -s conftest$ac_exeext'
11813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814   (eval $ac_try) 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; }; then
11818   ac_cv_lib_esd_esd_open_sound=yes
11819 else
11820   echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 ac_cv_lib_esd_esd_open_sound=no
11824 fi
11825 rm -f conftest.err conftest.$ac_objext \
11826       conftest$ac_exeext conftest.$ac_ext
11827 LIBS=$ac_check_lib_save_LIBS
11828 fi
11829 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
11830 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6
11831 if test $ac_cv_lib_esd_esd_open_sound = yes; then
11832   ESDLIBS=$ESD_LIBS
11833
11834          ESDINCL=$ESD_CFLAGS
11835
11836
11837 cat >>confdefs.h <<\_ACEOF
11838 #define HAVE_ESD 1
11839 _ACEOF
11840
11841 fi
11842
11843     CFLAGS="$save_CFLAGS"
11844 fi
11845
11846 ALSALIBS=""
11847
11848 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11849 then
11850     echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
11851 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6
11852 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
11853   echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855   ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lasound  $LIBS"
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863
11864 /* Override any gcc2 internal prototype to avoid an error.  */
11865 #ifdef __cplusplus
11866 extern "C"
11867 #endif
11868 /* We use char because int might match the return type of a gcc2
11869    builtin and then its argument prototype would still apply.  */
11870 char snd_pcm_hw_params_get_access ();
11871 int
11872 main ()
11873 {
11874 snd_pcm_hw_params_get_access ();
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11881   (eval $ac_link) 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } &&
11888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890   (eval $ac_try) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; } &&
11894          { ac_try='test -s conftest$ac_exeext'
11895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896   (eval $ac_try) 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); }; }; then
11900   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
11901 else
11902   echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
11906 fi
11907 rm -f conftest.err conftest.$ac_objext \
11908       conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11910 fi
11911 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
11912 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6
11913 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
11914   cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h.  */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920 #ifdef HAVE_ALSA_ASOUNDLIB_H
11921 #include <alsa/asoundlib.h>
11922 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11923 #include <sys/asoundlib.h>
11924 #endif
11925 int
11926 main ()
11927 {
11928 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
11929   ;
11930   return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935   (eval $ac_compile) 2>conftest.er1
11936   ac_status=$?
11937   grep -v '^ *+' conftest.er1 >conftest.err
11938   rm -f conftest.er1
11939   cat conftest.err >&5
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); } &&
11942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; } &&
11948          { ac_try='test -s conftest.$ac_objext'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; }; then
11954
11955 cat >>confdefs.h <<\_ACEOF
11956 #define HAVE_ALSA 1
11957 _ACEOF
11958
11959                          ALSALIBS="-lasound"
11960 else
11961   echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 fi
11965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11966 fi
11967
11968 fi
11969
11970
11971 AUDIOIOLIBS=""
11972
11973 if test "$ac_cv_header_libaudioio_h" = "yes"
11974 then
11975     echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11976 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11977 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11978   echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980   ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-laudioio  $LIBS"
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h.  */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h.  */
11988
11989 /* Override any gcc2 internal prototype to avoid an error.  */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 /* We use char because int might match the return type of a gcc2
11994    builtin and then its argument prototype would still apply.  */
11995 char AudioIOGetVersion ();
11996 int
11997 main ()
11998 {
11999 AudioIOGetVersion ();
12000   ;
12001   return 0;
12002 }
12003 _ACEOF
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006   (eval $ac_link) 2>conftest.er1
12007   ac_status=$?
12008   grep -v '^ *+' conftest.er1 >conftest.err
12009   rm -f conftest.er1
12010   cat conftest.err >&5
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); } &&
12013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015   (eval $ac_try) 2>&5
12016   ac_status=$?
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); }; } &&
12019          { ac_try='test -s conftest$ac_exeext'
12020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021   (eval $ac_try) 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; }; then
12025   ac_cv_lib_audioio_AudioIOGetVersion=yes
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 ac_cv_lib_audioio_AudioIOGetVersion=no
12031 fi
12032 rm -f conftest.err conftest.$ac_objext \
12033       conftest$ac_exeext conftest.$ac_ext
12034 LIBS=$ac_check_lib_save_LIBS
12035 fi
12036 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12037 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12038 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12039   AUDIOIOLIBS="-laudioio"
12040
12041 cat >>confdefs.h <<\_ACEOF
12042 #define HAVE_LIBAUDIOIO 1
12043 _ACEOF
12044
12045 fi
12046
12047 fi
12048
12049
12050 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12051 then
12052     echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12053 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12054 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057   ac_check_lib_save_LIBS=$LIBS
12058 LIBS="-lcapi20  $LIBS"
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h.  */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h.  */
12065
12066 /* Override any gcc2 internal prototype to avoid an error.  */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 /* We use char because int might match the return type of a gcc2
12071    builtin and then its argument prototype would still apply.  */
12072 char capi20_register ();
12073 int
12074 main ()
12075 {
12076 capi20_register ();
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083   (eval $ac_link) 2>conftest.er1
12084   ac_status=$?
12085   grep -v '^ *+' conftest.er1 >conftest.err
12086   rm -f conftest.er1
12087   cat conftest.err >&5
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); } &&
12090          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092   (eval $ac_try) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; } &&
12096          { ac_try='test -s conftest$ac_exeext'
12097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098   (eval $ac_try) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; }; then
12102   ac_cv_lib_capi20_capi20_register=yes
12103 else
12104   echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107 ac_cv_lib_capi20_capi20_register=no
12108 fi
12109 rm -f conftest.err conftest.$ac_objext \
12110       conftest$ac_exeext conftest.$ac_ext
12111 LIBS=$ac_check_lib_save_LIBS
12112 fi
12113 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12114 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12115 if test $ac_cv_lib_capi20_capi20_register = yes; then
12116
12117 cat >>confdefs.h <<\_ACEOF
12118 #define HAVE_CAPI4LINUX 1
12119 _ACEOF
12120
12121 fi
12122
12123 fi
12124
12125
12126 EXTRACFLAGS=""
12127
12128 if test "x${GCC}" = "xyes"
12129 then
12130   EXTRACFLAGS="-Wall -pipe"
12131
12132     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12133 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12134 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12135   echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137   if test "$cross_compiling" = yes; then
12138   ac_cv_c_gcc_strength_bug="yes"
12139 else
12140   cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146
12147 int     L[4] = {0,1,2,3};
12148 int main(void) {
12149   static int Array[3];
12150   unsigned int B = 3;
12151   int i;
12152   for(i=0; i<B; i++) Array[i] = i - 3;
12153   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12154   L[i] = 4;
12155
12156   exit( Array[1] != -2 || L[2] != 3);
12157 }
12158 _ACEOF
12159 rm -f conftest$ac_exeext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12161   (eval $ac_link) 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166   (eval $ac_try) 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; }; then
12170   ac_cv_c_gcc_strength_bug="no"
12171 else
12172   echo "$as_me: program exited with status $ac_status" >&5
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12175
12176 ( exit $ac_status )
12177 ac_cv_c_gcc_strength_bug="yes"
12178 fi
12179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12180 fi
12181 fi
12182 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12183 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12184   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12185   then
12186     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12187   fi
12188
12189     echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12190 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12191 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12192   echo $ECHO_N "(cached) $ECHO_C" >&6
12193 else
12194   ac_wine_try_cflags_saved=$CFLAGS
12195 CFLAGS="$CFLAGS -fshort-wchar"
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h.  */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h.  */
12202
12203 int
12204 main ()
12205 {
12206
12207   ;
12208   return 0;
12209 }
12210 _ACEOF
12211 rm -f conftest.$ac_objext conftest$ac_exeext
12212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12213   (eval $ac_link) 2>conftest.er1
12214   ac_status=$?
12215   grep -v '^ *+' conftest.er1 >conftest.err
12216   rm -f conftest.er1
12217   cat conftest.err >&5
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222   (eval $ac_try) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; } &&
12226          { ac_try='test -s conftest$ac_exeext'
12227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228   (eval $ac_try) 2>&5
12229   ac_status=$?
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); }; }; then
12232   ac_cv_c_gcc_fshort_wchar="yes"
12233 else
12234   echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237 ac_cv_c_gcc_fshort_wchar="no"
12238 fi
12239 rm -f conftest.err conftest.$ac_objext \
12240       conftest$ac_exeext conftest.$ac_ext
12241 CFLAGS=$ac_wine_try_cflags_saved
12242 fi
12243 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12244 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12245   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12246   then
12247
12248 cat >>confdefs.h <<\_ACEOF
12249 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12250 _ACEOF
12251
12252   fi
12253
12254     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12255 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12256 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12257   echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259   ac_wine_try_cflags_saved=$CFLAGS
12260 CFLAGS="$CFLAGS -fno-strict-aliasing"
12261 cat >conftest.$ac_ext <<_ACEOF
12262 /* confdefs.h.  */
12263 _ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h.  */
12267
12268 int
12269 main ()
12270 {
12271
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278   (eval $ac_link) 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } &&
12285          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287   (eval $ac_try) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; } &&
12291          { ac_try='test -s conftest$ac_exeext'
12292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293   (eval $ac_try) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; }; then
12297   ac_cv_c_gcc_no_strict_aliasing="yes"
12298 else
12299   echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 ac_cv_c_gcc_no_strict_aliasing="no"
12303 fi
12304 rm -f conftest.err conftest.$ac_objext \
12305       conftest$ac_exeext conftest.$ac_ext
12306 CFLAGS=$ac_wine_try_cflags_saved
12307 fi
12308 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12309 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12310   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12311   then
12312     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12313   fi
12314
12315     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12316 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12317 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12318   echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320   ac_wine_try_cflags_saved=$CFLAGS
12321 CFLAGS="$CFLAGS -gstabs+"
12322 cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h.  */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h.  */
12328
12329 int
12330 main ()
12331 {
12332
12333   ;
12334   return 0;
12335 }
12336 _ACEOF
12337 rm -f conftest.$ac_objext conftest$ac_exeext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339   (eval $ac_link) 2>conftest.er1
12340   ac_status=$?
12341   grep -v '^ *+' conftest.er1 >conftest.err
12342   rm -f conftest.er1
12343   cat conftest.err >&5
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); } &&
12346          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348   (eval $ac_try) 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; } &&
12352          { ac_try='test -s conftest$ac_exeext'
12353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354   (eval $ac_try) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; }; then
12358   ac_cv_c_gcc_gstabs="yes"
12359 else
12360   echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363 ac_cv_c_gcc_gstabs="no"
12364 fi
12365 rm -f conftest.err conftest.$ac_objext \
12366       conftest$ac_exeext conftest.$ac_ext
12367 CFLAGS=$ac_wine_try_cflags_saved
12368 fi
12369 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12370 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12371   if test "$ac_cv_c_gcc_gstabs" = "yes"
12372   then
12373     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12374   fi
12375
12376     echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
12377 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6
12378 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
12379   echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381   ac_wine_try_cflags_saved=$CFLAGS
12382 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12383 cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h.  */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h.  */
12389
12390 int
12391 main ()
12392 {
12393
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12400   (eval $ac_link) 2>conftest.er1
12401   ac_status=$?
12402   grep -v '^ *+' conftest.er1 >conftest.err
12403   rm -f conftest.er1
12404   cat conftest.err >&5
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); } &&
12407          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409   (eval $ac_try) 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); }; } &&
12413          { ac_try='test -s conftest$ac_exeext'
12414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415   (eval $ac_try) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); }; }; then
12419   ac_cv_c_gcc_decl_after_statement="yes"
12420 else
12421   echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_cv_c_gcc_decl_after_statement="no"
12425 fi
12426 rm -f conftest.err conftest.$ac_objext \
12427       conftest$ac_exeext conftest.$ac_ext
12428 CFLAGS=$ac_wine_try_cflags_saved
12429 fi
12430 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
12431 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6
12432   if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
12433   then
12434     EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12435   fi
12436
12437     saved_CFLAGS="$CFLAGS"
12438   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12439   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12440 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12441 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12442   echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444   cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450 #include <string.h>
12451 int
12452 main ()
12453 {
12454
12455   ;
12456   return 0;
12457 }
12458 _ACEOF
12459 rm -f conftest.$ac_objext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461   (eval $ac_compile) 2>conftest.er1
12462   ac_status=$?
12463   grep -v '^ *+' conftest.er1 >conftest.err
12464   rm -f conftest.er1
12465   cat conftest.err >&5
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } &&
12468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470   (eval $ac_try) 2>&5
12471   ac_status=$?
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); }; } &&
12474          { ac_try='test -s conftest.$ac_objext'
12475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476   (eval $ac_try) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }; }; then
12480   ac_cv_c_string_h_warnings=no
12481 else
12482   echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485 ac_cv_c_string_h_warnings=yes
12486 fi
12487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12488 fi
12489 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12490 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12491   CFLAGS="$saved_CFLAGS"
12492   if test "$ac_cv_c_string_h_warnings" = "no"
12493   then
12494     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12495   fi
12496
12497   BUILTINFLAG=""
12498
12499   saved_CFLAGS="$CFLAGS"
12500   CFLAGS="$CFLAGS -Werror"
12501   echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
12502 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6
12503 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
12504   echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506   cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512
12513 int
12514 main ()
12515 {
12516 int iswlower(unsigned short);
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest.$ac_objext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12523   (eval $ac_compile) 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532   (eval $ac_try) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; } &&
12536          { ac_try='test -s conftest.$ac_objext'
12537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538   (eval $ac_try) 2>&5
12539   ac_status=$?
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; }; then
12542   ac_cv_c_builtin_wchar_ctype=no
12543 else
12544   echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12546
12547 ac_cv_c_builtin_wchar_ctype=yes
12548 fi
12549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12550 fi
12551 echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
12552 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6
12553   CFLAGS="$saved_CFLAGS"
12554   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
12555   then
12556     BUILTINFLAG=""
12557     for builtin in \
12558       iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \
12559       iswprint iswpunct iswspace iswupper iswxdigit towlower towupper
12560     do
12561       BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin"
12562     done
12563   fi
12564 fi
12565
12566
12567 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12568 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12569 if test "${ac_cv_asm_func_def+set}" = set; then
12570   echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572   cat >conftest.$ac_ext <<_ACEOF
12573 /* confdefs.h.  */
12574 _ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h.  */
12578 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"); }
12579
12580 int
12581 main ()
12582 {
12583
12584   ;
12585   return 0;
12586 }
12587 _ACEOF
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12590   (eval $ac_link) 2>conftest.er1
12591   ac_status=$?
12592   grep -v '^ *+' conftest.er1 >conftest.err
12593   rm -f conftest.er1
12594   cat conftest.err >&5
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } &&
12597          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; } &&
12603          { ac_try='test -s conftest$ac_exeext'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   ac_cv_asm_func_def=".def"
12610 else
12611   echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h.  */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h.  */
12620 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12621
12622 int
12623 main ()
12624 {
12625
12626   ;
12627   return 0;
12628 }
12629 _ACEOF
12630 rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12632   (eval $ac_link) 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641   (eval $ac_try) 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; } &&
12645          { ac_try='test -s conftest$ac_exeext'
12646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647   (eval $ac_try) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; }; then
12651   ac_cv_asm_func_def=".type @function"
12652 else
12653   echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h.  */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h.  */
12662 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12663
12664 int
12665 main ()
12666 {
12667
12668   ;
12669   return 0;
12670 }
12671 _ACEOF
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12674   (eval $ac_link) 2>conftest.er1
12675   ac_status=$?
12676   grep -v '^ *+' conftest.er1 >conftest.err
12677   rm -f conftest.er1
12678   cat conftest.err >&5
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); } &&
12681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683   (eval $ac_try) 2>&5
12684   ac_status=$?
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); }; } &&
12687          { ac_try='test -s conftest$ac_exeext'
12688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689   (eval $ac_try) 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); }; }; then
12693   ac_cv_asm_func_def=".type 2"
12694 else
12695   echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12697
12698 ac_cv_asm_func_def="unknown"
12699 fi
12700 rm -f conftest.err conftest.$ac_objext \
12701       conftest$ac_exeext conftest.$ac_ext
12702 fi
12703 rm -f conftest.err conftest.$ac_objext \
12704       conftest$ac_exeext conftest.$ac_ext
12705 fi
12706 rm -f conftest.err conftest.$ac_objext \
12707       conftest$ac_exeext conftest.$ac_ext
12708 fi
12709 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12710 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12711
12712
12713
12714 case "$ac_cv_asm_func_def" in
12715   ".def")
12716      cat >>confdefs.h <<\_ACEOF
12717 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12718 _ACEOF
12719  ;;
12720   ".type @function")
12721      cat >>confdefs.h <<\_ACEOF
12722 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12723 _ACEOF
12724  ;;
12725   ".type 2")
12726      cat >>confdefs.h <<\_ACEOF
12727 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12728 _ACEOF
12729  ;;
12730   *)
12731      cat >>confdefs.h <<\_ACEOF
12732 #define __ASM_FUNC(name) ""
12733 _ACEOF
12734  ;;
12735 esac
12736
12737
12738 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12739 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12740 if test "${ac_cv_c_extern_prefix+set}" = set; then
12741   echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743   cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h.  */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h.  */
12749 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12750 extern int ac_test;
12751 int
12752 main ()
12753 {
12754 if (ac_test) return 1
12755   ;
12756   return 0;
12757 }
12758 _ACEOF
12759 rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12761   (eval $ac_link) 2>conftest.er1
12762   ac_status=$?
12763   grep -v '^ *+' conftest.er1 >conftest.err
12764   rm -f conftest.er1
12765   cat conftest.err >&5
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); } &&
12768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770   (eval $ac_try) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; } &&
12774          { ac_try='test -s conftest$ac_exeext'
12775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776   (eval $ac_try) 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); }; }; then
12780   ac_cv_c_extern_prefix="yes"
12781 else
12782   echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12784
12785 ac_cv_c_extern_prefix="no"
12786 fi
12787 rm -f conftest.err conftest.$ac_objext \
12788       conftest$ac_exeext conftest.$ac_ext
12789 fi
12790 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12791 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12792
12793
12794
12795 if test "$ac_cv_c_extern_prefix" = "yes"
12796 then
12797   cat >>confdefs.h <<\_ACEOF
12798 #define __ASM_NAME(name) "_" name
12799 _ACEOF
12800
12801 else
12802   cat >>confdefs.h <<\_ACEOF
12803 #define __ASM_NAME(name) name
12804 _ACEOF
12805
12806 fi
12807
12808
12809 DLLEXT=""
12810
12811 DLLFLAGS="-D_REENTRANT"
12812
12813 DLLIBS=""
12814
12815 LDSHARED=""
12816
12817 LDDLLFLAGS=""
12818
12819 LIBEXT="so"
12820
12821 IMPLIBEXT="def"
12822
12823
12824 case $host_os in
12825   cygwin*|mingw32*)
12826     if test -n "$ac_tool_prefix"; then
12827   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12828 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12829 echo "$as_me:$LINENO: checking for $ac_word" >&5
12830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12831 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12832   echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834   if test -n "$DLLTOOL"; then
12835   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12836 else
12837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838 for as_dir in $PATH
12839 do
12840   IFS=$as_save_IFS
12841   test -z "$as_dir" && as_dir=.
12842   for ac_exec_ext in '' $ac_executable_extensions; do
12843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12844     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12846     break 2
12847   fi
12848 done
12849 done
12850
12851 fi
12852 fi
12853 DLLTOOL=$ac_cv_prog_DLLTOOL
12854 if test -n "$DLLTOOL"; then
12855   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12856 echo "${ECHO_T}$DLLTOOL" >&6
12857 else
12858   echo "$as_me:$LINENO: result: no" >&5
12859 echo "${ECHO_T}no" >&6
12860 fi
12861
12862 fi
12863 if test -z "$ac_cv_prog_DLLTOOL"; then
12864   ac_ct_DLLTOOL=$DLLTOOL
12865   # Extract the first word of "dlltool", so it can be a program name with args.
12866 set dummy dlltool; ac_word=$2
12867 echo "$as_me:$LINENO: checking for $ac_word" >&5
12868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12869 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
12870   echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872   if test -n "$ac_ct_DLLTOOL"; then
12873   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12874 else
12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876 for as_dir in $PATH
12877 do
12878   IFS=$as_save_IFS
12879   test -z "$as_dir" && as_dir=.
12880   for ac_exec_ext in '' $ac_executable_extensions; do
12881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12882     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12884     break 2
12885   fi
12886 done
12887 done
12888
12889   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
12890 fi
12891 fi
12892 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12893 if test -n "$ac_ct_DLLTOOL"; then
12894   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
12895 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
12896 else
12897   echo "$as_me:$LINENO: result: no" >&5
12898 echo "${ECHO_T}no" >&6
12899 fi
12900
12901   DLLTOOL=$ac_ct_DLLTOOL
12902 else
12903   DLLTOOL="$ac_cv_prog_DLLTOOL"
12904 fi
12905
12906     if test -n "$ac_tool_prefix"; then
12907   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
12908 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
12909 echo "$as_me:$LINENO: checking for $ac_word" >&5
12910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12911 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
12912   echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914   if test -n "$DLLWRAP"; then
12915   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
12916 else
12917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH
12919 do
12920   IFS=$as_save_IFS
12921   test -z "$as_dir" && as_dir=.
12922   for ac_exec_ext in '' $ac_executable_extensions; do
12923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12924     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
12925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12926     break 2
12927   fi
12928 done
12929 done
12930
12931 fi
12932 fi
12933 DLLWRAP=$ac_cv_prog_DLLWRAP
12934 if test -n "$DLLWRAP"; then
12935   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
12936 echo "${ECHO_T}$DLLWRAP" >&6
12937 else
12938   echo "$as_me:$LINENO: result: no" >&5
12939 echo "${ECHO_T}no" >&6
12940 fi
12941
12942 fi
12943 if test -z "$ac_cv_prog_DLLWRAP"; then
12944   ac_ct_DLLWRAP=$DLLWRAP
12945   # Extract the first word of "dllwrap", so it can be a program name with args.
12946 set dummy dllwrap; ac_word=$2
12947 echo "$as_me:$LINENO: checking for $ac_word" >&5
12948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12949 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
12950   echo $ECHO_N "(cached) $ECHO_C" >&6
12951 else
12952   if test -n "$ac_ct_DLLWRAP"; then
12953   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
12954 else
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12957 do
12958   IFS=$as_save_IFS
12959   test -z "$as_dir" && as_dir=.
12960   for ac_exec_ext in '' $ac_executable_extensions; do
12961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12962     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
12963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12964     break 2
12965   fi
12966 done
12967 done
12968
12969   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
12970 fi
12971 fi
12972 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
12973 if test -n "$ac_ct_DLLWRAP"; then
12974   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
12975 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
12976 else
12977   echo "$as_me:$LINENO: result: no" >&5
12978 echo "${ECHO_T}no" >&6
12979 fi
12980
12981   DLLWRAP=$ac_ct_DLLWRAP
12982 else
12983   DLLWRAP="$ac_cv_prog_DLLWRAP"
12984 fi
12985
12986     if test "$DLLWRAP" = "false"; then
12987       LIBEXT="a"
12988     else
12989             LIBEXT="dll"
12990     fi
12991     IMPLIBEXT="a"
12992         WIN16_FILES=""
12993     WIN16_INSTALL=""
12994     ;;
12995   *)
12996     if test "$ac_cv_header_dlfcn_h" = "yes"
12997     then
12998
12999 for ac_func in dlopen
13000 do
13001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13002 echo "$as_me:$LINENO: checking for $ac_func" >&5
13003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13004 if eval "test \"\${$as_ac_var+set}\" = set"; then
13005   echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007   cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h.  */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h.  */
13013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13015 #define $ac_func innocuous_$ac_func
13016
13017 /* System header to define __stub macros and hopefully few prototypes,
13018     which can conflict with char $ac_func (); below.
13019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13020     <limits.h> exists even on freestanding compilers.  */
13021
13022 #ifdef __STDC__
13023 # include <limits.h>
13024 #else
13025 # include <assert.h>
13026 #endif
13027
13028 #undef $ac_func
13029
13030 /* Override any gcc2 internal prototype to avoid an error.  */
13031 #ifdef __cplusplus
13032 extern "C"
13033 {
13034 #endif
13035 /* We use char because int might match the return type of a gcc2
13036    builtin and then its argument prototype would still apply.  */
13037 char $ac_func ();
13038 /* The GNU C library defines this for functions which it implements
13039     to always fail with ENOSYS.  Some functions are actually named
13040     something starting with __ and the normal name is an alias.  */
13041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13042 choke me
13043 #else
13044 char (*f) () = $ac_func;
13045 #endif
13046 #ifdef __cplusplus
13047 }
13048 #endif
13049
13050 int
13051 main ()
13052 {
13053 return f != $ac_func;
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060   (eval $ac_link) 2>conftest.er1
13061   ac_status=$?
13062   grep -v '^ *+' conftest.er1 >conftest.err
13063   rm -f conftest.er1
13064   cat conftest.err >&5
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); } &&
13067          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069   (eval $ac_try) 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; } &&
13073          { ac_try='test -s conftest$ac_exeext'
13074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075   (eval $ac_try) 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); }; }; then
13079   eval "$as_ac_var=yes"
13080 else
13081   echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13083
13084 eval "$as_ac_var=no"
13085 fi
13086 rm -f conftest.err conftest.$ac_objext \
13087       conftest$ac_exeext conftest.$ac_ext
13088 fi
13089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13091 if test `eval echo '${'$as_ac_var'}'` = yes; then
13092   cat >>confdefs.h <<_ACEOF
13093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13094 _ACEOF
13095
13096 else
13097   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13098 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   ac_check_lib_save_LIBS=$LIBS
13103 LIBS="-ldl  $LIBS"
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h.  */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h.  */
13110
13111 /* Override any gcc2 internal prototype to avoid an error.  */
13112 #ifdef __cplusplus
13113 extern "C"
13114 #endif
13115 /* We use char because int might match the return type of a gcc2
13116    builtin and then its argument prototype would still apply.  */
13117 char dlopen ();
13118 int
13119 main ()
13120 {
13121 dlopen ();
13122   ;
13123   return 0;
13124 }
13125 _ACEOF
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13128   (eval $ac_link) 2>conftest.er1
13129   ac_status=$?
13130   grep -v '^ *+' conftest.er1 >conftest.err
13131   rm -f conftest.er1
13132   cat conftest.err >&5
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); } &&
13135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137   (eval $ac_try) 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; } &&
13141          { ac_try='test -s conftest$ac_exeext'
13142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143   (eval $ac_try) 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }; }; then
13147   ac_cv_lib_dl_dlopen=yes
13148 else
13149   echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13151
13152 ac_cv_lib_dl_dlopen=no
13153 fi
13154 rm -f conftest.err conftest.$ac_objext \
13155       conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13157 fi
13158 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13160 if test $ac_cv_lib_dl_dlopen = yes; then
13161
13162 cat >>confdefs.h <<\_ACEOF
13163 #define HAVE_DLOPEN 1
13164 _ACEOF
13165
13166                           DLLIBS="-ldl"
13167 else
13168   LIBEXT="a"
13169 fi
13170
13171 fi
13172 done
13173
13174         ac_wine_check_funcs_save_LIBS="$LIBS"
13175 LIBS="$LIBS $DLLIBS"
13176
13177 for ac_func in dladdr
13178 do
13179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13180 echo "$as_me:$LINENO: checking for $ac_func" >&5
13181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13182 if eval "test \"\${$as_ac_var+set}\" = set"; then
13183   echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185   cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h.  */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h.  */
13191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13193 #define $ac_func innocuous_$ac_func
13194
13195 /* System header to define __stub macros and hopefully few prototypes,
13196     which can conflict with char $ac_func (); below.
13197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13198     <limits.h> exists even on freestanding compilers.  */
13199
13200 #ifdef __STDC__
13201 # include <limits.h>
13202 #else
13203 # include <assert.h>
13204 #endif
13205
13206 #undef $ac_func
13207
13208 /* Override any gcc2 internal prototype to avoid an error.  */
13209 #ifdef __cplusplus
13210 extern "C"
13211 {
13212 #endif
13213 /* We use char because int might match the return type of a gcc2
13214    builtin and then its argument prototype would still apply.  */
13215 char $ac_func ();
13216 /* The GNU C library defines this for functions which it implements
13217     to always fail with ENOSYS.  Some functions are actually named
13218     something starting with __ and the normal name is an alias.  */
13219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13220 choke me
13221 #else
13222 char (*f) () = $ac_func;
13223 #endif
13224 #ifdef __cplusplus
13225 }
13226 #endif
13227
13228 int
13229 main ()
13230 {
13231 return f != $ac_func;
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext conftest$ac_exeext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13238   (eval $ac_link) 2>conftest.er1
13239   ac_status=$?
13240   grep -v '^ *+' conftest.er1 >conftest.err
13241   rm -f conftest.er1
13242   cat conftest.err >&5
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } &&
13245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; } &&
13251          { ac_try='test -s conftest$ac_exeext'
13252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253   (eval $ac_try) 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   eval "$as_ac_var=yes"
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 eval "$as_ac_var=no"
13263 fi
13264 rm -f conftest.err conftest.$ac_objext \
13265       conftest$ac_exeext conftest.$ac_ext
13266 fi
13267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13269 if test `eval echo '${'$as_ac_var'}'` = yes; then
13270   cat >>confdefs.h <<_ACEOF
13271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13272 _ACEOF
13273
13274 fi
13275 done
13276
13277 LIBS="$ac_wine_check_funcs_save_LIBS"
13278     else
13279         LIBEXT="a"
13280     fi
13281
13282     if test "$LIBEXT" = "so"
13283     then
13284       DLLFLAGS="$DLLFLAGS -fPIC"
13285       DLLEXT=".so"
13286       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13287 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13288 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13289   echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291   ac_wine_try_cflags_saved=$CFLAGS
13292 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13293 cat >conftest.$ac_ext <<_ACEOF
13294 void myfunc() {}
13295 _ACEOF
13296 rm -f conftest.$ac_objext conftest$ac_exeext
13297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13298   (eval $ac_link) 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } &&
13305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307   (eval $ac_try) 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); }; } &&
13311          { ac_try='test -s conftest$ac_exeext'
13312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313   (eval $ac_try) 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }; }; then
13317   ac_cv_c_dll_gnuelf="yes"
13318 else
13319   echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13321
13322 ac_cv_c_dll_gnuelf="no"
13323 fi
13324 rm -f conftest.err conftest.$ac_objext \
13325       conftest$ac_exeext conftest.$ac_ext
13326 CFLAGS=$ac_wine_try_cflags_saved
13327 fi
13328 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13329 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13330       if test "$ac_cv_c_dll_gnuelf" = "yes"
13331       then
13332         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13333         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13334         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13335 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13336 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13337   echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339   ac_wine_try_cflags_saved=$CFLAGS
13340 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347
13348 int
13349 main ()
13350 {
13351
13352   ;
13353   return 0;
13354 }
13355 _ACEOF
13356 rm -f conftest.$ac_objext conftest$ac_exeext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13358   (eval $ac_link) 2>conftest.er1
13359   ac_status=$?
13360   grep -v '^ *+' conftest.er1 >conftest.err
13361   rm -f conftest.er1
13362   cat conftest.err >&5
13363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364   (exit $ac_status); } &&
13365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367   (eval $ac_try) 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; } &&
13371          { ac_try='test -s conftest$ac_exeext'
13372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373   (eval $ac_try) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; }; then
13377   ac_cv_c_dll_zdefs="yes"
13378 else
13379   echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13381
13382 ac_cv_c_dll_zdefs="no"
13383 fi
13384 rm -f conftest.err conftest.$ac_objext \
13385       conftest$ac_exeext conftest.$ac_ext
13386 CFLAGS=$ac_wine_try_cflags_saved
13387 fi
13388 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13389 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13390         if test "$ac_cv_c_dll_zdefs" = "yes"
13391         then
13392           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13393         fi
13394
13395         echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13396 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13397 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13398   echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13400   ac_wine_try_cflags_saved=$CFLAGS
13401 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h.  */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h.  */
13408
13409 int
13410 main ()
13411 {
13412
13413   ;
13414   return 0;
13415 }
13416 _ACEOF
13417 rm -f conftest.$ac_objext conftest$ac_exeext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419   (eval $ac_link) 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428   (eval $ac_try) 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); }; } &&
13432          { ac_try='test -s conftest$ac_exeext'
13433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434   (eval $ac_try) 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; }; then
13438   ac_cv_c_dll_init_fini="yes"
13439 else
13440   echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443 ac_cv_c_dll_init_fini="no"
13444 fi
13445 rm -f conftest.err conftest.$ac_objext \
13446       conftest$ac_exeext conftest.$ac_ext
13447 CFLAGS=$ac_wine_try_cflags_saved
13448 fi
13449 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13450 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13451         if test "$ac_cv_c_dll_init_fini" = "yes"
13452         then
13453           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13454         fi
13455
13456         echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13457 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13458 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461   echo '{ global: *; };' >conftest.map
13462            ac_wine_try_cflags_saved=$CFLAGS
13463 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13464 cat >conftest.$ac_ext <<_ACEOF
13465 /* confdefs.h.  */
13466 _ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h.  */
13470
13471 int
13472 main ()
13473 {
13474
13475   ;
13476   return 0;
13477 }
13478 _ACEOF
13479 rm -f conftest.$ac_objext conftest$ac_exeext
13480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13481   (eval $ac_link) 2>conftest.er1
13482   ac_status=$?
13483   grep -v '^ *+' conftest.er1 >conftest.err
13484   rm -f conftest.er1
13485   cat conftest.err >&5
13486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487   (exit $ac_status); } &&
13488          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490   (eval $ac_try) 2>&5
13491   ac_status=$?
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); }; } &&
13494          { ac_try='test -s conftest$ac_exeext'
13495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496   (eval $ac_try) 2>&5
13497   ac_status=$?
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); }; }; then
13500   ac_cv_c_ld_version_scripts="yes"
13501 else
13502   echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13504
13505 ac_cv_c_ld_version_scripts="no"
13506 fi
13507 rm -f conftest.err conftest.$ac_objext \
13508       conftest$ac_exeext conftest.$ac_ext
13509 CFLAGS=$ac_wine_try_cflags_saved
13510            rm -f conftest.map
13511 fi
13512 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13513 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13514         if test "$ac_cv_c_ld_version_scripts" = "yes"
13515         then
13516           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13517         fi
13518
13519         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13520 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13521 if test "${ac_cv_c_export_dynamic+set}" = set; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524   ac_wine_try_cflags_saved=$CFLAGS
13525 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13526 cat >conftest.$ac_ext <<_ACEOF
13527 /* confdefs.h.  */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h.  */
13532
13533 int
13534 main ()
13535 {
13536
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543   (eval $ac_link) 2>conftest.er1
13544   ac_status=$?
13545   grep -v '^ *+' conftest.er1 >conftest.err
13546   rm -f conftest.er1
13547   cat conftest.err >&5
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); } &&
13550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552   (eval $ac_try) 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); }; } &&
13556          { ac_try='test -s conftest$ac_exeext'
13557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558   (eval $ac_try) 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; }; then
13562   ac_cv_c_export_dynamic="yes"
13563 else
13564   echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13566
13567 ac_cv_c_export_dynamic="no"
13568 fi
13569 rm -f conftest.err conftest.$ac_objext \
13570       conftest$ac_exeext conftest.$ac_ext
13571 CFLAGS=$ac_wine_try_cflags_saved
13572 fi
13573 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13574 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13575         if test "$ac_cv_c_export_dynamic" = "yes"
13576         then
13577           LDEXECFLAGS="-Wl,--export-dynamic"
13578
13579         fi
13580
13581         echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
13582 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6
13583 if test "${ac_cv_ld_rpath+set}" = set; then
13584   echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586   ac_wine_try_cflags_saved=$CFLAGS
13587 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h.  */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h.  */
13594
13595 int
13596 main ()
13597 {
13598
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605   (eval $ac_link) 2>conftest.er1
13606   ac_status=$?
13607   grep -v '^ *+' conftest.er1 >conftest.err
13608   rm -f conftest.er1
13609   cat conftest.err >&5
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); } &&
13612          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; } &&
13618          { ac_try='test -s conftest$ac_exeext'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; }; then
13624   ac_cv_ld_rpath="yes"
13625 else
13626   echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13628
13629 ac_cv_ld_rpath="no"
13630 fi
13631 rm -f conftest.err conftest.$ac_objext \
13632       conftest$ac_exeext conftest.$ac_ext
13633 CFLAGS=$ac_wine_try_cflags_saved
13634 fi
13635 echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
13636 echo "${ECHO_T}$ac_cv_ld_rpath" >&6
13637         if test "$ac_cv_ld_rpath" = "yes"
13638         then
13639           LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
13640
13641           LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
13642
13643         fi
13644
13645         case $host_cpu in
13646           *i[3456789]86*)
13647             echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
13648 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6
13649 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13650   echo $ECHO_N "(cached) $ECHO_C" >&6
13651 else
13652   ac_wine_try_cflags_saved=$CFLAGS
13653 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
13654 cat >conftest.$ac_ext <<_ACEOF
13655 /* confdefs.h.  */
13656 _ACEOF
13657 cat confdefs.h >>conftest.$ac_ext
13658 cat >>conftest.$ac_ext <<_ACEOF
13659 /* end confdefs.h.  */
13660
13661 int
13662 main ()
13663 {
13664
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 rm -f conftest.$ac_objext conftest$ac_exeext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13671   (eval $ac_link) 2>conftest.er1
13672   ac_status=$?
13673   grep -v '^ *+' conftest.er1 >conftest.err
13674   rm -f conftest.er1
13675   cat conftest.err >&5
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); } &&
13678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
13684          { ac_try='test -s conftest$ac_exeext'
13685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686   (eval $ac_try) 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); }; }; then
13690   ac_cv_ld_reloc_exec="yes"
13691 else
13692   echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13694
13695 ac_cv_ld_reloc_exec="no"
13696 fi
13697 rm -f conftest.err conftest.$ac_objext \
13698       conftest$ac_exeext conftest.$ac_ext
13699 CFLAGS=$ac_wine_try_cflags_saved
13700 fi
13701 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13702 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13703             if test "$ac_cv_ld_reloc_exec" = "yes"
13704             then
13705               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
13706             fi
13707             ;;
13708         esac
13709
13710       else
13711         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13712 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13713 if test "${ac_cv_c_dll_unixware+set}" = set; then
13714   echo $ECHO_N "(cached) $ECHO_C" >&6
13715 else
13716   ac_wine_try_cflags_saved=$CFLAGS
13717 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13718 cat >conftest.$ac_ext <<_ACEOF
13719 void myfunc() {}
13720 _ACEOF
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723   (eval $ac_link) 2>conftest.er1
13724   ac_status=$?
13725   grep -v '^ *+' conftest.er1 >conftest.err
13726   rm -f conftest.er1
13727   cat conftest.err >&5
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } &&
13730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732   (eval $ac_try) 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; } &&
13736          { ac_try='test -s conftest$ac_exeext'
13737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738   (eval $ac_try) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; }; then
13742   ac_cv_c_dll_unixware="yes"
13743 else
13744   echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747 ac_cv_c_dll_unixware="no"
13748 fi
13749 rm -f conftest.err conftest.$ac_objext \
13750       conftest$ac_exeext conftest.$ac_ext
13751 CFLAGS=$ac_wine_try_cflags_saved
13752 fi
13753 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13754 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13755         if test "$ac_cv_c_dll_unixware" = "yes"
13756         then
13757           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13758           LDDLLFLAGS="-Wl,-G,-B,symbolic"
13759
13760         else
13761           echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13762 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13763 if test "${ac_cv_c_dll_macho+set}" = set; then
13764   echo $ECHO_N "(cached) $ECHO_C" >&6
13765 else
13766   ac_wine_try_cflags_saved=$CFLAGS
13767 CFLAGS="$CFLAGS -bundle"
13768 cat >conftest.$ac_ext <<_ACEOF
13769 void myfunc() {}
13770 _ACEOF
13771 rm -f conftest.$ac_objext conftest$ac_exeext
13772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13773   (eval $ac_link) 2>conftest.er1
13774   ac_status=$?
13775   grep -v '^ *+' conftest.er1 >conftest.err
13776   rm -f conftest.er1
13777   cat conftest.err >&5
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); } &&
13780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782   (eval $ac_try) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; } &&
13786          { ac_try='test -s conftest$ac_exeext'
13787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788   (eval $ac_try) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; }; then
13792   ac_cv_c_dll_macho="yes"
13793 else
13794   echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13796
13797 ac_cv_c_dll_macho="no"
13798 fi
13799 rm -f conftest.err conftest.$ac_objext \
13800       conftest$ac_exeext conftest.$ac_ext
13801 CFLAGS=$ac_wine_try_cflags_saved
13802 fi
13803 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
13804 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
13805           if test "$ac_cv_c_dll_macho" = "yes"
13806           then
13807             LIBEXT="dylib"
13808             LDDLLFLAGS="-bundle"
13809             LDSHARED="\$(CC) -dynamiclib"
13810             STRIP="$STRIP -u -r"
13811                         COREFOUNDATIONLIB="-framework CoreFoundation"
13812
13813             IOKITLIB="-framework IOKit -framework CoreFoundation"
13814
13815             LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7ffe0000"
13816
13817             case $host_cpu in
13818               *powerpc*)
13819                 CFLAGS="$CFLAGS -ffixed-r13"
13820                 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
13821                 ;;
13822             esac
13823
13824           else
13825             echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
13826 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
13827 if test "${ac_cv_c_dll_hpux+set}" = set; then
13828   echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830   ac_wine_try_cflags_saved=$CFLAGS
13831 CFLAGS="$CFLAGS -shared"
13832 cat >conftest.$ac_ext <<_ACEOF
13833 void myfunc() {}
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837   (eval $ac_link) 2>conftest.er1
13838   ac_status=$?
13839   grep -v '^ *+' conftest.er1 >conftest.err
13840   rm -f conftest.er1
13841   cat conftest.err >&5
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } &&
13844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846   (eval $ac_try) 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; } &&
13850          { ac_try='test -s conftest$ac_exeext'
13851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852   (eval $ac_try) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); }; }; then
13856   ac_cv_c_dll_hpux="yes"
13857 else
13858   echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_cv_c_dll_hpux="no"
13862 fi
13863 rm -f conftest.err conftest.$ac_objext \
13864       conftest$ac_exeext conftest.$ac_ext
13865 CFLAGS=$ac_wine_try_cflags_saved
13866 fi
13867 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
13868 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
13869             if test "$ac_cv_c_dll_hpux" = "yes"
13870             then
13871               LIBEXT="sl"
13872               DLLEXT=".sl"
13873               LDDLLFLAGS="-shared -fPIC"
13874               LDSHARED="\$(CC) -shared"
13875             fi
13876           fi
13877         fi
13878       fi
13879     fi
13880
13881         CROSSTEST=""
13882
13883     if test "$cross_compiling" = "no"
13884     then
13885       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
13886 do
13887   # Extract the first word of "$ac_prog", so it can be a program name with args.
13888 set dummy $ac_prog; ac_word=$2
13889 echo "$as_me:$LINENO: checking for $ac_word" >&5
13890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13891 if test "${ac_cv_prog_CROSSCC+set}" = set; then
13892   echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894   if test -n "$CROSSCC"; then
13895   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
13896 else
13897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898 for as_dir in $PATH
13899 do
13900   IFS=$as_save_IFS
13901   test -z "$as_dir" && as_dir=.
13902   for ac_exec_ext in '' $ac_executable_extensions; do
13903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13904     ac_cv_prog_CROSSCC="$ac_prog"
13905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13906     break 2
13907   fi
13908 done
13909 done
13910
13911 fi
13912 fi
13913 CROSSCC=$ac_cv_prog_CROSSCC
13914 if test -n "$CROSSCC"; then
13915   echo "$as_me:$LINENO: result: $CROSSCC" >&5
13916 echo "${ECHO_T}$CROSSCC" >&6
13917 else
13918   echo "$as_me:$LINENO: result: no" >&5
13919 echo "${ECHO_T}no" >&6
13920 fi
13921
13922   test -n "$CROSSCC" && break
13923 done
13924 test -n "$CROSSCC" || CROSSCC="false"
13925
13926       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
13927 do
13928   # Extract the first word of "$ac_prog", so it can be a program name with args.
13929 set dummy $ac_prog; ac_word=$2
13930 echo "$as_me:$LINENO: checking for $ac_word" >&5
13931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13932 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13933   echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935   if test -n "$DLLTOOL"; then
13936   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13937 else
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13940 do
13941   IFS=$as_save_IFS
13942   test -z "$as_dir" && as_dir=.
13943   for ac_exec_ext in '' $ac_executable_extensions; do
13944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13945     ac_cv_prog_DLLTOOL="$ac_prog"
13946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13947     break 2
13948   fi
13949 done
13950 done
13951
13952 fi
13953 fi
13954 DLLTOOL=$ac_cv_prog_DLLTOOL
13955 if test -n "$DLLTOOL"; then
13956   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13957 echo "${ECHO_T}$DLLTOOL" >&6
13958 else
13959   echo "$as_me:$LINENO: result: no" >&5
13960 echo "${ECHO_T}no" >&6
13961 fi
13962
13963   test -n "$DLLTOOL" && break
13964 done
13965 test -n "$DLLTOOL" || DLLTOOL="false"
13966
13967       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
13968 do
13969   # Extract the first word of "$ac_prog", so it can be a program name with args.
13970 set dummy $ac_prog; ac_word=$2
13971 echo "$as_me:$LINENO: checking for $ac_word" >&5
13972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13973 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
13974   echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976   if test -n "$CROSSWINDRES"; then
13977   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
13978 else
13979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13980 for as_dir in $PATH
13981 do
13982   IFS=$as_save_IFS
13983   test -z "$as_dir" && as_dir=.
13984   for ac_exec_ext in '' $ac_executable_extensions; do
13985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13986     ac_cv_prog_CROSSWINDRES="$ac_prog"
13987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13988     break 2
13989   fi
13990 done
13991 done
13992
13993 fi
13994 fi
13995 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
13996 if test -n "$CROSSWINDRES"; then
13997   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
13998 echo "${ECHO_T}$CROSSWINDRES" >&6
13999 else
14000   echo "$as_me:$LINENO: result: no" >&5
14001 echo "${ECHO_T}no" >&6
14002 fi
14003
14004   test -n "$CROSSWINDRES" && break
14005 done
14006 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14007
14008       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14009     fi
14010     ;;
14011 esac
14012
14013 if test "$LIBEXT" = "a"; then
14014   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14015 It is currently not possible to build Wine without shared library
14016 (.so) support to allow transparent switch between .so and .dll files.
14017 If you are using Linux, you will need a newer binutils.
14018 " >&5
14019 echo "$as_me: error: could not find a way to build shared libraries.
14020 It is currently not possible to build Wine without shared library
14021 (.so) support to allow transparent switch between .so and .dll files.
14022 If you are using Linux, you will need a newer binutils.
14023 " >&2;}
14024    { (exit 1); exit 1; }; }
14025 fi
14026
14027 case $build_os in
14028   cygwin*|mingw32*)
14029     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14030  ;;
14031   darwin*|macosx*)
14032     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14033  ;;
14034   *)
14035     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14036  ;;
14037 esac
14038
14039 case $host_os in
14040   mingw32*)
14041     CRTLIBS="-lmsvcrt"
14042
14043     SOCKETLIBS="-lws2_32"
14044
14045     ;;
14046 esac
14047
14048 case $host_cpu in
14049   *i[3456789]86*)
14050     case $host_os in
14051       linux* | k*bsd*-gnu)
14052         MAIN_BINARY="wine-glibc"
14053
14054         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
14055  ;;
14056       darwin*|freebsd*)
14057         MAIN_BINARY="wine-pthread"
14058  ;;
14059       *)
14060         MAIN_BINARY="wine-kthread"
14061  ;;
14062     esac
14063     ;;
14064   *) MAIN_BINARY="wine-pthread"
14065  ;;
14066 esac
14067
14068
14069 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14070 then
14071   # Extract the first word of "ldd", so it can be a program name with args.
14072 set dummy ldd; ac_word=$2
14073 echo "$as_me:$LINENO: checking for $ac_word" >&5
14074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14075 if test "${ac_cv_path_LDD+set}" = set; then
14076   echo $ECHO_N "(cached) $ECHO_C" >&6
14077 else
14078   case $LDD in
14079   [\\/]* | ?:[\\/]*)
14080   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14081   ;;
14082   *)
14083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 as_dummy="/sbin:/usr/sbin:$PATH"
14085 for as_dir in $as_dummy
14086 do
14087   IFS=$as_save_IFS
14088   test -z "$as_dir" && as_dir=.
14089   for ac_exec_ext in '' $ac_executable_extensions; do
14090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14091     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14093     break 2
14094   fi
14095 done
14096 done
14097
14098   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14099   ;;
14100 esac
14101 fi
14102 LDD=$ac_cv_path_LDD
14103
14104 if test -n "$LDD"; then
14105   echo "$as_me:$LINENO: result: $LDD" >&5
14106 echo "${ECHO_T}$LDD" >&6
14107 else
14108   echo "$as_me:$LINENO: result: no" >&5
14109 echo "${ECHO_T}no" >&6
14110 fi
14111
14112 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14113 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14114 if test "${ac_cv_lib_soname_X11+set}" = set; then
14115   echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117   ac_get_soname_save_LIBS=$LIBS
14118 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14119   cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125
14126 /* Override any gcc2 internal prototype to avoid an error.  */
14127 #ifdef __cplusplus
14128 extern "C"
14129 #endif
14130 /* We use char because int might match the return type of a gcc2
14131    builtin and then its argument prototype would still apply.  */
14132 char XCreateWindow ();
14133 int
14134 main ()
14135 {
14136 XCreateWindow ();
14137   ;
14138   return 0;
14139 }
14140 _ACEOF
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143   (eval $ac_link) 2>conftest.er1
14144   ac_status=$?
14145   grep -v '^ *+' conftest.er1 >conftest.err
14146   rm -f conftest.er1
14147   cat conftest.err >&5
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); } &&
14150          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
14156          { ac_try='test -s conftest$ac_exeext'
14157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158   (eval $ac_try) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; }; then
14162   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
14163   if test "x$ac_cv_lib_soname_X11" = "x"
14164   then
14165      ac_cv_lib_soname_X11="libX11.$LIBEXT"
14166   fi
14167 else
14168   echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14172 fi
14173 rm -f conftest.err conftest.$ac_objext \
14174       conftest$ac_exeext conftest.$ac_ext
14175   LIBS=$ac_get_soname_save_LIBS
14176 fi
14177 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14178 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14179 if test "${ac_cv_lib_soname_X11+set}" = set; then
14180
14181 cat >>confdefs.h <<_ACEOF
14182 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14183 _ACEOF
14184
14185 fi
14186
14187   echo "$as_me:$LINENO: checking for -lXext soname" >&5
14188 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14189 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   ac_get_soname_save_LIBS=$LIBS
14193 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14194   cat >conftest.$ac_ext <<_ACEOF
14195 /* confdefs.h.  */
14196 _ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h.  */
14200
14201 /* Override any gcc2 internal prototype to avoid an error.  */
14202 #ifdef __cplusplus
14203 extern "C"
14204 #endif
14205 /* We use char because int might match the return type of a gcc2
14206    builtin and then its argument prototype would still apply.  */
14207 char XextCreateExtension ();
14208 int
14209 main ()
14210 {
14211 XextCreateExtension ();
14212   ;
14213   return 0;
14214 }
14215 _ACEOF
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218   (eval $ac_link) 2>conftest.er1
14219   ac_status=$?
14220   grep -v '^ *+' conftest.er1 >conftest.err
14221   rm -f conftest.er1
14222   cat conftest.err >&5
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } &&
14225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227   (eval $ac_try) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; } &&
14231          { ac_try='test -s conftest$ac_exeext'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
14238   if test "x$ac_cv_lib_soname_Xext" = "x"
14239   then
14240      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14241   fi
14242 else
14243   echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14247 fi
14248 rm -f conftest.err conftest.$ac_objext \
14249       conftest$ac_exeext conftest.$ac_ext
14250   LIBS=$ac_get_soname_save_LIBS
14251 fi
14252 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14253 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14254 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14255
14256 cat >>confdefs.h <<_ACEOF
14257 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14258 _ACEOF
14259
14260 fi
14261
14262   echo "$as_me:$LINENO: checking for -lXi soname" >&5
14263 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14264 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14265   echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267   ac_get_soname_save_LIBS=$LIBS
14268 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14269   cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h.  */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h.  */
14275
14276 /* Override any gcc2 internal prototype to avoid an error.  */
14277 #ifdef __cplusplus
14278 extern "C"
14279 #endif
14280 /* We use char because int might match the return type of a gcc2
14281    builtin and then its argument prototype would still apply.  */
14282 char XOpenDevice ();
14283 int
14284 main ()
14285 {
14286 XOpenDevice ();
14287   ;
14288   return 0;
14289 }
14290 _ACEOF
14291 rm -f conftest.$ac_objext conftest$ac_exeext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293   (eval $ac_link) 2>conftest.er1
14294   ac_status=$?
14295   grep -v '^ *+' conftest.er1 >conftest.err
14296   rm -f conftest.er1
14297   cat conftest.err >&5
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); } &&
14300          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; } &&
14306          { ac_try='test -s conftest$ac_exeext'
14307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308   (eval $ac_try) 2>&5
14309   ac_status=$?
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); }; }; then
14312   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
14313   if test "x$ac_cv_lib_soname_Xi" = "x"
14314   then
14315      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14316   fi
14317 else
14318   echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14320
14321 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14322 fi
14323 rm -f conftest.err conftest.$ac_objext \
14324       conftest$ac_exeext conftest.$ac_ext
14325   LIBS=$ac_get_soname_save_LIBS
14326 fi
14327 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14328 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14329 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14330
14331 cat >>confdefs.h <<_ACEOF
14332 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14333 _ACEOF
14334
14335 fi
14336
14337   echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14338 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14339 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14340   echo $ECHO_N "(cached) $ECHO_C" >&6
14341 else
14342   ac_get_soname_save_LIBS=$LIBS
14343 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14344   cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h.  */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h.  */
14350
14351 /* Override any gcc2 internal prototype to avoid an error.  */
14352 #ifdef __cplusplus
14353 extern "C"
14354 #endif
14355 /* We use char because int might match the return type of a gcc2
14356    builtin and then its argument prototype would still apply.  */
14357 char XRenderQueryExtension ();
14358 int
14359 main ()
14360 {
14361 XRenderQueryExtension ();
14362   ;
14363   return 0;
14364 }
14365 _ACEOF
14366 rm -f conftest.$ac_objext conftest$ac_exeext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14368   (eval $ac_link) 2>conftest.er1
14369   ac_status=$?
14370   grep -v '^ *+' conftest.er1 >conftest.err
14371   rm -f conftest.er1
14372   cat conftest.err >&5
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); } &&
14375          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377   (eval $ac_try) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); }; } &&
14381          { ac_try='test -s conftest$ac_exeext'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; }; then
14387   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
14388   if test "x$ac_cv_lib_soname_Xrender" = "x"
14389   then
14390      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14391   fi
14392 else
14393   echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14397 fi
14398 rm -f conftest.err conftest.$ac_objext \
14399       conftest$ac_exeext conftest.$ac_ext
14400   LIBS=$ac_get_soname_save_LIBS
14401 fi
14402 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14403 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14404 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14405
14406 cat >>confdefs.h <<_ACEOF
14407 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14408 _ACEOF
14409
14410 fi
14411
14412   echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14413 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14414 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14415   echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417   ac_get_soname_save_LIBS=$LIBS
14418 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14419   cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h.  */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h.  */
14425
14426 /* Override any gcc2 internal prototype to avoid an error.  */
14427 #ifdef __cplusplus
14428 extern "C"
14429 #endif
14430 /* We use char because int might match the return type of a gcc2
14431    builtin and then its argument prototype would still apply.  */
14432 char XRRQueryExtension ();
14433 int
14434 main ()
14435 {
14436 XRRQueryExtension ();
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest.$ac_objext conftest$ac_exeext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443   (eval $ac_link) 2>conftest.er1
14444   ac_status=$?
14445   grep -v '^ *+' conftest.er1 >conftest.err
14446   rm -f conftest.er1
14447   cat conftest.err >&5
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); } &&
14450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452   (eval $ac_try) 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; } &&
14456          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14462   ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
14463   if test "x$ac_cv_lib_soname_Xrandr" = "x"
14464   then
14465      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14466   fi
14467 else
14468   echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14470
14471 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14472 fi
14473 rm -f conftest.err conftest.$ac_objext \
14474       conftest$ac_exeext conftest.$ac_ext
14475   LIBS=$ac_get_soname_save_LIBS
14476 fi
14477 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14478 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14479 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14480
14481 cat >>confdefs.h <<_ACEOF
14482 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14483 _ACEOF
14484
14485 fi
14486
14487   echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14488 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14489 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14490   echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492   ac_get_soname_save_LIBS=$LIBS
14493 LIBS="-lfreetype $X_LIBS $LIBS"
14494   cat >conftest.$ac_ext <<_ACEOF
14495 /* confdefs.h.  */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h.  */
14500
14501 /* Override any gcc2 internal prototype to avoid an error.  */
14502 #ifdef __cplusplus
14503 extern "C"
14504 #endif
14505 /* We use char because int might match the return type of a gcc2
14506    builtin and then its argument prototype would still apply.  */
14507 char FT_Init_FreeType ();
14508 int
14509 main ()
14510 {
14511 FT_Init_FreeType ();
14512   ;
14513   return 0;
14514 }
14515 _ACEOF
14516 rm -f conftest.$ac_objext conftest$ac_exeext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14518   (eval $ac_link) 2>conftest.er1
14519   ac_status=$?
14520   grep -v '^ *+' conftest.er1 >conftest.err
14521   rm -f conftest.er1
14522   cat conftest.err >&5
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); } &&
14525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527   (eval $ac_try) 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; } &&
14531          { ac_try='test -s conftest$ac_exeext'
14532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533   (eval $ac_try) 2>&5
14534   ac_status=$?
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); }; }; then
14537   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
14538   if test "x$ac_cv_lib_soname_freetype" = "x"
14539   then
14540      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14541   fi
14542 else
14543   echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14547 fi
14548 rm -f conftest.err conftest.$ac_objext \
14549       conftest$ac_exeext conftest.$ac_ext
14550   LIBS=$ac_get_soname_save_LIBS
14551 fi
14552 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14553 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14554 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14555
14556 cat >>confdefs.h <<_ACEOF
14557 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14558 _ACEOF
14559
14560 fi
14561
14562   echo "$as_me:$LINENO: checking for -lGL soname" >&5
14563 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14564 if test "${ac_cv_lib_soname_GL+set}" = set; then
14565   echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567   ac_get_soname_save_LIBS=$LIBS
14568 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14569   cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h.  */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h.  */
14575
14576 /* Override any gcc2 internal prototype to avoid an error.  */
14577 #ifdef __cplusplus
14578 extern "C"
14579 #endif
14580 /* We use char because int might match the return type of a gcc2
14581    builtin and then its argument prototype would still apply.  */
14582 char glXQueryExtension ();
14583 int
14584 main ()
14585 {
14586 glXQueryExtension ();
14587   ;
14588   return 0;
14589 }
14590 _ACEOF
14591 rm -f conftest.$ac_objext conftest$ac_exeext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14593   (eval $ac_link) 2>conftest.er1
14594   ac_status=$?
14595   grep -v '^ *+' conftest.er1 >conftest.err
14596   rm -f conftest.er1
14597   cat conftest.err >&5
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } &&
14600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602   (eval $ac_try) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); }; } &&
14606          { ac_try='test -s conftest$ac_exeext'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; }; then
14612   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
14613   if test "x$ac_cv_lib_soname_GL" = "x"
14614   then
14615      ac_cv_lib_soname_GL="libGL.$LIBEXT"
14616   fi
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14622 fi
14623 rm -f conftest.err conftest.$ac_objext \
14624       conftest$ac_exeext conftest.$ac_ext
14625   LIBS=$ac_get_soname_save_LIBS
14626 fi
14627 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14628 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14629 if test "${ac_cv_lib_soname_GL+set}" = set; then
14630
14631 cat >>confdefs.h <<_ACEOF
14632 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14633 _ACEOF
14634
14635 fi
14636
14637   echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
14638 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6
14639 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
14640   echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642   ac_get_soname_save_LIBS=$LIBS
14643 LIBS="-ldbus-1  $LIBS"
14644   cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h.  */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h.  */
14650
14651 /* Override any gcc2 internal prototype to avoid an error.  */
14652 #ifdef __cplusplus
14653 extern "C"
14654 #endif
14655 /* We use char because int might match the return type of a gcc2
14656    builtin and then its argument prototype would still apply.  */
14657 char dbus_error_init ();
14658 int
14659 main ()
14660 {
14661 dbus_error_init ();
14662   ;
14663   return 0;
14664 }
14665 _ACEOF
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14668   (eval $ac_link) 2>conftest.er1
14669   ac_status=$?
14670   grep -v '^ *+' conftest.er1 >conftest.err
14671   rm -f conftest.er1
14672   cat conftest.err >&5
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); } &&
14675          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; } &&
14681          { ac_try='test -s conftest$ac_exeext'
14682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683   (eval $ac_try) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); }; }; then
14687   ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
14688   if test "x$ac_cv_lib_soname_dbus_1" = "x"
14689   then
14690      ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
14691   fi
14692 else
14693   echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14695
14696 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
14697 fi
14698 rm -f conftest.err conftest.$ac_objext \
14699       conftest$ac_exeext conftest.$ac_ext
14700   LIBS=$ac_get_soname_save_LIBS
14701 fi
14702 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
14703 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6
14704 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
14705
14706 cat >>confdefs.h <<_ACEOF
14707 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
14708 _ACEOF
14709
14710 fi
14711
14712   echo "$as_me:$LINENO: checking for -lhal soname" >&5
14713 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6
14714 if test "${ac_cv_lib_soname_hal+set}" = set; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   ac_get_soname_save_LIBS=$LIBS
14718 LIBS="-lhal  $LIBS"
14719   cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725
14726 /* Override any gcc2 internal prototype to avoid an error.  */
14727 #ifdef __cplusplus
14728 extern "C"
14729 #endif
14730 /* We use char because int might match the return type of a gcc2
14731    builtin and then its argument prototype would still apply.  */
14732 char libhal_ctx_new ();
14733 int
14734 main ()
14735 {
14736 libhal_ctx_new ();
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 rm -f conftest.$ac_objext conftest$ac_exeext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14743   (eval $ac_link) 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } &&
14750          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752   (eval $ac_try) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); }; } &&
14756          { ac_try='test -s conftest$ac_exeext'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762   ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
14763   if test "x$ac_cv_lib_soname_hal" = "x"
14764   then
14765      ac_cv_lib_soname_hal="libhal.$LIBEXT"
14766   fi
14767 else
14768   echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14770
14771 ac_cv_lib_soname_hal="libhal.$LIBEXT"
14772 fi
14773 rm -f conftest.err conftest.$ac_objext \
14774       conftest$ac_exeext conftest.$ac_ext
14775   LIBS=$ac_get_soname_save_LIBS
14776 fi
14777 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
14778 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6
14779 if test "${ac_cv_lib_soname_hal+set}" = set; then
14780
14781 cat >>confdefs.h <<_ACEOF
14782 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
14783 _ACEOF
14784
14785 fi
14786
14787   echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14788 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14789 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14790   echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14792   ac_get_soname_save_LIBS=$LIBS
14793 LIBS="-ltxc_dxtn  $LIBS"
14794   cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h.  */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h.  */
14800
14801 /* Override any gcc2 internal prototype to avoid an error.  */
14802 #ifdef __cplusplus
14803 extern "C"
14804 #endif
14805 /* We use char because int might match the return type of a gcc2
14806    builtin and then its argument prototype would still apply.  */
14807 char fetch_2d_texel_rgba_dxt1 ();
14808 int
14809 main ()
14810 {
14811 fetch_2d_texel_rgba_dxt1 ();
14812   ;
14813   return 0;
14814 }
14815 _ACEOF
14816 rm -f conftest.$ac_objext conftest$ac_exeext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14818   (eval $ac_link) 2>conftest.er1
14819   ac_status=$?
14820   grep -v '^ *+' conftest.er1 >conftest.err
14821   rm -f conftest.er1
14822   cat conftest.err >&5
14823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824   (exit $ac_status); } &&
14825          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827   (eval $ac_try) 2>&5
14828   ac_status=$?
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); }; } &&
14831          { ac_try='test -s conftest$ac_exeext'
14832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833   (eval $ac_try) 2>&5
14834   ac_status=$?
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); }; }; then
14837   ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
14838   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14839   then
14840      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14841   fi
14842 else
14843   echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14845
14846 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14847 fi
14848 rm -f conftest.err conftest.$ac_objext \
14849       conftest$ac_exeext conftest.$ac_ext
14850   LIBS=$ac_get_soname_save_LIBS
14851 fi
14852 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14853 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14854 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14855
14856 cat >>confdefs.h <<_ACEOF
14857 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14858 _ACEOF
14859
14860 fi
14861
14862   echo "$as_me:$LINENO: checking for -lcups soname" >&5
14863 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14864 if test "${ac_cv_lib_soname_cups+set}" = set; then
14865   echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867   ac_get_soname_save_LIBS=$LIBS
14868 LIBS="-lcups  $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 cupsGetDefault ();
14883 int
14884 main ()
14885 {
14886 cupsGetDefault ();
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_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
14913   if test "x$ac_cv_lib_soname_cups" = "x"
14914   then
14915      ac_cv_lib_soname_cups="libcups.$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_cups="libcups.$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_cups" >&5
14928 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14929 if test "${ac_cv_lib_soname_cups+set}" = set; then
14930
14931 cat >>confdefs.h <<_ACEOF
14932 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14933 _ACEOF
14934
14935 fi
14936
14937   echo "$as_me:$LINENO: checking for -ljack soname" >&5
14938 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14939 if test "${ac_cv_lib_soname_jack+set}" = set; then
14940   echo $ECHO_N "(cached) $ECHO_C" >&6
14941 else
14942   ac_get_soname_save_LIBS=$LIBS
14943 LIBS="-ljack  $LIBS"
14944   cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h.  */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h.  */
14950
14951 /* Override any gcc2 internal prototype to avoid an error.  */
14952 #ifdef __cplusplus
14953 extern "C"
14954 #endif
14955 /* We use char because int might match the return type of a gcc2
14956    builtin and then its argument prototype would still apply.  */
14957 char jack_client_new ();
14958 int
14959 main ()
14960 {
14961 jack_client_new ();
14962   ;
14963   return 0;
14964 }
14965 _ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14968   (eval $ac_link) 2>conftest.er1
14969   ac_status=$?
14970   grep -v '^ *+' conftest.er1 >conftest.err
14971   rm -f conftest.er1
14972   cat conftest.err >&5
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } &&
14975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977   (eval $ac_try) 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); }; } &&
14981          { ac_try='test -s conftest$ac_exeext'
14982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983   (eval $ac_try) 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); }; }; then
14987   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
14988   if test "x$ac_cv_lib_soname_jack" = "x"
14989   then
14990      ac_cv_lib_soname_jack="libjack.$LIBEXT"
14991   fi
14992 else
14993   echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14995
14996 ac_cv_lib_soname_jack="libjack.$LIBEXT"
14997 fi
14998 rm -f conftest.err conftest.$ac_objext \
14999       conftest$ac_exeext conftest.$ac_ext
15000   LIBS=$ac_get_soname_save_LIBS
15001 fi
15002 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15003 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15004 if test "${ac_cv_lib_soname_jack+set}" = set; then
15005
15006 cat >>confdefs.h <<_ACEOF
15007 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15008 _ACEOF
15009
15010 fi
15011
15012   echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15013 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15014 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15015   echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017   ac_get_soname_save_LIBS=$LIBS
15018 LIBS="-lfontconfig  $LIBS"
15019   cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h.  */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h.  */
15025
15026 /* Override any gcc2 internal prototype to avoid an error.  */
15027 #ifdef __cplusplus
15028 extern "C"
15029 #endif
15030 /* We use char because int might match the return type of a gcc2
15031    builtin and then its argument prototype would still apply.  */
15032 char FcInit ();
15033 int
15034 main ()
15035 {
15036 FcInit ();
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15043   (eval $ac_link) 2>conftest.er1
15044   ac_status=$?
15045   grep -v '^ *+' conftest.er1 >conftest.err
15046   rm -f conftest.er1
15047   cat conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } &&
15050          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052   (eval $ac_try) 2>&5
15053   ac_status=$?
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); }; } &&
15056          { ac_try='test -s conftest$ac_exeext'
15057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058   (eval $ac_try) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); }; }; then
15062   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
15063   if test "x$ac_cv_lib_soname_fontconfig" = "x"
15064   then
15065      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15066   fi
15067 else
15068   echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15072 fi
15073 rm -f conftest.err conftest.$ac_objext \
15074       conftest$ac_exeext conftest.$ac_ext
15075   LIBS=$ac_get_soname_save_LIBS
15076 fi
15077 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15078 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15079 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15080
15081 cat >>confdefs.h <<_ACEOF
15082 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15083 _ACEOF
15084
15085 fi
15086
15087   echo "$as_me:$LINENO: checking for -lssl soname" >&5
15088 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15089 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15090   echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092   ac_get_soname_save_LIBS=$LIBS
15093 LIBS="-lssl  $LIBS"
15094   cat >conftest.$ac_ext <<_ACEOF
15095 /* confdefs.h.  */
15096 _ACEOF
15097 cat confdefs.h >>conftest.$ac_ext
15098 cat >>conftest.$ac_ext <<_ACEOF
15099 /* end confdefs.h.  */
15100
15101 /* Override any gcc2 internal prototype to avoid an error.  */
15102 #ifdef __cplusplus
15103 extern "C"
15104 #endif
15105 /* We use char because int might match the return type of a gcc2
15106    builtin and then its argument prototype would still apply.  */
15107 char SSL_library_init ();
15108 int
15109 main ()
15110 {
15111 SSL_library_init ();
15112   ;
15113   return 0;
15114 }
15115 _ACEOF
15116 rm -f conftest.$ac_objext conftest$ac_exeext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15118   (eval $ac_link) 2>conftest.er1
15119   ac_status=$?
15120   grep -v '^ *+' conftest.er1 >conftest.err
15121   rm -f conftest.er1
15122   cat conftest.err >&5
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); } &&
15125          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127   (eval $ac_try) 2>&5
15128   ac_status=$?
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); }; } &&
15131          { ac_try='test -s conftest$ac_exeext'
15132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133   (eval $ac_try) 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; }; then
15137   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
15138   if test "x$ac_cv_lib_soname_ssl" = "x"
15139   then
15140      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15141   fi
15142 else
15143   echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15145
15146 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15147 fi
15148 rm -f conftest.err conftest.$ac_objext \
15149       conftest$ac_exeext conftest.$ac_ext
15150   LIBS=$ac_get_soname_save_LIBS
15151 fi
15152 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15153 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15154 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15155
15156 cat >>confdefs.h <<_ACEOF
15157 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15158 _ACEOF
15159
15160 fi
15161
15162   echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15163 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15164 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15165   echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167   ac_get_soname_save_LIBS=$LIBS
15168 LIBS="-lcrypto  $LIBS"
15169   cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h.  */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h.  */
15175
15176 /* Override any gcc2 internal prototype to avoid an error.  */
15177 #ifdef __cplusplus
15178 extern "C"
15179 #endif
15180 /* We use char because int might match the return type of a gcc2
15181    builtin and then its argument prototype would still apply.  */
15182 char BIO_new_socket ();
15183 int
15184 main ()
15185 {
15186 BIO_new_socket ();
15187   ;
15188   return 0;
15189 }
15190 _ACEOF
15191 rm -f conftest.$ac_objext conftest$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193   (eval $ac_link) 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } &&
15200          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202   (eval $ac_try) 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); }; } &&
15206          { ac_try='test -s conftest$ac_exeext'
15207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208   (eval $ac_try) 2>&5
15209   ac_status=$?
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); }; }; then
15212   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
15213   if test "x$ac_cv_lib_soname_crypto" = "x"
15214   then
15215      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15216   fi
15217 else
15218   echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15220
15221 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15222 fi
15223 rm -f conftest.err conftest.$ac_objext \
15224       conftest$ac_exeext conftest.$ac_ext
15225   LIBS=$ac_get_soname_save_LIBS
15226 fi
15227 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15228 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15229 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15230
15231 cat >>confdefs.h <<_ACEOF
15232 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15233 _ACEOF
15234
15235 fi
15236
15237   echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15238 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15239 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15240   echo $ECHO_N "(cached) $ECHO_C" >&6
15241 else
15242   ac_get_soname_save_LIBS=$LIBS
15243 LIBS="-lncurses  $LIBS"
15244   cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h.  */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h.  */
15250
15251 /* Override any gcc2 internal prototype to avoid an error.  */
15252 #ifdef __cplusplus
15253 extern "C"
15254 #endif
15255 /* We use char because int might match the return type of a gcc2
15256    builtin and then its argument prototype would still apply.  */
15257 char waddch ();
15258 int
15259 main ()
15260 {
15261 waddch ();
15262   ;
15263   return 0;
15264 }
15265 _ACEOF
15266 rm -f conftest.$ac_objext conftest$ac_exeext
15267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15268   (eval $ac_link) 2>conftest.er1
15269   ac_status=$?
15270   grep -v '^ *+' conftest.er1 >conftest.err
15271   rm -f conftest.er1
15272   cat conftest.err >&5
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } &&
15275          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; } &&
15281          { ac_try='test -s conftest$ac_exeext'
15282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283   (eval $ac_try) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; }; then
15287   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
15288   if test "x$ac_cv_lib_soname_ncurses" = "x"
15289   then
15290      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15291   fi
15292 else
15293   echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15295
15296 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15297 fi
15298 rm -f conftest.err conftest.$ac_objext \
15299       conftest$ac_exeext conftest.$ac_ext
15300   LIBS=$ac_get_soname_save_LIBS
15301 fi
15302 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15303 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15304 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15305
15306 cat >>confdefs.h <<_ACEOF
15307 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15308 _ACEOF
15309
15310 fi
15311
15312   echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15313 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15314 if test "${ac_cv_lib_soname_curses+set}" = set; then
15315   echo $ECHO_N "(cached) $ECHO_C" >&6
15316 else
15317   ac_get_soname_save_LIBS=$LIBS
15318 LIBS="-lcurses  $LIBS"
15319   cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h.  */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h.  */
15325
15326 /* Override any gcc2 internal prototype to avoid an error.  */
15327 #ifdef __cplusplus
15328 extern "C"
15329 #endif
15330 /* We use char because int might match the return type of a gcc2
15331    builtin and then its argument prototype would still apply.  */
15332 char waddch ();
15333 int
15334 main ()
15335 {
15336 waddch ();
15337   ;
15338   return 0;
15339 }
15340 _ACEOF
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15343   (eval $ac_link) 2>conftest.er1
15344   ac_status=$?
15345   grep -v '^ *+' conftest.er1 >conftest.err
15346   rm -f conftest.er1
15347   cat conftest.err >&5
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); } &&
15350          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
15356          { ac_try='test -s conftest$ac_exeext'
15357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358   (eval $ac_try) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; }; then
15362   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
15363   if test "x$ac_cv_lib_soname_curses" = "x"
15364   then
15365      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15366   fi
15367 else
15368   echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15370
15371 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15372 fi
15373 rm -f conftest.err conftest.$ac_objext \
15374       conftest$ac_exeext conftest.$ac_ext
15375   LIBS=$ac_get_soname_save_LIBS
15376 fi
15377 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15378 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15379 if test "${ac_cv_lib_soname_curses+set}" = set; then
15380
15381 cat >>confdefs.h <<_ACEOF
15382 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15383 _ACEOF
15384
15385 fi
15386
15387   echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15388 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15389 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15390   echo $ECHO_N "(cached) $ECHO_C" >&6
15391 else
15392   ac_get_soname_save_LIBS=$LIBS
15393 LIBS="-ljpeg  $LIBS"
15394   cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h.  */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h.  */
15400
15401 /* Override any gcc2 internal prototype to avoid an error.  */
15402 #ifdef __cplusplus
15403 extern "C"
15404 #endif
15405 /* We use char because int might match the return type of a gcc2
15406    builtin and then its argument prototype would still apply.  */
15407 char jpeg_start_decompress ();
15408 int
15409 main ()
15410 {
15411 jpeg_start_decompress ();
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15418   (eval $ac_link) 2>conftest.er1
15419   ac_status=$?
15420   grep -v '^ *+' conftest.er1 >conftest.err
15421   rm -f conftest.er1
15422   cat conftest.err >&5
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); } &&
15425          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427   (eval $ac_try) 2>&5
15428   ac_status=$?
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); }; } &&
15431          { ac_try='test -s conftest$ac_exeext'
15432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433   (eval $ac_try) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); }; }; then
15437   ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
15438   if test "x$ac_cv_lib_soname_jpeg" = "x"
15439   then
15440      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15441   fi
15442 else
15443   echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15447 fi
15448 rm -f conftest.err conftest.$ac_objext \
15449       conftest$ac_exeext conftest.$ac_ext
15450   LIBS=$ac_get_soname_save_LIBS
15451 fi
15452 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15453 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15454 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15455
15456 cat >>confdefs.h <<_ACEOF
15457 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15458 _ACEOF
15459
15460 fi
15461
15462   echo "$as_me:$LINENO: checking for -lungif soname" >&5
15463 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15464 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15465   echo $ECHO_N "(cached) $ECHO_C" >&6
15466 else
15467   ac_get_soname_save_LIBS=$LIBS
15468 LIBS="-lungif  $LIBS"
15469   cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h.  */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h.  */
15475
15476 /* Override any gcc2 internal prototype to avoid an error.  */
15477 #ifdef __cplusplus
15478 extern "C"
15479 #endif
15480 /* We use char because int might match the return type of a gcc2
15481    builtin and then its argument prototype would still apply.  */
15482 char DGifOpen ();
15483 int
15484 main ()
15485 {
15486 DGifOpen ();
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493   (eval $ac_link) 2>conftest.er1
15494   ac_status=$?
15495   grep -v '^ *+' conftest.er1 >conftest.err
15496   rm -f conftest.er1
15497   cat conftest.err >&5
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); } &&
15500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502   (eval $ac_try) 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); }; } &&
15506          { ac_try='test -s conftest$ac_exeext'
15507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508   (eval $ac_try) 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; }; then
15512   ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'`
15513   if test "x$ac_cv_lib_soname_ungif" = "x"
15514   then
15515      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15516   fi
15517 else
15518   echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15520
15521 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15522 fi
15523 rm -f conftest.err conftest.$ac_objext \
15524       conftest$ac_exeext conftest.$ac_ext
15525   LIBS=$ac_get_soname_save_LIBS
15526 fi
15527 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15528 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15529 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15530
15531 cat >>confdefs.h <<_ACEOF
15532 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15533 _ACEOF
15534
15535 fi
15536
15537   echo "$as_me:$LINENO: checking for -lgif soname" >&5
15538 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15539 if test "${ac_cv_lib_soname_gif+set}" = set; then
15540   echo $ECHO_N "(cached) $ECHO_C" >&6
15541 else
15542   ac_get_soname_save_LIBS=$LIBS
15543 LIBS="-lgif  $LIBS"
15544   cat >conftest.$ac_ext <<_ACEOF
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550
15551 /* Override any gcc2 internal prototype to avoid an error.  */
15552 #ifdef __cplusplus
15553 extern "C"
15554 #endif
15555 /* We use char because int might match the return type of a gcc2
15556    builtin and then its argument prototype would still apply.  */
15557 char DGifOpen ();
15558 int
15559 main ()
15560 {
15561 DGifOpen ();
15562   ;
15563   return 0;
15564 }
15565 _ACEOF
15566 rm -f conftest.$ac_objext conftest$ac_exeext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15568   (eval $ac_link) 2>conftest.er1
15569   ac_status=$?
15570   grep -v '^ *+' conftest.er1 >conftest.err
15571   rm -f conftest.er1
15572   cat conftest.err >&5
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); } &&
15575          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577   (eval $ac_try) 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; } &&
15581          { ac_try='test -s conftest$ac_exeext'
15582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583   (eval $ac_try) 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); }; }; then
15587   ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
15588   if test "x$ac_cv_lib_soname_gif" = "x"
15589   then
15590      ac_cv_lib_soname_gif="libgif.$LIBEXT"
15591   fi
15592 else
15593   echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15595
15596 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15597 fi
15598 rm -f conftest.err conftest.$ac_objext \
15599       conftest$ac_exeext conftest.$ac_ext
15600   LIBS=$ac_get_soname_save_LIBS
15601 fi
15602 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15603 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15604 if test "${ac_cv_lib_soname_gif+set}" = set; then
15605
15606 cat >>confdefs.h <<_ACEOF
15607 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15608 _ACEOF
15609
15610 fi
15611
15612   echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15613 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6
15614 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15615   echo $ECHO_N "(cached) $ECHO_C" >&6
15616 else
15617   ac_get_soname_save_LIBS=$LIBS
15618 LIBS="-lcapi20  $LIBS"
15619   cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h.  */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h.  */
15625
15626 /* Override any gcc2 internal prototype to avoid an error.  */
15627 #ifdef __cplusplus
15628 extern "C"
15629 #endif
15630 /* We use char because int might match the return type of a gcc2
15631    builtin and then its argument prototype would still apply.  */
15632 char capi20_isinstalled ();
15633 int
15634 main ()
15635 {
15636 capi20_isinstalled ();
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15643   (eval $ac_link) 2>conftest.er1
15644   ac_status=$?
15645   grep -v '^ *+' conftest.er1 >conftest.err
15646   rm -f conftest.er1
15647   cat conftest.err >&5
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } &&
15650          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652   (eval $ac_try) 2>&5
15653   ac_status=$?
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); }; } &&
15656          { ac_try='test -s conftest$ac_exeext'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; }; then
15662   ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
15663   if test "x$ac_cv_lib_soname_capi20" = "x"
15664   then
15665      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15666   fi
15667 else
15668   echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15670
15671 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15672 fi
15673 rm -f conftest.err conftest.$ac_objext \
15674       conftest$ac_exeext conftest.$ac_ext
15675   LIBS=$ac_get_soname_save_LIBS
15676 fi
15677 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15678 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6
15679 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15680
15681 cat >>confdefs.h <<_ACEOF
15682 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15683 _ACEOF
15684
15685 fi
15686
15687 fi
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755 for ac_func in \
15756         _lwp_create \
15757         _lwp_self \
15758         _pclose \
15759         _popen \
15760         _snprintf \
15761         _spawnvp \
15762         _stricmp \
15763         _strnicmp \
15764         _vsnprintf \
15765         asctime_r \
15766         chsize \
15767         clone \
15768         epoll_create \
15769         ffs \
15770         finite \
15771         fork \
15772         fpclass \
15773         fstatfs \
15774         fstatvfs \
15775         ftruncate \
15776         futimes \
15777         futimesat \
15778         getaddrinfo \
15779         getnameinfo \
15780         getnetbyname \
15781         getopt_long \
15782         getpagesize \
15783         getprotobyname \
15784         getprotobynumber \
15785         getpwuid \
15786         getservbyport \
15787         gettid \
15788         gettimeofday \
15789         getuid \
15790         inet_network \
15791         lstat \
15792         memmove \
15793         mmap \
15794         pclose \
15795         popen \
15796         prctl \
15797         pread \
15798         pwrite \
15799         readlink \
15800         rfork \
15801         sched_yield \
15802         select \
15803         sendmsg \
15804         settimeofday \
15805         sigaltstack \
15806         sigprocmask \
15807         snprintf \
15808         spawnvp \
15809         statfs \
15810         statvfs \
15811         strcasecmp \
15812         strerror \
15813         strncasecmp \
15814         tcgetattr \
15815         timegm \
15816         usleep \
15817         vsnprintf \
15818         wait4 \
15819         waitpid \
15820
15821 do
15822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15823 echo "$as_me:$LINENO: checking for $ac_func" >&5
15824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15825 if eval "test \"\${$as_ac_var+set}\" = set"; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828   cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h.  */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h.  */
15834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15836 #define $ac_func innocuous_$ac_func
15837
15838 /* System header to define __stub macros and hopefully few prototypes,
15839     which can conflict with char $ac_func (); below.
15840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15841     <limits.h> exists even on freestanding compilers.  */
15842
15843 #ifdef __STDC__
15844 # include <limits.h>
15845 #else
15846 # include <assert.h>
15847 #endif
15848
15849 #undef $ac_func
15850
15851 /* Override any gcc2 internal prototype to avoid an error.  */
15852 #ifdef __cplusplus
15853 extern "C"
15854 {
15855 #endif
15856 /* We use char because int might match the return type of a gcc2
15857    builtin and then its argument prototype would still apply.  */
15858 char $ac_func ();
15859 /* The GNU C library defines this for functions which it implements
15860     to always fail with ENOSYS.  Some functions are actually named
15861     something starting with __ and the normal name is an alias.  */
15862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15863 choke me
15864 #else
15865 char (*f) () = $ac_func;
15866 #endif
15867 #ifdef __cplusplus
15868 }
15869 #endif
15870
15871 int
15872 main ()
15873 {
15874 return f != $ac_func;
15875   ;
15876   return 0;
15877 }
15878 _ACEOF
15879 rm -f conftest.$ac_objext conftest$ac_exeext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15881   (eval $ac_link) 2>conftest.er1
15882   ac_status=$?
15883   grep -v '^ *+' conftest.er1 >conftest.err
15884   rm -f conftest.er1
15885   cat conftest.err >&5
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); } &&
15888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890   (eval $ac_try) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); }; } &&
15894          { ac_try='test -s conftest$ac_exeext'
15895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896   (eval $ac_try) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); }; }; then
15900   eval "$as_ac_var=yes"
15901 else
15902   echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15904
15905 eval "$as_ac_var=no"
15906 fi
15907 rm -f conftest.err conftest.$ac_objext \
15908       conftest$ac_exeext conftest.$ac_ext
15909 fi
15910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15912 if test `eval echo '${'$as_ac_var'}'` = yes; then
15913   cat >>confdefs.h <<_ACEOF
15914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15915 _ACEOF
15916
15917 fi
15918 done
15919
15920
15921
15922
15923 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15924 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15925 if test "${ac_cv_c_const+set}" = set; then
15926   echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928   cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h.  */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h.  */
15934
15935 int
15936 main ()
15937 {
15938 /* FIXME: Include the comments suggested by Paul. */
15939 #ifndef __cplusplus
15940   /* Ultrix mips cc rejects this.  */
15941   typedef int charset[2];
15942   const charset x;
15943   /* SunOS 4.1.1 cc rejects this.  */
15944   char const *const *ccp;
15945   char **p;
15946   /* NEC SVR4.0.2 mips cc rejects this.  */
15947   struct point {int x, y;};
15948   static struct point const zero = {0,0};
15949   /* AIX XL C 1.02.0.0 rejects this.
15950      It does not let you subtract one const X* pointer from another in
15951      an arm of an if-expression whose if-part is not a constant
15952      expression */
15953   const char *g = "string";
15954   ccp = &g + (g ? g-g : 0);
15955   /* HPUX 7.0 cc rejects these. */
15956   ++ccp;
15957   p = (char**) ccp;
15958   ccp = (char const *const *) p;
15959   { /* SCO 3.2v4 cc rejects this.  */
15960     char *t;
15961     char const *s = 0 ? (char *) 0 : (char const *) 0;
15962
15963     *t++ = 0;
15964   }
15965   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15966     int x[] = {25, 17};
15967     const int *foo = &x[0];
15968     ++foo;
15969   }
15970   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15971     typedef const int *iptr;
15972     iptr p = 0;
15973     ++p;
15974   }
15975   { /* AIX XL C 1.02.0.0 rejects this saying
15976        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15977     struct s { int j; const int *ap[3]; };
15978     struct s *b; b->j = 5;
15979   }
15980   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15981     const int foo = 10;
15982   }
15983 #endif
15984
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15991   (eval $ac_compile) 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000   (eval $ac_try) 2>&5
16001   ac_status=$?
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); }; } &&
16004          { ac_try='test -s conftest.$ac_objext'
16005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006   (eval $ac_try) 2>&5
16007   ac_status=$?
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); }; }; then
16010   ac_cv_c_const=yes
16011 else
16012   echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015 ac_cv_c_const=no
16016 fi
16017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16018 fi
16019 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16020 echo "${ECHO_T}$ac_cv_c_const" >&6
16021 if test $ac_cv_c_const = no; then
16022
16023 cat >>confdefs.h <<\_ACEOF
16024 #define const
16025 _ACEOF
16026
16027 fi
16028
16029 echo "$as_me:$LINENO: checking for inline" >&5
16030 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16031 if test "${ac_cv_c_inline+set}" = set; then
16032   echo $ECHO_N "(cached) $ECHO_C" >&6
16033 else
16034   ac_cv_c_inline=no
16035 for ac_kw in inline __inline__ __inline; do
16036   cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042 #ifndef __cplusplus
16043 typedef int foo_t;
16044 static $ac_kw foo_t static_foo () {return 0; }
16045 $ac_kw foo_t foo () {return 0; }
16046 #endif
16047
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051   (eval $ac_compile) 2>conftest.er1
16052   ac_status=$?
16053   grep -v '^ *+' conftest.er1 >conftest.err
16054   rm -f conftest.er1
16055   cat conftest.err >&5
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); } &&
16058          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060   (eval $ac_try) 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; } &&
16064          { ac_try='test -s conftest.$ac_objext'
16065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066   (eval $ac_try) 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); }; }; then
16070   ac_cv_c_inline=$ac_kw; break
16071 else
16072   echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 fi
16076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16077 done
16078
16079 fi
16080 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16081 echo "${ECHO_T}$ac_cv_c_inline" >&6
16082
16083
16084 case $ac_cv_c_inline in
16085   inline | yes) ;;
16086   *)
16087     case $ac_cv_c_inline in
16088       no) ac_val=;;
16089       *) ac_val=$ac_cv_c_inline;;
16090     esac
16091     cat >>confdefs.h <<_ACEOF
16092 #ifndef __cplusplus
16093 #define inline $ac_val
16094 #endif
16095 _ACEOF
16096     ;;
16097 esac
16098
16099 echo "$as_me:$LINENO: checking for mode_t" >&5
16100 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
16101 if test "${ac_cv_type_mode_t+set}" = set; then
16102   echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104   cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h.  */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h.  */
16110 $ac_includes_default
16111 int
16112 main ()
16113 {
16114 if ((mode_t *) 0)
16115   return 0;
16116 if (sizeof (mode_t))
16117   return 0;
16118   ;
16119   return 0;
16120 }
16121 _ACEOF
16122 rm -f conftest.$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124   (eval $ac_compile) 2>conftest.er1
16125   ac_status=$?
16126   grep -v '^ *+' conftest.er1 >conftest.err
16127   rm -f conftest.er1
16128   cat conftest.err >&5
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); } &&
16131          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133   (eval $ac_try) 2>&5
16134   ac_status=$?
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); }; } &&
16137          { ac_try='test -s conftest.$ac_objext'
16138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139   (eval $ac_try) 2>&5
16140   ac_status=$?
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); }; }; then
16143   ac_cv_type_mode_t=yes
16144 else
16145   echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16147
16148 ac_cv_type_mode_t=no
16149 fi
16150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16151 fi
16152 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16153 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
16154 if test $ac_cv_type_mode_t = yes; then
16155
16156 cat >>confdefs.h <<_ACEOF
16157 #define HAVE_MODE_T 1
16158 _ACEOF
16159
16160
16161 fi
16162 echo "$as_me:$LINENO: checking for off_t" >&5
16163 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
16164 if test "${ac_cv_type_off_t+set}" = set; then
16165   echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167   cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h.  */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h.  */
16173 $ac_includes_default
16174 int
16175 main ()
16176 {
16177 if ((off_t *) 0)
16178   return 0;
16179 if (sizeof (off_t))
16180   return 0;
16181   ;
16182   return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest.$ac_objext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16187   (eval $ac_compile) 2>conftest.er1
16188   ac_status=$?
16189   grep -v '^ *+' conftest.er1 >conftest.err
16190   rm -f conftest.er1
16191   cat conftest.err >&5
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); } &&
16194          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196   (eval $ac_try) 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; } &&
16200          { ac_try='test -s conftest.$ac_objext'
16201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202   (eval $ac_try) 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; }; then
16206   ac_cv_type_off_t=yes
16207 else
16208   echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211 ac_cv_type_off_t=no
16212 fi
16213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16214 fi
16215 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16216 echo "${ECHO_T}$ac_cv_type_off_t" >&6
16217 if test $ac_cv_type_off_t = yes; then
16218
16219 cat >>confdefs.h <<_ACEOF
16220 #define HAVE_OFF_T 1
16221 _ACEOF
16222
16223
16224 fi
16225 echo "$as_me:$LINENO: checking for pid_t" >&5
16226 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16227 if test "${ac_cv_type_pid_t+set}" = set; then
16228   echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230   cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h.  */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h.  */
16236 $ac_includes_default
16237 int
16238 main ()
16239 {
16240 if ((pid_t *) 0)
16241   return 0;
16242 if (sizeof (pid_t))
16243   return 0;
16244   ;
16245   return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16250   (eval $ac_compile) 2>conftest.er1
16251   ac_status=$?
16252   grep -v '^ *+' conftest.er1 >conftest.err
16253   rm -f conftest.er1
16254   cat conftest.err >&5
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); } &&
16257          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259   (eval $ac_try) 2>&5
16260   ac_status=$?
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); }; } &&
16263          { ac_try='test -s conftest.$ac_objext'
16264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265   (eval $ac_try) 2>&5
16266   ac_status=$?
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); }; }; then
16269   ac_cv_type_pid_t=yes
16270 else
16271   echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16273
16274 ac_cv_type_pid_t=no
16275 fi
16276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16277 fi
16278 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16279 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16280 if test $ac_cv_type_pid_t = yes; then
16281
16282 cat >>confdefs.h <<_ACEOF
16283 #define HAVE_PID_T 1
16284 _ACEOF
16285
16286
16287 fi
16288 echo "$as_me:$LINENO: checking for size_t" >&5
16289 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16290 if test "${ac_cv_type_size_t+set}" = set; then
16291   echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293   cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h.  */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h.  */
16299 $ac_includes_default
16300 int
16301 main ()
16302 {
16303 if ((size_t *) 0)
16304   return 0;
16305 if (sizeof (size_t))
16306   return 0;
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext
16312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16313   (eval $ac_compile) 2>conftest.er1
16314   ac_status=$?
16315   grep -v '^ *+' conftest.er1 >conftest.err
16316   rm -f conftest.er1
16317   cat conftest.err >&5
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); } &&
16320          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322   (eval $ac_try) 2>&5
16323   ac_status=$?
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; } &&
16326          { ac_try='test -s conftest.$ac_objext'
16327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328   (eval $ac_try) 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; }; then
16332   ac_cv_type_size_t=yes
16333 else
16334   echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16336
16337 ac_cv_type_size_t=no
16338 fi
16339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16340 fi
16341 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16342 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16343 if test $ac_cv_type_size_t = yes; then
16344
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_SIZE_T 1
16347 _ACEOF
16348
16349
16350 fi
16351 echo "$as_me:$LINENO: checking for ssize_t" >&5
16352 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
16353 if test "${ac_cv_type_ssize_t+set}" = set; then
16354   echo $ECHO_N "(cached) $ECHO_C" >&6
16355 else
16356   cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 $ac_includes_default
16363 int
16364 main ()
16365 {
16366 if ((ssize_t *) 0)
16367   return 0;
16368 if (sizeof (ssize_t))
16369   return 0;
16370   ;
16371   return 0;
16372 }
16373 _ACEOF
16374 rm -f conftest.$ac_objext
16375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16376   (eval $ac_compile) 2>conftest.er1
16377   ac_status=$?
16378   grep -v '^ *+' conftest.er1 >conftest.err
16379   rm -f conftest.er1
16380   cat conftest.err >&5
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); } &&
16383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385   (eval $ac_try) 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); }; } &&
16389          { ac_try='test -s conftest.$ac_objext'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; }; then
16395   ac_cv_type_ssize_t=yes
16396 else
16397   echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16399
16400 ac_cv_type_ssize_t=no
16401 fi
16402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16403 fi
16404 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16405 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16406 if test $ac_cv_type_ssize_t = yes; then
16407
16408 cat >>confdefs.h <<_ACEOF
16409 #define HAVE_SSIZE_T 1
16410 _ACEOF
16411
16412
16413 fi
16414 echo "$as_me:$LINENO: checking for long long" >&5
16415 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16416 if test "${ac_cv_type_long_long+set}" = set; then
16417   echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419   cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h.  */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h.  */
16425 $ac_includes_default
16426 int
16427 main ()
16428 {
16429 if ((long long *) 0)
16430   return 0;
16431 if (sizeof (long long))
16432   return 0;
16433   ;
16434   return 0;
16435 }
16436 _ACEOF
16437 rm -f conftest.$ac_objext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16439   (eval $ac_compile) 2>conftest.er1
16440   ac_status=$?
16441   grep -v '^ *+' conftest.er1 >conftest.err
16442   rm -f conftest.er1
16443   cat conftest.err >&5
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); } &&
16446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448   (eval $ac_try) 2>&5
16449   ac_status=$?
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); }; } &&
16452          { ac_try='test -s conftest.$ac_objext'
16453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454   (eval $ac_try) 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; }; then
16458   ac_cv_type_long_long=yes
16459 else
16460   echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16462
16463 ac_cv_type_long_long=no
16464 fi
16465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16466 fi
16467 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16468 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16469 if test $ac_cv_type_long_long = yes; then
16470
16471 cat >>confdefs.h <<_ACEOF
16472 #define HAVE_LONG_LONG 1
16473 _ACEOF
16474
16475
16476 fi
16477 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
16478 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
16479 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
16480   echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482   cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h.  */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h.  */
16488 $ac_includes_default
16489 int
16490 main ()
16491 {
16492 if ((fsblkcnt_t *) 0)
16493   return 0;
16494 if (sizeof (fsblkcnt_t))
16495   return 0;
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext
16501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16502   (eval $ac_compile) 2>conftest.er1
16503   ac_status=$?
16504   grep -v '^ *+' conftest.er1 >conftest.err
16505   rm -f conftest.er1
16506   cat conftest.err >&5
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); } &&
16509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511   (eval $ac_try) 2>&5
16512   ac_status=$?
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); }; } &&
16515          { ac_try='test -s conftest.$ac_objext'
16516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517   (eval $ac_try) 2>&5
16518   ac_status=$?
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); }; }; then
16521   ac_cv_type_fsblkcnt_t=yes
16522 else
16523   echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16525
16526 ac_cv_type_fsblkcnt_t=no
16527 fi
16528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
16531 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
16532 if test $ac_cv_type_fsblkcnt_t = yes; then
16533
16534 cat >>confdefs.h <<_ACEOF
16535 #define HAVE_FSBLKCNT_T 1
16536 _ACEOF
16537
16538
16539 fi
16540 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
16541 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
16542 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
16543   echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545   cat >conftest.$ac_ext <<_ACEOF
16546 /* confdefs.h.  */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h.  */
16551 $ac_includes_default
16552 int
16553 main ()
16554 {
16555 if ((fsfilcnt_t *) 0)
16556   return 0;
16557 if (sizeof (fsfilcnt_t))
16558   return 0;
16559   ;
16560   return 0;
16561 }
16562 _ACEOF
16563 rm -f conftest.$ac_objext
16564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16565   (eval $ac_compile) 2>conftest.er1
16566   ac_status=$?
16567   grep -v '^ *+' conftest.er1 >conftest.err
16568   rm -f conftest.er1
16569   cat conftest.err >&5
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); } &&
16572          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574   (eval $ac_try) 2>&5
16575   ac_status=$?
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); }; } &&
16578          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16584   ac_cv_type_fsfilcnt_t=yes
16585 else
16586   echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16588
16589 ac_cv_type_fsfilcnt_t=no
16590 fi
16591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16592 fi
16593 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
16594 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
16595 if test $ac_cv_type_fsfilcnt_t = yes; then
16596
16597 cat >>confdefs.h <<_ACEOF
16598 #define HAVE_FSFILCNT_T 1
16599 _ACEOF
16600
16601
16602 fi
16603
16604 echo "$as_me:$LINENO: checking for sigset_t" >&5
16605 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
16606 if test "${ac_cv_type_sigset_t+set}" = set; then
16607   echo $ECHO_N "(cached) $ECHO_C" >&6
16608 else
16609   cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h.  */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h.  */
16615 #include <signal.h>
16616
16617 int
16618 main ()
16619 {
16620 if ((sigset_t *) 0)
16621   return 0;
16622 if (sizeof (sigset_t))
16623   return 0;
16624   ;
16625   return 0;
16626 }
16627 _ACEOF
16628 rm -f conftest.$ac_objext
16629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16630   (eval $ac_compile) 2>conftest.er1
16631   ac_status=$?
16632   grep -v '^ *+' conftest.er1 >conftest.err
16633   rm -f conftest.er1
16634   cat conftest.err >&5
16635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636   (exit $ac_status); } &&
16637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639   (eval $ac_try) 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); }; } &&
16643          { ac_try='test -s conftest.$ac_objext'
16644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645   (eval $ac_try) 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }; }; then
16649   ac_cv_type_sigset_t=yes
16650 else
16651   echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 ac_cv_type_sigset_t=no
16655 fi
16656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16657 fi
16658 echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
16659 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
16660 if test $ac_cv_type_sigset_t = yes; then
16661
16662 cat >>confdefs.h <<_ACEOF
16663 #define HAVE_SIGSET_T 1
16664 _ACEOF
16665
16666
16667 fi
16668
16669 echo "$as_me:$LINENO: checking for request_sense" >&5
16670 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6
16671 if test "${ac_cv_type_request_sense+set}" = set; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674   cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h.  */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h.  */
16680 #include <linux/cdrom.h>
16681
16682 int
16683 main ()
16684 {
16685 if ((request_sense *) 0)
16686   return 0;
16687 if (sizeof (request_sense))
16688   return 0;
16689   ;
16690   return 0;
16691 }
16692 _ACEOF
16693 rm -f conftest.$ac_objext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16695   (eval $ac_compile) 2>conftest.er1
16696   ac_status=$?
16697   grep -v '^ *+' conftest.er1 >conftest.err
16698   rm -f conftest.er1
16699   cat conftest.err >&5
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); } &&
16702          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704   (eval $ac_try) 2>&5
16705   ac_status=$?
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); }; } &&
16708          { ac_try='test -s conftest.$ac_objext'
16709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710   (eval $ac_try) 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); }; }; then
16714   ac_cv_type_request_sense=yes
16715 else
16716   echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16718
16719 ac_cv_type_request_sense=no
16720 fi
16721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16722 fi
16723 echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
16724 echo "${ECHO_T}$ac_cv_type_request_sense" >&6
16725 if test $ac_cv_type_request_sense = yes; then
16726
16727 cat >>confdefs.h <<_ACEOF
16728 #define HAVE_REQUEST_SENSE 1
16729 _ACEOF
16730
16731
16732 fi
16733
16734
16735 echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
16736 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6
16737 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
16738   echo $ECHO_N "(cached) $ECHO_C" >&6
16739 else
16740   cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h.  */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h.  */
16746 #ifdef HAVE_LINUX_INPUT_H
16747 #include <linux/input.h>
16748 #endif
16749
16750 int
16751 main ()
16752 {
16753 static struct ff_effect ac_aggr;
16754 if (ac_aggr.direction)
16755 return 0;
16756   ;
16757   return 0;
16758 }
16759 _ACEOF
16760 rm -f conftest.$ac_objext
16761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16762   (eval $ac_compile) 2>conftest.er1
16763   ac_status=$?
16764   grep -v '^ *+' conftest.er1 >conftest.err
16765   rm -f conftest.er1
16766   cat conftest.err >&5
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } &&
16769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771   (eval $ac_try) 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; } &&
16775          { ac_try='test -s conftest.$ac_objext'
16776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777   (eval $ac_try) 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); }; }; then
16781   ac_cv_member_struct_ff_effect_direction=yes
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786 cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h.  */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h.  */
16792 #ifdef HAVE_LINUX_INPUT_H
16793 #include <linux/input.h>
16794 #endif
16795
16796 int
16797 main ()
16798 {
16799 static struct ff_effect ac_aggr;
16800 if (sizeof ac_aggr.direction)
16801 return 0;
16802   ;
16803   return 0;
16804 }
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808   (eval $ac_compile) 2>conftest.er1
16809   ac_status=$?
16810   grep -v '^ *+' conftest.er1 >conftest.err
16811   rm -f conftest.er1
16812   cat conftest.err >&5
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); } &&
16815          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817   (eval $ac_try) 2>&5
16818   ac_status=$?
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); }; } &&
16821          { ac_try='test -s conftest.$ac_objext'
16822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823   (eval $ac_try) 2>&5
16824   ac_status=$?
16825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826   (exit $ac_status); }; }; then
16827   ac_cv_member_struct_ff_effect_direction=yes
16828 else
16829   echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16831
16832 ac_cv_member_struct_ff_effect_direction=no
16833 fi
16834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16835 fi
16836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16837 fi
16838 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
16839 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6
16840 if test $ac_cv_member_struct_ff_effect_direction = yes; then
16841
16842 cat >>confdefs.h <<_ACEOF
16843 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
16844 _ACEOF
16845
16846
16847 fi
16848
16849
16850 echo "$as_me:$LINENO: checking for sigaddset" >&5
16851 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6
16852 if test "${wine_cv_have_sigaddset+set}" = set; then
16853   echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16855   cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h.  */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h.  */
16861 #include <signal.h>
16862 int
16863 main ()
16864 {
16865 sigset_t set; sigaddset(&set,SIGTERM);
16866   ;
16867   return 0;
16868 }
16869 _ACEOF
16870 rm -f conftest.$ac_objext conftest$ac_exeext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872   (eval $ac_link) 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } &&
16879          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881   (eval $ac_try) 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; } &&
16885          { ac_try='test -s conftest$ac_exeext'
16886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887   (eval $ac_try) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; }; then
16891   wine_cv_have_sigaddset=yes
16892 else
16893   echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16895
16896 wine_cv_have_sigaddset=no
16897 fi
16898 rm -f conftest.err conftest.$ac_objext \
16899       conftest$ac_exeext conftest.$ac_ext
16900 fi
16901 echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
16902 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6
16903 if test "$wine_cv_have_sigaddset" = "yes"
16904 then
16905
16906 cat >>confdefs.h <<\_ACEOF
16907 #define HAVE_SIGADDSET 1
16908 _ACEOF
16909
16910 fi
16911
16912
16913 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
16914 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
16915 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918   cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h.  */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h.  */
16924
16925 #include <netdb.h>
16926
16927 int
16928 main ()
16929 {
16930
16931     char *name=NULL;
16932     struct hostent he;
16933     struct hostent *result;
16934     char *buf=NULL;
16935     int bufsize=0;
16936     int res,errnr;
16937     char *addr=NULL;
16938     int addrlen=0;
16939     int addrtype=0;
16940     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
16941     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
16942
16943   ;
16944   return 0;
16945 }
16946 _ACEOF
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16949   (eval $ac_link) 2>conftest.er1
16950   ac_status=$?
16951   grep -v '^ *+' conftest.er1 >conftest.err
16952   rm -f conftest.er1
16953   cat conftest.err >&5
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); } &&
16956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958   (eval $ac_try) 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); }; } &&
16962          { ac_try='test -s conftest$ac_exeext'
16963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964   (eval $ac_try) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; }; then
16968   wine_cv_linux_gethostbyname_r_6=yes
16969 else
16970   echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 wine_cv_linux_gethostbyname_r_6=no
16974
16975 fi
16976 rm -f conftest.err conftest.$ac_objext \
16977       conftest$ac_exeext conftest.$ac_ext
16978
16979 fi
16980 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
16981 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
16982    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
16983    then
16984
16985 cat >>confdefs.h <<\_ACEOF
16986 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
16987 _ACEOF
16988
16989    fi
16990
16991 if test "$ac_cv_header_linux_joystick_h" = "yes"
16992 then
16993    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
16994 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
16995 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
16996   echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998   cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h.  */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h.  */
17004
17005         #include <sys/ioctl.h>
17006         #include <linux/joystick.h>
17007
17008         struct js_event blub;
17009         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17010         #error "no 2.2 header"
17011         #endif
17012
17013 int
17014 main ()
17015 {
17016 /*empty*/
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023   (eval $ac_compile) 2>conftest.er1
17024   ac_status=$?
17025   grep -v '^ *+' conftest.er1 >conftest.err
17026   rm -f conftest.er1
17027   cat conftest.err >&5
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); } &&
17030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032   (eval $ac_try) 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); }; } &&
17036          { ac_try='test -s conftest.$ac_objext'
17037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038   (eval $ac_try) 2>&5
17039   ac_status=$?
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); }; }; then
17042   wine_cv_linux_joystick_22_api=yes
17043 else
17044   echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047 wine_cv_linux_joystick_22_api=no
17048 fi
17049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17050
17051 fi
17052 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17053 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17054    if test "$wine_cv_linux_joystick_22_api" = "yes"
17055    then
17056
17057 cat >>confdefs.h <<\_ACEOF
17058 #define HAVE_LINUX_22_JOYSTICK_API 1
17059 _ACEOF
17060
17061    fi
17062 fi
17063
17064
17065 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17066 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
17067 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070   cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h.  */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h.  */
17076 #include <sys/types.h>
17077 #ifdef HAVE_SYS_PARAM_H
17078 # include <sys/param.h>
17079 #endif
17080 #ifdef HAVE_SYS_MOUNT_H
17081 # include <sys/mount.h>
17082 #endif
17083 #ifdef HAVE_SYS_VFS_H
17084 # include <sys/vfs.h>
17085 #endif
17086 #ifdef HAVE_SYS_STATFS_H
17087 # include <sys/statfs.h>
17088 #endif
17089
17090 int
17091 main ()
17092 {
17093 static struct statfs ac_aggr;
17094 if (ac_aggr.f_bfree)
17095 return 0;
17096   ;
17097   return 0;
17098 }
17099 _ACEOF
17100 rm -f conftest.$ac_objext
17101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17102   (eval $ac_compile) 2>conftest.er1
17103   ac_status=$?
17104   grep -v '^ *+' conftest.er1 >conftest.err
17105   rm -f conftest.er1
17106   cat conftest.err >&5
17107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108   (exit $ac_status); } &&
17109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111   (eval $ac_try) 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); }; } &&
17115          { ac_try='test -s conftest.$ac_objext'
17116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117   (eval $ac_try) 2>&5
17118   ac_status=$?
17119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120   (exit $ac_status); }; }; then
17121   ac_cv_member_struct_statfs_f_bfree=yes
17122 else
17123   echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17125
17126 cat >conftest.$ac_ext <<_ACEOF
17127 /* confdefs.h.  */
17128 _ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h.  */
17132 #include <sys/types.h>
17133 #ifdef HAVE_SYS_PARAM_H
17134 # include <sys/param.h>
17135 #endif
17136 #ifdef HAVE_SYS_MOUNT_H
17137 # include <sys/mount.h>
17138 #endif
17139 #ifdef HAVE_SYS_VFS_H
17140 # include <sys/vfs.h>
17141 #endif
17142 #ifdef HAVE_SYS_STATFS_H
17143 # include <sys/statfs.h>
17144 #endif
17145
17146 int
17147 main ()
17148 {
17149 static struct statfs ac_aggr;
17150 if (sizeof ac_aggr.f_bfree)
17151 return 0;
17152   ;
17153   return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17158   (eval $ac_compile) 2>conftest.er1
17159   ac_status=$?
17160   grep -v '^ *+' conftest.er1 >conftest.err
17161   rm -f conftest.er1
17162   cat conftest.err >&5
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); } &&
17165          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167   (eval $ac_try) 2>&5
17168   ac_status=$?
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); }; } &&
17171          { ac_try='test -s conftest.$ac_objext'
17172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173   (eval $ac_try) 2>&5
17174   ac_status=$?
17175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176   (exit $ac_status); }; }; then
17177   ac_cv_member_struct_statfs_f_bfree=yes
17178 else
17179   echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 ac_cv_member_struct_statfs_f_bfree=no
17183 fi
17184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17185 fi
17186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17187 fi
17188 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17189 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
17190 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17191
17192 cat >>confdefs.h <<_ACEOF
17193 #define HAVE_STRUCT_STATFS_F_BFREE 1
17194 _ACEOF
17195
17196
17197 fi
17198 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17199 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
17200 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17201   echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17203   cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209 #include <sys/types.h>
17210 #ifdef HAVE_SYS_PARAM_H
17211 # include <sys/param.h>
17212 #endif
17213 #ifdef HAVE_SYS_MOUNT_H
17214 # include <sys/mount.h>
17215 #endif
17216 #ifdef HAVE_SYS_VFS_H
17217 # include <sys/vfs.h>
17218 #endif
17219 #ifdef HAVE_SYS_STATFS_H
17220 # include <sys/statfs.h>
17221 #endif
17222
17223 int
17224 main ()
17225 {
17226 static struct statfs ac_aggr;
17227 if (ac_aggr.f_bavail)
17228 return 0;
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235   (eval $ac_compile) 2>conftest.er1
17236   ac_status=$?
17237   grep -v '^ *+' conftest.er1 >conftest.err
17238   rm -f conftest.er1
17239   cat conftest.err >&5
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); } &&
17242          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244   (eval $ac_try) 2>&5
17245   ac_status=$?
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); }; } &&
17248          { ac_try='test -s conftest.$ac_objext'
17249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250   (eval $ac_try) 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); }; }; then
17254   ac_cv_member_struct_statfs_f_bavail=yes
17255 else
17256   echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17258
17259 cat >conftest.$ac_ext <<_ACEOF
17260 /* confdefs.h.  */
17261 _ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h.  */
17265 #include <sys/types.h>
17266 #ifdef HAVE_SYS_PARAM_H
17267 # include <sys/param.h>
17268 #endif
17269 #ifdef HAVE_SYS_MOUNT_H
17270 # include <sys/mount.h>
17271 #endif
17272 #ifdef HAVE_SYS_VFS_H
17273 # include <sys/vfs.h>
17274 #endif
17275 #ifdef HAVE_SYS_STATFS_H
17276 # include <sys/statfs.h>
17277 #endif
17278
17279 int
17280 main ()
17281 {
17282 static struct statfs ac_aggr;
17283 if (sizeof ac_aggr.f_bavail)
17284 return 0;
17285   ;
17286   return 0;
17287 }
17288 _ACEOF
17289 rm -f conftest.$ac_objext
17290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17291   (eval $ac_compile) 2>conftest.er1
17292   ac_status=$?
17293   grep -v '^ *+' conftest.er1 >conftest.err
17294   rm -f conftest.er1
17295   cat conftest.err >&5
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); } &&
17298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300   (eval $ac_try) 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; } &&
17304          { ac_try='test -s conftest.$ac_objext'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; }; then
17310   ac_cv_member_struct_statfs_f_bavail=yes
17311 else
17312   echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 ac_cv_member_struct_statfs_f_bavail=no
17316 fi
17317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17318 fi
17319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17320 fi
17321 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17322 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
17323 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17324
17325 cat >>confdefs.h <<_ACEOF
17326 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17327 _ACEOF
17328
17329
17330 fi
17331 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17332 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
17333 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17334   echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336   cat >conftest.$ac_ext <<_ACEOF
17337 /* confdefs.h.  */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h.  */
17342 #include <sys/types.h>
17343 #ifdef HAVE_SYS_PARAM_H
17344 # include <sys/param.h>
17345 #endif
17346 #ifdef HAVE_SYS_MOUNT_H
17347 # include <sys/mount.h>
17348 #endif
17349 #ifdef HAVE_SYS_VFS_H
17350 # include <sys/vfs.h>
17351 #endif
17352 #ifdef HAVE_SYS_STATFS_H
17353 # include <sys/statfs.h>
17354 #endif
17355
17356 int
17357 main ()
17358 {
17359 static struct statfs ac_aggr;
17360 if (ac_aggr.f_frsize)
17361 return 0;
17362   ;
17363   return 0;
17364 }
17365 _ACEOF
17366 rm -f conftest.$ac_objext
17367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17368   (eval $ac_compile) 2>conftest.er1
17369   ac_status=$?
17370   grep -v '^ *+' conftest.er1 >conftest.err
17371   rm -f conftest.er1
17372   cat conftest.err >&5
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); } &&
17375          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377   (eval $ac_try) 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; } &&
17381          { ac_try='test -s conftest.$ac_objext'
17382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383   (eval $ac_try) 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; }; then
17387   ac_cv_member_struct_statfs_f_frsize=yes
17388 else
17389   echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392 cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h.  */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h.  */
17398 #include <sys/types.h>
17399 #ifdef HAVE_SYS_PARAM_H
17400 # include <sys/param.h>
17401 #endif
17402 #ifdef HAVE_SYS_MOUNT_H
17403 # include <sys/mount.h>
17404 #endif
17405 #ifdef HAVE_SYS_VFS_H
17406 # include <sys/vfs.h>
17407 #endif
17408 #ifdef HAVE_SYS_STATFS_H
17409 # include <sys/statfs.h>
17410 #endif
17411
17412 int
17413 main ()
17414 {
17415 static struct statfs ac_aggr;
17416 if (sizeof ac_aggr.f_frsize)
17417 return 0;
17418   ;
17419   return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext
17423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17424   (eval $ac_compile) 2>conftest.er1
17425   ac_status=$?
17426   grep -v '^ *+' conftest.er1 >conftest.err
17427   rm -f conftest.er1
17428   cat conftest.err >&5
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } &&
17431          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433   (eval $ac_try) 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; } &&
17437          { ac_try='test -s conftest.$ac_objext'
17438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439   (eval $ac_try) 2>&5
17440   ac_status=$?
17441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442   (exit $ac_status); }; }; then
17443   ac_cv_member_struct_statfs_f_frsize=yes
17444 else
17445   echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448 ac_cv_member_struct_statfs_f_frsize=no
17449 fi
17450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17451 fi
17452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17453 fi
17454 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17455 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
17456 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17457
17458 cat >>confdefs.h <<_ACEOF
17459 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
17460 _ACEOF
17461
17462
17463 fi
17464 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17465 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
17466 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
17467   echo $ECHO_N "(cached) $ECHO_C" >&6
17468 else
17469   cat >conftest.$ac_ext <<_ACEOF
17470 /* confdefs.h.  */
17471 _ACEOF
17472 cat confdefs.h >>conftest.$ac_ext
17473 cat >>conftest.$ac_ext <<_ACEOF
17474 /* end confdefs.h.  */
17475 #include <sys/types.h>
17476 #ifdef HAVE_SYS_PARAM_H
17477 # include <sys/param.h>
17478 #endif
17479 #ifdef HAVE_SYS_MOUNT_H
17480 # include <sys/mount.h>
17481 #endif
17482 #ifdef HAVE_SYS_VFS_H
17483 # include <sys/vfs.h>
17484 #endif
17485 #ifdef HAVE_SYS_STATFS_H
17486 # include <sys/statfs.h>
17487 #endif
17488
17489 int
17490 main ()
17491 {
17492 static struct statfs ac_aggr;
17493 if (ac_aggr.f_ffree)
17494 return 0;
17495   ;
17496   return 0;
17497 }
17498 _ACEOF
17499 rm -f conftest.$ac_objext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17501   (eval $ac_compile) 2>conftest.er1
17502   ac_status=$?
17503   grep -v '^ *+' conftest.er1 >conftest.err
17504   rm -f conftest.er1
17505   cat conftest.err >&5
17506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); } &&
17508          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510   (eval $ac_try) 2>&5
17511   ac_status=$?
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); }; } &&
17514          { ac_try='test -s conftest.$ac_objext'
17515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516   (eval $ac_try) 2>&5
17517   ac_status=$?
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); }; }; then
17520   ac_cv_member_struct_statfs_f_ffree=yes
17521 else
17522   echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h.  */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h.  */
17531 #include <sys/types.h>
17532 #ifdef HAVE_SYS_PARAM_H
17533 # include <sys/param.h>
17534 #endif
17535 #ifdef HAVE_SYS_MOUNT_H
17536 # include <sys/mount.h>
17537 #endif
17538 #ifdef HAVE_SYS_VFS_H
17539 # include <sys/vfs.h>
17540 #endif
17541 #ifdef HAVE_SYS_STATFS_H
17542 # include <sys/statfs.h>
17543 #endif
17544
17545 int
17546 main ()
17547 {
17548 static struct statfs ac_aggr;
17549 if (sizeof ac_aggr.f_ffree)
17550 return 0;
17551   ;
17552   return 0;
17553 }
17554 _ACEOF
17555 rm -f conftest.$ac_objext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17557   (eval $ac_compile) 2>conftest.er1
17558   ac_status=$?
17559   grep -v '^ *+' conftest.er1 >conftest.err
17560   rm -f conftest.er1
17561   cat conftest.err >&5
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); } &&
17564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest.$ac_objext'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; }; then
17576   ac_cv_member_struct_statfs_f_ffree=yes
17577 else
17578   echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 ac_cv_member_struct_statfs_f_ffree=no
17582 fi
17583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17584 fi
17585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17586 fi
17587 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
17588 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
17589 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
17590
17591 cat >>confdefs.h <<_ACEOF
17592 #define HAVE_STRUCT_STATFS_F_FFREE 1
17593 _ACEOF
17594
17595
17596 fi
17597 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
17598 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
17599 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
17600   echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602   cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h.  */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h.  */
17608 #include <sys/types.h>
17609 #ifdef HAVE_SYS_PARAM_H
17610 # include <sys/param.h>
17611 #endif
17612 #ifdef HAVE_SYS_MOUNT_H
17613 # include <sys/mount.h>
17614 #endif
17615 #ifdef HAVE_SYS_VFS_H
17616 # include <sys/vfs.h>
17617 #endif
17618 #ifdef HAVE_SYS_STATFS_H
17619 # include <sys/statfs.h>
17620 #endif
17621
17622 int
17623 main ()
17624 {
17625 static struct statfs ac_aggr;
17626 if (ac_aggr.f_favail)
17627 return 0;
17628   ;
17629   return 0;
17630 }
17631 _ACEOF
17632 rm -f conftest.$ac_objext
17633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17634   (eval $ac_compile) 2>conftest.er1
17635   ac_status=$?
17636   grep -v '^ *+' conftest.er1 >conftest.err
17637   rm -f conftest.er1
17638   cat conftest.err >&5
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } &&
17641          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643   (eval $ac_try) 2>&5
17644   ac_status=$?
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); }; } &&
17647          { ac_try='test -s conftest.$ac_objext'
17648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649   (eval $ac_try) 2>&5
17650   ac_status=$?
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); }; }; then
17653   ac_cv_member_struct_statfs_f_favail=yes
17654 else
17655   echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17657
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h.  */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h.  */
17664 #include <sys/types.h>
17665 #ifdef HAVE_SYS_PARAM_H
17666 # include <sys/param.h>
17667 #endif
17668 #ifdef HAVE_SYS_MOUNT_H
17669 # include <sys/mount.h>
17670 #endif
17671 #ifdef HAVE_SYS_VFS_H
17672 # include <sys/vfs.h>
17673 #endif
17674 #ifdef HAVE_SYS_STATFS_H
17675 # include <sys/statfs.h>
17676 #endif
17677
17678 int
17679 main ()
17680 {
17681 static struct statfs ac_aggr;
17682 if (sizeof ac_aggr.f_favail)
17683 return 0;
17684   ;
17685   return 0;
17686 }
17687 _ACEOF
17688 rm -f conftest.$ac_objext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17690   (eval $ac_compile) 2>conftest.er1
17691   ac_status=$?
17692   grep -v '^ *+' conftest.er1 >conftest.err
17693   rm -f conftest.er1
17694   cat conftest.err >&5
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); } &&
17697          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699   (eval $ac_try) 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; } &&
17703          { ac_try='test -s conftest.$ac_objext'
17704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705   (eval $ac_try) 2>&5
17706   ac_status=$?
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); }; }; then
17709   ac_cv_member_struct_statfs_f_favail=yes
17710 else
17711   echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17713
17714 ac_cv_member_struct_statfs_f_favail=no
17715 fi
17716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17717 fi
17718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17719 fi
17720 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
17721 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
17722 if test $ac_cv_member_struct_statfs_f_favail = yes; then
17723
17724 cat >>confdefs.h <<_ACEOF
17725 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
17726 _ACEOF
17727
17728
17729 fi
17730 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
17731 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
17732 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735   cat >conftest.$ac_ext <<_ACEOF
17736 /* confdefs.h.  */
17737 _ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h.  */
17741 #include <sys/types.h>
17742 #ifdef HAVE_SYS_PARAM_H
17743 # include <sys/param.h>
17744 #endif
17745 #ifdef HAVE_SYS_MOUNT_H
17746 # include <sys/mount.h>
17747 #endif
17748 #ifdef HAVE_SYS_VFS_H
17749 # include <sys/vfs.h>
17750 #endif
17751 #ifdef HAVE_SYS_STATFS_H
17752 # include <sys/statfs.h>
17753 #endif
17754
17755 int
17756 main ()
17757 {
17758 static struct statfs ac_aggr;
17759 if (ac_aggr.f_namelen)
17760 return 0;
17761   ;
17762   return 0;
17763 }
17764 _ACEOF
17765 rm -f conftest.$ac_objext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17767   (eval $ac_compile) 2>conftest.er1
17768   ac_status=$?
17769   grep -v '^ *+' conftest.er1 >conftest.err
17770   rm -f conftest.er1
17771   cat conftest.err >&5
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); } &&
17774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776   (eval $ac_try) 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; } &&
17780          { ac_try='test -s conftest.$ac_objext'
17781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782   (eval $ac_try) 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; }; then
17786   ac_cv_member_struct_statfs_f_namelen=yes
17787 else
17788   echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 cat >conftest.$ac_ext <<_ACEOF
17792 /* confdefs.h.  */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h.  */
17797 #include <sys/types.h>
17798 #ifdef HAVE_SYS_PARAM_H
17799 # include <sys/param.h>
17800 #endif
17801 #ifdef HAVE_SYS_MOUNT_H
17802 # include <sys/mount.h>
17803 #endif
17804 #ifdef HAVE_SYS_VFS_H
17805 # include <sys/vfs.h>
17806 #endif
17807 #ifdef HAVE_SYS_STATFS_H
17808 # include <sys/statfs.h>
17809 #endif
17810
17811 int
17812 main ()
17813 {
17814 static struct statfs ac_aggr;
17815 if (sizeof ac_aggr.f_namelen)
17816 return 0;
17817   ;
17818   return 0;
17819 }
17820 _ACEOF
17821 rm -f conftest.$ac_objext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17823   (eval $ac_compile) 2>conftest.er1
17824   ac_status=$?
17825   grep -v '^ *+' conftest.er1 >conftest.err
17826   rm -f conftest.er1
17827   cat conftest.err >&5
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); } &&
17830          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; } &&
17836          { ac_try='test -s conftest.$ac_objext'
17837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838   (eval $ac_try) 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; }; then
17842   ac_cv_member_struct_statfs_f_namelen=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847 ac_cv_member_struct_statfs_f_namelen=no
17848 fi
17849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17850 fi
17851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17852 fi
17853 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
17854 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
17855 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
17856
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
17859 _ACEOF
17860
17861
17862 fi
17863
17864
17865 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
17866 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
17867 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
17868   echo $ECHO_N "(cached) $ECHO_C" >&6
17869 else
17870   cat >conftest.$ac_ext <<_ACEOF
17871 /* confdefs.h.  */
17872 _ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h.  */
17876 #ifdef HAVE_SYS_STATVFS_H
17877 #include <sys/statvfs.h>
17878 #endif
17879
17880 int
17881 main ()
17882 {
17883 static struct statvfs ac_aggr;
17884 if (ac_aggr.f_blocks)
17885 return 0;
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 rm -f conftest.$ac_objext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17892   (eval $ac_compile) 2>conftest.er1
17893   ac_status=$?
17894   grep -v '^ *+' conftest.er1 >conftest.err
17895   rm -f conftest.er1
17896   cat conftest.err >&5
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); } &&
17899          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901   (eval $ac_try) 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); }; } &&
17905          { ac_try='test -s conftest.$ac_objext'
17906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907   (eval $ac_try) 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); }; }; then
17911   ac_cv_member_struct_statvfs_f_blocks=yes
17912 else
17913   echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17915
17916 cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h.  */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h.  */
17922 #ifdef HAVE_SYS_STATVFS_H
17923 #include <sys/statvfs.h>
17924 #endif
17925
17926 int
17927 main ()
17928 {
17929 static struct statvfs ac_aggr;
17930 if (sizeof ac_aggr.f_blocks)
17931 return 0;
17932   ;
17933   return 0;
17934 }
17935 _ACEOF
17936 rm -f conftest.$ac_objext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17938   (eval $ac_compile) 2>conftest.er1
17939   ac_status=$?
17940   grep -v '^ *+' conftest.er1 >conftest.err
17941   rm -f conftest.er1
17942   cat conftest.err >&5
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); } &&
17945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947   (eval $ac_try) 2>&5
17948   ac_status=$?
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); }; } &&
17951          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17957   ac_cv_member_struct_statvfs_f_blocks=yes
17958 else
17959   echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962 ac_cv_member_struct_statvfs_f_blocks=no
17963 fi
17964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17965 fi
17966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17967 fi
17968 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
17969 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
17970 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
17971
17972 cat >>confdefs.h <<_ACEOF
17973 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
17974 _ACEOF
17975
17976
17977 fi
17978
17979
17980 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
17981 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
17982 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
17983   echo $ECHO_N "(cached) $ECHO_C" >&6
17984 else
17985   cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h.  */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h.  */
17991 #include <sys/types.h>
17992 #ifdef HAVE_SYS_SOCKET_H
17993 # include <sys/socket.h>
17994 #endif
17995 #ifdef HAVE_SYS_UN_H
17996 # include <sys/un.h>
17997 #endif
17998
17999 int
18000 main ()
18001 {
18002 static struct msghdr ac_aggr;
18003 if (ac_aggr.msg_accrights)
18004 return 0;
18005   ;
18006   return 0;
18007 }
18008 _ACEOF
18009 rm -f conftest.$ac_objext
18010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18011   (eval $ac_compile) 2>conftest.er1
18012   ac_status=$?
18013   grep -v '^ *+' conftest.er1 >conftest.err
18014   rm -f conftest.er1
18015   cat conftest.err >&5
18016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017   (exit $ac_status); } &&
18018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020   (eval $ac_try) 2>&5
18021   ac_status=$?
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); }; } &&
18024          { ac_try='test -s conftest.$ac_objext'
18025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026   (eval $ac_try) 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; }; then
18030   ac_cv_member_struct_msghdr_msg_accrights=yes
18031 else
18032   echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18034
18035 cat >conftest.$ac_ext <<_ACEOF
18036 /* confdefs.h.  */
18037 _ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h.  */
18041 #include <sys/types.h>
18042 #ifdef HAVE_SYS_SOCKET_H
18043 # include <sys/socket.h>
18044 #endif
18045 #ifdef HAVE_SYS_UN_H
18046 # include <sys/un.h>
18047 #endif
18048
18049 int
18050 main ()
18051 {
18052 static struct msghdr ac_aggr;
18053 if (sizeof ac_aggr.msg_accrights)
18054 return 0;
18055   ;
18056   return 0;
18057 }
18058 _ACEOF
18059 rm -f conftest.$ac_objext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18061   (eval $ac_compile) 2>conftest.er1
18062   ac_status=$?
18063   grep -v '^ *+' conftest.er1 >conftest.err
18064   rm -f conftest.er1
18065   cat conftest.err >&5
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); } &&
18068          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070   (eval $ac_try) 2>&5
18071   ac_status=$?
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; } &&
18074          { ac_try='test -s conftest.$ac_objext'
18075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076   (eval $ac_try) 2>&5
18077   ac_status=$?
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); }; }; then
18080   ac_cv_member_struct_msghdr_msg_accrights=yes
18081 else
18082   echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18084
18085 ac_cv_member_struct_msghdr_msg_accrights=no
18086 fi
18087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18088 fi
18089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18090 fi
18091 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18092 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
18093 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18094
18095 cat >>confdefs.h <<_ACEOF
18096 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18097 _ACEOF
18098
18099
18100 fi
18101 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18102 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
18103 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106   cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112 #include <sys/types.h>
18113 #ifdef HAVE_SYS_SOCKET_H
18114 # include <sys/socket.h>
18115 #endif
18116 #ifdef HAVE_SYS_UN_H
18117 # include <sys/un.h>
18118 #endif
18119
18120 int
18121 main ()
18122 {
18123 static struct sockaddr ac_aggr;
18124 if (ac_aggr.sa_len)
18125 return 0;
18126   ;
18127   return 0;
18128 }
18129 _ACEOF
18130 rm -f conftest.$ac_objext
18131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18132   (eval $ac_compile) 2>conftest.er1
18133   ac_status=$?
18134   grep -v '^ *+' conftest.er1 >conftest.err
18135   rm -f conftest.er1
18136   cat conftest.err >&5
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); } &&
18139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141   (eval $ac_try) 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; } &&
18145          { ac_try='test -s conftest.$ac_objext'
18146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147   (eval $ac_try) 2>&5
18148   ac_status=$?
18149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150   (exit $ac_status); }; }; then
18151   ac_cv_member_struct_sockaddr_sa_len=yes
18152 else
18153   echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156 cat >conftest.$ac_ext <<_ACEOF
18157 /* confdefs.h.  */
18158 _ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h.  */
18162 #include <sys/types.h>
18163 #ifdef HAVE_SYS_SOCKET_H
18164 # include <sys/socket.h>
18165 #endif
18166 #ifdef HAVE_SYS_UN_H
18167 # include <sys/un.h>
18168 #endif
18169
18170 int
18171 main ()
18172 {
18173 static struct sockaddr ac_aggr;
18174 if (sizeof ac_aggr.sa_len)
18175 return 0;
18176   ;
18177   return 0;
18178 }
18179 _ACEOF
18180 rm -f conftest.$ac_objext
18181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18182   (eval $ac_compile) 2>conftest.er1
18183   ac_status=$?
18184   grep -v '^ *+' conftest.er1 >conftest.err
18185   rm -f conftest.er1
18186   cat conftest.err >&5
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); } &&
18189          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191   (eval $ac_try) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; } &&
18195          { ac_try='test -s conftest.$ac_objext'
18196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197   (eval $ac_try) 2>&5
18198   ac_status=$?
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); }; }; then
18201   ac_cv_member_struct_sockaddr_sa_len=yes
18202 else
18203   echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206 ac_cv_member_struct_sockaddr_sa_len=no
18207 fi
18208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18209 fi
18210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18211 fi
18212 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18213 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
18214 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18215
18216 cat >>confdefs.h <<_ACEOF
18217 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18218 _ACEOF
18219
18220
18221 fi
18222 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18223 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
18224 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18225   echo $ECHO_N "(cached) $ECHO_C" >&6
18226 else
18227   cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h.  */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h.  */
18233 #include <sys/types.h>
18234 #ifdef HAVE_SYS_SOCKET_H
18235 # include <sys/socket.h>
18236 #endif
18237 #ifdef HAVE_SYS_UN_H
18238 # include <sys/un.h>
18239 #endif
18240
18241 int
18242 main ()
18243 {
18244 static struct sockaddr_un ac_aggr;
18245 if (ac_aggr.sun_len)
18246 return 0;
18247   ;
18248   return 0;
18249 }
18250 _ACEOF
18251 rm -f conftest.$ac_objext
18252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18253   (eval $ac_compile) 2>conftest.er1
18254   ac_status=$?
18255   grep -v '^ *+' conftest.er1 >conftest.err
18256   rm -f conftest.er1
18257   cat conftest.err >&5
18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259   (exit $ac_status); } &&
18260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262   (eval $ac_try) 2>&5
18263   ac_status=$?
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); }; } &&
18266          { ac_try='test -s conftest.$ac_objext'
18267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268   (eval $ac_try) 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); }; }; then
18272   ac_cv_member_struct_sockaddr_un_sun_len=yes
18273 else
18274   echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18276
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_SOCKET_H
18285 # include <sys/socket.h>
18286 #endif
18287 #ifdef HAVE_SYS_UN_H
18288 # include <sys/un.h>
18289 #endif
18290
18291 int
18292 main ()
18293 {
18294 static struct sockaddr_un ac_aggr;
18295 if (sizeof ac_aggr.sun_len)
18296 return 0;
18297   ;
18298   return 0;
18299 }
18300 _ACEOF
18301 rm -f conftest.$ac_objext
18302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18303   (eval $ac_compile) 2>conftest.er1
18304   ac_status=$?
18305   grep -v '^ *+' conftest.er1 >conftest.err
18306   rm -f conftest.er1
18307   cat conftest.err >&5
18308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309   (exit $ac_status); } &&
18310          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312   (eval $ac_try) 2>&5
18313   ac_status=$?
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); }; } &&
18316          { ac_try='test -s conftest.$ac_objext'
18317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318   (eval $ac_try) 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); }; }; then
18322   ac_cv_member_struct_sockaddr_un_sun_len=yes
18323 else
18324   echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327 ac_cv_member_struct_sockaddr_un_sun_len=no
18328 fi
18329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18330 fi
18331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18332 fi
18333 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18334 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
18335 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18336
18337 cat >>confdefs.h <<_ACEOF
18338 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18339 _ACEOF
18340
18341
18342 fi
18343
18344
18345 echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18346 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6
18347 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18348   echo $ECHO_N "(cached) $ECHO_C" >&6
18349 else
18350   cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356 #include <sys/types.h>
18357 #ifdef HAVE_SCSI_SG_H
18358 #include <scsi/sg.h>
18359 #endif
18360
18361 int
18362 main ()
18363 {
18364 static scsireq_t ac_aggr;
18365 if (ac_aggr.cmd)
18366 return 0;
18367   ;
18368   return 0;
18369 }
18370 _ACEOF
18371 rm -f conftest.$ac_objext
18372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18373   (eval $ac_compile) 2>conftest.er1
18374   ac_status=$?
18375   grep -v '^ *+' conftest.er1 >conftest.err
18376   rm -f conftest.er1
18377   cat conftest.err >&5
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); } &&
18380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382   (eval $ac_try) 2>&5
18383   ac_status=$?
18384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385   (exit $ac_status); }; } &&
18386          { ac_try='test -s conftest.$ac_objext'
18387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388   (eval $ac_try) 2>&5
18389   ac_status=$?
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); }; }; then
18392   ac_cv_member_scsireq_t_cmd=yes
18393 else
18394   echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h.  */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h.  */
18403 #include <sys/types.h>
18404 #ifdef HAVE_SCSI_SG_H
18405 #include <scsi/sg.h>
18406 #endif
18407
18408 int
18409 main ()
18410 {
18411 static scsireq_t ac_aggr;
18412 if (sizeof ac_aggr.cmd)
18413 return 0;
18414   ;
18415   return 0;
18416 }
18417 _ACEOF
18418 rm -f conftest.$ac_objext
18419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18420   (eval $ac_compile) 2>conftest.er1
18421   ac_status=$?
18422   grep -v '^ *+' conftest.er1 >conftest.err
18423   rm -f conftest.er1
18424   cat conftest.err >&5
18425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); } &&
18427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429   (eval $ac_try) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; } &&
18433          { ac_try='test -s conftest.$ac_objext'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; }; then
18439   ac_cv_member_scsireq_t_cmd=yes
18440 else
18441   echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18443
18444 ac_cv_member_scsireq_t_cmd=no
18445 fi
18446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18447 fi
18448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18449 fi
18450 echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
18451 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6
18452 if test $ac_cv_member_scsireq_t_cmd = yes; then
18453
18454 cat >>confdefs.h <<_ACEOF
18455 #define HAVE_SCSIREQ_T_CMD 1
18456 _ACEOF
18457
18458
18459 fi
18460 echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18461 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6
18462 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18463   echo $ECHO_N "(cached) $ECHO_C" >&6
18464 else
18465   cat >conftest.$ac_ext <<_ACEOF
18466 /* confdefs.h.  */
18467 _ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h.  */
18471 #include <sys/types.h>
18472 #ifdef HAVE_SCSI_SG_H
18473 #include <scsi/sg.h>
18474 #endif
18475
18476 int
18477 main ()
18478 {
18479 static sg_io_hdr_t ac_aggr;
18480 if (ac_aggr.interface_id)
18481 return 0;
18482   ;
18483   return 0;
18484 }
18485 _ACEOF
18486 rm -f conftest.$ac_objext
18487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18488   (eval $ac_compile) 2>conftest.er1
18489   ac_status=$?
18490   grep -v '^ *+' conftest.er1 >conftest.err
18491   rm -f conftest.er1
18492   cat conftest.err >&5
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); } &&
18495          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497   (eval $ac_try) 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; } &&
18501          { ac_try='test -s conftest.$ac_objext'
18502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503   (eval $ac_try) 2>&5
18504   ac_status=$?
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); }; }; then
18507   ac_cv_member_sg_io_hdr_t_interface_id=yes
18508 else
18509   echo "$as_me: failed program was:" >&5
18510 sed 's/^/| /' conftest.$ac_ext >&5
18511
18512 cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h.  */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h.  */
18518 #include <sys/types.h>
18519 #ifdef HAVE_SCSI_SG_H
18520 #include <scsi/sg.h>
18521 #endif
18522
18523 int
18524 main ()
18525 {
18526 static sg_io_hdr_t ac_aggr;
18527 if (sizeof ac_aggr.interface_id)
18528 return 0;
18529   ;
18530   return 0;
18531 }
18532 _ACEOF
18533 rm -f conftest.$ac_objext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535   (eval $ac_compile) 2>conftest.er1
18536   ac_status=$?
18537   grep -v '^ *+' conftest.er1 >conftest.err
18538   rm -f conftest.er1
18539   cat conftest.err >&5
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); } &&
18542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544   (eval $ac_try) 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; } &&
18548          { ac_try='test -s conftest.$ac_objext'
18549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550   (eval $ac_try) 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; }; then
18554   ac_cv_member_sg_io_hdr_t_interface_id=yes
18555 else
18556   echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 ac_cv_member_sg_io_hdr_t_interface_id=no
18560 fi
18561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18562 fi
18563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18564 fi
18565 echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
18566 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6
18567 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
18568
18569 cat >>confdefs.h <<_ACEOF
18570 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
18571 _ACEOF
18572
18573
18574 fi
18575
18576
18577 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18578 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
18579 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18580   echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582   cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h.  */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h.  */
18588 #include <signal.h>
18589
18590 int
18591 main ()
18592 {
18593 static siginfo_t ac_aggr;
18594 if (ac_aggr.si_fd)
18595 return 0;
18596   ;
18597   return 0;
18598 }
18599 _ACEOF
18600 rm -f conftest.$ac_objext
18601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18602   (eval $ac_compile) 2>conftest.er1
18603   ac_status=$?
18604   grep -v '^ *+' conftest.er1 >conftest.err
18605   rm -f conftest.er1
18606   cat conftest.err >&5
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); } &&
18609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611   (eval $ac_try) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; } &&
18615          { ac_try='test -s conftest.$ac_objext'
18616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617   (eval $ac_try) 2>&5
18618   ac_status=$?
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); }; }; then
18621   ac_cv_member_siginfo_t_si_fd=yes
18622 else
18623   echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632 #include <signal.h>
18633
18634 int
18635 main ()
18636 {
18637 static siginfo_t ac_aggr;
18638 if (sizeof ac_aggr.si_fd)
18639 return 0;
18640   ;
18641   return 0;
18642 }
18643 _ACEOF
18644 rm -f conftest.$ac_objext
18645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646   (eval $ac_compile) 2>conftest.er1
18647   ac_status=$?
18648   grep -v '^ *+' conftest.er1 >conftest.err
18649   rm -f conftest.er1
18650   cat conftest.err >&5
18651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652   (exit $ac_status); } &&
18653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655   (eval $ac_try) 2>&5
18656   ac_status=$?
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); }; } &&
18659          { ac_try='test -s conftest.$ac_objext'
18660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661   (eval $ac_try) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; }; then
18665   ac_cv_member_siginfo_t_si_fd=yes
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670 ac_cv_member_siginfo_t_si_fd=no
18671 fi
18672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18673 fi
18674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18675 fi
18676 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
18677 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
18678 if test $ac_cv_member_siginfo_t_si_fd = yes; then
18679
18680 cat >>confdefs.h <<_ACEOF
18681 #define HAVE_SIGINFO_T_SI_FD 1
18682 _ACEOF
18683
18684
18685 fi
18686
18687
18688 echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
18689 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6
18690 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
18691   echo $ECHO_N "(cached) $ECHO_C" >&6
18692 else
18693   cat >conftest.$ac_ext <<_ACEOF
18694 /* confdefs.h.  */
18695 _ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h.  */
18699 #include <sys/types.h>
18700 #ifdef HAVE_SYS_MTIO_H
18701 #include <sys/mtio.h>
18702 #endif
18703
18704 int
18705 main ()
18706 {
18707 static struct mtget ac_aggr;
18708 if (ac_aggr.mt_blksiz)
18709 return 0;
18710   ;
18711   return 0;
18712 }
18713 _ACEOF
18714 rm -f conftest.$ac_objext
18715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18716   (eval $ac_compile) 2>conftest.er1
18717   ac_status=$?
18718   grep -v '^ *+' conftest.er1 >conftest.err
18719   rm -f conftest.er1
18720   cat conftest.err >&5
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } &&
18723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725   (eval $ac_try) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; } &&
18729          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18735   ac_cv_member_struct_mtget_mt_blksiz=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746 #include <sys/types.h>
18747 #ifdef HAVE_SYS_MTIO_H
18748 #include <sys/mtio.h>
18749 #endif
18750
18751 int
18752 main ()
18753 {
18754 static struct mtget ac_aggr;
18755 if (sizeof ac_aggr.mt_blksiz)
18756 return 0;
18757   ;
18758   return 0;
18759 }
18760 _ACEOF
18761 rm -f conftest.$ac_objext
18762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18763   (eval $ac_compile) 2>conftest.er1
18764   ac_status=$?
18765   grep -v '^ *+' conftest.er1 >conftest.err
18766   rm -f conftest.er1
18767   cat conftest.err >&5
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); } &&
18770          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772   (eval $ac_try) 2>&5
18773   ac_status=$?
18774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775   (exit $ac_status); }; } &&
18776          { ac_try='test -s conftest.$ac_objext'
18777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778   (eval $ac_try) 2>&5
18779   ac_status=$?
18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781   (exit $ac_status); }; }; then
18782   ac_cv_member_struct_mtget_mt_blksiz=yes
18783 else
18784   echo "$as_me: failed program was:" >&5
18785 sed 's/^/| /' conftest.$ac_ext >&5
18786
18787 ac_cv_member_struct_mtget_mt_blksiz=no
18788 fi
18789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18790 fi
18791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18792 fi
18793 echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
18794 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6
18795 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
18796
18797 cat >>confdefs.h <<_ACEOF
18798 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
18799 _ACEOF
18800
18801
18802 fi
18803 echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
18804 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6
18805 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
18806   echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808   cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h.  */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h.  */
18814 #include <sys/types.h>
18815 #ifdef HAVE_SYS_MTIO_H
18816 #include <sys/mtio.h>
18817 #endif
18818
18819 int
18820 main ()
18821 {
18822 static struct mtget ac_aggr;
18823 if (ac_aggr.mt_gstat)
18824 return 0;
18825   ;
18826   return 0;
18827 }
18828 _ACEOF
18829 rm -f conftest.$ac_objext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18831   (eval $ac_compile) 2>conftest.er1
18832   ac_status=$?
18833   grep -v '^ *+' conftest.er1 >conftest.err
18834   rm -f conftest.er1
18835   cat conftest.err >&5
18836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837   (exit $ac_status); } &&
18838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840   (eval $ac_try) 2>&5
18841   ac_status=$?
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); }; } &&
18844          { ac_try='test -s conftest.$ac_objext'
18845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846   (eval $ac_try) 2>&5
18847   ac_status=$?
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); }; }; then
18850   ac_cv_member_struct_mtget_mt_gstat=yes
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855 cat >conftest.$ac_ext <<_ACEOF
18856 /* confdefs.h.  */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h.  */
18861 #include <sys/types.h>
18862 #ifdef HAVE_SYS_MTIO_H
18863 #include <sys/mtio.h>
18864 #endif
18865
18866 int
18867 main ()
18868 {
18869 static struct mtget ac_aggr;
18870 if (sizeof ac_aggr.mt_gstat)
18871 return 0;
18872   ;
18873   return 0;
18874 }
18875 _ACEOF
18876 rm -f conftest.$ac_objext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878   (eval $ac_compile) 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } &&
18885          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887   (eval $ac_try) 2>&5
18888   ac_status=$?
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); }; } &&
18891          { ac_try='test -s conftest.$ac_objext'
18892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893   (eval $ac_try) 2>&5
18894   ac_status=$?
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); }; }; then
18897   ac_cv_member_struct_mtget_mt_gstat=yes
18898 else
18899   echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18901
18902 ac_cv_member_struct_mtget_mt_gstat=no
18903 fi
18904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18905 fi
18906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18907 fi
18908 echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
18909 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6
18910 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
18911
18912 cat >>confdefs.h <<_ACEOF
18913 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
18914 _ACEOF
18915
18916
18917 fi
18918 echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
18919 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6
18920 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923   cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h.  */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h.  */
18929 #include <sys/types.h>
18930 #ifdef HAVE_SYS_MTIO_H
18931 #include <sys/mtio.h>
18932 #endif
18933
18934 int
18935 main ()
18936 {
18937 static struct mtget ac_aggr;
18938 if (ac_aggr.mt_blkno)
18939 return 0;
18940   ;
18941   return 0;
18942 }
18943 _ACEOF
18944 rm -f conftest.$ac_objext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18946   (eval $ac_compile) 2>conftest.er1
18947   ac_status=$?
18948   grep -v '^ *+' conftest.er1 >conftest.err
18949   rm -f conftest.er1
18950   cat conftest.err >&5
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); } &&
18953          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955   (eval $ac_try) 2>&5
18956   ac_status=$?
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); }; } &&
18959          { ac_try='test -s conftest.$ac_objext'
18960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961   (eval $ac_try) 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; }; then
18965   ac_cv_member_struct_mtget_mt_blkno=yes
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h.  */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h.  */
18976 #include <sys/types.h>
18977 #ifdef HAVE_SYS_MTIO_H
18978 #include <sys/mtio.h>
18979 #endif
18980
18981 int
18982 main ()
18983 {
18984 static struct mtget ac_aggr;
18985 if (sizeof ac_aggr.mt_blkno)
18986 return 0;
18987   ;
18988   return 0;
18989 }
18990 _ACEOF
18991 rm -f conftest.$ac_objext
18992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18993   (eval $ac_compile) 2>conftest.er1
18994   ac_status=$?
18995   grep -v '^ *+' conftest.er1 >conftest.err
18996   rm -f conftest.er1
18997   cat conftest.err >&5
18998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); } &&
19000          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002   (eval $ac_try) 2>&5
19003   ac_status=$?
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); }; } &&
19006          { ac_try='test -s conftest.$ac_objext'
19007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008   (eval $ac_try) 2>&5
19009   ac_status=$?
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); }; }; then
19012   ac_cv_member_struct_mtget_mt_blkno=yes
19013 else
19014   echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19016
19017 ac_cv_member_struct_mtget_mt_blkno=no
19018 fi
19019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19020 fi
19021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19022 fi
19023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19024 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6
19025 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19026
19027 cat >>confdefs.h <<_ACEOF
19028 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19029 _ACEOF
19030
19031
19032 fi
19033
19034
19035 echo "$as_me:$LINENO: checking for struct option.name" >&5
19036 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19037 if test "${ac_cv_member_struct_option_name+set}" = set; then
19038   echo $ECHO_N "(cached) $ECHO_C" >&6
19039 else
19040   cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h.  */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h.  */
19046 #ifdef HAVE_GETOPT_H
19047 #include <getopt.h>
19048 #endif
19049
19050 int
19051 main ()
19052 {
19053 static struct option ac_aggr;
19054 if (ac_aggr.name)
19055 return 0;
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 rm -f conftest.$ac_objext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062   (eval $ac_compile) 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } &&
19069          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071   (eval $ac_try) 2>&5
19072   ac_status=$?
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); }; } &&
19075          { ac_try='test -s conftest.$ac_objext'
19076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077   (eval $ac_try) 2>&5
19078   ac_status=$?
19079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080   (exit $ac_status); }; }; then
19081   ac_cv_member_struct_option_name=yes
19082 else
19083   echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092 #ifdef HAVE_GETOPT_H
19093 #include <getopt.h>
19094 #endif
19095
19096 int
19097 main ()
19098 {
19099 static struct option ac_aggr;
19100 if (sizeof ac_aggr.name)
19101 return 0;
19102   ;
19103   return 0;
19104 }
19105 _ACEOF
19106 rm -f conftest.$ac_objext
19107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19108   (eval $ac_compile) 2>conftest.er1
19109   ac_status=$?
19110   grep -v '^ *+' conftest.er1 >conftest.err
19111   rm -f conftest.er1
19112   cat conftest.err >&5
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); } &&
19115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117   (eval $ac_try) 2>&5
19118   ac_status=$?
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); }; } &&
19121          { ac_try='test -s conftest.$ac_objext'
19122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123   (eval $ac_try) 2>&5
19124   ac_status=$?
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); }; }; then
19127   ac_cv_member_struct_option_name=yes
19128 else
19129   echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19131
19132 ac_cv_member_struct_option_name=no
19133 fi
19134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19135 fi
19136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19137 fi
19138 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19139 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19140 if test $ac_cv_member_struct_option_name = yes; then
19141
19142 cat >>confdefs.h <<_ACEOF
19143 #define HAVE_STRUCT_OPTION_NAME 1
19144 _ACEOF
19145
19146
19147 fi
19148
19149
19150 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19151 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19152 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19153   echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19155   cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161 $ac_includes_default
19162 int
19163 main ()
19164 {
19165 static struct stat ac_aggr;
19166 if (ac_aggr.st_blocks)
19167 return 0;
19168   ;
19169   return 0;
19170 }
19171 _ACEOF
19172 rm -f conftest.$ac_objext
19173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19174   (eval $ac_compile) 2>conftest.er1
19175   ac_status=$?
19176   grep -v '^ *+' conftest.er1 >conftest.err
19177   rm -f conftest.er1
19178   cat conftest.err >&5
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); } &&
19181          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183   (eval $ac_try) 2>&5
19184   ac_status=$?
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); }; } &&
19187          { ac_try='test -s conftest.$ac_objext'
19188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189   (eval $ac_try) 2>&5
19190   ac_status=$?
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); }; }; then
19193   ac_cv_member_struct_stat_st_blocks=yes
19194 else
19195   echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19197
19198 cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h.  */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h.  */
19204 $ac_includes_default
19205 int
19206 main ()
19207 {
19208 static struct stat ac_aggr;
19209 if (sizeof ac_aggr.st_blocks)
19210 return 0;
19211   ;
19212   return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217   (eval $ac_compile) 2>conftest.er1
19218   ac_status=$?
19219   grep -v '^ *+' conftest.er1 >conftest.err
19220   rm -f conftest.er1
19221   cat conftest.err >&5
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } &&
19224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226   (eval $ac_try) 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; } &&
19230          { ac_try='test -s conftest.$ac_objext'
19231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232   (eval $ac_try) 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); }; }; then
19236   ac_cv_member_struct_stat_st_blocks=yes
19237 else
19238   echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19240
19241 ac_cv_member_struct_stat_st_blocks=no
19242 fi
19243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19244 fi
19245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19246 fi
19247 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19248 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19249 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19250
19251 cat >>confdefs.h <<_ACEOF
19252 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19253 _ACEOF
19254
19255
19256 fi
19257
19258
19259 echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19260 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6
19261 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19262   echo $ECHO_N "(cached) $ECHO_C" >&6
19263 else
19264   cat >conftest.$ac_ext <<_ACEOF
19265 /* confdefs.h.  */
19266 _ACEOF
19267 cat confdefs.h >>conftest.$ac_ext
19268 cat >>conftest.$ac_ext <<_ACEOF
19269 /* end confdefs.h.  */
19270 #ifdef HAVE_SYS_TYPES_H
19271 #include <sys/types.h>
19272 #endif
19273 #ifdef HAVE_NETINET_IN_H
19274 #include <netinet/in.h>
19275 #endif
19276
19277 int
19278 main ()
19279 {
19280 static struct sockaddr_in6 ac_aggr;
19281 if (ac_aggr.sin6_scope_id)
19282 return 0;
19283   ;
19284   return 0;
19285 }
19286 _ACEOF
19287 rm -f conftest.$ac_objext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19289   (eval $ac_compile) 2>conftest.er1
19290   ac_status=$?
19291   grep -v '^ *+' conftest.er1 >conftest.err
19292   rm -f conftest.er1
19293   cat conftest.err >&5
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } &&
19296          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298   (eval $ac_try) 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; } &&
19302          { ac_try='test -s conftest.$ac_objext'
19303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304   (eval $ac_try) 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }; }; then
19308   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19309 else
19310   echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313 cat >conftest.$ac_ext <<_ACEOF
19314 /* confdefs.h.  */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h.  */
19319 #ifdef HAVE_SYS_TYPES_H
19320 #include <sys/types.h>
19321 #endif
19322 #ifdef HAVE_NETINET_IN_H
19323 #include <netinet/in.h>
19324 #endif
19325
19326 int
19327 main ()
19328 {
19329 static struct sockaddr_in6 ac_aggr;
19330 if (sizeof ac_aggr.sin6_scope_id)
19331 return 0;
19332   ;
19333   return 0;
19334 }
19335 _ACEOF
19336 rm -f conftest.$ac_objext
19337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19338   (eval $ac_compile) 2>conftest.er1
19339   ac_status=$?
19340   grep -v '^ *+' conftest.er1 >conftest.err
19341   rm -f conftest.er1
19342   cat conftest.err >&5
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); } &&
19345          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347   (eval $ac_try) 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; } &&
19351          { ac_try='test -s conftest.$ac_objext'
19352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353   (eval $ac_try) 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; }; then
19357   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19358 else
19359   echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19363 fi
19364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19365 fi
19366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19367 fi
19368 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19369 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6
19370 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19371
19372 cat >>confdefs.h <<_ACEOF
19373 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19374 _ACEOF
19375
19376
19377 fi
19378
19379
19380 echo "$as_me:$LINENO: checking for timezone variable" >&5
19381 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
19382 if test "${ac_cv_have_timezone+set}" = set; then
19383   echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385   cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391 #include <time.h>
19392 int
19393 main ()
19394 {
19395 timezone;
19396   ;
19397   return 0;
19398 }
19399 _ACEOF
19400 rm -f conftest.$ac_objext conftest$ac_exeext
19401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19402   (eval $ac_link) 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } &&
19409          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411   (eval $ac_try) 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); }; } &&
19415          { ac_try='test -s conftest$ac_exeext'
19416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417   (eval $ac_try) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); }; }; then
19421   ac_cv_have_timezone="yes"
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426 ac_cv_have_timezone="no"
19427 fi
19428 rm -f conftest.err conftest.$ac_objext \
19429       conftest$ac_exeext conftest.$ac_ext
19430 fi
19431 echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19432 echo "${ECHO_T}$ac_cv_have_timezone" >&6
19433 if test "$ac_cv_have_timezone" = "yes"
19434 then
19435
19436 cat >>confdefs.h <<\_ACEOF
19437 #define HAVE_TIMEZONE 1
19438 _ACEOF
19439
19440 fi
19441 echo "$as_me:$LINENO: checking for daylight variable" >&5
19442 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
19443 if test "${ac_cv_have_daylight+set}" = set; then
19444   echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446   cat >conftest.$ac_ext <<_ACEOF
19447 /* confdefs.h.  */
19448 _ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h.  */
19452 #include <time.h>
19453 int
19454 main ()
19455 {
19456 daylight;
19457   ;
19458   return 0;
19459 }
19460 _ACEOF
19461 rm -f conftest.$ac_objext conftest$ac_exeext
19462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19463   (eval $ac_link) 2>conftest.er1
19464   ac_status=$?
19465   grep -v '^ *+' conftest.er1 >conftest.err
19466   rm -f conftest.er1
19467   cat conftest.err >&5
19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); } &&
19470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472   (eval $ac_try) 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; } &&
19476          { ac_try='test -s conftest$ac_exeext'
19477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478   (eval $ac_try) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; }; then
19482   ac_cv_have_daylight="yes"
19483 else
19484   echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ac_cv_have_daylight="no"
19488 fi
19489 rm -f conftest.err conftest.$ac_objext \
19490       conftest$ac_exeext conftest.$ac_ext
19491 fi
19492 echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
19493 echo "${ECHO_T}$ac_cv_have_daylight" >&6
19494 if test "$ac_cv_have_daylight" = "yes"
19495 then
19496
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE_DAYLIGHT 1
19499 _ACEOF
19500
19501 fi
19502
19503
19504 case $host_cpu in
19505   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19506 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19507 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516 #ifndef __i386__
19517 yes
19518 #endif
19519 _ACEOF
19520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19521   $EGREP "yes" >/dev/null 2>&1; then
19522   ac_cv_cpp_def___i386__=yes
19523 else
19524   ac_cv_cpp_def___i386__=no
19525 fi
19526 rm -f conftest*
19527
19528 fi
19529 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19530 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19531 if test $ac_cv_cpp_def___i386__ = yes; then
19532   CFLAGS="$CFLAGS -D__i386__"
19533   LINTFLAGS="$LINTFLAGS -D__i386__"
19534 fi
19535  ;;
19536   *x86_64*)         echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
19537 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6
19538 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
19539   echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541   cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h.  */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h.  */
19547 #ifndef __x86_64__
19548 yes
19549 #endif
19550 _ACEOF
19551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19552   $EGREP "yes" >/dev/null 2>&1; then
19553   ac_cv_cpp_def___x86_64__=yes
19554 else
19555   ac_cv_cpp_def___x86_64__=no
19556 fi
19557 rm -f conftest*
19558
19559 fi
19560 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
19561 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6
19562 if test $ac_cv_cpp_def___x86_64__ = yes; then
19563   CFLAGS="$CFLAGS -D__x86_64__"
19564   LINTFLAGS="$LINTFLAGS -D__x86_64__"
19565 fi
19566  ;;
19567   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19568 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19569 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19570   echo $ECHO_N "(cached) $ECHO_C" >&6
19571 else
19572   cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578 #ifndef __ALPHA__
19579 yes
19580 #endif
19581 _ACEOF
19582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19583   $EGREP "yes" >/dev/null 2>&1; then
19584   ac_cv_cpp_def___ALPHA__=yes
19585 else
19586   ac_cv_cpp_def___ALPHA__=no
19587 fi
19588 rm -f conftest*
19589
19590 fi
19591 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19592 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19593 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19594   CFLAGS="$CFLAGS -D__ALPHA__"
19595   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19596 fi
19597  ;;
19598   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19599 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19600 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19601   echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603   cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609 #ifndef __sparc__
19610 yes
19611 #endif
19612 _ACEOF
19613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19614   $EGREP "yes" >/dev/null 2>&1; then
19615   ac_cv_cpp_def___sparc__=yes
19616 else
19617   ac_cv_cpp_def___sparc__=no
19618 fi
19619 rm -f conftest*
19620
19621 fi
19622 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19623 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19624 if test $ac_cv_cpp_def___sparc__ = yes; then
19625   CFLAGS="$CFLAGS -D__sparc__"
19626   LINTFLAGS="$LINTFLAGS -D__sparc__"
19627 fi
19628  ;;
19629   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19630 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19631 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19632   echo $ECHO_N "(cached) $ECHO_C" >&6
19633 else
19634   cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h.  */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h.  */
19640 #ifndef __powerpc__
19641 yes
19642 #endif
19643 _ACEOF
19644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19645   $EGREP "yes" >/dev/null 2>&1; then
19646   ac_cv_cpp_def___powerpc__=yes
19647 else
19648   ac_cv_cpp_def___powerpc__=no
19649 fi
19650 rm -f conftest*
19651
19652 fi
19653 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19654 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19655 if test $ac_cv_cpp_def___powerpc__ = yes; then
19656   CFLAGS="$CFLAGS -D__powerpc__"
19657   LINTFLAGS="$LINTFLAGS -D__powerpc__"
19658 fi
19659  ;;
19660 esac
19661
19662 case $host_vendor in
19663   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19664 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19665 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19666   echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668   cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h.  */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h.  */
19674 #ifndef __sun__
19675 yes
19676 #endif
19677 _ACEOF
19678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19679   $EGREP "yes" >/dev/null 2>&1; then
19680   ac_cv_cpp_def___sun__=yes
19681 else
19682   ac_cv_cpp_def___sun__=no
19683 fi
19684 rm -f conftest*
19685
19686 fi
19687 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19688 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19689 if test $ac_cv_cpp_def___sun__ = yes; then
19690   CFLAGS="$CFLAGS -D__sun__"
19691   LINTFLAGS="$LINTFLAGS -D__sun__"
19692 fi
19693  ;;
19694 esac
19695
19696
19697
19698
19699
19700           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19701
19702           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19703
19704           ac_config_commands="$ac_config_commands dlls/kernel/messages"
19705
19706           ac_config_commands="$ac_config_commands dlls/user/resources"
19707
19708           ac_config_commands="$ac_config_commands dlls/wineps/data"
19709
19710           ac_config_commands="$ac_config_commands include/wine"
19711
19712
19713 MAKE_RULES=Make.rules
19714
19715
19716 MAKE_DLL_RULES=dlls/Makedll.rules
19717
19718
19719 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
19720
19721
19722 MAKE_TEST_RULES=dlls/Maketest.rules
19723
19724
19725 MAKE_LIB_RULES=libs/Makelib.rules
19726
19727
19728 MAKE_PROG_RULES=programs/Makeprog.rules
19729
19730
19731                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/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/dinput/tests/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/dnsapi/Makefile dlls/dnsapi/tests/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/imaadp32.acm/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/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/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/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/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/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/usp10/Makefile dlls/usp10/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/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/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/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/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 programs/wordpad/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"
19732
19733
19734 cat >confcache <<\_ACEOF
19735 # This file is a shell script that caches the results of configure
19736 # tests run on this system so they can be shared between configure
19737 # scripts and configure runs, see configure's option --config-cache.
19738 # It is not useful on other systems.  If it contains results you don't
19739 # want to keep, you may remove or edit it.
19740 #
19741 # config.status only pays attention to the cache file if you give it
19742 # the --recheck option to rerun configure.
19743 #
19744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19746 # following values.
19747
19748 _ACEOF
19749
19750 # The following way of writing the cache mishandles newlines in values,
19751 # but we know of no workaround that is simple, portable, and efficient.
19752 # So, don't put newlines in cache variables' values.
19753 # Ultrix sh set writes to stderr and can't be redirected directly,
19754 # and sets the high bit in the cache file unless we assign to the vars.
19755 {
19756   (set) 2>&1 |
19757     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19758     *ac_space=\ *)
19759       # `set' does not quote correctly, so add quotes (double-quote
19760       # substitution turns \\\\ into \\, and sed turns \\ into \).
19761       sed -n \
19762         "s/'/'\\\\''/g;
19763           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19764       ;;
19765     *)
19766       # `set' quotes correctly as required by POSIX, so do not add quotes.
19767       sed -n \
19768         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19769       ;;
19770     esac;
19771 } |
19772   sed '
19773      t clear
19774      : clear
19775      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19776      t end
19777      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19778      : end' >>confcache
19779 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19780   if test -w $cache_file; then
19781     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19782     cat confcache >$cache_file
19783   else
19784     echo "not updating unwritable cache $cache_file"
19785   fi
19786 fi
19787 rm -f confcache
19788
19789 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19790 # Let make expand exec_prefix.
19791 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19792
19793 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19794 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19795 # trailing colons and then remove the whole line if VPATH becomes empty
19796 # (actually we leave an empty line to preserve line numbers).
19797 if test "x$srcdir" = x.; then
19798   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19799 s/:*\$(srcdir):*/:/;
19800 s/:*\${srcdir}:*/:/;
19801 s/:*@srcdir@:*/:/;
19802 s/^\([^=]*=[     ]*\):*/\1/;
19803 s/:*$//;
19804 s/^[^=]*=[       ]*$//;
19805 }'
19806 fi
19807
19808 DEFS=-DHAVE_CONFIG_H
19809
19810 ac_libobjs=
19811 ac_ltlibobjs=
19812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19813   # 1. Remove the extension, and $U if already installed.
19814   ac_i=`echo "$ac_i" |
19815          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19816   # 2. Add them.
19817   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19818   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19819 done
19820 LIBOBJS=$ac_libobjs
19821
19822 LTLIBOBJS=$ac_ltlibobjs
19823
19824
19825
19826 : ${CONFIG_STATUS=./config.status}
19827 ac_clean_files_save=$ac_clean_files
19828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19829 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19830 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19831 cat >$CONFIG_STATUS <<_ACEOF
19832 #! $SHELL
19833 # Generated by $as_me.
19834 # Run this file to recreate the current configuration.
19835 # Compiler output produced by configure, useful for debugging
19836 # configure, is in config.log if it exists.
19837
19838 debug=false
19839 ac_cs_recheck=false
19840 ac_cs_silent=false
19841 SHELL=\${CONFIG_SHELL-$SHELL}
19842 _ACEOF
19843
19844 cat >>$CONFIG_STATUS <<\_ACEOF
19845 ## --------------------- ##
19846 ## M4sh Initialization.  ##
19847 ## --------------------- ##
19848
19849 # Be Bourne compatible
19850 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19851   emulate sh
19852   NULLCMD=:
19853   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19854   # is contrary to our usage.  Disable this feature.
19855   alias -g '${1+"$@"}'='"$@"'
19856 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19857   set -o posix
19858 fi
19859 DUALCASE=1; export DUALCASE # for MKS sh
19860
19861 # Support unset when possible.
19862 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19863   as_unset=unset
19864 else
19865   as_unset=false
19866 fi
19867
19868
19869 # Work around bugs in pre-3.0 UWIN ksh.
19870 $as_unset ENV MAIL MAILPATH
19871 PS1='$ '
19872 PS2='> '
19873 PS4='+ '
19874
19875 # NLS nuisances.
19876 for as_var in \
19877   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19878   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19879   LC_TELEPHONE LC_TIME
19880 do
19881   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19882     eval $as_var=C; export $as_var
19883   else
19884     $as_unset $as_var
19885   fi
19886 done
19887
19888 # Required to use basename.
19889 if expr a : '\(a\)' >/dev/null 2>&1; then
19890   as_expr=expr
19891 else
19892   as_expr=false
19893 fi
19894
19895 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19896   as_basename=basename
19897 else
19898   as_basename=false
19899 fi
19900
19901
19902 # Name of the executable.
19903 as_me=`$as_basename "$0" ||
19904 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19905          X"$0" : 'X\(//\)$' \| \
19906          X"$0" : 'X\(/\)$' \| \
19907          .     : '\(.\)' 2>/dev/null ||
19908 echo X/"$0" |
19909     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19910           /^X\/\(\/\/\)$/{ s//\1/; q; }
19911           /^X\/\(\/\).*/{ s//\1/; q; }
19912           s/.*/./; q'`
19913
19914
19915 # PATH needs CR, and LINENO needs CR and PATH.
19916 # Avoid depending upon Character Ranges.
19917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19920 as_cr_digits='0123456789'
19921 as_cr_alnum=$as_cr_Letters$as_cr_digits
19922
19923 # The user is always right.
19924 if test "${PATH_SEPARATOR+set}" != set; then
19925   echo "#! /bin/sh" >conf$$.sh
19926   echo  "exit 0"   >>conf$$.sh
19927   chmod +x conf$$.sh
19928   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19929     PATH_SEPARATOR=';'
19930   else
19931     PATH_SEPARATOR=:
19932   fi
19933   rm -f conf$$.sh
19934 fi
19935
19936
19937   as_lineno_1=$LINENO
19938   as_lineno_2=$LINENO
19939   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19940   test "x$as_lineno_1" != "x$as_lineno_2" &&
19941   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19942   # Find who we are.  Look in the path if we contain no path at all
19943   # relative or not.
19944   case $0 in
19945     *[\\/]* ) as_myself=$0 ;;
19946     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19947 for as_dir in $PATH
19948 do
19949   IFS=$as_save_IFS
19950   test -z "$as_dir" && as_dir=.
19951   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19952 done
19953
19954        ;;
19955   esac
19956   # We did not find ourselves, most probably we were run as `sh COMMAND'
19957   # in which case we are not to be found in the path.
19958   if test "x$as_myself" = x; then
19959     as_myself=$0
19960   fi
19961   if test ! -f "$as_myself"; then
19962     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19963 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19964    { (exit 1); exit 1; }; }
19965   fi
19966   case $CONFIG_SHELL in
19967   '')
19968     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19970 do
19971   IFS=$as_save_IFS
19972   test -z "$as_dir" && as_dir=.
19973   for as_base in sh bash ksh sh5; do
19974          case $as_dir in
19975          /*)
19976            if ("$as_dir/$as_base" -c '
19977   as_lineno_1=$LINENO
19978   as_lineno_2=$LINENO
19979   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19980   test "x$as_lineno_1" != "x$as_lineno_2" &&
19981   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19982              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19983              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19984              CONFIG_SHELL=$as_dir/$as_base
19985              export CONFIG_SHELL
19986              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19987            fi;;
19988          esac
19989        done
19990 done
19991 ;;
19992   esac
19993
19994   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19995   # uniformly replaced by the line number.  The first 'sed' inserts a
19996   # line-number line before each line; the second 'sed' does the real
19997   # work.  The second script uses 'N' to pair each line-number line
19998   # with the numbered line, and appends trailing '-' during
19999   # substitution so that $LINENO is not a special case at line end.
20000   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20001   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20002   sed '=' <$as_myself |
20003     sed '
20004       N
20005       s,$,-,
20006       : loop
20007       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20008       t loop
20009       s,-$,,
20010       s,^['$as_cr_digits']*\n,,
20011     ' >$as_me.lineno &&
20012   chmod +x $as_me.lineno ||
20013     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20014 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20015    { (exit 1); exit 1; }; }
20016
20017   # Don't try to exec as it changes $[0], causing all sort of problems
20018   # (the dirname of $[0] is not the place where we might find the
20019   # original and so on.  Autoconf is especially sensible to this).
20020   . ./$as_me.lineno
20021   # Exit status is that of the last command.
20022   exit
20023 }
20024
20025
20026 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20027   *c*,-n*) ECHO_N= ECHO_C='
20028 ' ECHO_T='      ' ;;
20029   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20030   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20031 esac
20032
20033 if expr a : '\(a\)' >/dev/null 2>&1; then
20034   as_expr=expr
20035 else
20036   as_expr=false
20037 fi
20038
20039 rm -f conf$$ conf$$.exe conf$$.file
20040 echo >conf$$.file
20041 if ln -s conf$$.file conf$$ 2>/dev/null; then
20042   # We could just check for DJGPP; but this test a) works b) is more generic
20043   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20044   if test -f conf$$.exe; then
20045     # Don't use ln at all; we don't have any links
20046     as_ln_s='cp -p'
20047   else
20048     as_ln_s='ln -s'
20049   fi
20050 elif ln conf$$.file conf$$ 2>/dev/null; then
20051   as_ln_s=ln
20052 else
20053   as_ln_s='cp -p'
20054 fi
20055 rm -f conf$$ conf$$.exe conf$$.file
20056
20057 if mkdir -p . 2>/dev/null; then
20058   as_mkdir_p=:
20059 else
20060   test -d ./-p && rmdir ./-p
20061   as_mkdir_p=false
20062 fi
20063
20064 as_executable_p="test -f"
20065
20066 # Sed expression to map a string onto a valid CPP name.
20067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20068
20069 # Sed expression to map a string onto a valid variable name.
20070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20071
20072
20073 # IFS
20074 # We need space, tab and new line, in precisely that order.
20075 as_nl='
20076 '
20077 IFS="   $as_nl"
20078
20079 # CDPATH.
20080 $as_unset CDPATH
20081
20082 exec 6>&1
20083
20084 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20085 # report actual input values of CONFIG_FILES etc. instead of their
20086 # values after options handling.  Logging --version etc. is OK.
20087 exec 5>>config.log
20088 {
20089   echo
20090   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20091 ## Running $as_me. ##
20092 _ASBOX
20093 } >&5
20094 cat >&5 <<_CSEOF
20095
20096 This file was extended by Wine $as_me 0.9.12, which was
20097 generated by GNU Autoconf 2.59.  Invocation command line was
20098
20099   CONFIG_FILES    = $CONFIG_FILES
20100   CONFIG_HEADERS  = $CONFIG_HEADERS
20101   CONFIG_LINKS    = $CONFIG_LINKS
20102   CONFIG_COMMANDS = $CONFIG_COMMANDS
20103   $ $0 $@
20104
20105 _CSEOF
20106 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20107 echo >&5
20108 _ACEOF
20109
20110 # Files that config.status was made for.
20111 if test -n "$ac_config_files"; then
20112   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20113 fi
20114
20115 if test -n "$ac_config_headers"; then
20116   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20117 fi
20118
20119 if test -n "$ac_config_links"; then
20120   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20121 fi
20122
20123 if test -n "$ac_config_commands"; then
20124   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20125 fi
20126
20127 cat >>$CONFIG_STATUS <<\_ACEOF
20128
20129 ac_cs_usage="\
20130 \`$as_me' instantiates files from templates according to the
20131 current configuration.
20132
20133 Usage: $0 [OPTIONS] [FILE]...
20134
20135   -h, --help       print this help, then exit
20136   -V, --version    print version number, then exit
20137   -q, --quiet      do not print progress messages
20138   -d, --debug      don't remove temporary files
20139       --recheck    update $as_me by reconfiguring in the same conditions
20140   --file=FILE[:TEMPLATE]
20141                    instantiate the configuration file FILE
20142   --header=FILE[:TEMPLATE]
20143                    instantiate the configuration header FILE
20144
20145 Configuration files:
20146 $config_files
20147
20148 Configuration headers:
20149 $config_headers
20150
20151 Configuration commands:
20152 $config_commands
20153
20154 Report bugs to <bug-autoconf@gnu.org>."
20155 _ACEOF
20156
20157 cat >>$CONFIG_STATUS <<_ACEOF
20158 ac_cs_version="\\
20159 Wine config.status 0.9.12
20160 configured by $0, generated by GNU Autoconf 2.59,
20161   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20162
20163 Copyright (C) 2003 Free Software Foundation, Inc.
20164 This config.status script is free software; the Free Software Foundation
20165 gives unlimited permission to copy, distribute and modify it."
20166 srcdir=$srcdir
20167 INSTALL="$INSTALL"
20168 _ACEOF
20169
20170 cat >>$CONFIG_STATUS <<\_ACEOF
20171 # If no file are specified by the user, then we need to provide default
20172 # value.  By we need to know if files were specified by the user.
20173 ac_need_defaults=:
20174 while test $# != 0
20175 do
20176   case $1 in
20177   --*=*)
20178     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20179     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20180     ac_shift=:
20181     ;;
20182   -*)
20183     ac_option=$1
20184     ac_optarg=$2
20185     ac_shift=shift
20186     ;;
20187   *) # This is not an option, so the user has probably given explicit
20188      # arguments.
20189      ac_option=$1
20190      ac_need_defaults=false;;
20191   esac
20192
20193   case $ac_option in
20194   # Handling of the options.
20195 _ACEOF
20196 cat >>$CONFIG_STATUS <<\_ACEOF
20197   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20198     ac_cs_recheck=: ;;
20199   --version | --vers* | -V )
20200     echo "$ac_cs_version"; exit 0 ;;
20201   --he | --h)
20202     # Conflict between --help and --header
20203     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20204 Try \`$0 --help' for more information." >&5
20205 echo "$as_me: error: ambiguous option: $1
20206 Try \`$0 --help' for more information." >&2;}
20207    { (exit 1); exit 1; }; };;
20208   --help | --hel | -h )
20209     echo "$ac_cs_usage"; exit 0 ;;
20210   --debug | --d* | -d )
20211     debug=: ;;
20212   --file | --fil | --fi | --f )
20213     $ac_shift
20214     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20215     ac_need_defaults=false;;
20216   --header | --heade | --head | --hea )
20217     $ac_shift
20218     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20219     ac_need_defaults=false;;
20220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20221   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20222     ac_cs_silent=: ;;
20223
20224   # This is an error.
20225   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20226 Try \`$0 --help' for more information." >&5
20227 echo "$as_me: error: unrecognized option: $1
20228 Try \`$0 --help' for more information." >&2;}
20229    { (exit 1); exit 1; }; } ;;
20230
20231   *) ac_config_targets="$ac_config_targets $1" ;;
20232
20233   esac
20234   shift
20235 done
20236
20237 ac_configure_extra_args=
20238
20239 if $ac_cs_silent; then
20240   exec 6>/dev/null
20241   ac_configure_extra_args="$ac_configure_extra_args --silent"
20242 fi
20243
20244 _ACEOF
20245 cat >>$CONFIG_STATUS <<_ACEOF
20246 if \$ac_cs_recheck; then
20247   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20248   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20249 fi
20250
20251 _ACEOF
20252
20253
20254
20255
20256
20257 cat >>$CONFIG_STATUS <<\_ACEOF
20258 for ac_config_target in $ac_config_targets
20259 do
20260   case "$ac_config_target" in
20261   # Handling of arguments.
20262   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20263   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20264   "dlls/Makeimplib.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
20265   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20266   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20267   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20268   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20269   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20270   "dlls/activeds/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
20271   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20272   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20273   "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20274   "dlls/advpack/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
20275   "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20276   "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20277   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20278   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20279   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20280   "dlls/cabinet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
20281   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20282   "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20283   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20284   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20285   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20286   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20287   "dlls/comdlg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
20288   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20289   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20290   "dlls/crypt32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
20291   "dlls/cryptdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
20292   "dlls/ctl3d32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
20293   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20294   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20295   "dlls/d3d9/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
20296   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20297   "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20298   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20299   "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20300   "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20301   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20302   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20303   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20304   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20305   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20306   "dlls/dinput/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
20307   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20308   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20309   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20310   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20311   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20312   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20313   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20314   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20315   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20316   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20317   "dlls/dnsapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
20318   "dlls/dnsapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
20319   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20320   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20321   "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20322   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20323   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20324   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20325   "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20326   "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20327   "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20328   "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20329   "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20330   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20331   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20332   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20333   "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20334   "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20335   "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20336   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20337   "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20338   "dlls/imaadp32.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
20339   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20340   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20341   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20342   "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20343   "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20344   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20345   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20346   "dlls/lz32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
20347   "dlls/lz32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
20348   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20349   "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20350   "dlls/mciavi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
20351   "dlls/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
20352   "dlls/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
20353   "dlls/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
20354   "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20355   "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20356   "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20357   "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20358   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20359   "dlls/msacm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
20360   "dlls/msacm32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
20361   "dlls/msadp32.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
20362   "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20363   "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20364   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20365   "dlls/msftedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
20366   "dlls/msg711.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
20367   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20368   "dlls/mshtml/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
20369   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20370   "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
20371   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20372   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20373   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20374   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20375   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20376   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20377   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20378   "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20379   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20380   "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20381   "dlls/msvfw32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
20382   "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20383   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20384   "dlls/msxml3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
20385   "dlls/msxml3/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
20386   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20387   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20388   "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20389   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20390   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20391   "dlls/objsel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
20392   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20393   "dlls/odbccp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
20394   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20395   "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20396   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20397   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20398   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20399   "dlls/olecli32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
20400   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20401   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20402   "dlls/olesvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
20403   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20404   "dlls/powrprof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
20405   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20406   "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20407   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20408   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20409   "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20410   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20411   "dlls/riched20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
20412   "dlls/riched20/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
20413   "dlls/riched32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
20414   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20415   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20416   "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20417   "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20418   "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20419   "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
20420   "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20421   "dlls/secur32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
20422   "dlls/security/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
20423   "dlls/sensapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
20424   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20425   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20426   "dlls/setupapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
20427   "dlls/sfc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
20428   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20429   "dlls/shdocvw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
20430   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20431   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20432   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20433   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20434   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20435   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20436   "dlls/spoolss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
20437   "dlls/stdole2.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
20438   "dlls/stdole32.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
20439   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20440   "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20441   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20442   "dlls/twain_32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
20443   "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20444   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20445   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20446   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20447   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20448   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20449   "dlls/usp10/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
20450   "dlls/usp10/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
20451   "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20452   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20453   "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20454   "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20455   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20456   "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20457   "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20458   "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20459   "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20460   "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20461   "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20462   "dlls/w32skrnl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
20463   "dlls/winecrt0/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
20464   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20465   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20466   "dlls/winemp3.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
20467   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20468   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20469   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20470   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20471   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20472   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20473   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20474   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20475   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20476   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20477   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20478   "dlls/winmm/wineesd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
20479   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20480   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20481   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20482   "dlls/winnls32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
20483   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20484   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20485   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20486   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20487   "dlls/wldap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
20488   "dlls/wnaspi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
20489   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20490   "dlls/ws2_32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
20491   "dlls/ws2_32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
20492   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20493   "dlls/wtsapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
20494   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20495   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20496   "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20497   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20498   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20499   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20500   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20501   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20502   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20503   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20504   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20505   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20506   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20507   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20508   "programs/eject/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
20509   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20510   "programs/explorer/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
20511   "programs/hh/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
20512   "programs/icinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
20513   "programs/iexplore/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
20514   "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20515   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20516   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20517   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20518   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20519   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20520   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20521   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20522   "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20523   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20524   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20525   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20526   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20527   "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20528   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20529   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20530   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20531   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20532   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20533   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20534   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20535   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20536   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20537   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20538   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20539   "programs/wordpad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
20540   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20541   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20542   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20543   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20544   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20545   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20546   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20547   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20548   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20549   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20550   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20551   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20552   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20553   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20554   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20555   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20556   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20557 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20558    { (exit 1); exit 1; }; };;
20559   esac
20560 done
20561
20562 # If the user did not use the arguments to specify the items to instantiate,
20563 # then the envvar interface is used.  Set only those that are not.
20564 # We use the long form for the default assignment because of an extremely
20565 # bizarre bug on SunOS 4.1.3.
20566 if $ac_need_defaults; then
20567   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20568   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20569   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20570 fi
20571
20572 # Have a temporary directory for convenience.  Make it in the build tree
20573 # simply because there is no reason to put it here, and in addition,
20574 # creating and moving files from /tmp can sometimes cause problems.
20575 # Create a temporary directory, and hook for its removal unless debugging.
20576 $debug ||
20577 {
20578   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20579   trap '{ (exit 1); exit 1; }' 1 2 13 15
20580 }
20581
20582 # Create a (secure) tmp directory for tmp files.
20583
20584 {
20585   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20586   test -n "$tmp" && test -d "$tmp"
20587 }  ||
20588 {
20589   tmp=./confstat$$-$RANDOM
20590   (umask 077 && mkdir $tmp)
20591 } ||
20592 {
20593    echo "$me: cannot create a temporary directory in ." >&2
20594    { (exit 1); exit 1; }
20595 }
20596
20597 _ACEOF
20598
20599 cat >>$CONFIG_STATUS <<_ACEOF
20600
20601 #
20602 # CONFIG_FILES section.
20603 #
20604
20605 # No need to generate the scripts if there are no CONFIG_FILES.
20606 # This happens for instance when ./config.status config.h
20607 if test -n "\$CONFIG_FILES"; then
20608   # Protect against being on the right side of a sed subst in config.status.
20609   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20610    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20611 s,@SHELL@,$SHELL,;t t
20612 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20613 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20614 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20615 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20616 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20617 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20618 s,@exec_prefix@,$exec_prefix,;t t
20619 s,@prefix@,$prefix,;t t
20620 s,@program_transform_name@,$program_transform_name,;t t
20621 s,@bindir@,$bindir,;t t
20622 s,@sbindir@,$sbindir,;t t
20623 s,@libexecdir@,$libexecdir,;t t
20624 s,@datadir@,$datadir,;t t
20625 s,@sysconfdir@,$sysconfdir,;t t
20626 s,@sharedstatedir@,$sharedstatedir,;t t
20627 s,@localstatedir@,$localstatedir,;t t
20628 s,@libdir@,$libdir,;t t
20629 s,@includedir@,$includedir,;t t
20630 s,@oldincludedir@,$oldincludedir,;t t
20631 s,@infodir@,$infodir,;t t
20632 s,@mandir@,$mandir,;t t
20633 s,@build_alias@,$build_alias,;t t
20634 s,@host_alias@,$host_alias,;t t
20635 s,@target_alias@,$target_alias,;t t
20636 s,@DEFS@,$DEFS,;t t
20637 s,@ECHO_C@,$ECHO_C,;t t
20638 s,@ECHO_N@,$ECHO_N,;t t
20639 s,@ECHO_T@,$ECHO_T,;t t
20640 s,@LIBS@,$LIBS,;t t
20641 s,@build@,$build,;t t
20642 s,@build_cpu@,$build_cpu,;t t
20643 s,@build_vendor@,$build_vendor,;t t
20644 s,@build_os@,$build_os,;t t
20645 s,@host@,$host,;t t
20646 s,@host_cpu@,$host_cpu,;t t
20647 s,@host_vendor@,$host_vendor,;t t
20648 s,@host_os@,$host_os,;t t
20649 s,@WIN16_FILES@,$WIN16_FILES,;t t
20650 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20651 s,@SET_MAKE@,$SET_MAKE,;t t
20652 s,@CC@,$CC,;t t
20653 s,@CFLAGS@,$CFLAGS,;t t
20654 s,@LDFLAGS@,$LDFLAGS,;t t
20655 s,@CPPFLAGS@,$CPPFLAGS,;t t
20656 s,@ac_ct_CC@,$ac_ct_CC,;t t
20657 s,@EXEEXT@,$EXEEXT,;t t
20658 s,@OBJEXT@,$OBJEXT,;t t
20659 s,@CXX@,$CXX,;t t
20660 s,@CXXFLAGS@,$CXXFLAGS,;t t
20661 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20662 s,@CPPBIN@,$CPPBIN,;t t
20663 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20664 s,@TOOLSDIR@,$TOOLSDIR,;t t
20665 s,@CPP@,$CPP,;t t
20666 s,@X_CFLAGS@,$X_CFLAGS,;t t
20667 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20668 s,@X_LIBS@,$X_LIBS,;t t
20669 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20670 s,@LEX@,$LEX,;t t
20671 s,@LEXLIB@,$LEXLIB,;t t
20672 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20673 s,@XLEX@,$XLEX,;t t
20674 s,@BISON@,$BISON,;t t
20675 s,@AS@,$AS,;t t
20676 s,@ac_ct_AS@,$ac_ct_AS,;t t
20677 s,@LD@,$LD,;t t
20678 s,@ac_ct_LD@,$ac_ct_LD,;t t
20679 s,@AR@,$AR,;t t
20680 s,@ac_ct_AR@,$ac_ct_AR,;t t
20681 s,@RANLIB@,$RANLIB,;t t
20682 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20683 s,@STRIP@,$STRIP,;t t
20684 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20685 s,@WINDRES@,$WINDRES,;t t
20686 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20687 s,@LN_S@,$LN_S,;t t
20688 s,@LN@,$LN,;t t
20689 s,@EGREP@,$EGREP,;t t
20690 s,@LDCONFIG@,$LDCONFIG,;t t
20691 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20692 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20693 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20694 s,@LINT@,$LINT,;t t
20695 s,@LINTFLAGS@,$LINTFLAGS,;t t
20696 s,@FONTFORGE@,$FONTFORGE,;t t
20697 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20698 s,@PRELINK@,$PRELINK,;t t
20699 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20700 s,@XLIB@,$XLIB,;t t
20701 s,@XFILES@,$XFILES,;t t
20702 s,@OPENGLFILES@,$OPENGLFILES,;t t
20703 s,@GLU32FILES@,$GLU32FILES,;t t
20704 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20705 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20706 s,@GLUT32FILES@,$GLUT32FILES,;t t
20707 s,@NASLIBS@,$NASLIBS,;t t
20708 s,@XML2LIBS@,$XML2LIBS,;t t
20709 s,@XML2INCL@,$XML2INCL,;t t
20710 s,@XSLTLIBS@,$XSLTLIBS,;t t
20711 s,@XSLTINCL@,$XSLTINCL,;t t
20712 s,@HALINCL@,$HALINCL,;t t
20713 s,@CURSESLIBS@,$CURSESLIBS,;t t
20714 s,@sane_devel@,$sane_devel,;t t
20715 s,@SANELIBS@,$SANELIBS,;t t
20716 s,@SANEINCL@,$SANEINCL,;t t
20717 s,@ICULIBS@,$ICULIBS,;t t
20718 s,@RESOLVLIBS@,$RESOLVLIBS,;t t
20719 s,@LCMSLIBS@,$LCMSLIBS,;t t
20720 s,@LDAPLIBS@,$LDAPLIBS,;t t
20721 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
20722 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20723 s,@ft_devel@,$ft_devel,;t t
20724 s,@ft_devel2@,$ft_devel2,;t t
20725 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
20726 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20727 s,@ARTSLIBS@,$ARTSLIBS,;t t
20728 s,@ARTSINCL@,$ARTSINCL,;t t
20729 s,@ESDCONFIG@,$ESDCONFIG,;t t
20730 s,@ESDLIBS@,$ESDLIBS,;t t
20731 s,@ESDINCL@,$ESDINCL,;t t
20732 s,@ALSALIBS@,$ALSALIBS,;t t
20733 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20734 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20735 s,@BUILTINFLAG@,$BUILTINFLAG,;t t
20736 s,@DLLEXT@,$DLLEXT,;t t
20737 s,@DLLFLAGS@,$DLLFLAGS,;t t
20738 s,@DLLIBS@,$DLLIBS,;t t
20739 s,@LDSHARED@,$LDSHARED,;t t
20740 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20741 s,@LIBEXT@,$LIBEXT,;t t
20742 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20743 s,@DLLTOOL@,$DLLTOOL,;t t
20744 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20745 s,@DLLWRAP@,$DLLWRAP,;t t
20746 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20747 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20748 s,@LDEXERPATH@,$LDEXERPATH,;t t
20749 s,@LDDLLRPATH@,$LDDLLRPATH,;t t
20750 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
20751 s,@IOKITLIB@,$IOKITLIB,;t t
20752 s,@CROSSTEST@,$CROSSTEST,;t t
20753 s,@CROSSCC@,$CROSSCC,;t t
20754 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20755 s,@LDPATH@,$LDPATH,;t t
20756 s,@CRTLIBS@,$CRTLIBS,;t t
20757 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
20758 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20759 s,@EXTRA_BINARIES@,$EXTRA_BINARIES,;t t
20760 s,@LDD@,$LDD,;t t
20761 s,@LIBOBJS@,$LIBOBJS,;t t
20762 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20763 /@MAKE_RULES@/r $MAKE_RULES
20764 s,@MAKE_RULES@,,;t t
20765 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20766 s,@MAKE_DLL_RULES@,,;t t
20767 /@MAKE_IMPLIB_RULES@/r $MAKE_IMPLIB_RULES
20768 s,@MAKE_IMPLIB_RULES@,,;t t
20769 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20770 s,@MAKE_TEST_RULES@,,;t t
20771 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20772 s,@MAKE_LIB_RULES@,,;t t
20773 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20774 s,@MAKE_PROG_RULES@,,;t t
20775 CEOF
20776
20777 _ACEOF
20778
20779   cat >>$CONFIG_STATUS <<\_ACEOF
20780   # Split the substitutions into bite-sized pieces for seds with
20781   # small command number limits, like on Digital OSF/1 and HP-UX.
20782   ac_max_sed_lines=48
20783   ac_sed_frag=1 # Number of current file.
20784   ac_beg=1 # First line for current file.
20785   ac_end=$ac_max_sed_lines # Line after last line for current file.
20786   ac_more_lines=:
20787   ac_sed_cmds=
20788   while $ac_more_lines; do
20789     if test $ac_beg -gt 1; then
20790       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20791     else
20792       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20793     fi
20794     if test ! -s $tmp/subs.frag; then
20795       ac_more_lines=false
20796     else
20797       # The purpose of the label and of the branching condition is to
20798       # speed up the sed processing (if there are no `@' at all, there
20799       # is no need to browse any of the substitutions).
20800       # These are the two extra sed commands mentioned above.
20801       (echo ':t
20802   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20803       if test -z "$ac_sed_cmds"; then
20804         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20805       else
20806         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20807       fi
20808       ac_sed_frag=`expr $ac_sed_frag + 1`
20809       ac_beg=$ac_end
20810       ac_end=`expr $ac_end + $ac_max_sed_lines`
20811     fi
20812   done
20813   if test -z "$ac_sed_cmds"; then
20814     ac_sed_cmds=cat
20815   fi
20816 fi # test -n "$CONFIG_FILES"
20817
20818 _ACEOF
20819 cat >>$CONFIG_STATUS <<\_ACEOF
20820 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20821   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20822   case $ac_file in
20823   - | *:- | *:-:* ) # input from stdin
20824         cat >$tmp/stdin
20825         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20826         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20827   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20828         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20829   * )   ac_file_in=$ac_file.in ;;
20830   esac
20831
20832   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20833   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20835          X"$ac_file" : 'X\(//\)[^/]' \| \
20836          X"$ac_file" : 'X\(//\)$' \| \
20837          X"$ac_file" : 'X\(/\)' \| \
20838          .     : '\(.\)' 2>/dev/null ||
20839 echo X"$ac_file" |
20840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20841           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20842           /^X\(\/\/\)$/{ s//\1/; q; }
20843           /^X\(\/\).*/{ s//\1/; q; }
20844           s/.*/./; q'`
20845   { if $as_mkdir_p; then
20846     mkdir -p "$ac_dir"
20847   else
20848     as_dir="$ac_dir"
20849     as_dirs=
20850     while test ! -d "$as_dir"; do
20851       as_dirs="$as_dir $as_dirs"
20852       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20854          X"$as_dir" : 'X\(//\)[^/]' \| \
20855          X"$as_dir" : 'X\(//\)$' \| \
20856          X"$as_dir" : 'X\(/\)' \| \
20857          .     : '\(.\)' 2>/dev/null ||
20858 echo X"$as_dir" |
20859     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20860           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20861           /^X\(\/\/\)$/{ s//\1/; q; }
20862           /^X\(\/\).*/{ s//\1/; q; }
20863           s/.*/./; q'`
20864     done
20865     test ! -n "$as_dirs" || mkdir $as_dirs
20866   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20867 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20868    { (exit 1); exit 1; }; }; }
20869
20870   ac_builddir=.
20871
20872 if test "$ac_dir" != .; then
20873   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20874   # A "../" for each directory in $ac_dir_suffix.
20875   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20876 else
20877   ac_dir_suffix= ac_top_builddir=
20878 fi
20879
20880 case $srcdir in
20881   .)  # No --srcdir option.  We are building in place.
20882     ac_srcdir=.
20883     if test -z "$ac_top_builddir"; then
20884        ac_top_srcdir=.
20885     else
20886        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20887     fi ;;
20888   [\\/]* | ?:[\\/]* )  # Absolute path.
20889     ac_srcdir=$srcdir$ac_dir_suffix;
20890     ac_top_srcdir=$srcdir ;;
20891   *) # Relative path.
20892     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20893     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20894 esac
20895
20896 # Do not use `cd foo && pwd` to compute absolute paths, because
20897 # the directories may not exist.
20898 case `pwd` in
20899 .) ac_abs_builddir="$ac_dir";;
20900 *)
20901   case "$ac_dir" in
20902   .) ac_abs_builddir=`pwd`;;
20903   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20904   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20905   esac;;
20906 esac
20907 case $ac_abs_builddir in
20908 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20909 *)
20910   case ${ac_top_builddir}. in
20911   .) ac_abs_top_builddir=$ac_abs_builddir;;
20912   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20913   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20914   esac;;
20915 esac
20916 case $ac_abs_builddir in
20917 .) ac_abs_srcdir=$ac_srcdir;;
20918 *)
20919   case $ac_srcdir in
20920   .) ac_abs_srcdir=$ac_abs_builddir;;
20921   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20922   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20923   esac;;
20924 esac
20925 case $ac_abs_builddir in
20926 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20927 *)
20928   case $ac_top_srcdir in
20929   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20930   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20931   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20932   esac;;
20933 esac
20934
20935
20936   case $INSTALL in
20937   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20938   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20939   esac
20940
20941   # Let's still pretend it is `configure' which instantiates (i.e., don't
20942   # use $as_me), people would be surprised to read:
20943   #    /* config.h.  Generated by config.status.  */
20944   if test x"$ac_file" = x-; then
20945     configure_input=
20946   else
20947     configure_input="$ac_file.  "
20948   fi
20949   configure_input=$configure_input"Generated from `echo $ac_file_in |
20950                                      sed 's,.*/,,'` by configure."
20951
20952   # First look for the input files in the build tree, otherwise in the
20953   # src tree.
20954   ac_file_inputs=`IFS=:
20955     for f in $ac_file_in; do
20956       case $f in
20957       -) echo $tmp/stdin ;;
20958       [\\/$]*)
20959          # Absolute (can't be DOS-style, as IFS=:)
20960          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20961 echo "$as_me: error: cannot find input file: $f" >&2;}
20962    { (exit 1); exit 1; }; }
20963          echo "$f";;
20964       *) # Relative
20965          if test -f "$f"; then
20966            # Build tree
20967            echo "$f"
20968          elif test -f "$srcdir/$f"; then
20969            # Source tree
20970            echo "$srcdir/$f"
20971          else
20972            # /dev/null tree
20973            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20974 echo "$as_me: error: cannot find input file: $f" >&2;}
20975    { (exit 1); exit 1; }; }
20976          fi;;
20977       esac
20978     done` || { (exit 1); exit 1; }
20979
20980   if test x"$ac_file" != x-; then
20981     { echo "$as_me:$LINENO: creating $ac_file" >&5
20982 echo "$as_me: creating $ac_file" >&6;}
20983     rm -f "$ac_file"
20984   fi
20985 _ACEOF
20986 cat >>$CONFIG_STATUS <<_ACEOF
20987   sed "$ac_vpsub
20988 $extrasub
20989 _ACEOF
20990 cat >>$CONFIG_STATUS <<\_ACEOF
20991 :t
20992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20993 s,@configure_input@,$configure_input,;t t
20994 s,@srcdir@,$ac_srcdir,;t t
20995 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20996 s,@top_srcdir@,$ac_top_srcdir,;t t
20997 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20998 s,@builddir@,$ac_builddir,;t t
20999 s,@abs_builddir@,$ac_abs_builddir,;t t
21000 s,@top_builddir@,$ac_top_builddir,;t t
21001 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21002 s,@INSTALL@,$ac_INSTALL,;t t
21003 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21004   rm -f $tmp/stdin
21005   if test x"$ac_file" != x-; then
21006     mv $tmp/out $ac_file
21007   else
21008     cat $tmp/out
21009     rm -f $tmp/out
21010   fi
21011
21012 done
21013 _ACEOF
21014 cat >>$CONFIG_STATUS <<\_ACEOF
21015
21016 #
21017 # CONFIG_HEADER section.
21018 #
21019
21020 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21021 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21022 #
21023 # ac_d sets the value in "#define NAME VALUE" lines.
21024 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21025 ac_dB='[         ].*$,\1#\2'
21026 ac_dC=' '
21027 ac_dD=',;t'
21028 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21029 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21030 ac_uB='$,\1#\2define\3'
21031 ac_uC=' '
21032 ac_uD=',;t'
21033
21034 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21035   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21036   case $ac_file in
21037   - | *:- | *:-:* ) # input from stdin
21038         cat >$tmp/stdin
21039         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21040         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21041   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21042         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21043   * )   ac_file_in=$ac_file.in ;;
21044   esac
21045
21046   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21047 echo "$as_me: creating $ac_file" >&6;}
21048
21049   # First look for the input files in the build tree, otherwise in the
21050   # src tree.
21051   ac_file_inputs=`IFS=:
21052     for f in $ac_file_in; do
21053       case $f in
21054       -) echo $tmp/stdin ;;
21055       [\\/$]*)
21056          # Absolute (can't be DOS-style, as IFS=:)
21057          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21058 echo "$as_me: error: cannot find input file: $f" >&2;}
21059    { (exit 1); exit 1; }; }
21060          # Do quote $f, to prevent DOS paths from being IFS'd.
21061          echo "$f";;
21062       *) # Relative
21063          if test -f "$f"; then
21064            # Build tree
21065            echo "$f"
21066          elif test -f "$srcdir/$f"; then
21067            # Source tree
21068            echo "$srcdir/$f"
21069          else
21070            # /dev/null tree
21071            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21072 echo "$as_me: error: cannot find input file: $f" >&2;}
21073    { (exit 1); exit 1; }; }
21074          fi;;
21075       esac
21076     done` || { (exit 1); exit 1; }
21077   # Remove the trailing spaces.
21078   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21079
21080 _ACEOF
21081
21082 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21083 # `conftest.undefs', that substitutes the proper values into
21084 # config.h.in to produce config.h.  The first handles `#define'
21085 # templates, and the second `#undef' templates.
21086 # And first: Protect against being on the right side of a sed subst in
21087 # config.status.  Protect against being in an unquoted here document
21088 # in config.status.
21089 rm -f conftest.defines conftest.undefs
21090 # Using a here document instead of a string reduces the quoting nightmare.
21091 # Putting comments in sed scripts is not portable.
21092 #
21093 # `end' is used to avoid that the second main sed command (meant for
21094 # 0-ary CPP macros) applies to n-ary macro definitions.
21095 # See the Autoconf documentation for `clear'.
21096 cat >confdef2sed.sed <<\_ACEOF
21097 s/[\\&,]/\\&/g
21098 s,[\\$`],\\&,g
21099 t clear
21100 : clear
21101 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21102 t end
21103 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21104 : end
21105 _ACEOF
21106 # If some macros were called several times there might be several times
21107 # the same #defines, which is useless.  Nevertheless, we may not want to
21108 # sort them, since we want the *last* AC-DEFINE to be honored.
21109 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21110 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21111 rm -f confdef2sed.sed
21112
21113 # This sed command replaces #undef with comments.  This is necessary, for
21114 # example, in the case of _POSIX_SOURCE, which is predefined and required
21115 # on some systems where configure will not decide to define it.
21116 cat >>conftest.undefs <<\_ACEOF
21117 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21118 _ACEOF
21119
21120 # Break up conftest.defines because some shells have a limit on the size
21121 # of here documents, and old seds have small limits too (100 cmds).
21122 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21123 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21124 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21125 echo '  :' >>$CONFIG_STATUS
21126 rm -f conftest.tail
21127 while grep . conftest.defines >/dev/null
21128 do
21129   # Write a limited-size here document to $tmp/defines.sed.
21130   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21131   # Speed up: don't consider the non `#define' lines.
21132   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21133   # Work around the forget-to-reset-the-flag bug.
21134   echo 't clr' >>$CONFIG_STATUS
21135   echo ': clr' >>$CONFIG_STATUS
21136   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21137   echo 'CEOF
21138   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21139   rm -f $tmp/in
21140   mv $tmp/out $tmp/in
21141 ' >>$CONFIG_STATUS
21142   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21143   rm -f conftest.defines
21144   mv conftest.tail conftest.defines
21145 done
21146 rm -f conftest.defines
21147 echo '  fi # grep' >>$CONFIG_STATUS
21148 echo >>$CONFIG_STATUS
21149
21150 # Break up conftest.undefs because some shells have a limit on the size
21151 # of here documents, and old seds have small limits too (100 cmds).
21152 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21153 rm -f conftest.tail
21154 while grep . conftest.undefs >/dev/null
21155 do
21156   # Write a limited-size here document to $tmp/undefs.sed.
21157   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21158   # Speed up: don't consider the non `#undef'
21159   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21160   # Work around the forget-to-reset-the-flag bug.
21161   echo 't clr' >>$CONFIG_STATUS
21162   echo ': clr' >>$CONFIG_STATUS
21163   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21164   echo 'CEOF
21165   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21166   rm -f $tmp/in
21167   mv $tmp/out $tmp/in
21168 ' >>$CONFIG_STATUS
21169   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21170   rm -f conftest.undefs
21171   mv conftest.tail conftest.undefs
21172 done
21173 rm -f conftest.undefs
21174
21175 cat >>$CONFIG_STATUS <<\_ACEOF
21176   # Let's still pretend it is `configure' which instantiates (i.e., don't
21177   # use $as_me), people would be surprised to read:
21178   #    /* config.h.  Generated by config.status.  */
21179   if test x"$ac_file" = x-; then
21180     echo "/* Generated by configure.  */" >$tmp/config.h
21181   else
21182     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21183   fi
21184   cat $tmp/in >>$tmp/config.h
21185   rm -f $tmp/in
21186   if test x"$ac_file" != x-; then
21187     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21188       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21189 echo "$as_me: $ac_file is unchanged" >&6;}
21190     else
21191       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21192 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21193          X"$ac_file" : 'X\(//\)[^/]' \| \
21194          X"$ac_file" : 'X\(//\)$' \| \
21195          X"$ac_file" : 'X\(/\)' \| \
21196          .     : '\(.\)' 2>/dev/null ||
21197 echo X"$ac_file" |
21198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21199           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21200           /^X\(\/\/\)$/{ s//\1/; q; }
21201           /^X\(\/\).*/{ s//\1/; q; }
21202           s/.*/./; q'`
21203       { if $as_mkdir_p; then
21204     mkdir -p "$ac_dir"
21205   else
21206     as_dir="$ac_dir"
21207     as_dirs=
21208     while test ! -d "$as_dir"; do
21209       as_dirs="$as_dir $as_dirs"
21210       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21212          X"$as_dir" : 'X\(//\)[^/]' \| \
21213          X"$as_dir" : 'X\(//\)$' \| \
21214          X"$as_dir" : 'X\(/\)' \| \
21215          .     : '\(.\)' 2>/dev/null ||
21216 echo X"$as_dir" |
21217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21218           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21219           /^X\(\/\/\)$/{ s//\1/; q; }
21220           /^X\(\/\).*/{ s//\1/; q; }
21221           s/.*/./; q'`
21222     done
21223     test ! -n "$as_dirs" || mkdir $as_dirs
21224   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21225 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21226    { (exit 1); exit 1; }; }; }
21227
21228       rm -f $ac_file
21229       mv $tmp/config.h $ac_file
21230     fi
21231   else
21232     cat $tmp/config.h
21233     rm -f $tmp/config.h
21234   fi
21235 done
21236 _ACEOF
21237 cat >>$CONFIG_STATUS <<\_ACEOF
21238
21239 #
21240 # CONFIG_COMMANDS section.
21241 #
21242 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21243   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21244   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21245   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21246 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21247          X"$ac_dest" : 'X\(//\)[^/]' \| \
21248          X"$ac_dest" : 'X\(//\)$' \| \
21249          X"$ac_dest" : 'X\(/\)' \| \
21250          .     : '\(.\)' 2>/dev/null ||
21251 echo X"$ac_dest" |
21252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21253           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21254           /^X\(\/\/\)$/{ s//\1/; q; }
21255           /^X\(\/\).*/{ s//\1/; q; }
21256           s/.*/./; q'`
21257   { if $as_mkdir_p; then
21258     mkdir -p "$ac_dir"
21259   else
21260     as_dir="$ac_dir"
21261     as_dirs=
21262     while test ! -d "$as_dir"; do
21263       as_dirs="$as_dir $as_dirs"
21264       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21266          X"$as_dir" : 'X\(//\)[^/]' \| \
21267          X"$as_dir" : 'X\(//\)$' \| \
21268          X"$as_dir" : 'X\(/\)' \| \
21269          .     : '\(.\)' 2>/dev/null ||
21270 echo X"$as_dir" |
21271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21272           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21273           /^X\(\/\/\)$/{ s//\1/; q; }
21274           /^X\(\/\).*/{ s//\1/; q; }
21275           s/.*/./; q'`
21276     done
21277     test ! -n "$as_dirs" || mkdir $as_dirs
21278   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21279 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21280    { (exit 1); exit 1; }; }; }
21281
21282   ac_builddir=.
21283
21284 if test "$ac_dir" != .; then
21285   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21286   # A "../" for each directory in $ac_dir_suffix.
21287   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21288 else
21289   ac_dir_suffix= ac_top_builddir=
21290 fi
21291
21292 case $srcdir in
21293   .)  # No --srcdir option.  We are building in place.
21294     ac_srcdir=.
21295     if test -z "$ac_top_builddir"; then
21296        ac_top_srcdir=.
21297     else
21298        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21299     fi ;;
21300   [\\/]* | ?:[\\/]* )  # Absolute path.
21301     ac_srcdir=$srcdir$ac_dir_suffix;
21302     ac_top_srcdir=$srcdir ;;
21303   *) # Relative path.
21304     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21305     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21306 esac
21307
21308 # Do not use `cd foo && pwd` to compute absolute paths, because
21309 # the directories may not exist.
21310 case `pwd` in
21311 .) ac_abs_builddir="$ac_dir";;
21312 *)
21313   case "$ac_dir" in
21314   .) ac_abs_builddir=`pwd`;;
21315   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21316   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21317   esac;;
21318 esac
21319 case $ac_abs_builddir in
21320 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21321 *)
21322   case ${ac_top_builddir}. in
21323   .) ac_abs_top_builddir=$ac_abs_builddir;;
21324   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21325   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21326   esac;;
21327 esac
21328 case $ac_abs_builddir in
21329 .) ac_abs_srcdir=$ac_srcdir;;
21330 *)
21331   case $ac_srcdir in
21332   .) ac_abs_srcdir=$ac_abs_builddir;;
21333   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21334   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21335   esac;;
21336 esac
21337 case $ac_abs_builddir in
21338 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21339 *)
21340   case $ac_top_srcdir in
21341   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21342   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21343   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21344   esac;;
21345 esac
21346
21347
21348   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21349 echo "$as_me: executing $ac_dest commands" >&6;}
21350   case $ac_dest in
21351     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21352 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21353     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21354 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21355     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21356 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21357     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21358 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21359     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21360 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21361     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21362 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21363   esac
21364 done
21365 _ACEOF
21366
21367 cat >>$CONFIG_STATUS <<\_ACEOF
21368
21369 { (exit 0); exit 0; }
21370 _ACEOF
21371 chmod +x $CONFIG_STATUS
21372 ac_clean_files=$ac_clean_files_save
21373
21374
21375 # configure is writing to config.log, and then calls config.status.
21376 # config.status does its own redirection, appending to config.log.
21377 # Unfortunately, on DOS this fails, as config.log is still kept open
21378 # by configure, so config.status won't be able to write to it; its
21379 # output is simply discarded.  So we exec the FD to /dev/null,
21380 # effectively closing config.log, so it can be properly (re)opened and
21381 # appended to by config.status.  When coming back to configure, we
21382 # need to make the FD available again.
21383 if test "$no_create" != yes; then
21384   ac_cs_success=:
21385   ac_config_status_args=
21386   test "$silent" = yes &&
21387     ac_config_status_args="$ac_config_status_args --quiet"
21388   exec 5>/dev/null
21389   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21390   exec 5>>config.log
21391   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21392   # would make configure fail if this is the last instruction.
21393   $ac_cs_success || { (exit 1); exit 1; }
21394 fi
21395
21396
21397 exitcode=0
21398 if test "$have_x" = "no"
21399 then
21400   echo
21401   echo "*** Warning: X development files not found. Wine will be built without"
21402   echo "*** X support, which currently does not work, and would probably not be"
21403   echo "*** what you want anyway. You will need to install devel packages of"
21404   echo "*** Xlib/Xfree86 at the very least."
21405   exitcode=1
21406 fi
21407
21408 if test "$wine_cv_opengl_version_OK" = "no"
21409 then
21410   echo
21411   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21412   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21413   exitcode=1
21414 fi
21415
21416 if test "$wine_cv_msg_freetype" = "yes"
21417 then
21418   echo
21419   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21420   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21421   echo "*** freetype-devel package (or its equivalent on your distribution) to"
21422   echo "*** enable Wine to use TrueType fonts."
21423   exitcode=1
21424 fi
21425
21426 if test "$wine_cv_msg_fonts" = "yes"
21427 then
21428   echo
21429   echo "*** Warning: Freetype or Fontforge is missing."
21430   echo "*** Fonts will not be built. Dialog text may be invisible or unaligned."
21431   exitcode=1
21432 fi
21433
21434 if test -z "$ALSALIBS" -a \
21435         -z "$ARTSC_LIBS" -a \
21436         -z "$AUDIOIOLIBS" -a \
21437         -z "$NASLIBS" -a \
21438         -z "$ESD_LIBS" -a \
21439         -z "$ac_cv_lib_soname_jack" -a \
21440         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
21441         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
21442         "$ac_cv_header_soundcard_h" != "yes"
21443 then
21444   echo "*** No sound system was found. Windows applications will be silent."
21445   echo "*** The currently supported sound systems are:"
21446   echo "*** ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS"
21447   exitcode=1
21448 fi
21449
21450 echo
21451 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
21452 echo
21453
21454 exit $exitcode
21455