Turn off gcc 4.0's builtin wchar inlines.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20050725.
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='20050725'
273 PACKAGE_STRING='Wine 20050725'
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 DLLDEFS 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 CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS 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 LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
783
784 #
785 # Report the --help message.
786 #
787 if test "$ac_init_help" = "long"; then
788   # Omit some internal or obsolete options to make the list less imposing.
789   # This message is too long to be a string in the A/UX 3.1 sh.
790   cat <<_ACEOF
791 \`configure' configures Wine 20050725 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 20050725:";;
857    esac
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --disable-win16         do not include Win16 support
864   --disable-debug         compile out all debugging messages
865   --disable-trace         compile out TRACE messages
866   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
867                           binaries)
868
869 Optional Packages:
870   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
871   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
872   --without-opengl        do not use OpenGL
873   --without-curses        do not use curses
874   --with-wine-tools=<dir> use Wine tools from directory <dir>
875   --with-x                use the X Window System
876
877 Some influential environment variables:
878   CC          C compiler command
879   CFLAGS      C compiler flags
880   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
881               nonstandard directory <lib dir>
882   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
883               headers in a nonstandard directory <include dir>
884   CXX         C++ compiler command
885   CXXFLAGS    C++ compiler flags
886   CPP         C preprocessor
887
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
890
891 Report bugs to <wine-devel@winehq.org>.
892 _ACEOF
893 fi
894
895 if test "$ac_init_help" = "recursive"; then
896   # If there are subdirs, report their specific --help.
897   ac_popdir=`pwd`
898   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899     test -d $ac_dir || continue
900     ac_builddir=.
901
902 if test "$ac_dir" != .; then
903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904   # A "../" for each directory in $ac_dir_suffix.
905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907   ac_dir_suffix= ac_top_builddir=
908 fi
909
910 case $srcdir in
911   .)  # No --srcdir option.  We are building in place.
912     ac_srcdir=.
913     if test -z "$ac_top_builddir"; then
914        ac_top_srcdir=.
915     else
916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917     fi ;;
918   [\\/]* | ?:[\\/]* )  # Absolute path.
919     ac_srcdir=$srcdir$ac_dir_suffix;
920     ac_top_srcdir=$srcdir ;;
921   *) # Relative path.
922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
925
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
930 *)
931   case "$ac_dir" in
932   .) ac_abs_builddir=`pwd`;;
933   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934   *) ac_abs_builddir=`pwd`/"$ac_dir";;
935   esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *)
940   case ${ac_top_builddir}. in
941   .) ac_abs_top_builddir=$ac_abs_builddir;;
942   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944   esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
948 *)
949   case $ac_srcdir in
950   .) ac_abs_srcdir=$ac_abs_builddir;;
951   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953   esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *)
958   case $ac_top_srcdir in
959   .) ac_abs_top_srcdir=$ac_abs_builddir;;
960   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962   esac;;
963 esac
964
965     cd $ac_dir
966     # Check for guested configure; otherwise get Cygnus style configure.
967     if test -f $ac_srcdir/configure.gnu; then
968       echo
969       $SHELL $ac_srcdir/configure.gnu  --help=recursive
970     elif test -f $ac_srcdir/configure; then
971       echo
972       $SHELL $ac_srcdir/configure  --help=recursive
973     elif test -f $ac_srcdir/configure.ac ||
974            test -f $ac_srcdir/configure.in; then
975       echo
976       $ac_configure --help
977     else
978       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979     fi
980     cd "$ac_popdir"
981   done
982 fi
983
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986   cat <<\_ACEOF
987 Wine configure 20050725
988 generated by GNU Autoconf 2.59
989
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by Wine $as_me 20050725, which was
1002 generated by GNU Autoconf 2.59.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338           ac_config_headers="$ac_config_headers include/config.h"
1339
1340 ac_aux_dir=
1341 for ac_dir in tools $srcdir/tools; do
1342   if test -f $ac_dir/install-sh; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/install-sh -c"
1345     break
1346   elif test -f $ac_dir/install.sh; then
1347     ac_aux_dir=$ac_dir
1348     ac_install_sh="$ac_aux_dir/install.sh -c"
1349     break
1350   elif test -f $ac_dir/shtool; then
1351     ac_aux_dir=$ac_dir
1352     ac_install_sh="$ac_aux_dir/shtool install -c"
1353     break
1354   fi
1355 done
1356 if test -z "$ac_aux_dir"; then
1357   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1359    { (exit 1); exit 1; }; }
1360 fi
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1364
1365
1366
1367 # Check whether --enable-win16 or --disable-win16 was given.
1368 if test "${enable_win16+set}" = set; then
1369   enableval="$enable_win16"
1370
1371 fi;
1372 # Check whether --enable-debug or --disable-debug was given.
1373 if test "${enable_debug+set}" = set; then
1374   enableval="$enable_debug"
1375
1376 fi;
1377 # Check whether --enable-trace or --disable-trace was given.
1378 if test "${enable_trace+set}" = set; then
1379   enableval="$enable_trace"
1380
1381 fi;
1382 # Check whether --enable-win64 or --disable-win64 was given.
1383 if test "${enable_win64+set}" = set; then
1384   enableval="$enable_win64"
1385
1386 fi;
1387
1388
1389 # Check whether --with-opengl or --without-opengl was given.
1390 if test "${with_opengl+set}" = set; then
1391   withval="$with_opengl"
1392
1393 fi;
1394
1395 # Check whether --with-curses or --without-curses was given.
1396 if test "${with_curses+set}" = set; then
1397   withval="$with_curses"
1398
1399 fi;
1400
1401 # Check whether --with-wine-tools or --without-wine-tools was given.
1402 if test "${with_wine_tools+set}" = set; then
1403   withval="$with_wine_tools"
1404
1405 fi;
1406
1407 DLLDEFS=""
1408
1409 if test "x$enable_debug" = "xno"
1410 then
1411   DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
1412 fi
1413 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1414 then
1415   DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
1416 fi
1417
1418 # Make sure we can run config.sub.
1419 $ac_config_sub sun4 >/dev/null 2>&1 ||
1420   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1421 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1422    { (exit 1); exit 1; }; }
1423
1424 echo "$as_me:$LINENO: checking build system type" >&5
1425 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1426 if test "${ac_cv_build+set}" = set; then
1427   echo $ECHO_N "(cached) $ECHO_C" >&6
1428 else
1429   ac_cv_build_alias=$build_alias
1430 test -z "$ac_cv_build_alias" &&
1431   ac_cv_build_alias=`$ac_config_guess`
1432 test -z "$ac_cv_build_alias" &&
1433   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1434 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1435    { (exit 1); exit 1; }; }
1436 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1437   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1443 echo "${ECHO_T}$ac_cv_build" >&6
1444 build=$ac_cv_build
1445 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450 echo "$as_me:$LINENO: checking host system type" >&5
1451 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1452 if test "${ac_cv_host+set}" = set; then
1453   echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455   ac_cv_host_alias=$host_alias
1456 test -z "$ac_cv_host_alias" &&
1457   ac_cv_host_alias=$ac_cv_build_alias
1458 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1459   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1461    { (exit 1); exit 1; }; }
1462
1463 fi
1464 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1465 echo "${ECHO_T}$ac_cv_host" >&6
1466 host=$ac_cv_host
1467 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472 case $host in
1473   x86_64*linux*)
1474     if test "x$enable_win64" != "xyes"
1475     then
1476       test -n "$CC" || CC="gcc -m32"
1477       test -n "$LD" || LD="ld -m elf_i386"
1478       test -n "$AS" || AS="as --32"
1479       host_cpu="i386"
1480     fi
1481     ;;
1482 esac
1483
1484 case $host_cpu in
1485   *i[3456789]86*)
1486     if test "x$enable_win16" != "xno"
1487     then
1488       enable_win16="yes"
1489     fi
1490     ;;
1491 esac
1492
1493 WIN16_FILES="\$(WIN16_FILES)"
1494
1495 WIN16_INSTALL="\$(WIN16_INSTALL)"
1496
1497 if test "x$enable_win16" != "xyes"
1498 then
1499   WIN16_FILES=""
1500   WIN16_INSTALL=""
1501 fi
1502
1503
1504 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1505 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1506 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1507 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1508   echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510   cat >conftest.make <<\_ACEOF
1511 all:
1512         @echo 'ac_maketemp="$(MAKE)"'
1513 _ACEOF
1514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1515 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1516 if test -n "$ac_maketemp"; then
1517   eval ac_cv_prog_make_${ac_make}_set=yes
1518 else
1519   eval ac_cv_prog_make_${ac_make}_set=no
1520 fi
1521 rm -f conftest.make
1522 fi
1523 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1524   echo "$as_me:$LINENO: result: yes" >&5
1525 echo "${ECHO_T}yes" >&6
1526   SET_MAKE=
1527 else
1528   echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1530   SET_MAKE="MAKE=${MAKE-make}"
1531 fi
1532
1533 ac_ext=c
1534 ac_cpp='$CPP $CPPFLAGS'
1535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538 if test -n "$ac_tool_prefix"; then
1539   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_CC+set}" = set; then
1544   echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546   if test -n "$CC"; then
1547   ac_cv_prog_CC="$CC" # Let the user override the test.
1548 else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552   IFS=$as_save_IFS
1553   test -z "$as_dir" && as_dir=.
1554   for ac_exec_ext in '' $ac_executable_extensions; do
1555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558     break 2
1559   fi
1560 done
1561 done
1562
1563 fi
1564 fi
1565 CC=$ac_cv_prog_CC
1566 if test -n "$CC"; then
1567   echo "$as_me:$LINENO: result: $CC" >&5
1568 echo "${ECHO_T}$CC" >&6
1569 else
1570   echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574 fi
1575 if test -z "$ac_cv_prog_CC"; then
1576   ac_ct_CC=$CC
1577   # Extract the first word of "gcc", so it can be a program name with args.
1578 set dummy gcc; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   if test -n "$ac_ct_CC"; then
1585   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586 else
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
1590   IFS=$as_save_IFS
1591   test -z "$as_dir" && as_dir=.
1592   for ac_exec_ext in '' $ac_executable_extensions; do
1593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594     ac_cv_prog_ac_ct_CC="gcc"
1595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596     break 2
1597   fi
1598 done
1599 done
1600
1601 fi
1602 fi
1603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604 if test -n "$ac_ct_CC"; then
1605   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1606 echo "${ECHO_T}$ac_ct_CC" >&6
1607 else
1608   echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1610 fi
1611
1612   CC=$ac_ct_CC
1613 else
1614   CC="$ac_cv_prog_CC"
1615 fi
1616
1617 if test -z "$CC"; then
1618   if test -n "$ac_tool_prefix"; then
1619   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1620 set dummy ${ac_tool_prefix}cc; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   if test -n "$CC"; then
1627   ac_cv_prog_CC="$CC" # Let the user override the test.
1628 else
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   for ac_exec_ext in '' $ac_executable_extensions; do
1635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636     ac_cv_prog_CC="${ac_tool_prefix}cc"
1637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638     break 2
1639   fi
1640 done
1641 done
1642
1643 fi
1644 fi
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647   echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650   echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1652 fi
1653
1654 fi
1655 if test -z "$ac_cv_prog_CC"; then
1656   ac_ct_CC=$CC
1657   # Extract the first word of "cc", so it can be a program name with args.
1658 set dummy cc; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   if test -n "$ac_ct_CC"; then
1665   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1669 do
1670   IFS=$as_save_IFS
1671   test -z "$as_dir" && as_dir=.
1672   for ac_exec_ext in '' $ac_executable_extensions; do
1673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674     ac_cv_prog_ac_ct_CC="cc"
1675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676     break 2
1677   fi
1678 done
1679 done
1680
1681 fi
1682 fi
1683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1687 else
1688   echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1690 fi
1691
1692   CC=$ac_ct_CC
1693 else
1694   CC="$ac_cv_prog_CC"
1695 fi
1696
1697 fi
1698 if test -z "$CC"; then
1699   # Extract the first word of "cc", so it can be a program name with args.
1700 set dummy cc; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_CC+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   if test -n "$CC"; then
1707   ac_cv_prog_CC="$CC" # Let the user override the test.
1708 else
1709   ac_prog_rejected=no
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713   IFS=$as_save_IFS
1714   test -z "$as_dir" && as_dir=.
1715   for ac_exec_ext in '' $ac_executable_extensions; do
1716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1718        ac_prog_rejected=yes
1719        continue
1720      fi
1721     ac_cv_prog_CC="cc"
1722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723     break 2
1724   fi
1725 done
1726 done
1727
1728 if test $ac_prog_rejected = yes; then
1729   # We found a bogon in the path, so make sure we never use it.
1730   set dummy $ac_cv_prog_CC
1731   shift
1732   if test $# != 0; then
1733     # We chose a different compiler from the bogus one.
1734     # However, it has the same basename, so the bogon will be chosen
1735     # first if we set CC to just the basename; use the full file name.
1736     shift
1737     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1738   fi
1739 fi
1740 fi
1741 fi
1742 CC=$ac_cv_prog_CC
1743 if test -n "$CC"; then
1744   echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751 fi
1752 if test -z "$CC"; then
1753   if test -n "$ac_tool_prefix"; then
1754   for ac_prog in cl
1755   do
1756     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_CC+set}" = set; then
1761   echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763   if test -n "$CC"; then
1764   ac_cv_prog_CC="$CC" # Let the user override the test.
1765 else
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769   IFS=$as_save_IFS
1770   test -z "$as_dir" && as_dir=.
1771   for ac_exec_ext in '' $ac_executable_extensions; do
1772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775     break 2
1776   fi
1777 done
1778 done
1779
1780 fi
1781 fi
1782 CC=$ac_cv_prog_CC
1783 if test -n "$CC"; then
1784   echo "$as_me:$LINENO: result: $CC" >&5
1785 echo "${ECHO_T}$CC" >&6
1786 else
1787   echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 fi
1790
1791     test -n "$CC" && break
1792   done
1793 fi
1794 if test -z "$CC"; then
1795   ac_ct_CC=$CC
1796   for ac_prog in cl
1797 do
1798   # Extract the first word of "$ac_prog", so it can be a program name with args.
1799 set dummy $ac_prog; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803   echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805   if test -n "$ac_ct_CC"; then
1806   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 else
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1810 do
1811   IFS=$as_save_IFS
1812   test -z "$as_dir" && as_dir=.
1813   for ac_exec_ext in '' $ac_executable_extensions; do
1814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815     ac_cv_prog_ac_ct_CC="$ac_prog"
1816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817     break 2
1818   fi
1819 done
1820 done
1821
1822 fi
1823 fi
1824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825 if test -n "$ac_ct_CC"; then
1826   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827 echo "${ECHO_T}$ac_ct_CC" >&6
1828 else
1829   echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1831 fi
1832
1833   test -n "$ac_ct_CC" && break
1834 done
1835
1836   CC=$ac_ct_CC
1837 fi
1838
1839 fi
1840
1841
1842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1843 See \`config.log' for more details." >&5
1844 echo "$as_me: error: no acceptable C compiler found in \$PATH
1845 See \`config.log' for more details." >&2;}
1846    { (exit 1); exit 1; }; }
1847
1848 # Provide some information about the compiler.
1849 echo "$as_me:$LINENO:" \
1850      "checking for C compiler version" >&5
1851 ac_compiler=`set X $ac_compile; echo $2`
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1853   (eval $ac_compiler --version </dev/null >&5) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }
1857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1858   (eval $ac_compiler -v </dev/null >&5) 2>&5
1859   ac_status=$?
1860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861   (exit $ac_status); }
1862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1863   (eval $ac_compiler -V </dev/null >&5) 2>&5
1864   ac_status=$?
1865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866   (exit $ac_status); }
1867
1868 cat >conftest.$ac_ext <<_ACEOF
1869 /* confdefs.h.  */
1870 _ACEOF
1871 cat confdefs.h >>conftest.$ac_ext
1872 cat >>conftest.$ac_ext <<_ACEOF
1873 /* end confdefs.h.  */
1874
1875 int
1876 main ()
1877 {
1878
1879   ;
1880   return 0;
1881 }
1882 _ACEOF
1883 ac_clean_files_save=$ac_clean_files
1884 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1885 # Try to create an executable without -o first, disregard a.out.
1886 # It will help us diagnose broken compilers, and finding out an intuition
1887 # of exeext.
1888 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1889 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1890 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1891 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1892   (eval $ac_link_default) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; then
1896   # Find the output, starting from the most likely.  This scheme is
1897 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1898 # resort.
1899
1900 # Be careful to initialize this variable, since it used to be cached.
1901 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1902 ac_cv_exeext=
1903 # b.out is created by i960 compilers.
1904 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1905 do
1906   test -f "$ac_file" || continue
1907   case $ac_file in
1908     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1909         ;;
1910     conftest.$ac_ext )
1911         # This is the source file.
1912         ;;
1913     [ab].out )
1914         # We found the default executable, but exeext='' is most
1915         # certainly right.
1916         break;;
1917     *.* )
1918         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919         # FIXME: I believe we export ac_cv_exeext for Libtool,
1920         # but it would be cool to find out if it's true.  Does anybody
1921         # maintain Libtool? --akim.
1922         export ac_cv_exeext
1923         break;;
1924     * )
1925         break;;
1926   esac
1927 done
1928 else
1929   echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1931
1932 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: C compiler cannot create executables
1935 See \`config.log' for more details." >&2;}
1936    { (exit 77); exit 77; }; }
1937 fi
1938
1939 ac_exeext=$ac_cv_exeext
1940 echo "$as_me:$LINENO: result: $ac_file" >&5
1941 echo "${ECHO_T}$ac_file" >&6
1942
1943 # Check the compiler produces executables we can run.  If not, either
1944 # the compiler is broken, or we cross compile.
1945 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1946 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1947 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1948 # If not cross compiling, check that we can run a simple program.
1949 if test "$cross_compiling" != yes; then
1950   if { ac_try='./$ac_file'
1951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1952   (eval $ac_try) 2>&5
1953   ac_status=$?
1954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955   (exit $ac_status); }; }; then
1956     cross_compiling=no
1957   else
1958     if test "$cross_compiling" = maybe; then
1959         cross_compiling=yes
1960     else
1961         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&5
1964 echo "$as_me: error: cannot run C compiled programs.
1965 If you meant to cross compile, use \`--host'.
1966 See \`config.log' for more details." >&2;}
1967    { (exit 1); exit 1; }; }
1968     fi
1969   fi
1970 fi
1971 echo "$as_me:$LINENO: result: yes" >&5
1972 echo "${ECHO_T}yes" >&6
1973
1974 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1975 ac_clean_files=$ac_clean_files_save
1976 # Check the compiler produces executables we can run.  If not, either
1977 # the compiler is broken, or we cross compile.
1978 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1980 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1981 echo "${ECHO_T}$cross_compiling" >&6
1982
1983 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1986   (eval $ac_link) 2>&5
1987   ac_status=$?
1988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989   (exit $ac_status); }; then
1990   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1991 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1992 # work properly (i.e., refer to `conftest.exe'), while it won't with
1993 # `rm'.
1994 for ac_file in conftest.exe conftest conftest.*; do
1995   test -f "$ac_file" || continue
1996   case $ac_file in
1997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1998     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1999           export ac_cv_exeext
2000           break;;
2001     * ) break;;
2002   esac
2003 done
2004 else
2005   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2006 See \`config.log' for more details." >&5
2007 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2008 See \`config.log' for more details." >&2;}
2009    { (exit 1); exit 1; }; }
2010 fi
2011
2012 rm -f conftest$ac_cv_exeext
2013 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2014 echo "${ECHO_T}$ac_cv_exeext" >&6
2015
2016 rm -f conftest.$ac_ext
2017 EXEEXT=$ac_cv_exeext
2018 ac_exeext=$EXEEXT
2019 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2020 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2021 if test "${ac_cv_objext+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   cat >conftest.$ac_ext <<_ACEOF
2025 /* confdefs.h.  */
2026 _ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h.  */
2030
2031 int
2032 main ()
2033 {
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 rm -f conftest.o conftest.obj
2040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2041   (eval $ac_compile) 2>&5
2042   ac_status=$?
2043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044   (exit $ac_status); }; then
2045   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2046   case $ac_file in
2047     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2048     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2049        break;;
2050   esac
2051 done
2052 else
2053   echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2057 See \`config.log' for more details." >&5
2058 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2059 See \`config.log' for more details." >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2064 fi
2065 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2066 echo "${ECHO_T}$ac_cv_objext" >&6
2067 OBJEXT=$ac_cv_objext
2068 ac_objext=$OBJEXT
2069 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2070 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2071 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   cat >conftest.$ac_ext <<_ACEOF
2075 /* confdefs.h.  */
2076 _ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h.  */
2080
2081 int
2082 main ()
2083 {
2084 #ifndef __GNUC__
2085        choke me
2086 #endif
2087
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094   (eval $ac_compile) 2>conftest.er1
2095   ac_status=$?
2096   grep -v '^ *+' conftest.er1 >conftest.err
2097   rm -f conftest.er1
2098   cat conftest.err >&5
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); } &&
2101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103   (eval $ac_try) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }; } &&
2107          { ac_try='test -s conftest.$ac_objext'
2108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109   (eval $ac_try) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }; }; then
2113   ac_compiler_gnu=yes
2114 else
2115   echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_compiler_gnu=no
2119 fi
2120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2122
2123 fi
2124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126 GCC=`test $ac_compiler_gnu = yes && echo yes`
2127 ac_test_CFLAGS=${CFLAGS+set}
2128 ac_save_CFLAGS=$CFLAGS
2129 CFLAGS="-g"
2130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_g+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h.  */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h.  */
2141
2142 int
2143 main ()
2144 {
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152   (eval $ac_compile) 2>conftest.er1
2153   ac_status=$?
2154   grep -v '^ *+' conftest.er1 >conftest.err
2155   rm -f conftest.er1
2156   cat conftest.err >&5
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); } &&
2159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161   (eval $ac_try) 2>&5
2162   ac_status=$?
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); }; } &&
2165          { ac_try='test -s conftest.$ac_objext'
2166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167   (eval $ac_try) 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }; }; then
2171   ac_cv_prog_cc_g=yes
2172 else
2173   echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2175
2176 ac_cv_prog_cc_g=no
2177 fi
2178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2179 fi
2180 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2181 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2182 if test "$ac_test_CFLAGS" = set; then
2183   CFLAGS=$ac_save_CFLAGS
2184 elif test $ac_cv_prog_cc_g = yes; then
2185   if test "$GCC" = yes; then
2186     CFLAGS="-g -O2"
2187   else
2188     CFLAGS="-g"
2189   fi
2190 else
2191   if test "$GCC" = yes; then
2192     CFLAGS="-O2"
2193   else
2194     CFLAGS=
2195   fi
2196 fi
2197 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2198 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2199 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   ac_cv_prog_cc_stdc=no
2203 ac_save_CC=$CC
2204 cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h.  */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h.  */
2210 #include <stdarg.h>
2211 #include <stdio.h>
2212 #include <sys/types.h>
2213 #include <sys/stat.h>
2214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2215 struct buf { int x; };
2216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2217 static char *e (p, i)
2218      char **p;
2219      int i;
2220 {
2221   return p[i];
2222 }
2223 static char *f (char * (*g) (char **, int), char **p, ...)
2224 {
2225   char *s;
2226   va_list v;
2227   va_start (v,p);
2228   s = g (p, va_arg (v,int));
2229   va_end (v);
2230   return s;
2231 }
2232
2233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2234    function prototypes and stuff, but not '\xHH' hex character constants.
2235    These don't provoke an error unfortunately, instead are silently treated
2236    as 'x'.  The following induces an error, until -std1 is added to get
2237    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2238    array size at least.  It's necessary to write '\x00'==0 to get something
2239    that's true only with -std1.  */
2240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2241
2242 int test (int i, double x);
2243 struct s1 {int (*f) (int a);};
2244 struct s2 {int (*f) (double a);};
2245 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2246 int argc;
2247 char **argv;
2248 int
2249 main ()
2250 {
2251 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 # Don't try gcc -ansi; that turns off useful extensions and
2257 # breaks some systems' header files.
2258 # AIX                   -qlanglvl=ansi
2259 # Ultrix and OSF/1      -std1
2260 # HP-UX 10.20 and later -Ae
2261 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2262 # SVR4                  -Xc -D__EXTENSIONS__
2263 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2264 do
2265   CC="$ac_save_CC $ac_arg"
2266   rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268   (eval $ac_compile) 2>conftest.er1
2269   ac_status=$?
2270   grep -v '^ *+' conftest.er1 >conftest.err
2271   rm -f conftest.er1
2272   cat conftest.err >&5
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); } &&
2275          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   ac_cv_prog_cc_stdc=$ac_arg
2288 break
2289 else
2290   echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293 fi
2294 rm -f conftest.err conftest.$ac_objext
2295 done
2296 rm -f conftest.$ac_ext conftest.$ac_objext
2297 CC=$ac_save_CC
2298
2299 fi
2300
2301 case "x$ac_cv_prog_cc_stdc" in
2302   x|xno)
2303     echo "$as_me:$LINENO: result: none needed" >&5
2304 echo "${ECHO_T}none needed" >&6 ;;
2305   *)
2306     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2308     CC="$CC $ac_cv_prog_cc_stdc" ;;
2309 esac
2310
2311 # Some people use a C++ compiler to compile C.  Since we use `exit',
2312 # in C++ we need to declare it.  In case someone uses the same compiler
2313 # for both compiling C and C++ we need to have the C++ compiler decide
2314 # the declaration of exit, since it's the most demanding environment.
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #ifndef __cplusplus
2317   choke me
2318 #endif
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>conftest.er1
2323   ac_status=$?
2324   grep -v '^ *+' conftest.er1 >conftest.err
2325   rm -f conftest.er1
2326   cat conftest.err >&5
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); } &&
2329          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331   (eval $ac_try) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; } &&
2335          { ac_try='test -s conftest.$ac_objext'
2336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337   (eval $ac_try) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }; }; then
2341   for ac_declaration in \
2342    '' \
2343    'extern "C" void std::exit (int) throw (); using std::exit;' \
2344    'extern "C" void std::exit (int); using std::exit;' \
2345    'extern "C" void exit (int) throw ();' \
2346    'extern "C" void exit (int);' \
2347    'void exit (int);'
2348 do
2349   cat >conftest.$ac_ext <<_ACEOF
2350 /* confdefs.h.  */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h.  */
2355 $ac_declaration
2356 #include <stdlib.h>
2357 int
2358 main ()
2359 {
2360 exit (42);
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367   (eval $ac_compile) 2>conftest.er1
2368   ac_status=$?
2369   grep -v '^ *+' conftest.er1 >conftest.err
2370   rm -f conftest.er1
2371   cat conftest.err >&5
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); } &&
2374          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376   (eval $ac_try) 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); }; } &&
2380          { ac_try='test -s conftest.$ac_objext'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; }; then
2386   :
2387 else
2388   echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 continue
2392 fi
2393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394   cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h.  */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h.  */
2400 $ac_declaration
2401 int
2402 main ()
2403 {
2404 exit (42);
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411   (eval $ac_compile) 2>conftest.er1
2412   ac_status=$?
2413   grep -v '^ *+' conftest.er1 >conftest.err
2414   rm -f conftest.er1
2415   cat conftest.err >&5
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); } &&
2418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; } &&
2424          { ac_try='test -s conftest.$ac_objext'
2425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426   (eval $ac_try) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; }; then
2430   break
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 fi
2436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437 done
2438 rm -f conftest*
2439 if test -n "$ac_declaration"; then
2440   echo '#ifdef __cplusplus' >>confdefs.h
2441   echo $ac_declaration      >>confdefs.h
2442   echo '#endif'             >>confdefs.h
2443 fi
2444
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 fi
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457 ac_ext=cc
2458 ac_cpp='$CXXCPP $CPPFLAGS'
2459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2462 if test -n "$ac_tool_prefix"; then
2463   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2464   do
2465     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2467 echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2469 if test "${ac_cv_prog_CXX+set}" = set; then
2470   echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472   if test -n "$CXX"; then
2473   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478   IFS=$as_save_IFS
2479   test -z "$as_dir" && as_dir=.
2480   for ac_exec_ext in '' $ac_executable_extensions; do
2481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2482     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484     break 2
2485   fi
2486 done
2487 done
2488
2489 fi
2490 fi
2491 CXX=$ac_cv_prog_CXX
2492 if test -n "$CXX"; then
2493   echo "$as_me:$LINENO: result: $CXX" >&5
2494 echo "${ECHO_T}$CXX" >&6
2495 else
2496   echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6
2498 fi
2499
2500     test -n "$CXX" && break
2501   done
2502 fi
2503 if test -z "$CXX"; then
2504   ac_ct_CXX=$CXX
2505   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2506 do
2507   # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy $ac_prog; ac_word=$2
2509 echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2511 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2512   echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514   if test -n "$ac_ct_CXX"; then
2515   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520   IFS=$as_save_IFS
2521   test -z "$as_dir" && as_dir=.
2522   for ac_exec_ext in '' $ac_executable_extensions; do
2523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524     ac_cv_prog_ac_ct_CXX="$ac_prog"
2525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526     break 2
2527   fi
2528 done
2529 done
2530
2531 fi
2532 fi
2533 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2534 if test -n "$ac_ct_CXX"; then
2535   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2536 echo "${ECHO_T}$ac_ct_CXX" >&6
2537 else
2538   echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6
2540 fi
2541
2542   test -n "$ac_ct_CXX" && break
2543 done
2544 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2545
2546   CXX=$ac_ct_CXX
2547 fi
2548
2549
2550 # Provide some information about the compiler.
2551 echo "$as_me:$LINENO:" \
2552      "checking for C++ compiler version" >&5
2553 ac_compiler=`set X $ac_compile; echo $2`
2554 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2555   (eval $ac_compiler --version </dev/null >&5) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }
2559 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2560   (eval $ac_compiler -v </dev/null >&5) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }
2564 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2565   (eval $ac_compiler -V </dev/null >&5) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }
2569
2570 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2571 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2572 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2573   echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575   cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h.  */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h.  */
2581
2582 int
2583 main ()
2584 {
2585 #ifndef __GNUC__
2586        choke me
2587 #endif
2588
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595   (eval $ac_compile) 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } &&
2602          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604   (eval $ac_try) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; } &&
2608          { ac_try='test -s conftest.$ac_objext'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; }; then
2614   ac_compiler_gnu=yes
2615 else
2616   echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2618
2619 ac_compiler_gnu=no
2620 fi
2621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2623
2624 fi
2625 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2626 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2627 GXX=`test $ac_compiler_gnu = yes && echo yes`
2628 ac_test_CXXFLAGS=${CXXFLAGS+set}
2629 ac_save_CXXFLAGS=$CXXFLAGS
2630 CXXFLAGS="-g"
2631 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2632 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2633 if test "${ac_cv_prog_cxx_g+set}" = set; then
2634   echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636   cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h.  */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h.  */
2642
2643 int
2644 main ()
2645 {
2646
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653   (eval $ac_compile) 2>conftest.er1
2654   ac_status=$?
2655   grep -v '^ *+' conftest.er1 >conftest.err
2656   rm -f conftest.er1
2657   cat conftest.err >&5
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); } &&
2660          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; } &&
2666          { ac_try='test -s conftest.$ac_objext'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; }; then
2672   ac_cv_prog_cxx_g=yes
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 ac_cv_prog_cxx_g=no
2678 fi
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 fi
2681 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2682 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2683 if test "$ac_test_CXXFLAGS" = set; then
2684   CXXFLAGS=$ac_save_CXXFLAGS
2685 elif test $ac_cv_prog_cxx_g = yes; then
2686   if test "$GXX" = yes; then
2687     CXXFLAGS="-g -O2"
2688   else
2689     CXXFLAGS="-g"
2690   fi
2691 else
2692   if test "$GXX" = yes; then
2693     CXXFLAGS="-O2"
2694   else
2695     CXXFLAGS=
2696   fi
2697 fi
2698 for ac_declaration in \
2699    '' \
2700    'extern "C" void std::exit (int) throw (); using std::exit;' \
2701    'extern "C" void std::exit (int); using std::exit;' \
2702    'extern "C" void exit (int) throw ();' \
2703    'extern "C" void exit (int);' \
2704    'void exit (int);'
2705 do
2706   cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h.  */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h.  */
2712 $ac_declaration
2713 #include <stdlib.h>
2714 int
2715 main ()
2716 {
2717 exit (42);
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724   (eval $ac_compile) 2>conftest.er1
2725   ac_status=$?
2726   grep -v '^ *+' conftest.er1 >conftest.err
2727   rm -f conftest.er1
2728   cat conftest.err >&5
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } &&
2731          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733   (eval $ac_try) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; } &&
2737          { ac_try='test -s conftest.$ac_objext'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; }; then
2743   :
2744 else
2745   echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2747
2748 continue
2749 fi
2750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751   cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 $ac_declaration
2758 int
2759 main ()
2760 {
2761 exit (42);
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>conftest.er1
2769   ac_status=$?
2770   grep -v '^ *+' conftest.er1 >conftest.err
2771   rm -f conftest.er1
2772   cat conftest.err >&5
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); } &&
2775          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; } &&
2781          { ac_try='test -s conftest.$ac_objext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   break
2788 else
2789   echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 fi
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 done
2795 rm -f conftest*
2796 if test -n "$ac_declaration"; then
2797   echo '#ifdef __cplusplus' >>confdefs.h
2798   echo $ac_declaration      >>confdefs.h
2799   echo '#endif'             >>confdefs.h
2800 fi
2801
2802 ac_ext=c
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
2808 if test -n "$ac_tool_prefix"; then
2809   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CPPBIN"; then
2817   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832
2833 fi
2834 fi
2835 CPPBIN=$ac_cv_prog_CPPBIN
2836 if test -n "$CPPBIN"; then
2837   echo "$as_me:$LINENO: result: $CPPBIN" >&5
2838 echo "${ECHO_T}$CPPBIN" >&6
2839 else
2840   echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2842 fi
2843
2844 fi
2845 if test -z "$ac_cv_prog_CPPBIN"; then
2846   ac_ct_CPPBIN=$CPPBIN
2847   # Extract the first word of "cpp", so it can be a program name with args.
2848 set dummy cpp; ac_word=$2
2849 echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2851 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2852   echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854   if test -n "$ac_ct_CPPBIN"; then
2855   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862   for ac_exec_ext in '' $ac_executable_extensions; do
2863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864     ac_cv_prog_ac_ct_CPPBIN="cpp"
2865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866     break 2
2867   fi
2868 done
2869 done
2870
2871   test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2872 fi
2873 fi
2874 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2875 if test -n "$ac_ct_CPPBIN"; then
2876   echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2877 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2878 else
2879   echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2881 fi
2882
2883   CPPBIN=$ac_ct_CPPBIN
2884 else
2885   CPPBIN="$ac_cv_prog_CPPBIN"
2886 fi
2887
2888
2889 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2890 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2891 if test "${wine_cv_toolsdir+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   if test -z "$with_wine_tools"; then
2895      if test "$cross_compiling" = "yes"; then
2896        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2897 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2898    { (exit 1); exit 1; }; }
2899      else
2900        wine_cv_toolsdir="\$(TOPOBJDIR)"
2901      fi
2902    elif test -d "$with_wine_tools/tools/winebuild"; then
2903      case $with_wine_tools in
2904        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2905        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2906      esac
2907    else
2908      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2909 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2910    { (exit 1); exit 1; }; }
2911    fi
2912 fi
2913 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2914 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2915 TOOLSDIR=$wine_cv_toolsdir
2916
2917
2918
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2925 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2926 # On Suns, sometimes $CPP names a directory.
2927 if test -n "$CPP" && test -d "$CPP"; then
2928   CPP=
2929 fi
2930 if test -z "$CPP"; then
2931   if test "${ac_cv_prog_CPP+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934       # Double quotes because CPP needs to be expanded
2935     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2936     do
2937       ac_preproc_ok=false
2938 for ac_c_preproc_warn_flag in '' yes
2939 do
2940   # Use a header file that comes with gcc, so configuring glibc
2941   # with a fresh cross-compiler works.
2942   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2943   # <limits.h> exists even on freestanding compilers.
2944   # On the NeXT, cc -E runs the code through the compiler's parser,
2945   # not just through cpp. "Syntax error" is here to catch this case.
2946   cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952 #ifdef __STDC__
2953 # include <limits.h>
2954 #else
2955 # include <assert.h>
2956 #endif
2957                      Syntax error
2958 _ACEOF
2959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2961   ac_status=$?
2962   grep -v '^ *+' conftest.er1 >conftest.err
2963   rm -f conftest.er1
2964   cat conftest.err >&5
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); } >/dev/null; then
2967   if test -s conftest.err; then
2968     ac_cpp_err=$ac_c_preproc_warn_flag
2969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2970   else
2971     ac_cpp_err=
2972   fi
2973 else
2974   ac_cpp_err=yes
2975 fi
2976 if test -z "$ac_cpp_err"; then
2977   :
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982   # Broken: fails on valid input.
2983 continue
2984 fi
2985 rm -f conftest.err conftest.$ac_ext
2986
2987   # OK, works on sane cases.  Now check whether non-existent headers
2988   # can be detected and how.
2989   cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h.  */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h.  */
2995 #include <ac_nonexistent.h>
2996 _ACEOF
2997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } >/dev/null; then
3005   if test -s conftest.err; then
3006     ac_cpp_err=$ac_c_preproc_warn_flag
3007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3008   else
3009     ac_cpp_err=
3010   fi
3011 else
3012   ac_cpp_err=yes
3013 fi
3014 if test -z "$ac_cpp_err"; then
3015   # Broken: success on invalid input.
3016 continue
3017 else
3018   echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021   # Passes both tests.
3022 ac_preproc_ok=:
3023 break
3024 fi
3025 rm -f conftest.err conftest.$ac_ext
3026
3027 done
3028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3029 rm -f conftest.err conftest.$ac_ext
3030 if $ac_preproc_ok; then
3031   break
3032 fi
3033
3034     done
3035     ac_cv_prog_CPP=$CPP
3036
3037 fi
3038   CPP=$ac_cv_prog_CPP
3039 else
3040   ac_cv_prog_CPP=$CPP
3041 fi
3042 echo "$as_me:$LINENO: result: $CPP" >&5
3043 echo "${ECHO_T}$CPP" >&6
3044 ac_preproc_ok=false
3045 for ac_c_preproc_warn_flag in '' yes
3046 do
3047   # Use a header file that comes with gcc, so configuring glibc
3048   # with a fresh cross-compiler works.
3049   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3050   # <limits.h> exists even on freestanding compilers.
3051   # On the NeXT, cc -E runs the code through the compiler's parser,
3052   # not just through cpp. "Syntax error" is here to catch this case.
3053   cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059 #ifdef __STDC__
3060 # include <limits.h>
3061 #else
3062 # include <assert.h>
3063 #endif
3064                      Syntax error
3065 _ACEOF
3066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } >/dev/null; then
3074   if test -s conftest.err; then
3075     ac_cpp_err=$ac_c_preproc_warn_flag
3076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3077   else
3078     ac_cpp_err=
3079   fi
3080 else
3081   ac_cpp_err=yes
3082 fi
3083 if test -z "$ac_cpp_err"; then
3084   :
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089   # Broken: fails on valid input.
3090 continue
3091 fi
3092 rm -f conftest.err conftest.$ac_ext
3093
3094   # OK, works on sane cases.  Now check whether non-existent headers
3095   # can be detected and how.
3096   cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h.  */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h.  */
3102 #include <ac_nonexistent.h>
3103 _ACEOF
3104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } >/dev/null; then
3112   if test -s conftest.err; then
3113     ac_cpp_err=$ac_c_preproc_warn_flag
3114     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3115   else
3116     ac_cpp_err=
3117   fi
3118 else
3119   ac_cpp_err=yes
3120 fi
3121 if test -z "$ac_cpp_err"; then
3122   # Broken: success on invalid input.
3123 continue
3124 else
3125   echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128   # Passes both tests.
3129 ac_preproc_ok=:
3130 break
3131 fi
3132 rm -f conftest.err conftest.$ac_ext
3133
3134 done
3135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3136 rm -f conftest.err conftest.$ac_ext
3137 if $ac_preproc_ok; then
3138   :
3139 else
3140   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3143 See \`config.log' for more details." >&2;}
3144    { (exit 1); exit 1; }; }
3145 fi
3146
3147 ac_ext=c
3148 ac_cpp='$CPP $CPPFLAGS'
3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152
3153
3154
3155 if test "x$ac_path_x_has_been_run" != xyes; then
3156   echo "$as_me:$LINENO: checking for X" >&5
3157 echo $ECHO_N "checking for X... $ECHO_C" >&6
3158
3159 ac_path_x_has_been_run=yes
3160
3161 # Check whether --with-x or --without-x was given.
3162 if test "${with_x+set}" = set; then
3163   withval="$with_x"
3164
3165 fi;
3166 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3167 if test "x$with_x" = xno; then
3168   # The user explicitly disabled X.
3169   have_x=disabled
3170 else
3171   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3172     # Both variables are already set.
3173     have_x=yes
3174   else
3175     if test "${ac_cv_have_x+set}" = set; then
3176   echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178   # One or both of the vars are not set, and there is no cached value.
3179 ac_x_includes=no ac_x_libraries=no
3180 rm -fr conftest.dir
3181 if mkdir conftest.dir; then
3182   cd conftest.dir
3183   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3184   cat >Imakefile <<'_ACEOF'
3185 acfindx:
3186         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3187 _ACEOF
3188   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3189     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3190     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3191     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3192     for ac_extension in a so sl; do
3193       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3194          test -f $ac_im_libdir/libX11.$ac_extension; then
3195         ac_im_usrlibdir=$ac_im_libdir; break
3196       fi
3197     done
3198     # Screen out bogus values from the imake configuration.  They are
3199     # bogus both because they are the default anyway, and because
3200     # using them would break gcc on systems where it needs fixed includes.
3201     case $ac_im_incroot in
3202         /usr/include) ;;
3203         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3204     esac
3205     case $ac_im_usrlibdir in
3206         /usr/lib | /lib) ;;
3207         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3208     esac
3209   fi
3210   cd ..
3211   rm -fr conftest.dir
3212 fi
3213
3214 # Standard set of common directories for X headers.
3215 # Check X11 before X11Rn because it is often a symlink to the current release.
3216 ac_x_header_dirs='
3217 /usr/X11/include
3218 /usr/X11R6/include
3219 /usr/X11R5/include
3220 /usr/X11R4/include
3221
3222 /usr/include/X11
3223 /usr/include/X11R6
3224 /usr/include/X11R5
3225 /usr/include/X11R4
3226
3227 /usr/local/X11/include
3228 /usr/local/X11R6/include
3229 /usr/local/X11R5/include
3230 /usr/local/X11R4/include
3231
3232 /usr/local/include/X11
3233 /usr/local/include/X11R6
3234 /usr/local/include/X11R5
3235 /usr/local/include/X11R4
3236
3237 /usr/X386/include
3238 /usr/x386/include
3239 /usr/XFree86/include/X11
3240
3241 /usr/include
3242 /usr/local/include
3243 /usr/unsupported/include
3244 /usr/athena/include
3245 /usr/local/x11r5/include
3246 /usr/lpp/Xamples/include
3247
3248 /usr/openwin/include
3249 /usr/openwin/share/include'
3250
3251 if test "$ac_x_includes" = no; then
3252   # Guess where to find include files, by looking for a specified header file.
3253   # First, try using that file with no special directory specified.
3254   cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260 #include <X11/Intrinsic.h>
3261 _ACEOF
3262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3264   ac_status=$?
3265   grep -v '^ *+' conftest.er1 >conftest.err
3266   rm -f conftest.er1
3267   cat conftest.err >&5
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); } >/dev/null; then
3270   if test -s conftest.err; then
3271     ac_cpp_err=$ac_c_preproc_warn_flag
3272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3273   else
3274     ac_cpp_err=
3275   fi
3276 else
3277   ac_cpp_err=yes
3278 fi
3279 if test -z "$ac_cpp_err"; then
3280   # We can compile using X headers with no special include directory.
3281 ac_x_includes=
3282 else
3283   echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286   for ac_dir in $ac_x_header_dirs; do
3287   if test -r "$ac_dir/X11/Intrinsic.h"; then
3288     ac_x_includes=$ac_dir
3289     break
3290   fi
3291 done
3292 fi
3293 rm -f conftest.err conftest.$ac_ext
3294 fi # $ac_x_includes = no
3295
3296 if test "$ac_x_libraries" = no; then
3297   # Check for the libraries.
3298   # See if we find them without any special options.
3299   # Don't add to $LIBS permanently.
3300   ac_save_LIBS=$LIBS
3301   LIBS="-lXt $LIBS"
3302   cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308 #include <X11/Intrinsic.h>
3309 int
3310 main ()
3311 {
3312 XtMalloc (0)
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 rm -f conftest.$ac_objext conftest$ac_exeext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3319   (eval $ac_link) 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } &&
3326          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328   (eval $ac_try) 2>&5
3329   ac_status=$?
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); }; } &&
3332          { ac_try='test -s conftest$ac_exeext'
3333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334   (eval $ac_try) 2>&5
3335   ac_status=$?
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); }; }; then
3338   LIBS=$ac_save_LIBS
3339 # We can link X programs with no special library path.
3340 ac_x_libraries=
3341 else
3342   echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 LIBS=$ac_save_LIBS
3346 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3347 do
3348   # Don't even attempt the hair of trying to link an X program!
3349   for ac_extension in a so sl; do
3350     if test -r $ac_dir/libXt.$ac_extension; then
3351       ac_x_libraries=$ac_dir
3352       break 2
3353     fi
3354   done
3355 done
3356 fi
3357 rm -f conftest.err conftest.$ac_objext \
3358       conftest$ac_exeext conftest.$ac_ext
3359 fi # $ac_x_libraries = no
3360
3361 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3362   # Didn't find X anywhere.  Cache the known absence of X.
3363   ac_cv_have_x="have_x=no"
3364 else
3365   # Record where we found X for the cache.
3366   ac_cv_have_x="have_x=yes \
3367                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3368 fi
3369 fi
3370
3371   fi
3372   eval "$ac_cv_have_x"
3373 fi # $with_x != no
3374
3375 if test "$have_x" != yes; then
3376   echo "$as_me:$LINENO: result: $have_x" >&5
3377 echo "${ECHO_T}$have_x" >&6
3378   no_x=yes
3379 else
3380   # If each of the values was on the command line, it overrides each guess.
3381   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3382   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3383   # Update the cache value to reflect the command line values.
3384   ac_cv_have_x="have_x=yes \
3385                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3386   # It might be that x_includes is empty (headers are found in the
3387   # standard search path. Then output the corresponding message
3388   ac_out_x_includes=$x_includes
3389   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3390   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3391 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3392 fi
3393
3394 fi
3395 if test "$no_x" = yes; then
3396   # Not all programs may use this symbol, but it does not hurt to define it.
3397
3398 cat >>confdefs.h <<\_ACEOF
3399 #define X_DISPLAY_MISSING 1
3400 _ACEOF
3401
3402   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3403 else
3404   if test -n "$x_includes"; then
3405     X_CFLAGS="$X_CFLAGS -I$x_includes"
3406   fi
3407
3408   # It would also be nice to do this for all -L options, not just this one.
3409   if test -n "$x_libraries"; then
3410     X_LIBS="$X_LIBS -L$x_libraries"
3411     # For Solaris; some versions of Sun CC require a space after -R and
3412     # others require no space.  Words are not sufficient . . . .
3413     case `(uname -sr) 2>/dev/null` in
3414     "SunOS 5"*)
3415       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3416 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3417       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3418       cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424
3425 int
3426 main ()
3427 {
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 rm -f conftest.$ac_objext conftest$ac_exeext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435   (eval $ac_link) 2>conftest.er1
3436   ac_status=$?
3437   grep -v '^ *+' conftest.er1 >conftest.err
3438   rm -f conftest.er1
3439   cat conftest.err >&5
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } &&
3442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444   (eval $ac_try) 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); }; } &&
3448          { ac_try='test -s conftest$ac_exeext'
3449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450   (eval $ac_try) 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); }; }; then
3454   ac_R_nospace=yes
3455 else
3456   echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 ac_R_nospace=no
3460 fi
3461 rm -f conftest.err conftest.$ac_objext \
3462       conftest$ac_exeext conftest.$ac_ext
3463       if test $ac_R_nospace = yes; then
3464         echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466         X_LIBS="$X_LIBS -R$x_libraries"
3467       else
3468         LIBS="$ac_xsave_LIBS -R $x_libraries"
3469         cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486   (eval $ac_link) 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } &&
3493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495   (eval $ac_try) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); }; } &&
3499          { ac_try='test -s conftest$ac_exeext'
3500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501   (eval $ac_try) 2>&5
3502   ac_status=$?
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); }; }; then
3505   ac_R_space=yes
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 ac_R_space=no
3511 fi
3512 rm -f conftest.err conftest.$ac_objext \
3513       conftest$ac_exeext conftest.$ac_ext
3514         if test $ac_R_space = yes; then
3515           echo "$as_me:$LINENO: result: yes" >&5
3516 echo "${ECHO_T}yes" >&6
3517           X_LIBS="$X_LIBS -R $x_libraries"
3518         else
3519           echo "$as_me:$LINENO: result: neither works" >&5
3520 echo "${ECHO_T}neither works" >&6
3521         fi
3522       fi
3523       LIBS=$ac_xsave_LIBS
3524     esac
3525   fi
3526
3527   # Check for system-dependent libraries X programs must link with.
3528   # Do this before checking for the system-independent R6 libraries
3529   # (-lICE), since we may need -lsocket or whatever for X linking.
3530
3531   if test "$ISC" = yes; then
3532     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3533   else
3534     # Martyn Johnson says this is needed for Ultrix, if the X
3535     # libraries were built with DECnet support.  And Karl Berry says
3536     # the Alpha needs dnet_stub (dnet does not exist).
3537     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3538     cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h.  */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h.  */
3544
3545 /* Override any gcc2 internal prototype to avoid an error.  */
3546 #ifdef __cplusplus
3547 extern "C"
3548 #endif
3549 /* We use char because int might match the return type of a gcc2
3550    builtin and then its argument prototype would still apply.  */
3551 char XOpenDisplay ();
3552 int
3553 main ()
3554 {
3555 XOpenDisplay ();
3556   ;
3557   return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.$ac_objext conftest$ac_exeext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3562   (eval $ac_link) 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } &&
3569          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571   (eval $ac_try) 2>&5
3572   ac_status=$?
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); }; } &&
3575          { ac_try='test -s conftest$ac_exeext'
3576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577   (eval $ac_try) 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); }; }; then
3581   :
3582 else
3583   echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3587 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3588 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   ac_check_lib_save_LIBS=$LIBS
3592 LIBS="-ldnet  $LIBS"
3593 cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599
3600 /* Override any gcc2 internal prototype to avoid an error.  */
3601 #ifdef __cplusplus
3602 extern "C"
3603 #endif
3604 /* We use char because int might match the return type of a gcc2
3605    builtin and then its argument prototype would still apply.  */
3606 char dnet_ntoa ();
3607 int
3608 main ()
3609 {
3610 dnet_ntoa ();
3611   ;
3612   return 0;
3613 }
3614 _ACEOF
3615 rm -f conftest.$ac_objext conftest$ac_exeext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617   (eval $ac_link) 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } &&
3624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; } &&
3630          { ac_try='test -s conftest$ac_exeext'
3631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632   (eval $ac_try) 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; }; then
3636   ac_cv_lib_dnet_dnet_ntoa=yes
3637 else
3638   echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641 ac_cv_lib_dnet_dnet_ntoa=no
3642 fi
3643 rm -f conftest.err conftest.$ac_objext \
3644       conftest$ac_exeext conftest.$ac_ext
3645 LIBS=$ac_check_lib_save_LIBS
3646 fi
3647 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3648 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3649 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3650   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3651 fi
3652
3653     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3654       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3655 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3656 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   ac_check_lib_save_LIBS=$LIBS
3660 LIBS="-ldnet_stub  $LIBS"
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667
3668 /* Override any gcc2 internal prototype to avoid an error.  */
3669 #ifdef __cplusplus
3670 extern "C"
3671 #endif
3672 /* We use char because int might match the return type of a gcc2
3673    builtin and then its argument prototype would still apply.  */
3674 char dnet_ntoa ();
3675 int
3676 main ()
3677 {
3678 dnet_ntoa ();
3679   ;
3680   return 0;
3681 }
3682 _ACEOF
3683 rm -f conftest.$ac_objext conftest$ac_exeext
3684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3685   (eval $ac_link) 2>conftest.er1
3686   ac_status=$?
3687   grep -v '^ *+' conftest.er1 >conftest.err
3688   rm -f conftest.er1
3689   cat conftest.err >&5
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); } &&
3692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694   (eval $ac_try) 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); }; } &&
3698          { ac_try='test -s conftest$ac_exeext'
3699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700   (eval $ac_try) 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); }; }; then
3704   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3705 else
3706   echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3708
3709 ac_cv_lib_dnet_stub_dnet_ntoa=no
3710 fi
3711 rm -f conftest.err conftest.$ac_objext \
3712       conftest$ac_exeext conftest.$ac_ext
3713 LIBS=$ac_check_lib_save_LIBS
3714 fi
3715 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3716 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3717 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3718   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3719 fi
3720
3721     fi
3722 fi
3723 rm -f conftest.err conftest.$ac_objext \
3724       conftest$ac_exeext conftest.$ac_ext
3725     LIBS="$ac_xsave_LIBS"
3726
3727     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3728     # to get the SysV transport functions.
3729     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3730     # needs -lnsl.
3731     # The nsl library prevents programs from opening the X display
3732     # on Irix 5.2, according to T.E. Dickey.
3733     # The functions gethostbyname, getservbyname, and inet_addr are
3734     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3735     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3736 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3737 if test "${ac_cv_func_gethostbyname+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h.  */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h.  */
3746 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3748 #define gethostbyname innocuous_gethostbyname
3749
3750 /* System header to define __stub macros and hopefully few prototypes,
3751     which can conflict with char gethostbyname (); below.
3752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3753     <limits.h> exists even on freestanding compilers.  */
3754
3755 #ifdef __STDC__
3756 # include <limits.h>
3757 #else
3758 # include <assert.h>
3759 #endif
3760
3761 #undef gethostbyname
3762
3763 /* Override any gcc2 internal prototype to avoid an error.  */
3764 #ifdef __cplusplus
3765 extern "C"
3766 {
3767 #endif
3768 /* We use char because int might match the return type of a gcc2
3769    builtin and then its argument prototype would still apply.  */
3770 char gethostbyname ();
3771 /* The GNU C library defines this for functions which it implements
3772     to always fail with ENOSYS.  Some functions are actually named
3773     something starting with __ and the normal name is an alias.  */
3774 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3775 choke me
3776 #else
3777 char (*f) () = gethostbyname;
3778 #endif
3779 #ifdef __cplusplus
3780 }
3781 #endif
3782
3783 int
3784 main ()
3785 {
3786 return f != gethostbyname;
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.$ac_objext conftest$ac_exeext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3793   (eval $ac_link) 2>conftest.er1
3794   ac_status=$?
3795   grep -v '^ *+' conftest.er1 >conftest.err
3796   rm -f conftest.er1
3797   cat conftest.err >&5
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); } &&
3800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802   (eval $ac_try) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }; } &&
3806          { ac_try='test -s conftest$ac_exeext'
3807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808   (eval $ac_try) 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }; }; then
3812   ac_cv_func_gethostbyname=yes
3813 else
3814   echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 ac_cv_func_gethostbyname=no
3818 fi
3819 rm -f conftest.err conftest.$ac_objext \
3820       conftest$ac_exeext conftest.$ac_ext
3821 fi
3822 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3823 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3824
3825     if test $ac_cv_func_gethostbyname = no; then
3826       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3827 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3828 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   ac_check_lib_save_LIBS=$LIBS
3832 LIBS="-lnsl  $LIBS"
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h.  */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h.  */
3839
3840 /* Override any gcc2 internal prototype to avoid an error.  */
3841 #ifdef __cplusplus
3842 extern "C"
3843 #endif
3844 /* We use char because int might match the return type of a gcc2
3845    builtin and then its argument prototype would still apply.  */
3846 char gethostbyname ();
3847 int
3848 main ()
3849 {
3850 gethostbyname ();
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 rm -f conftest.$ac_objext conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857   (eval $ac_link) 2>conftest.er1
3858   ac_status=$?
3859   grep -v '^ *+' conftest.er1 >conftest.err
3860   rm -f conftest.er1
3861   cat conftest.err >&5
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); } &&
3864          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866   (eval $ac_try) 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); }; } &&
3870          { ac_try='test -s conftest$ac_exeext'
3871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872   (eval $ac_try) 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); }; }; then
3876   ac_cv_lib_nsl_gethostbyname=yes
3877 else
3878   echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 ac_cv_lib_nsl_gethostbyname=no
3882 fi
3883 rm -f conftest.err conftest.$ac_objext \
3884       conftest$ac_exeext conftest.$ac_ext
3885 LIBS=$ac_check_lib_save_LIBS
3886 fi
3887 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3888 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3889 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3890   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3891 fi
3892
3893       if test $ac_cv_lib_nsl_gethostbyname = no; then
3894         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3895 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3896 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   ac_check_lib_save_LIBS=$LIBS
3900 LIBS="-lbsd  $LIBS"
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h.  */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h.  */
3907
3908 /* Override any gcc2 internal prototype to avoid an error.  */
3909 #ifdef __cplusplus
3910 extern "C"
3911 #endif
3912 /* We use char because int might match the return type of a gcc2
3913    builtin and then its argument prototype would still apply.  */
3914 char gethostbyname ();
3915 int
3916 main ()
3917 {
3918 gethostbyname ();
3919   ;
3920   return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.$ac_objext conftest$ac_exeext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3925   (eval $ac_link) 2>conftest.er1
3926   ac_status=$?
3927   grep -v '^ *+' conftest.er1 >conftest.err
3928   rm -f conftest.er1
3929   cat conftest.err >&5
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } &&
3932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934   (eval $ac_try) 2>&5
3935   ac_status=$?
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); }; } &&
3938          { ac_try='test -s conftest$ac_exeext'
3939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940   (eval $ac_try) 2>&5
3941   ac_status=$?
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); }; }; then
3944   ac_cv_lib_bsd_gethostbyname=yes
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 ac_cv_lib_bsd_gethostbyname=no
3950 fi
3951 rm -f conftest.err conftest.$ac_objext \
3952       conftest$ac_exeext conftest.$ac_ext
3953 LIBS=$ac_check_lib_save_LIBS
3954 fi
3955 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3956 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3957 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3958   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3959 fi
3960
3961       fi
3962     fi
3963
3964     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3965     # socket/setsockopt and other routines are undefined under SCO ODT
3966     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3967     # on later versions), says Simon Leinen: it contains gethostby*
3968     # variants that don't use the name server (or something).  -lsocket
3969     # must be given before -lnsl if both are needed.  We assume that
3970     # if connect needs -lnsl, so does gethostbyname.
3971     echo "$as_me:$LINENO: checking for connect" >&5
3972 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3973 if test "${ac_cv_func_connect+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h.  */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h.  */
3982 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3984 #define connect innocuous_connect
3985
3986 /* System header to define __stub macros and hopefully few prototypes,
3987     which can conflict with char connect (); below.
3988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989     <limits.h> exists even on freestanding compilers.  */
3990
3991 #ifdef __STDC__
3992 # include <limits.h>
3993 #else
3994 # include <assert.h>
3995 #endif
3996
3997 #undef connect
3998
3999 /* Override any gcc2 internal prototype to avoid an error.  */
4000 #ifdef __cplusplus
4001 extern "C"
4002 {
4003 #endif
4004 /* We use char because int might match the return type of a gcc2
4005    builtin and then its argument prototype would still apply.  */
4006 char connect ();
4007 /* The GNU C library defines this for functions which it implements
4008     to always fail with ENOSYS.  Some functions are actually named
4009     something starting with __ and the normal name is an alias.  */
4010 #if defined (__stub_connect) || defined (__stub___connect)
4011 choke me
4012 #else
4013 char (*f) () = connect;
4014 #endif
4015 #ifdef __cplusplus
4016 }
4017 #endif
4018
4019 int
4020 main ()
4021 {
4022 return f != connect;
4023   ;
4024   return 0;
4025 }
4026 _ACEOF
4027 rm -f conftest.$ac_objext conftest$ac_exeext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4029   (eval $ac_link) 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } &&
4036          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038   (eval $ac_try) 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); }; } &&
4042          { ac_try='test -s conftest$ac_exeext'
4043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044   (eval $ac_try) 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }; }; then
4048   ac_cv_func_connect=yes
4049 else
4050   echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 ac_cv_func_connect=no
4054 fi
4055 rm -f conftest.err conftest.$ac_objext \
4056       conftest$ac_exeext conftest.$ac_ext
4057 fi
4058 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4059 echo "${ECHO_T}$ac_cv_func_connect" >&6
4060
4061     if test $ac_cv_func_connect = no; then
4062       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4063 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4064 if test "${ac_cv_lib_socket_connect+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   ac_check_lib_save_LIBS=$LIBS
4068 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h.  */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h.  */
4075
4076 /* Override any gcc2 internal prototype to avoid an error.  */
4077 #ifdef __cplusplus
4078 extern "C"
4079 #endif
4080 /* We use char because int might match the return type of a gcc2
4081    builtin and then its argument prototype would still apply.  */
4082 char connect ();
4083 int
4084 main ()
4085 {
4086 connect ();
4087   ;
4088   return 0;
4089 }
4090 _ACEOF
4091 rm -f conftest.$ac_objext conftest$ac_exeext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4093   (eval $ac_link) 2>conftest.er1
4094   ac_status=$?
4095   grep -v '^ *+' conftest.er1 >conftest.err
4096   rm -f conftest.er1
4097   cat conftest.err >&5
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); } &&
4100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102   (eval $ac_try) 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; } &&
4106          { ac_try='test -s conftest$ac_exeext'
4107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108   (eval $ac_try) 2>&5
4109   ac_status=$?
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); }; }; then
4112   ac_cv_lib_socket_connect=yes
4113 else
4114   echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4116
4117 ac_cv_lib_socket_connect=no
4118 fi
4119 rm -f conftest.err conftest.$ac_objext \
4120       conftest$ac_exeext conftest.$ac_ext
4121 LIBS=$ac_check_lib_save_LIBS
4122 fi
4123 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4124 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4125 if test $ac_cv_lib_socket_connect = yes; then
4126   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4127 fi
4128
4129     fi
4130
4131     # Guillermo Gomez says -lposix is necessary on A/UX.
4132     echo "$as_me:$LINENO: checking for remove" >&5
4133 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4134 if test "${ac_cv_func_remove+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4145 #define remove innocuous_remove
4146
4147 /* System header to define __stub macros and hopefully few prototypes,
4148     which can conflict with char remove (); below.
4149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150     <limits.h> exists even on freestanding compilers.  */
4151
4152 #ifdef __STDC__
4153 # include <limits.h>
4154 #else
4155 # include <assert.h>
4156 #endif
4157
4158 #undef remove
4159
4160 /* Override any gcc2 internal prototype to avoid an error.  */
4161 #ifdef __cplusplus
4162 extern "C"
4163 {
4164 #endif
4165 /* We use char because int might match the return type of a gcc2
4166    builtin and then its argument prototype would still apply.  */
4167 char remove ();
4168 /* The GNU C library defines this for functions which it implements
4169     to always fail with ENOSYS.  Some functions are actually named
4170     something starting with __ and the normal name is an alias.  */
4171 #if defined (__stub_remove) || defined (__stub___remove)
4172 choke me
4173 #else
4174 char (*f) () = remove;
4175 #endif
4176 #ifdef __cplusplus
4177 }
4178 #endif
4179
4180 int
4181 main ()
4182 {
4183 return f != remove;
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
4188 rm -f conftest.$ac_objext conftest$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190   (eval $ac_link) 2>conftest.er1
4191   ac_status=$?
4192   grep -v '^ *+' conftest.er1 >conftest.err
4193   rm -f conftest.er1
4194   cat conftest.err >&5
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } &&
4197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199   (eval $ac_try) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; } &&
4203          { ac_try='test -s conftest$ac_exeext'
4204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; }; then
4209   ac_cv_func_remove=yes
4210 else
4211   echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 ac_cv_func_remove=no
4215 fi
4216 rm -f conftest.err conftest.$ac_objext \
4217       conftest$ac_exeext conftest.$ac_ext
4218 fi
4219 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4220 echo "${ECHO_T}$ac_cv_func_remove" >&6
4221
4222     if test $ac_cv_func_remove = no; then
4223       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4224 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4225 if test "${ac_cv_lib_posix_remove+set}" = set; then
4226   echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228   ac_check_lib_save_LIBS=$LIBS
4229 LIBS="-lposix  $LIBS"
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236
4237 /* Override any gcc2 internal prototype to avoid an error.  */
4238 #ifdef __cplusplus
4239 extern "C"
4240 #endif
4241 /* We use char because int might match the return type of a gcc2
4242    builtin and then its argument prototype would still apply.  */
4243 char remove ();
4244 int
4245 main ()
4246 {
4247 remove ();
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.$ac_objext conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254   (eval $ac_link) 2>conftest.er1
4255   ac_status=$?
4256   grep -v '^ *+' conftest.er1 >conftest.err
4257   rm -f conftest.er1
4258   cat conftest.err >&5
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } &&
4261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263   (eval $ac_try) 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); }; } &&
4267          { ac_try='test -s conftest$ac_exeext'
4268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269   (eval $ac_try) 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; }; then
4273   ac_cv_lib_posix_remove=yes
4274 else
4275   echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 ac_cv_lib_posix_remove=no
4279 fi
4280 rm -f conftest.err conftest.$ac_objext \
4281       conftest$ac_exeext conftest.$ac_ext
4282 LIBS=$ac_check_lib_save_LIBS
4283 fi
4284 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4285 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4286 if test $ac_cv_lib_posix_remove = yes; then
4287   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4288 fi
4289
4290     fi
4291
4292     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4293     echo "$as_me:$LINENO: checking for shmat" >&5
4294 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4295 if test "${ac_cv_func_shmat+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h.  */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h.  */
4304 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4306 #define shmat innocuous_shmat
4307
4308 /* System header to define __stub macros and hopefully few prototypes,
4309     which can conflict with char shmat (); below.
4310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311     <limits.h> exists even on freestanding compilers.  */
4312
4313 #ifdef __STDC__
4314 # include <limits.h>
4315 #else
4316 # include <assert.h>
4317 #endif
4318
4319 #undef shmat
4320
4321 /* Override any gcc2 internal prototype to avoid an error.  */
4322 #ifdef __cplusplus
4323 extern "C"
4324 {
4325 #endif
4326 /* We use char because int might match the return type of a gcc2
4327    builtin and then its argument prototype would still apply.  */
4328 char shmat ();
4329 /* The GNU C library defines this for functions which it implements
4330     to always fail with ENOSYS.  Some functions are actually named
4331     something starting with __ and the normal name is an alias.  */
4332 #if defined (__stub_shmat) || defined (__stub___shmat)
4333 choke me
4334 #else
4335 char (*f) () = shmat;
4336 #endif
4337 #ifdef __cplusplus
4338 }
4339 #endif
4340
4341 int
4342 main ()
4343 {
4344 return f != shmat;
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 rm -f conftest.$ac_objext conftest$ac_exeext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4351   (eval $ac_link) 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } &&
4358          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360   (eval $ac_try) 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); }; } &&
4364          { ac_try='test -s conftest$ac_exeext'
4365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366   (eval $ac_try) 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); }; }; then
4370   ac_cv_func_shmat=yes
4371 else
4372   echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 ac_cv_func_shmat=no
4376 fi
4377 rm -f conftest.err conftest.$ac_objext \
4378       conftest$ac_exeext conftest.$ac_ext
4379 fi
4380 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4381 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4382
4383     if test $ac_cv_func_shmat = no; then
4384       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4385 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4386 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4387   echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389   ac_check_lib_save_LIBS=$LIBS
4390 LIBS="-lipc  $LIBS"
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397
4398 /* Override any gcc2 internal prototype to avoid an error.  */
4399 #ifdef __cplusplus
4400 extern "C"
4401 #endif
4402 /* We use char because int might match the return type of a gcc2
4403    builtin and then its argument prototype would still apply.  */
4404 char shmat ();
4405 int
4406 main ()
4407 {
4408 shmat ();
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 rm -f conftest.$ac_objext conftest$ac_exeext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415   (eval $ac_link) 2>conftest.er1
4416   ac_status=$?
4417   grep -v '^ *+' conftest.er1 >conftest.err
4418   rm -f conftest.er1
4419   cat conftest.err >&5
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); } &&
4422          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; } &&
4428          { ac_try='test -s conftest$ac_exeext'
4429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430   (eval $ac_try) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; }; then
4434   ac_cv_lib_ipc_shmat=yes
4435 else
4436   echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439 ac_cv_lib_ipc_shmat=no
4440 fi
4441 rm -f conftest.err conftest.$ac_objext \
4442       conftest$ac_exeext conftest.$ac_ext
4443 LIBS=$ac_check_lib_save_LIBS
4444 fi
4445 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4446 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4447 if test $ac_cv_lib_ipc_shmat = yes; then
4448   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4449 fi
4450
4451     fi
4452   fi
4453
4454   # Check for libraries that X11R6 Xt/Xaw programs need.
4455   ac_save_LDFLAGS=$LDFLAGS
4456   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4457   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4458   # check for ICE first), but we must link in the order -lSM -lICE or
4459   # we get undefined symbols.  So assume we have SM if we have ICE.
4460   # These have to be linked with before -lX11, unlike the other
4461   # libraries we check for below, so use a different variable.
4462   # John Interrante, Karl Berry
4463   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4464 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4465 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   ac_check_lib_save_LIBS=$LIBS
4469 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4470 cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h.  */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h.  */
4476
4477 /* Override any gcc2 internal prototype to avoid an error.  */
4478 #ifdef __cplusplus
4479 extern "C"
4480 #endif
4481 /* We use char because int might match the return type of a gcc2
4482    builtin and then its argument prototype would still apply.  */
4483 char IceConnectionNumber ();
4484 int
4485 main ()
4486 {
4487 IceConnectionNumber ();
4488   ;
4489   return 0;
4490 }
4491 _ACEOF
4492 rm -f conftest.$ac_objext conftest$ac_exeext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4494   (eval $ac_link) 2>conftest.er1
4495   ac_status=$?
4496   grep -v '^ *+' conftest.er1 >conftest.err
4497   rm -f conftest.er1
4498   cat conftest.err >&5
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); } &&
4501          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503   (eval $ac_try) 2>&5
4504   ac_status=$?
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); }; } &&
4507          { ac_try='test -s conftest$ac_exeext'
4508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509   (eval $ac_try) 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); }; }; then
4513   ac_cv_lib_ICE_IceConnectionNumber=yes
4514 else
4515   echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518 ac_cv_lib_ICE_IceConnectionNumber=no
4519 fi
4520 rm -f conftest.err conftest.$ac_objext \
4521       conftest$ac_exeext conftest.$ac_ext
4522 LIBS=$ac_check_lib_save_LIBS
4523 fi
4524 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4525 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4526 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4527   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4528 fi
4529
4530   LDFLAGS=$ac_save_LDFLAGS
4531
4532 fi
4533
4534 for ac_prog in flex lex
4535 do
4536   # Extract the first word of "$ac_prog", so it can be a program name with args.
4537 set dummy $ac_prog; ac_word=$2
4538 echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540 if test "${ac_cv_prog_LEX+set}" = set; then
4541   echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543   if test -n "$LEX"; then
4544   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4545 else
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549   IFS=$as_save_IFS
4550   test -z "$as_dir" && as_dir=.
4551   for ac_exec_ext in '' $ac_executable_extensions; do
4552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553     ac_cv_prog_LEX="$ac_prog"
4554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555     break 2
4556   fi
4557 done
4558 done
4559
4560 fi
4561 fi
4562 LEX=$ac_cv_prog_LEX
4563 if test -n "$LEX"; then
4564   echo "$as_me:$LINENO: result: $LEX" >&5
4565 echo "${ECHO_T}$LEX" >&6
4566 else
4567   echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6
4569 fi
4570
4571   test -n "$LEX" && break
4572 done
4573 test -n "$LEX" || LEX=":"
4574
4575 if test -z "$LEXLIB"
4576 then
4577   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4578 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4579 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   ac_check_lib_save_LIBS=$LIBS
4583 LIBS="-lfl  $LIBS"
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h.  */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h.  */
4590
4591 /* Override any gcc2 internal prototype to avoid an error.  */
4592 #ifdef __cplusplus
4593 extern "C"
4594 #endif
4595 /* We use char because int might match the return type of a gcc2
4596    builtin and then its argument prototype would still apply.  */
4597 char yywrap ();
4598 int
4599 main ()
4600 {
4601 yywrap ();
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext conftest$ac_exeext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4608   (eval $ac_link) 2>conftest.er1
4609   ac_status=$?
4610   grep -v '^ *+' conftest.er1 >conftest.err
4611   rm -f conftest.er1
4612   cat conftest.err >&5
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } &&
4615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest$ac_exeext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   ac_cv_lib_fl_yywrap=yes
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_cv_lib_fl_yywrap=no
4633 fi
4634 rm -f conftest.err conftest.$ac_objext \
4635       conftest$ac_exeext conftest.$ac_ext
4636 LIBS=$ac_check_lib_save_LIBS
4637 fi
4638 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4639 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4640 if test $ac_cv_lib_fl_yywrap = yes; then
4641   LEXLIB="-lfl"
4642 else
4643   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4644 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4645 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4646   echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648   ac_check_lib_save_LIBS=$LIBS
4649 LIBS="-ll  $LIBS"
4650 cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656
4657 /* Override any gcc2 internal prototype to avoid an error.  */
4658 #ifdef __cplusplus
4659 extern "C"
4660 #endif
4661 /* We use char because int might match the return type of a gcc2
4662    builtin and then its argument prototype would still apply.  */
4663 char yywrap ();
4664 int
4665 main ()
4666 {
4667 yywrap ();
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 rm -f conftest.$ac_objext conftest$ac_exeext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4674   (eval $ac_link) 2>conftest.er1
4675   ac_status=$?
4676   grep -v '^ *+' conftest.er1 >conftest.err
4677   rm -f conftest.er1
4678   cat conftest.err >&5
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } &&
4681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; } &&
4687          { ac_try='test -s conftest$ac_exeext'
4688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689   (eval $ac_try) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; }; then
4693   ac_cv_lib_l_yywrap=yes
4694 else
4695   echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 ac_cv_lib_l_yywrap=no
4699 fi
4700 rm -f conftest.err conftest.$ac_objext \
4701       conftest$ac_exeext conftest.$ac_ext
4702 LIBS=$ac_check_lib_save_LIBS
4703 fi
4704 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4705 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4706 if test $ac_cv_lib_l_yywrap = yes; then
4707   LEXLIB="-ll"
4708 fi
4709
4710 fi
4711
4712 fi
4713
4714 if test "x$LEX" != "x:"; then
4715   echo "$as_me:$LINENO: checking lex output file root" >&5
4716 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4717 if test "${ac_cv_prog_lex_root+set}" = set; then
4718   echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720   # The minimal lex program is just a single line: %%.  But some broken lexes
4721 # (Solaris, I think it was) want two %% lines, so accommodate them.
4722 cat >conftest.l <<_ACEOF
4723 %%
4724 %%
4725 _ACEOF
4726 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4727   (eval $LEX conftest.l) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }
4731 if test -f lex.yy.c; then
4732   ac_cv_prog_lex_root=lex.yy
4733 elif test -f lexyy.c; then
4734   ac_cv_prog_lex_root=lexyy
4735 else
4736   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4737 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4738    { (exit 1); exit 1; }; }
4739 fi
4740 fi
4741 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4742 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4743 rm -f conftest.l
4744 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4745
4746 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4747 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4748 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4749   echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751   # POSIX says lex can declare yytext either as a pointer or an array; the
4752 # default is implementation-dependent. Figure out which it is, since
4753 # not all implementations provide the %pointer and %array declarations.
4754 ac_cv_prog_lex_yytext_pointer=no
4755 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4756 ac_save_LIBS=$LIBS
4757 LIBS="$LIBS $LEXLIB"
4758 cat >conftest.$ac_ext <<_ACEOF
4759 `cat $LEX_OUTPUT_ROOT.c`
4760 _ACEOF
4761 rm -f conftest.$ac_objext conftest$ac_exeext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4763   (eval $ac_link) 2>conftest.er1
4764   ac_status=$?
4765   grep -v '^ *+' conftest.er1 >conftest.err
4766   rm -f conftest.er1
4767   cat conftest.err >&5
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); } &&
4770          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772   (eval $ac_try) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; } &&
4776          { ac_try='test -s conftest$ac_exeext'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; }; then
4782   ac_cv_prog_lex_yytext_pointer=yes
4783 else
4784   echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 fi
4788 rm -f conftest.err conftest.$ac_objext \
4789       conftest$ac_exeext conftest.$ac_ext
4790 LIBS=$ac_save_LIBS
4791 rm -f "${LEX_OUTPUT_ROOT}.c"
4792
4793 fi
4794 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4795 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4796 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4797
4798 cat >>confdefs.h <<\_ACEOF
4799 #define YYTEXT_POINTER 1
4800 _ACEOF
4801
4802 fi
4803
4804 fi
4805
4806 for ac_prog in $LEX flex lex
4807 do
4808   # Extract the first word of "$ac_prog", so it can be a program name with args.
4809 set dummy $ac_prog; ac_word=$2
4810 echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812 if test "${ac_cv_prog_XLEX+set}" = set; then
4813   echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815   if test -n "$XLEX"; then
4816   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821   IFS=$as_save_IFS
4822   test -z "$as_dir" && as_dir=.
4823   for ac_exec_ext in '' $ac_executable_extensions; do
4824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825     ac_cv_prog_XLEX="$ac_prog"
4826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827     break 2
4828   fi
4829 done
4830 done
4831
4832 fi
4833 fi
4834 XLEX=$ac_cv_prog_XLEX
4835 if test -n "$XLEX"; then
4836   echo "$as_me:$LINENO: result: $XLEX" >&5
4837 echo "${ECHO_T}$XLEX" >&6
4838 else
4839   echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4841 fi
4842
4843   test -n "$XLEX" && break
4844 done
4845 test -n "$XLEX" || XLEX="none"
4846
4847 if test "$XLEX" = "none"
4848 then
4849   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4850 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4851    { (exit 1); exit 1; }; }
4852 fi
4853
4854 for ac_prog in bison
4855 do
4856   # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4860 if test "${ac_cv_prog_BISON+set}" = set; then
4861   echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863   if test -n "$BISON"; then
4864   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873     ac_cv_prog_BISON="$ac_prog"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879
4880 fi
4881 fi
4882 BISON=$ac_cv_prog_BISON
4883 if test -n "$BISON"; then
4884   echo "$as_me:$LINENO: result: $BISON" >&5
4885 echo "${ECHO_T}$BISON" >&6
4886 else
4887   echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6
4889 fi
4890
4891   test -n "$BISON" && break
4892 done
4893 test -n "$BISON" || BISON="none"
4894
4895 if test "$BISON" = "none"
4896 then
4897   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4898 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4899    { (exit 1); exit 1; }; }
4900 fi
4901
4902 if test -n "$ac_tool_prefix"; then
4903   for ac_prog in gas as
4904   do
4905     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4907 echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4909 if test "${ac_cv_prog_AS+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   if test -n "$AS"; then
4913   ac_cv_prog_AS="$AS" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920   for ac_exec_ext in '' $ac_executable_extensions; do
4921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927 done
4928
4929 fi
4930 fi
4931 AS=$ac_cv_prog_AS
4932 if test -n "$AS"; then
4933   echo "$as_me:$LINENO: result: $AS" >&5
4934 echo "${ECHO_T}$AS" >&6
4935 else
4936   echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6
4938 fi
4939
4940     test -n "$AS" && break
4941   done
4942 fi
4943 if test -z "$AS"; then
4944   ac_ct_AS=$AS
4945   for ac_prog in gas as
4946 do
4947   # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; ac_word=$2
4949 echo "$as_me:$LINENO: checking for $ac_word" >&5
4950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4951 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4952   echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954   if test -n "$ac_ct_AS"; then
4955   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962   for ac_exec_ext in '' $ac_executable_extensions; do
4963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964     ac_cv_prog_ac_ct_AS="$ac_prog"
4965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969 done
4970
4971 fi
4972 fi
4973 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4974 if test -n "$ac_ct_AS"; then
4975   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4976 echo "${ECHO_T}$ac_ct_AS" >&6
4977 else
4978   echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6
4980 fi
4981
4982   test -n "$ac_ct_AS" && break
4983 done
4984 test -n "$ac_ct_AS" || ac_ct_AS="as"
4985
4986   AS=$ac_ct_AS
4987 fi
4988
4989 if test -n "$ac_tool_prefix"; then
4990   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4991 set dummy ${ac_tool_prefix}ld; ac_word=$2
4992 echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994 if test "${ac_cv_prog_LD+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997   if test -n "$LD"; then
4998   ac_cv_prog_LD="$LD" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005   for ac_exec_ext in '' $ac_executable_extensions; do
5006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007     ac_cv_prog_LD="${ac_tool_prefix}ld"
5008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012 done
5013
5014 fi
5015 fi
5016 LD=$ac_cv_prog_LD
5017 if test -n "$LD"; then
5018   echo "$as_me:$LINENO: result: $LD" >&5
5019 echo "${ECHO_T}$LD" >&6
5020 else
5021   echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5023 fi
5024
5025 fi
5026 if test -z "$ac_cv_prog_LD"; then
5027   ac_ct_LD=$LD
5028   # Extract the first word of "ld", so it can be a program name with args.
5029 set dummy ld; ac_word=$2
5030 echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   if test -n "$ac_ct_LD"; then
5036   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041   IFS=$as_save_IFS
5042   test -z "$as_dir" && as_dir=.
5043   for ac_exec_ext in '' $ac_executable_extensions; do
5044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045     ac_cv_prog_ac_ct_LD="ld"
5046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047     break 2
5048   fi
5049 done
5050 done
5051
5052   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5053 fi
5054 fi
5055 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5056 if test -n "$ac_ct_LD"; then
5057   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5058 echo "${ECHO_T}$ac_ct_LD" >&6
5059 else
5060   echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5062 fi
5063
5064   LD=$ac_ct_LD
5065 else
5066   LD="$ac_cv_prog_LD"
5067 fi
5068
5069 if test -n "$ac_tool_prefix"; then
5070   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5071 set dummy ${ac_tool_prefix}ar; ac_word=$2
5072 echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5074 if test "${ac_cv_prog_AR+set}" = set; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077   if test -n "$AR"; then
5078   ac_cv_prog_AR="$AR" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083   IFS=$as_save_IFS
5084   test -z "$as_dir" && as_dir=.
5085   for ac_exec_ext in '' $ac_executable_extensions; do
5086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087     ac_cv_prog_AR="${ac_tool_prefix}ar"
5088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089     break 2
5090   fi
5091 done
5092 done
5093
5094 fi
5095 fi
5096 AR=$ac_cv_prog_AR
5097 if test -n "$AR"; then
5098   echo "$as_me:$LINENO: result: $AR" >&5
5099 echo "${ECHO_T}$AR" >&6
5100 else
5101   echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6
5103 fi
5104
5105 fi
5106 if test -z "$ac_cv_prog_AR"; then
5107   ac_ct_AR=$AR
5108   # Extract the first word of "ar", so it can be a program name with args.
5109 set dummy ar; ac_word=$2
5110 echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5112 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   if test -n "$ac_ct_AR"; then
5116   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123   for ac_exec_ext in '' $ac_executable_extensions; do
5124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125     ac_cv_prog_ac_ct_AR="ar"
5126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127     break 2
5128   fi
5129 done
5130 done
5131
5132   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5133 fi
5134 fi
5135 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5136 if test -n "$ac_ct_AR"; then
5137   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5138 echo "${ECHO_T}$ac_ct_AR" >&6
5139 else
5140   echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6
5142 fi
5143
5144   AR=$ac_ct_AR
5145 else
5146   AR="$ac_cv_prog_AR"
5147 fi
5148
5149 if test -n "$ac_tool_prefix"; then
5150   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5151 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5152 echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154 if test "${ac_cv_prog_RANLIB+set}" = set; then
5155   echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157   if test -n "$RANLIB"; then
5158   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165   for ac_exec_ext in '' $ac_executable_extensions; do
5166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172 done
5173
5174 fi
5175 fi
5176 RANLIB=$ac_cv_prog_RANLIB
5177 if test -n "$RANLIB"; then
5178   echo "$as_me:$LINENO: result: $RANLIB" >&5
5179 echo "${ECHO_T}$RANLIB" >&6
5180 else
5181   echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5183 fi
5184
5185 fi
5186 if test -z "$ac_cv_prog_RANLIB"; then
5187   ac_ct_RANLIB=$RANLIB
5188   # Extract the first word of "ranlib", so it can be a program name with args.
5189 set dummy ranlib; ac_word=$2
5190 echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195   if test -n "$ac_ct_RANLIB"; then
5196   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203   for ac_exec_ext in '' $ac_executable_extensions; do
5204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205     ac_cv_prog_ac_ct_RANLIB="ranlib"
5206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210 done
5211
5212   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5213 fi
5214 fi
5215 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5216 if test -n "$ac_ct_RANLIB"; then
5217   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5218 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5219 else
5220   echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6
5222 fi
5223
5224   RANLIB=$ac_ct_RANLIB
5225 else
5226   RANLIB="$ac_cv_prog_RANLIB"
5227 fi
5228
5229 if test -n "$ac_tool_prefix"; then
5230   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5231 set dummy ${ac_tool_prefix}strip; ac_word=$2
5232 echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234 if test "${ac_cv_prog_STRIP+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   if test -n "$STRIP"; then
5238   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245   for ac_exec_ext in '' $ac_executable_extensions; do
5246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249     break 2
5250   fi
5251 done
5252 done
5253
5254 fi
5255 fi
5256 STRIP=$ac_cv_prog_STRIP
5257 if test -n "$STRIP"; then
5258   echo "$as_me:$LINENO: result: $STRIP" >&5
5259 echo "${ECHO_T}$STRIP" >&6
5260 else
5261   echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6
5263 fi
5264
5265 fi
5266 if test -z "$ac_cv_prog_STRIP"; then
5267   ac_ct_STRIP=$STRIP
5268   # Extract the first word of "strip", so it can be a program name with args.
5269 set dummy strip; ac_word=$2
5270 echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5272 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5273   echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275   if test -n "$ac_ct_STRIP"; then
5276   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281   IFS=$as_save_IFS
5282   test -z "$as_dir" && as_dir=.
5283   for ac_exec_ext in '' $ac_executable_extensions; do
5284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285     ac_cv_prog_ac_ct_STRIP="strip"
5286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287     break 2
5288   fi
5289 done
5290 done
5291
5292   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5293 fi
5294 fi
5295 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5296 if test -n "$ac_ct_STRIP"; then
5297   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5298 echo "${ECHO_T}$ac_ct_STRIP" >&6
5299 else
5300   echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5302 fi
5303
5304   STRIP=$ac_ct_STRIP
5305 else
5306   STRIP="$ac_cv_prog_STRIP"
5307 fi
5308
5309 if test -n "$ac_tool_prefix"; then
5310   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5311 set dummy ${ac_tool_prefix}windres; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_prog_WINDRES+set}" = set; then
5315   echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317   if test -n "$WINDRES"; then
5318   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323   IFS=$as_save_IFS
5324   test -z "$as_dir" && as_dir=.
5325   for ac_exec_ext in '' $ac_executable_extensions; do
5326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329     break 2
5330   fi
5331 done
5332 done
5333
5334 fi
5335 fi
5336 WINDRES=$ac_cv_prog_WINDRES
5337 if test -n "$WINDRES"; then
5338   echo "$as_me:$LINENO: result: $WINDRES" >&5
5339 echo "${ECHO_T}$WINDRES" >&6
5340 else
5341   echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5343 fi
5344
5345 fi
5346 if test -z "$ac_cv_prog_WINDRES"; then
5347   ac_ct_WINDRES=$WINDRES
5348   # Extract the first word of "windres", so it can be a program name with args.
5349 set dummy windres; ac_word=$2
5350 echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5353   echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5355   if test -n "$ac_ct_WINDRES"; then
5356   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361   IFS=$as_save_IFS
5362   test -z "$as_dir" && as_dir=.
5363   for ac_exec_ext in '' $ac_executable_extensions; do
5364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365     ac_cv_prog_ac_ct_WINDRES="windres"
5366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370 done
5371
5372   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5373 fi
5374 fi
5375 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5376 if test -n "$ac_ct_WINDRES"; then
5377   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5378 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5379 else
5380   echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6
5382 fi
5383
5384   WINDRES=$ac_ct_WINDRES
5385 else
5386   WINDRES="$ac_cv_prog_WINDRES"
5387 fi
5388
5389 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5390 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5391 LN_S=$as_ln_s
5392 if test "$LN_S" = "ln -s"; then
5393   echo "$as_me:$LINENO: result: yes" >&5
5394 echo "${ECHO_T}yes" >&6
5395 else
5396   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5397 echo "${ECHO_T}no, using $LN_S" >&6
5398 fi
5399
5400 echo "$as_me:$LINENO: checking whether ln works" >&5
5401 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5402 rm -f conf$$ conf$$.file
5403 echo >conf$$.file
5404 if ln conf$$.file conf$$ 2>/dev/null; then
5405   LN=ln
5406
5407   echo "$as_me:$LINENO: result: yes" >&5
5408 echo "${ECHO_T}yes" >&6
5409 else
5410   LN="cp -p"
5411
5412   echo "$as_me:$LINENO: result: no, using $LN" >&5
5413 echo "${ECHO_T}no, using $LN" >&6
5414 fi
5415 rm -f conf$$ conf$$.file
5416 echo "$as_me:$LINENO: checking for egrep" >&5
5417 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5418 if test "${ac_cv_prog_egrep+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5422     then ac_cv_prog_egrep='grep -E'
5423     else ac_cv_prog_egrep='egrep'
5424     fi
5425 fi
5426 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5427 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5428  EGREP=$ac_cv_prog_egrep
5429
5430
5431 # Extract the first word of "ldconfig", so it can be a program name with args.
5432 set dummy ldconfig; ac_word=$2
5433 echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   case $LDCONFIG in
5439   [\\/]* | ?:[\\/]*)
5440   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5441   ;;
5442   *)
5443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in /sbin /usr/sbin $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448   for ac_exec_ext in '' $ac_executable_extensions; do
5449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452     break 2
5453   fi
5454 done
5455 done
5456
5457   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5458   ;;
5459 esac
5460 fi
5461 LDCONFIG=$ac_cv_path_LDCONFIG
5462
5463 if test -n "$LDCONFIG"; then
5464   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5465 echo "${ECHO_T}$LDCONFIG" >&6
5466 else
5467   echo "$as_me:$LINENO: result: no" >&5
5468 echo "${ECHO_T}no" >&6
5469 fi
5470
5471 # Find a good install program.  We prefer a C program (faster),
5472 # so one script is as good as another.  But avoid the broken or
5473 # incompatible versions:
5474 # SysV /etc/install, /usr/sbin/install
5475 # SunOS /usr/etc/install
5476 # IRIX /sbin/install
5477 # AIX /bin/install
5478 # AmigaOS /C/install, which installs bootblocks on floppy discs
5479 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5480 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5481 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5482 # OS/2's system install, which has a completely different semantic
5483 # ./install, which can be erroneously created by make from ./install.sh.
5484 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5485 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5486 if test -z "$INSTALL"; then
5487 if test "${ac_cv_path_install+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493   IFS=$as_save_IFS
5494   test -z "$as_dir" && as_dir=.
5495   # Account for people who put trailing slashes in PATH elements.
5496 case $as_dir/ in
5497   ./ | .// | /cC/* | \
5498   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5499   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5500   /usr/ucb/* ) ;;
5501   *)
5502     # OSF1 and SCO ODT 3.0 have their own names for install.
5503     # Don't use installbsd from OSF since it installs stuff as root
5504     # by default.
5505     for ac_prog in ginstall scoinst install; do
5506       for ac_exec_ext in '' $ac_executable_extensions; do
5507         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5508           if test $ac_prog = install &&
5509             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5510             # AIX install.  It has an incompatible calling convention.
5511             :
5512           elif test $ac_prog = install &&
5513             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5514             # program-specific install script used by HP pwplus--don't use.
5515             :
5516           else
5517             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5518             break 3
5519           fi
5520         fi
5521       done
5522     done
5523     ;;
5524 esac
5525 done
5526
5527
5528 fi
5529   if test "${ac_cv_path_install+set}" = set; then
5530     INSTALL=$ac_cv_path_install
5531   else
5532     # As a last resort, use the slow shell script.  We don't cache a
5533     # path for INSTALL within a source directory, because that will
5534     # break other packages using the cache if that directory is
5535     # removed, or if the path is relative.
5536     INSTALL=$ac_install_sh
5537   fi
5538 fi
5539 echo "$as_me:$LINENO: result: $INSTALL" >&5
5540 echo "${ECHO_T}$INSTALL" >&6
5541
5542 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5543 # It thinks the first close brace ends the variable substitution.
5544 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5545
5546 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5547
5548 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5549
5550 case "$INSTALL" in
5551   [\\/$]* | ?:[\\/]* ) ;;
5552   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5553 esac
5554
5555 for ac_prog in lclint lint
5556 do
5557   # Extract the first word of "$ac_prog", so it can be a program name with args.
5558 set dummy $ac_prog; ac_word=$2
5559 echo "$as_me:$LINENO: checking for $ac_word" >&5
5560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5561 if test "${ac_cv_prog_LINT+set}" = set; then
5562   echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564   if test -n "$LINT"; then
5565   ac_cv_prog_LINT="$LINT" # Let the user override the test.
5566 else
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570   IFS=$as_save_IFS
5571   test -z "$as_dir" && as_dir=.
5572   for ac_exec_ext in '' $ac_executable_extensions; do
5573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574     ac_cv_prog_LINT="$ac_prog"
5575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576     break 2
5577   fi
5578 done
5579 done
5580
5581 fi
5582 fi
5583 LINT=$ac_cv_prog_LINT
5584 if test -n "$LINT"; then
5585   echo "$as_me:$LINENO: result: $LINT" >&5
5586 echo "${ECHO_T}$LINT" >&6
5587 else
5588   echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5590 fi
5591
5592   test -n "$LINT" && break
5593 done
5594
5595 if test "$LINT" = "lint"
5596 then
5597   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5598   fi
5599
5600
5601
5602 for ac_prog in fontforge
5603 do
5604   # Extract the first word of "$ac_prog", so it can be a program name with args.
5605 set dummy $ac_prog; ac_word=$2
5606 echo "$as_me:$LINENO: checking for $ac_word" >&5
5607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5608 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5609   echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611   if test -n "$FONTFORGE"; then
5612   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619   for ac_exec_ext in '' $ac_executable_extensions; do
5620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621     ac_cv_prog_FONTFORGE="$ac_prog"
5622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626 done
5627
5628 fi
5629 fi
5630 FONTFORGE=$ac_cv_prog_FONTFORGE
5631 if test -n "$FONTFORGE"; then
5632   echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5633 echo "${ECHO_T}$FONTFORGE" >&6
5634 else
5635   echo "$as_me:$LINENO: result: no" >&5
5636 echo "${ECHO_T}no" >&6
5637 fi
5638
5639   test -n "$FONTFORGE" && break
5640 done
5641 test -n "$FONTFORGE" || FONTFORGE="false"
5642
5643 for ac_prog in pkg-config
5644 do
5645   # Extract the first word of "$ac_prog", so it can be a program name with args.
5646 set dummy $ac_prog; ac_word=$2
5647 echo "$as_me:$LINENO: checking for $ac_word" >&5
5648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5649 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
5650   echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652   if test -n "$PKG_CONFIG"; then
5653   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658   IFS=$as_save_IFS
5659   test -z "$as_dir" && as_dir=.
5660   for ac_exec_ext in '' $ac_executable_extensions; do
5661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662     ac_cv_prog_PKG_CONFIG="$ac_prog"
5663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664     break 2
5665   fi
5666 done
5667 done
5668
5669 fi
5670 fi
5671 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5672 if test -n "$PKG_CONFIG"; then
5673   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5674 echo "${ECHO_T}$PKG_CONFIG" >&6
5675 else
5676   echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6
5678 fi
5679
5680   test -n "$PKG_CONFIG" && break
5681 done
5682 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5683
5684
5685 case $host_cpu in
5686   *i[3456789]86*)
5687     for ac_prog in prelink
5688 do
5689   # Extract the first word of "$ac_prog", so it can be a program name with args.
5690 set dummy $ac_prog; ac_word=$2
5691 echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5693 if test "${ac_cv_prog_PRELINK+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   if test -n "$PRELINK"; then
5697   ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in /sbin /usr/sbin $PATH
5701 do
5702   IFS=$as_save_IFS
5703   test -z "$as_dir" && as_dir=.
5704   for ac_exec_ext in '' $ac_executable_extensions; do
5705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706     ac_cv_prog_PRELINK="$ac_prog"
5707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708     break 2
5709   fi
5710 done
5711 done
5712
5713 fi
5714 fi
5715 PRELINK=$ac_cv_prog_PRELINK
5716 if test -n "$PRELINK"; then
5717   echo "$as_me:$LINENO: result: $PRELINK" >&5
5718 echo "${ECHO_T}$PRELINK" >&6
5719 else
5720   echo "$as_me:$LINENO: result: no" >&5
5721 echo "${ECHO_T}no" >&6
5722 fi
5723
5724   test -n "$PRELINK" && break
5725 done
5726 test -n "$PRELINK" || PRELINK="false"
5727
5728     ;;
5729 esac
5730
5731
5732
5733 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5734 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5735 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   ac_check_lib_save_LIBS=$LIBS
5739 LIBS="-li386  $LIBS"
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746
5747 /* Override any gcc2 internal prototype to avoid an error.  */
5748 #ifdef __cplusplus
5749 extern "C"
5750 #endif
5751 /* We use char because int might match the return type of a gcc2
5752    builtin and then its argument prototype would still apply.  */
5753 char i386_set_ldt ();
5754 int
5755 main ()
5756 {
5757 i386_set_ldt ();
5758   ;
5759   return 0;
5760 }
5761 _ACEOF
5762 rm -f conftest.$ac_objext conftest$ac_exeext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5764   (eval $ac_link) 2>conftest.er1
5765   ac_status=$?
5766   grep -v '^ *+' conftest.er1 >conftest.err
5767   rm -f conftest.er1
5768   cat conftest.err >&5
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } &&
5771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773   (eval $ac_try) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); }; } &&
5777          { ac_try='test -s conftest$ac_exeext'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; }; then
5783   ac_cv_lib_i386_i386_set_ldt=yes
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 ac_cv_lib_i386_i386_set_ldt=no
5789 fi
5790 rm -f conftest.err conftest.$ac_objext \
5791       conftest$ac_exeext conftest.$ac_ext
5792 LIBS=$ac_check_lib_save_LIBS
5793 fi
5794 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5795 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5796 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5797   cat >>confdefs.h <<_ACEOF
5798 #define HAVE_LIBI386 1
5799 _ACEOF
5800
5801   LIBS="-li386 $LIBS"
5802
5803 fi
5804
5805
5806 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5807 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5808 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   ac_check_lib_save_LIBS=$LIBS
5812 LIBS="-lossaudio  $LIBS"
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h.  */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h.  */
5819
5820 /* Override any gcc2 internal prototype to avoid an error.  */
5821 #ifdef __cplusplus
5822 extern "C"
5823 #endif
5824 /* We use char because int might match the return type of a gcc2
5825    builtin and then its argument prototype would still apply.  */
5826 char _oss_ioctl ();
5827 int
5828 main ()
5829 {
5830 _oss_ioctl ();
5831   ;
5832   return 0;
5833 }
5834 _ACEOF
5835 rm -f conftest.$ac_objext conftest$ac_exeext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837   (eval $ac_link) 2>conftest.er1
5838   ac_status=$?
5839   grep -v '^ *+' conftest.er1 >conftest.err
5840   rm -f conftest.er1
5841   cat conftest.err >&5
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); } &&
5844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846   (eval $ac_try) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; } &&
5850          { ac_try='test -s conftest$ac_exeext'
5851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852   (eval $ac_try) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; }; then
5856   ac_cv_lib_ossaudio__oss_ioctl=yes
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861 ac_cv_lib_ossaudio__oss_ioctl=no
5862 fi
5863 rm -f conftest.err conftest.$ac_objext \
5864       conftest$ac_exeext conftest.$ac_ext
5865 LIBS=$ac_check_lib_save_LIBS
5866 fi
5867 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5868 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5869 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5870   cat >>confdefs.h <<_ACEOF
5871 #define HAVE_LIBOSSAUDIO 1
5872 _ACEOF
5873
5874   LIBS="-lossaudio $LIBS"
5875
5876 fi
5877
5878
5879 for ac_func in gethostbyname
5880 do
5881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5882 echo "$as_me:$LINENO: checking for $ac_func" >&5
5883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5884 if eval "test \"\${$as_ac_var+set}\" = set"; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5895 #define $ac_func innocuous_$ac_func
5896
5897 /* System header to define __stub macros and hopefully few prototypes,
5898     which can conflict with char $ac_func (); below.
5899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900     <limits.h> exists even on freestanding compilers.  */
5901
5902 #ifdef __STDC__
5903 # include <limits.h>
5904 #else
5905 # include <assert.h>
5906 #endif
5907
5908 #undef $ac_func
5909
5910 /* Override any gcc2 internal prototype to avoid an error.  */
5911 #ifdef __cplusplus
5912 extern "C"
5913 {
5914 #endif
5915 /* We use char because int might match the return type of a gcc2
5916    builtin and then its argument prototype would still apply.  */
5917 char $ac_func ();
5918 /* The GNU C library defines this for functions which it implements
5919     to always fail with ENOSYS.  Some functions are actually named
5920     something starting with __ and the normal name is an alias.  */
5921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5922 choke me
5923 #else
5924 char (*f) () = $ac_func;
5925 #endif
5926 #ifdef __cplusplus
5927 }
5928 #endif
5929
5930 int
5931 main ()
5932 {
5933 return f != $ac_func;
5934   ;
5935   return 0;
5936 }
5937 _ACEOF
5938 rm -f conftest.$ac_objext conftest$ac_exeext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5940   (eval $ac_link) 2>conftest.er1
5941   ac_status=$?
5942   grep -v '^ *+' conftest.er1 >conftest.err
5943   rm -f conftest.er1
5944   cat conftest.err >&5
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); } &&
5947          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949   (eval $ac_try) 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }; } &&
5953          { ac_try='test -s conftest$ac_exeext'
5954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955   (eval $ac_try) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }; }; then
5959   eval "$as_ac_var=yes"
5960 else
5961   echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 eval "$as_ac_var=no"
5965 fi
5966 rm -f conftest.err conftest.$ac_objext \
5967       conftest$ac_exeext conftest.$ac_ext
5968 fi
5969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5971 if test `eval echo '${'$as_ac_var'}'` = yes; then
5972   cat >>confdefs.h <<_ACEOF
5973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5974 _ACEOF
5975
5976 else
5977
5978 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5979 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5980 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   ac_check_lib_save_LIBS=$LIBS
5984 LIBS="-lnsl  $LIBS"
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991
5992 /* Override any gcc2 internal prototype to avoid an error.  */
5993 #ifdef __cplusplus
5994 extern "C"
5995 #endif
5996 /* We use char because int might match the return type of a gcc2
5997    builtin and then its argument prototype would still apply.  */
5998 char gethostbyname ();
5999 int
6000 main ()
6001 {
6002 gethostbyname ();
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 rm -f conftest.$ac_objext conftest$ac_exeext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009   (eval $ac_link) 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; } &&
6022          { ac_try='test -s conftest$ac_exeext'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; }; then
6028   ac_cv_lib_nsl_gethostbyname=yes
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 ac_cv_lib_nsl_gethostbyname=no
6034 fi
6035 rm -f conftest.err conftest.$ac_objext \
6036       conftest$ac_exeext conftest.$ac_ext
6037 LIBS=$ac_check_lib_save_LIBS
6038 fi
6039 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6040 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6041 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6042   cat >>confdefs.h <<_ACEOF
6043 #define HAVE_LIBNSL 1
6044 _ACEOF
6045
6046   LIBS="-lnsl $LIBS"
6047
6048 fi
6049
6050 fi
6051 done
6052
6053
6054 for ac_func in connect
6055 do
6056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6057 echo "$as_me:$LINENO: checking for $ac_func" >&5
6058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6059 if eval "test \"\${$as_ac_var+set}\" = set"; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h.  */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h.  */
6068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6070 #define $ac_func innocuous_$ac_func
6071
6072 /* System header to define __stub macros and hopefully few prototypes,
6073     which can conflict with char $ac_func (); below.
6074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6075     <limits.h> exists even on freestanding compilers.  */
6076
6077 #ifdef __STDC__
6078 # include <limits.h>
6079 #else
6080 # include <assert.h>
6081 #endif
6082
6083 #undef $ac_func
6084
6085 /* Override any gcc2 internal prototype to avoid an error.  */
6086 #ifdef __cplusplus
6087 extern "C"
6088 {
6089 #endif
6090 /* We use char because int might match the return type of a gcc2
6091    builtin and then its argument prototype would still apply.  */
6092 char $ac_func ();
6093 /* The GNU C library defines this for functions which it implements
6094     to always fail with ENOSYS.  Some functions are actually named
6095     something starting with __ and the normal name is an alias.  */
6096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6097 choke me
6098 #else
6099 char (*f) () = $ac_func;
6100 #endif
6101 #ifdef __cplusplus
6102 }
6103 #endif
6104
6105 int
6106 main ()
6107 {
6108 return f != $ac_func;
6109   ;
6110   return 0;
6111 }
6112 _ACEOF
6113 rm -f conftest.$ac_objext conftest$ac_exeext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6115   (eval $ac_link) 2>conftest.er1
6116   ac_status=$?
6117   grep -v '^ *+' conftest.er1 >conftest.err
6118   rm -f conftest.er1
6119   cat conftest.err >&5
6120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121   (exit $ac_status); } &&
6122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124   (eval $ac_try) 2>&5
6125   ac_status=$?
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); }; } &&
6128          { ac_try='test -s conftest$ac_exeext'
6129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130   (eval $ac_try) 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; }; then
6134   eval "$as_ac_var=yes"
6135 else
6136   echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6138
6139 eval "$as_ac_var=no"
6140 fi
6141 rm -f conftest.err conftest.$ac_objext \
6142       conftest$ac_exeext conftest.$ac_ext
6143 fi
6144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6146 if test `eval echo '${'$as_ac_var'}'` = yes; then
6147   cat >>confdefs.h <<_ACEOF
6148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6149 _ACEOF
6150
6151 else
6152
6153 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6154 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6155 if test "${ac_cv_lib_socket_connect+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   ac_check_lib_save_LIBS=$LIBS
6159 LIBS="-lsocket  $LIBS"
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h.  */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h.  */
6166
6167 /* Override any gcc2 internal prototype to avoid an error.  */
6168 #ifdef __cplusplus
6169 extern "C"
6170 #endif
6171 /* We use char because int might match the return type of a gcc2
6172    builtin and then its argument prototype would still apply.  */
6173 char connect ();
6174 int
6175 main ()
6176 {
6177 connect ();
6178   ;
6179   return 0;
6180 }
6181 _ACEOF
6182 rm -f conftest.$ac_objext conftest$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184   (eval $ac_link) 2>conftest.er1
6185   ac_status=$?
6186   grep -v '^ *+' conftest.er1 >conftest.err
6187   rm -f conftest.er1
6188   cat conftest.err >&5
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } &&
6191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193   (eval $ac_try) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); }; } &&
6197          { ac_try='test -s conftest$ac_exeext'
6198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199   (eval $ac_try) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }; }; then
6203   ac_cv_lib_socket_connect=yes
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 ac_cv_lib_socket_connect=no
6209 fi
6210 rm -f conftest.err conftest.$ac_objext \
6211       conftest$ac_exeext conftest.$ac_ext
6212 LIBS=$ac_check_lib_save_LIBS
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6215 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6216 if test $ac_cv_lib_socket_connect = yes; then
6217   cat >>confdefs.h <<_ACEOF
6218 #define HAVE_LIBSOCKET 1
6219 _ACEOF
6220
6221   LIBS="-lsocket $LIBS"
6222
6223 fi
6224
6225 fi
6226 done
6227
6228
6229 for ac_func in inet_aton
6230 do
6231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6232 echo "$as_me:$LINENO: checking for $ac_func" >&5
6233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6234 if eval "test \"\${$as_ac_var+set}\" = set"; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   cat >conftest.$ac_ext <<_ACEOF
6238 /* confdefs.h.  */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h.  */
6243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6245 #define $ac_func innocuous_$ac_func
6246
6247 /* System header to define __stub macros and hopefully few prototypes,
6248     which can conflict with char $ac_func (); below.
6249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6250     <limits.h> exists even on freestanding compilers.  */
6251
6252 #ifdef __STDC__
6253 # include <limits.h>
6254 #else
6255 # include <assert.h>
6256 #endif
6257
6258 #undef $ac_func
6259
6260 /* Override any gcc2 internal prototype to avoid an error.  */
6261 #ifdef __cplusplus
6262 extern "C"
6263 {
6264 #endif
6265 /* We use char because int might match the return type of a gcc2
6266    builtin and then its argument prototype would still apply.  */
6267 char $ac_func ();
6268 /* The GNU C library defines this for functions which it implements
6269     to always fail with ENOSYS.  Some functions are actually named
6270     something starting with __ and the normal name is an alias.  */
6271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6272 choke me
6273 #else
6274 char (*f) () = $ac_func;
6275 #endif
6276 #ifdef __cplusplus
6277 }
6278 #endif
6279
6280 int
6281 main ()
6282 {
6283 return f != $ac_func;
6284   ;
6285   return 0;
6286 }
6287 _ACEOF
6288 rm -f conftest.$ac_objext conftest$ac_exeext
6289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6290   (eval $ac_link) 2>conftest.er1
6291   ac_status=$?
6292   grep -v '^ *+' conftest.er1 >conftest.err
6293   rm -f conftest.er1
6294   cat conftest.err >&5
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); } &&
6297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299   (eval $ac_try) 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }; } &&
6303          { ac_try='test -s conftest$ac_exeext'
6304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305   (eval $ac_try) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; }; then
6309   eval "$as_ac_var=yes"
6310 else
6311   echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314 eval "$as_ac_var=no"
6315 fi
6316 rm -f conftest.err conftest.$ac_objext \
6317       conftest$ac_exeext conftest.$ac_ext
6318 fi
6319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6321 if test `eval echo '${'$as_ac_var'}'` = yes; then
6322   cat >>confdefs.h <<_ACEOF
6323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6324 _ACEOF
6325
6326 else
6327
6328 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6329 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6330 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   ac_check_lib_save_LIBS=$LIBS
6334 LIBS="-lresolv  $LIBS"
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341
6342 /* Override any gcc2 internal prototype to avoid an error.  */
6343 #ifdef __cplusplus
6344 extern "C"
6345 #endif
6346 /* We use char because int might match the return type of a gcc2
6347    builtin and then its argument prototype would still apply.  */
6348 char inet_aton ();
6349 int
6350 main ()
6351 {
6352 inet_aton ();
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359   (eval $ac_link) 2>conftest.er1
6360   ac_status=$?
6361   grep -v '^ *+' conftest.er1 >conftest.err
6362   rm -f conftest.er1
6363   cat conftest.err >&5
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); } &&
6366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; } &&
6372          { ac_try='test -s conftest$ac_exeext'
6373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374   (eval $ac_try) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; }; then
6378   ac_cv_lib_resolv_inet_aton=yes
6379 else
6380   echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 ac_cv_lib_resolv_inet_aton=no
6384 fi
6385 rm -f conftest.err conftest.$ac_objext \
6386       conftest$ac_exeext conftest.$ac_ext
6387 LIBS=$ac_check_lib_save_LIBS
6388 fi
6389 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6390 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6391 if test $ac_cv_lib_resolv_inet_aton = yes; then
6392   cat >>confdefs.h <<_ACEOF
6393 #define HAVE_LIBRESOLV 1
6394 _ACEOF
6395
6396   LIBS="-lresolv $LIBS"
6397
6398 fi
6399
6400 fi
6401 done
6402
6403
6404 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6405 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6406 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409   ac_check_lib_save_LIBS=$LIBS
6410 LIBS="-lxpg4  $LIBS"
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h.  */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h.  */
6417
6418 /* Override any gcc2 internal prototype to avoid an error.  */
6419 #ifdef __cplusplus
6420 extern "C"
6421 #endif
6422 /* We use char because int might match the return type of a gcc2
6423    builtin and then its argument prototype would still apply.  */
6424 char _xpg4_setrunelocale ();
6425 int
6426 main ()
6427 {
6428 _xpg4_setrunelocale ();
6429   ;
6430   return 0;
6431 }
6432 _ACEOF
6433 rm -f conftest.$ac_objext conftest$ac_exeext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435   (eval $ac_link) 2>conftest.er1
6436   ac_status=$?
6437   grep -v '^ *+' conftest.er1 >conftest.err
6438   rm -f conftest.er1
6439   cat conftest.err >&5
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } &&
6442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444   (eval $ac_try) 2>&5
6445   ac_status=$?
6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447   (exit $ac_status); }; } &&
6448          { ac_try='test -s conftest$ac_exeext'
6449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450   (eval $ac_try) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; }; then
6454   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6455 else
6456   echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6460 fi
6461 rm -f conftest.err conftest.$ac_objext \
6462       conftest$ac_exeext conftest.$ac_ext
6463 LIBS=$ac_check_lib_save_LIBS
6464 fi
6465 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6466 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6467 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6468   cat >>confdefs.h <<_ACEOF
6469 #define HAVE_LIBXPG4 1
6470 _ACEOF
6471
6472   LIBS="-lxpg4 $LIBS"
6473
6474 fi
6475
6476
6477 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6478 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6479 if test "${ac_cv_lib_poll_poll+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   ac_check_lib_save_LIBS=$LIBS
6483 LIBS="-lpoll  $LIBS"
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h.  */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h.  */
6490
6491 /* Override any gcc2 internal prototype to avoid an error.  */
6492 #ifdef __cplusplus
6493 extern "C"
6494 #endif
6495 /* We use char because int might match the return type of a gcc2
6496    builtin and then its argument prototype would still apply.  */
6497 char poll ();
6498 int
6499 main ()
6500 {
6501 poll ();
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508   (eval $ac_link) 2>conftest.er1
6509   ac_status=$?
6510   grep -v '^ *+' conftest.er1 >conftest.err
6511   rm -f conftest.er1
6512   cat conftest.err >&5
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); } &&
6515          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; } &&
6521          { ac_try='test -s conftest$ac_exeext'
6522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523   (eval $ac_try) 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; }; then
6527   ac_cv_lib_poll_poll=yes
6528 else
6529   echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 ac_cv_lib_poll_poll=no
6533 fi
6534 rm -f conftest.err conftest.$ac_objext \
6535       conftest$ac_exeext conftest.$ac_ext
6536 LIBS=$ac_check_lib_save_LIBS
6537 fi
6538 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6539 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6540 if test $ac_cv_lib_poll_poll = yes; then
6541   cat >>confdefs.h <<_ACEOF
6542 #define HAVE_LIBPOLL 1
6543 _ACEOF
6544
6545   LIBS="-lpoll $LIBS"
6546
6547 fi
6548
6549
6550 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6551 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6552 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   ac_check_lib_save_LIBS=$LIBS
6556 LIBS="-lresolv  $LIBS"
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563
6564 /* Override any gcc2 internal prototype to avoid an error.  */
6565 #ifdef __cplusplus
6566 extern "C"
6567 #endif
6568 /* We use char because int might match the return type of a gcc2
6569    builtin and then its argument prototype would still apply.  */
6570 char res_9_init ();
6571 int
6572 main ()
6573 {
6574 res_9_init ();
6575   ;
6576   return 0;
6577 }
6578 _ACEOF
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581   (eval $ac_link) 2>conftest.er1
6582   ac_status=$?
6583   grep -v '^ *+' conftest.er1 >conftest.err
6584   rm -f conftest.er1
6585   cat conftest.err >&5
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); } &&
6588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; } &&
6594          { ac_try='test -s conftest$ac_exeext'
6595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596   (eval $ac_try) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); }; }; then
6600   ac_cv_lib_resolv_res_9_init=yes
6601 else
6602   echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605 ac_cv_lib_resolv_res_9_init=no
6606 fi
6607 rm -f conftest.err conftest.$ac_objext \
6608       conftest$ac_exeext conftest.$ac_ext
6609 LIBS=$ac_check_lib_save_LIBS
6610 fi
6611 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6612 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6613 if test $ac_cv_lib_resolv_res_9_init = yes; then
6614   cat >>confdefs.h <<_ACEOF
6615 #define HAVE_LIBRESOLV 1
6616 _ACEOF
6617
6618   LIBS="-lresolv $LIBS"
6619
6620 fi
6621
6622 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6623 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6624 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   ac_check_lib_save_LIBS=$LIBS
6628 LIBS="-lpthread  $LIBS"
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h.  */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h.  */
6635
6636 /* Override any gcc2 internal prototype to avoid an error.  */
6637 #ifdef __cplusplus
6638 extern "C"
6639 #endif
6640 /* We use char because int might match the return type of a gcc2
6641    builtin and then its argument prototype would still apply.  */
6642 char pthread_create ();
6643 int
6644 main ()
6645 {
6646 pthread_create ();
6647   ;
6648   return 0;
6649 }
6650 _ACEOF
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653   (eval $ac_link) 2>conftest.er1
6654   ac_status=$?
6655   grep -v '^ *+' conftest.er1 >conftest.err
6656   rm -f conftest.er1
6657   cat conftest.err >&5
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); } &&
6660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662   (eval $ac_try) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); }; } &&
6666          { ac_try='test -s conftest$ac_exeext'
6667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668   (eval $ac_try) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); }; }; then
6672   ac_cv_lib_pthread_pthread_create=yes
6673 else
6674   echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6676
6677 ac_cv_lib_pthread_pthread_create=no
6678 fi
6679 rm -f conftest.err conftest.$ac_objext \
6680       conftest$ac_exeext conftest.$ac_ext
6681 LIBS=$ac_check_lib_save_LIBS
6682 fi
6683 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6684 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6685 if test $ac_cv_lib_pthread_pthread_create = yes; then
6686   LIBPTHREAD="-lpthread"
6687
6688 fi
6689
6690
6691 XLIB=""
6692
6693 XFILES=""
6694
6695 OPENGLFILES=""
6696
6697 GLU32FILES=""
6698
6699 OPENGL_LIBS=""
6700
6701
6702
6703 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6704 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6705 if test "${ac_cv_header_stdc+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714 #include <stdlib.h>
6715 #include <stdarg.h>
6716 #include <string.h>
6717 #include <float.h>
6718
6719 int
6720 main ()
6721 {
6722
6723   ;
6724   return 0;
6725 }
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729   (eval $ac_compile) 2>conftest.er1
6730   ac_status=$?
6731   grep -v '^ *+' conftest.er1 >conftest.err
6732   rm -f conftest.er1
6733   cat conftest.err >&5
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); } &&
6736          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738   (eval $ac_try) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); }; } &&
6742          { ac_try='test -s conftest.$ac_objext'
6743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744   (eval $ac_try) 2>&5
6745   ac_status=$?
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); }; }; then
6748   ac_cv_header_stdc=yes
6749 else
6750   echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 ac_cv_header_stdc=no
6754 fi
6755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6756
6757 if test $ac_cv_header_stdc = yes; then
6758   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6759   cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h.  */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h.  */
6765 #include <string.h>
6766
6767 _ACEOF
6768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6769   $EGREP "memchr" >/dev/null 2>&1; then
6770   :
6771 else
6772   ac_cv_header_stdc=no
6773 fi
6774 rm -f conftest*
6775
6776 fi
6777
6778 if test $ac_cv_header_stdc = yes; then
6779   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6780   cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h.  */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h.  */
6786 #include <stdlib.h>
6787
6788 _ACEOF
6789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6790   $EGREP "free" >/dev/null 2>&1; then
6791   :
6792 else
6793   ac_cv_header_stdc=no
6794 fi
6795 rm -f conftest*
6796
6797 fi
6798
6799 if test $ac_cv_header_stdc = yes; then
6800   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6801   if test "$cross_compiling" = yes; then
6802   :
6803 else
6804   cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h.  */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h.  */
6810 #include <ctype.h>
6811 #if ((' ' & 0x0FF) == 0x020)
6812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6814 #else
6815 # define ISLOWER(c) \
6816                    (('a' <= (c) && (c) <= 'i') \
6817                      || ('j' <= (c) && (c) <= 'r') \
6818                      || ('s' <= (c) && (c) <= 'z'))
6819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6820 #endif
6821
6822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6823 int
6824 main ()
6825 {
6826   int i;
6827   for (i = 0; i < 256; i++)
6828     if (XOR (islower (i), ISLOWER (i))
6829         || toupper (i) != TOUPPER (i))
6830       exit(2);
6831   exit (0);
6832 }
6833 _ACEOF
6834 rm -f conftest$ac_exeext
6835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6836   (eval $ac_link) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841   (eval $ac_try) 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); }; }; then
6845   :
6846 else
6847   echo "$as_me: program exited with status $ac_status" >&5
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851 ( exit $ac_status )
6852 ac_cv_header_stdc=no
6853 fi
6854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6855 fi
6856 fi
6857 fi
6858 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6859 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6860 if test $ac_cv_header_stdc = yes; then
6861
6862 cat >>confdefs.h <<\_ACEOF
6863 #define STDC_HEADERS 1
6864 _ACEOF
6865
6866 fi
6867
6868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6879                   inttypes.h stdint.h unistd.h
6880 do
6881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6882 echo "$as_me:$LINENO: checking for $ac_header" >&5
6883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893 $ac_includes_default
6894
6895 #include <$ac_header>
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899   (eval $ac_compile) 2>conftest.er1
6900   ac_status=$?
6901   grep -v '^ *+' conftest.er1 >conftest.err
6902   rm -f conftest.er1
6903   cat conftest.err >&5
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); } &&
6906          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908   (eval $ac_try) 2>&5
6909   ac_status=$?
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); }; } &&
6912          { ac_try='test -s conftest.$ac_objext'
6913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914   (eval $ac_try) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); }; }; then
6918   eval "$as_ac_Header=yes"
6919 else
6920   echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6922
6923 eval "$as_ac_Header=no"
6924 fi
6925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6926 fi
6927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6930   cat >>confdefs.h <<_ACEOF
6931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6932 _ACEOF
6933
6934 fi
6935
6936 done
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
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039 for ac_header in \
7040         IOKit/IOKitLib.h \
7041         alsa/asoundlib.h \
7042         arpa/inet.h \
7043         arpa/nameser.h \
7044         asm/types.h \
7045         capi20.h \
7046         cups/cups.h \
7047         curses.h \
7048         direct.h \
7049         dlfcn.h \
7050         elf.h \
7051         float.h \
7052         fontconfig/fontconfig.h \
7053         getopt.h \
7054         gif_lib.h \
7055         ieeefp.h \
7056         io.h \
7057         jack/jack.h \
7058         jpeglib.h \
7059         lber.h \
7060         lcms.h \
7061         lcms/lcms.h \
7062         ldap.h \
7063         libaudioio.h \
7064         link.h \
7065         linux/capi.h \
7066         linux/cdrom.h \
7067         linux/compiler.h \
7068         linux/hdreg.h \
7069         linux/input.h \
7070         linux/ioctl.h \
7071         linux/joystick.h \
7072         linux/major.h \
7073         linux/param.h \
7074         linux/serial.h \
7075         linux/ucdrom.h \
7076         mach/machine.h \
7077         machine/cpu.h \
7078         machine/limits.h \
7079         machine/soundcard.h \
7080         mntent.h \
7081         ncurses.h \
7082         netdb.h \
7083         netinet/in.h \
7084         netinet/in_systm.h \
7085         netinet/tcp.h \
7086         netinet/tcp_fsm.h \
7087         openssl/ssl.h \
7088         poll.h \
7089         process.h \
7090         pthread.h \
7091         pwd.h \
7092         regex.h \
7093         sched.h \
7094         scsi/scsi.h \
7095         scsi/scsi_ioctl.h \
7096         scsi/sg.h \
7097         soundcard.h \
7098         stdint.h \
7099         strings.h \
7100         sys/asoundlib.h \
7101         sys/cdio.h \
7102         sys/elf32.h \
7103         sys/epoll.h \
7104         sys/errno.h \
7105         sys/exec_elf.h \
7106         sys/filio.h \
7107         sys/ioctl.h \
7108         sys/ipc.h \
7109         sys/link.h \
7110         sys/lwp.h \
7111         sys/mman.h \
7112         sys/modem.h \
7113         sys/msg.h \
7114         sys/param.h \
7115         sys/poll.h \
7116         sys/ptrace.h \
7117         sys/reg.h \
7118         sys/scsiio.h \
7119         sys/shm.h \
7120         sys/signal.h \
7121         sys/socket.h \
7122         sys/sockio.h \
7123         sys/soundcard.h \
7124         sys/statvfs.h \
7125         sys/strtio.h \
7126         sys/syscall.h \
7127         sys/sysctl.h \
7128         sys/time.h \
7129         sys/times.h \
7130         sys/uio.h \
7131         sys/un.h \
7132         sys/vm86.h \
7133         sys/wait.h \
7134         syscall.h \
7135         termios.h \
7136         unicode/ubidi.h \
7137         unistd.h \
7138         utime.h \
7139         valgrind/memcheck.h
7140
7141 do
7142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7144   echo "$as_me:$LINENO: checking for $ac_header" >&5
7145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7147   echo $ECHO_N "(cached) $ECHO_C" >&6
7148 fi
7149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7151 else
7152   # Is the header compilable?
7153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161 $ac_includes_default
7162 #include <$ac_header>
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7166   (eval $ac_compile) 2>conftest.er1
7167   ac_status=$?
7168   grep -v '^ *+' conftest.er1 >conftest.err
7169   rm -f conftest.er1
7170   cat conftest.err >&5
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); } &&
7173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175   (eval $ac_try) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); }; } &&
7179          { ac_try='test -s conftest.$ac_objext'
7180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181   (eval $ac_try) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; }; then
7185   ac_header_compiler=yes
7186 else
7187   echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 ac_header_compiler=no
7191 fi
7192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7194 echo "${ECHO_T}$ac_header_compiler" >&6
7195
7196 # Is the header present?
7197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7199 cat >conftest.$ac_ext <<_ACEOF
7200 /* confdefs.h.  */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h.  */
7205 #include <$ac_header>
7206 _ACEOF
7207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7209   ac_status=$?
7210   grep -v '^ *+' conftest.er1 >conftest.err
7211   rm -f conftest.er1
7212   cat conftest.err >&5
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); } >/dev/null; then
7215   if test -s conftest.err; then
7216     ac_cpp_err=$ac_c_preproc_warn_flag
7217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7218   else
7219     ac_cpp_err=
7220   fi
7221 else
7222   ac_cpp_err=yes
7223 fi
7224 if test -z "$ac_cpp_err"; then
7225   ac_header_preproc=yes
7226 else
7227   echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7229
7230   ac_header_preproc=no
7231 fi
7232 rm -f conftest.err conftest.$ac_ext
7233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7234 echo "${ECHO_T}$ac_header_preproc" >&6
7235
7236 # So?  What about this header?
7237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7238   yes:no: )
7239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7243     ac_header_preproc=yes
7244     ;;
7245   no:yes:* )
7246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7258     (
7259       cat <<\_ASBOX
7260 ## ------------------------------------ ##
7261 ## Report this to wine-devel@winehq.org ##
7262 ## ------------------------------------ ##
7263 _ASBOX
7264     ) |
7265       sed "s/^/$as_me: WARNING:     /" >&2
7266     ;;
7267 esac
7268 echo "$as_me:$LINENO: checking for $ac_header" >&5
7269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   eval "$as_ac_Header=\$ac_header_preproc"
7274 fi
7275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7277
7278 fi
7279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280   cat >>confdefs.h <<_ACEOF
7281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282 _ACEOF
7283
7284 fi
7285
7286 done
7287
7288 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7289 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7290 if test "${ac_cv_header_stat_broken+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h.  */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h.  */
7299 #include <sys/types.h>
7300 #include <sys/stat.h>
7301
7302 #if defined(S_ISBLK) && defined(S_IFDIR)
7303 # if S_ISBLK (S_IFDIR)
7304 You lose.
7305 # endif
7306 #endif
7307
7308 #if defined(S_ISBLK) && defined(S_IFCHR)
7309 # if S_ISBLK (S_IFCHR)
7310 You lose.
7311 # endif
7312 #endif
7313
7314 #if defined(S_ISLNK) && defined(S_IFREG)
7315 # if S_ISLNK (S_IFREG)
7316 You lose.
7317 # endif
7318 #endif
7319
7320 #if defined(S_ISSOCK) && defined(S_IFREG)
7321 # if S_ISSOCK (S_IFREG)
7322 You lose.
7323 # endif
7324 #endif
7325
7326 _ACEOF
7327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7328   $EGREP "You lose" >/dev/null 2>&1; then
7329   ac_cv_header_stat_broken=yes
7330 else
7331   ac_cv_header_stat_broken=no
7332 fi
7333 rm -f conftest*
7334
7335 fi
7336 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7337 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7338 if test $ac_cv_header_stat_broken = yes; then
7339
7340 cat >>confdefs.h <<\_ACEOF
7341 #define STAT_MACROS_BROKEN 1
7342 _ACEOF
7343
7344 fi
7345
7346
7347
7348 if test "$have_x" = "yes"
7349 then
7350     XLIB="-lXext -lX11"
7351     ac_save_CPPFLAGS="$CPPFLAGS"
7352     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364 for ac_header in X11/Xlib.h \
7365                       X11/XKBlib.h \
7366                       X11/Xutil.h \
7367                       X11/extensions/shape.h \
7368                       X11/extensions/XInput.h \
7369                       X11/extensions/XShm.h \
7370                       X11/extensions/Xrandr.h \
7371                       X11/extensions/Xrender.h \
7372                       X11/extensions/xf86dga.h \
7373                       X11/extensions/xf86vmode.h
7374 do
7375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7376 echo "$as_me:$LINENO: checking for $ac_header" >&5
7377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381   cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h.  */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h.  */
7387 #ifdef HAVE_X11_XLIB_H
7388 # include <X11/Xlib.h>
7389 #endif
7390 #ifdef HAVE_X11_XUTIL_H
7391 # include <X11/Xutil.h>
7392 #endif
7393
7394 #include <$ac_header>
7395 _ACEOF
7396 rm -f conftest.$ac_objext
7397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7398   (eval $ac_compile) 2>conftest.er1
7399   ac_status=$?
7400   grep -v '^ *+' conftest.er1 >conftest.err
7401   rm -f conftest.er1
7402   cat conftest.err >&5
7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); } &&
7405          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407   (eval $ac_try) 2>&5
7408   ac_status=$?
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); }; } &&
7411          { ac_try='test -s conftest.$ac_objext'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; }; then
7417   eval "$as_ac_Header=yes"
7418 else
7419   echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422 eval "$as_ac_Header=no"
7423 fi
7424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7425 fi
7426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7429   cat >>confdefs.h <<_ACEOF
7430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7431 _ACEOF
7432
7433 fi
7434
7435 done
7436
7437
7438                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7439         then
7440               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7441 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7442 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445   ac_check_lib_save_LIBS=$LIBS
7446 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7447 cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h.  */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h.  */
7453
7454 /* Override any gcc2 internal prototype to avoid an error.  */
7455 #ifdef __cplusplus
7456 extern "C"
7457 #endif
7458 /* We use char because int might match the return type of a gcc2
7459    builtin and then its argument prototype would still apply.  */
7460 char XkbQueryExtension ();
7461 int
7462 main ()
7463 {
7464 XkbQueryExtension ();
7465   ;
7466   return 0;
7467 }
7468 _ACEOF
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7471   (eval $ac_link) 2>conftest.er1
7472   ac_status=$?
7473   grep -v '^ *+' conftest.er1 >conftest.err
7474   rm -f conftest.er1
7475   cat conftest.err >&5
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); } &&
7478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480   (eval $ac_try) 2>&5
7481   ac_status=$?
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); }; } &&
7484          { ac_try='test -s conftest$ac_exeext'
7485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486   (eval $ac_try) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; }; then
7490   ac_cv_lib_X11_XkbQueryExtension=yes
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 ac_cv_lib_X11_XkbQueryExtension=no
7496 fi
7497 rm -f conftest.err conftest.$ac_objext \
7498       conftest$ac_exeext conftest.$ac_ext
7499 LIBS=$ac_check_lib_save_LIBS
7500 fi
7501 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7502 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7503 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7504
7505 cat >>confdefs.h <<\_ACEOF
7506 #define HAVE_XKB 1
7507 _ACEOF
7508
7509 fi
7510
7511         fi
7512
7513                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7514         then
7515               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7516 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7517 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   ac_check_lib_save_LIBS=$LIBS
7521 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h.  */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h.  */
7528
7529 /* Override any gcc2 internal prototype to avoid an error.  */
7530 #ifdef __cplusplus
7531 extern "C"
7532 #endif
7533 /* We use char because int might match the return type of a gcc2
7534    builtin and then its argument prototype would still apply.  */
7535 char XShmQueryExtension ();
7536 int
7537 main ()
7538 {
7539 XShmQueryExtension ();
7540   ;
7541   return 0;
7542 }
7543 _ACEOF
7544 rm -f conftest.$ac_objext conftest$ac_exeext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7546   (eval $ac_link) 2>conftest.er1
7547   ac_status=$?
7548   grep -v '^ *+' conftest.er1 >conftest.err
7549   rm -f conftest.er1
7550   cat conftest.err >&5
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); } &&
7553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555   (eval $ac_try) 2>&5
7556   ac_status=$?
7557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); }; } &&
7559          { ac_try='test -s conftest$ac_exeext'
7560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561   (eval $ac_try) 2>&5
7562   ac_status=$?
7563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564   (exit $ac_status); }; }; then
7565   ac_cv_lib_Xext_XShmQueryExtension=yes
7566 else
7567   echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7569
7570 ac_cv_lib_Xext_XShmQueryExtension=no
7571 fi
7572 rm -f conftest.err conftest.$ac_objext \
7573       conftest$ac_exeext conftest.$ac_ext
7574 LIBS=$ac_check_lib_save_LIBS
7575 fi
7576 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7577 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7578 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7579
7580 cat >>confdefs.h <<\_ACEOF
7581 #define HAVE_LIBXXSHM 1
7582 _ACEOF
7583
7584 fi
7585
7586         fi
7587
7588                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7589         then
7590               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7591 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7592 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   ac_check_lib_save_LIBS=$LIBS
7596 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7597 cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h.  */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h.  */
7603
7604 /* Override any gcc2 internal prototype to avoid an error.  */
7605 #ifdef __cplusplus
7606 extern "C"
7607 #endif
7608 /* We use char because int might match the return type of a gcc2
7609    builtin and then its argument prototype would still apply.  */
7610 char XShapeQueryExtension ();
7611 int
7612 main ()
7613 {
7614 XShapeQueryExtension ();
7615   ;
7616   return 0;
7617 }
7618 _ACEOF
7619 rm -f conftest.$ac_objext conftest$ac_exeext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7621   (eval $ac_link) 2>conftest.er1
7622   ac_status=$?
7623   grep -v '^ *+' conftest.er1 >conftest.err
7624   rm -f conftest.er1
7625   cat conftest.err >&5
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); } &&
7628          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630   (eval $ac_try) 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); }; } &&
7634          { ac_try='test -s conftest$ac_exeext'
7635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636   (eval $ac_try) 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; }; then
7640   ac_cv_lib_Xext_XShapeQueryExtension=yes
7641 else
7642   echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7644
7645 ac_cv_lib_Xext_XShapeQueryExtension=no
7646 fi
7647 rm -f conftest.err conftest.$ac_objext \
7648       conftest$ac_exeext conftest.$ac_ext
7649 LIBS=$ac_check_lib_save_LIBS
7650 fi
7651 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7652 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7653 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7654
7655 cat >>confdefs.h <<\_ACEOF
7656 #define HAVE_LIBXSHAPE 1
7657 _ACEOF
7658
7659 fi
7660
7661         fi
7662
7663                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7664         then
7665               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7666 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7667 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   ac_check_lib_save_LIBS=$LIBS
7671 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678
7679 /* Override any gcc2 internal prototype to avoid an error.  */
7680 #ifdef __cplusplus
7681 extern "C"
7682 #endif
7683 /* We use char because int might match the return type of a gcc2
7684    builtin and then its argument prototype would still apply.  */
7685 char XDGAQueryExtension ();
7686 int
7687 main ()
7688 {
7689 XDGAQueryExtension ();
7690   ;
7691   return 0;
7692 }
7693 _ACEOF
7694 rm -f conftest.$ac_objext conftest$ac_exeext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7696   (eval $ac_link) 2>conftest.er1
7697   ac_status=$?
7698   grep -v '^ *+' conftest.er1 >conftest.err
7699   rm -f conftest.er1
7700   cat conftest.err >&5
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); } &&
7703          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705   (eval $ac_try) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; } &&
7709          { ac_try='test -s conftest$ac_exeext'
7710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711   (eval $ac_try) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; }; then
7715   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7716 else
7717   echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7721 fi
7722 rm -f conftest.err conftest.$ac_objext \
7723       conftest$ac_exeext conftest.$ac_ext
7724 LIBS=$ac_check_lib_save_LIBS
7725 fi
7726 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7727 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7728 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7729
7730 cat >>confdefs.h <<\_ACEOF
7731 #define HAVE_LIBXXF86DGA2 1
7732 _ACEOF
7733
7734                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7735
7736 fi
7737
7738         fi
7739
7740                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7741         then
7742                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7743 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7744 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   ac_check_lib_save_LIBS=$LIBS
7748 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h.  */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h.  */
7755
7756 /* Override any gcc2 internal prototype to avoid an error.  */
7757 #ifdef __cplusplus
7758 extern "C"
7759 #endif
7760 /* We use char because int might match the return type of a gcc2
7761    builtin and then its argument prototype would still apply.  */
7762 char XF86VidModeQueryExtension ();
7763 int
7764 main ()
7765 {
7766 XF86VidModeQueryExtension ();
7767   ;
7768   return 0;
7769 }
7770 _ACEOF
7771 rm -f conftest.$ac_objext conftest$ac_exeext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773   (eval $ac_link) 2>conftest.er1
7774   ac_status=$?
7775   grep -v '^ *+' conftest.er1 >conftest.err
7776   rm -f conftest.er1
7777   cat conftest.err >&5
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); } &&
7780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; } &&
7786          { ac_try='test -s conftest$ac_exeext'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7798 fi
7799 rm -f conftest.err conftest.$ac_objext \
7800       conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7802 fi
7803 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7804 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7805 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7806
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_LIBXXF86VM 1
7809 _ACEOF
7810
7811                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7812
7813 fi
7814
7815         fi
7816
7817                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7818         then
7819                 cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h.  */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h.  */
7825 #include <X11/Xlib.h>
7826 #include <X11/extensions/Xrandr.h>
7827 int
7828 main ()
7829 {
7830 static typeof(XRRSetScreenConfigAndRate) * func;
7831   ;
7832   return 0;
7833 }
7834 _ACEOF
7835 rm -f conftest.$ac_objext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7837   (eval $ac_compile) 2>conftest.er1
7838   ac_status=$?
7839   grep -v '^ *+' conftest.er1 >conftest.err
7840   rm -f conftest.er1
7841   cat conftest.err >&5
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); } &&
7844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846   (eval $ac_try) 2>&5
7847   ac_status=$?
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); }; } &&
7850          { ac_try='test -s conftest.$ac_objext'
7851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852   (eval $ac_try) 2>&5
7853   ac_status=$?
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); }; }; then
7856
7857 cat >>confdefs.h <<\_ACEOF
7858 #define HAVE_LIBXRANDR 1
7859 _ACEOF
7860
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865 fi
7866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7867         fi
7868
7869                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
7870         then
7871               echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
7872 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
7873 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
7874   echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876   ac_check_lib_save_LIBS=$LIBS
7877 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h.  */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h.  */
7884
7885 /* Override any gcc2 internal prototype to avoid an error.  */
7886 #ifdef __cplusplus
7887 extern "C"
7888 #endif
7889 /* We use char because int might match the return type of a gcc2
7890    builtin and then its argument prototype would still apply.  */
7891 char XRenderSetPictureTransform ();
7892 int
7893 main ()
7894 {
7895 XRenderSetPictureTransform ();
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902   (eval $ac_link) 2>conftest.er1
7903   ac_status=$?
7904   grep -v '^ *+' conftest.er1 >conftest.err
7905   rm -f conftest.er1
7906   cat conftest.err >&5
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } &&
7909          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911   (eval $ac_try) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; } &&
7915          { ac_try='test -s conftest$ac_exeext'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; }; then
7921   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
7922 else
7923   echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7925
7926 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
7927 fi
7928 rm -f conftest.err conftest.$ac_objext \
7929       conftest$ac_exeext conftest.$ac_ext
7930 LIBS=$ac_check_lib_save_LIBS
7931 fi
7932 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
7933 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
7934 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
7935
7936 cat >>confdefs.h <<\_ACEOF
7937 #define HAVE_XRENDERSETPICTURETRANSFORM 1
7938 _ACEOF
7939
7940 fi
7941
7942         fi
7943
7944         if test "x$with_opengl" != "xno"
7945     then
7946
7947
7948
7949 for ac_header in GL/gl.h GL/glx.h GL/glext.h
7950 do
7951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7952 echo "$as_me:$LINENO: checking for $ac_header" >&5
7953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h.  */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h.  */
7963 #ifdef HAVE_GL_GLX_H
7964 # include <GL/glx.h>
7965 #endif
7966
7967 #include <$ac_header>
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971   (eval $ac_compile) 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980   (eval $ac_try) 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; } &&
7984          { ac_try='test -s conftest.$ac_objext'
7985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986   (eval $ac_try) 2>&5
7987   ac_status=$?
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); }; }; then
7990   eval "$as_ac_Header=yes"
7991 else
7992   echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995 eval "$as_ac_Header=no"
7996 fi
7997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7998 fi
7999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8002   cat >>confdefs.h <<_ACEOF
8003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8004 _ACEOF
8005
8006 fi
8007
8008 done
8009
8010         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8011         then
8012                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8013 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8014 if test "${wine_cv_opengl_version_OK+set}" = set; then
8015   echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017   cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h.  */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h.  */
8023 #include <GL/gl.h>
8024 int
8025 main ()
8026 {
8027 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8028   ;
8029   return 0;
8030 }
8031 _ACEOF
8032 rm -f conftest.$ac_objext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8034   (eval $ac_compile) 2>conftest.er1
8035   ac_status=$?
8036   grep -v '^ *+' conftest.er1 >conftest.err
8037   rm -f conftest.er1
8038   cat conftest.err >&5
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); } &&
8041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043   (eval $ac_try) 2>&5
8044   ac_status=$?
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); }; } &&
8047          { ac_try='test -s conftest.$ac_objext'
8048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049   (eval $ac_try) 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); }; }; then
8053   wine_cv_opengl_version_OK="yes"
8054 else
8055   echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 wine_cv_opengl_version_OK="no"
8059
8060 fi
8061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8062
8063 fi
8064 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8065 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8066
8067             if test "$wine_cv_opengl_version_OK" = "yes"
8068             then
8069                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8070 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8071 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074   ac_check_lib_save_LIBS=$LIBS
8075 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8076 cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082
8083 /* Override any gcc2 internal prototype to avoid an error.  */
8084 #ifdef __cplusplus
8085 extern "C"
8086 #endif
8087 /* We use char because int might match the return type of a gcc2
8088    builtin and then its argument prototype would still apply.  */
8089 char glXCreateContext ();
8090 int
8091 main ()
8092 {
8093 glXCreateContext ();
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100   (eval $ac_link) 2>conftest.er1
8101   ac_status=$?
8102   grep -v '^ *+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; } &&
8113          { ac_try='test -s conftest$ac_exeext'
8114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115   (eval $ac_try) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); }; }; then
8119   ac_cv_lib_GL_glXCreateContext=yes
8120 else
8121   echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ac_cv_lib_GL_glXCreateContext=no
8125 fi
8126 rm -f conftest.err conftest.$ac_objext \
8127       conftest$ac_exeext conftest.$ac_ext
8128 LIBS=$ac_check_lib_save_LIBS
8129 fi
8130 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8131 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8132 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8133   OPENGL_LIBS="-lGL"
8134
8135 fi
8136
8137
8138                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8139                 then
8140                         OPENGLFILES='$(OPENGLFILES)'
8141
8142 cat >>confdefs.h <<\_ACEOF
8143 #define HAVE_OPENGL 1
8144 _ACEOF
8145
8146                 else
8147                     if test -f /usr/X11R6/lib/libGL.a
8148                     then
8149                        { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8150 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8151 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8152 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8153    { (exit 1); exit 1; }; }
8154                     fi
8155                 fi
8156
8157                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8158 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8159 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8160   echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162   ac_check_lib_save_LIBS=$LIBS
8163 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8164                  $LIBS"
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171
8172 /* Override any gcc2 internal prototype to avoid an error.  */
8173 #ifdef __cplusplus
8174 extern "C"
8175 #endif
8176 /* We use char because int might match the return type of a gcc2
8177    builtin and then its argument prototype would still apply.  */
8178 char gluLookAt ();
8179 int
8180 main ()
8181 {
8182 gluLookAt ();
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 rm -f conftest.$ac_objext conftest$ac_exeext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189   (eval $ac_link) 2>conftest.er1
8190   ac_status=$?
8191   grep -v '^ *+' conftest.er1 >conftest.err
8192   rm -f conftest.er1
8193   cat conftest.err >&5
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); } &&
8196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198   (eval $ac_try) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }; } &&
8202          { ac_try='test -s conftest$ac_exeext'
8203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204   (eval $ac_try) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; }; then
8208   ac_cv_lib_GLU_gluLookAt=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 ac_cv_lib_GLU_gluLookAt=no
8214 fi
8215 rm -f conftest.err conftest.$ac_objext \
8216       conftest$ac_exeext conftest.$ac_ext
8217 LIBS=$ac_check_lib_save_LIBS
8218 fi
8219 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8220 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8221 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8222   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8223                              GLU32FILES='$(GLU32FILES)'
8224
8225 fi
8226
8227              fi
8228
8229                           echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8230 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8231 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   ac_check_lib_save_LIBS=$LIBS
8235 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8236 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242
8243 /* Override any gcc2 internal prototype to avoid an error.  */
8244 #ifdef __cplusplus
8245 extern "C"
8246 #endif
8247 /* We use char because int might match the return type of a gcc2
8248    builtin and then its argument prototype would still apply.  */
8249 char glutMainLoop ();
8250 int
8251 main ()
8252 {
8253 glutMainLoop ();
8254   ;
8255   return 0;
8256 }
8257 _ACEOF
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260   (eval $ac_link) 2>conftest.er1
8261   ac_status=$?
8262   grep -v '^ *+' conftest.er1 >conftest.err
8263   rm -f conftest.er1
8264   cat conftest.err >&5
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); } &&
8267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269   (eval $ac_try) 2>&5
8270   ac_status=$?
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); }; } &&
8273          { ac_try='test -s conftest$ac_exeext'
8274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275   (eval $ac_try) 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; }; then
8279   ac_cv_lib_glut_glutMainLoop=yes
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284 ac_cv_lib_glut_glutMainLoop=no
8285 fi
8286 rm -f conftest.err conftest.$ac_objext \
8287       conftest$ac_exeext conftest.$ac_ext
8288 LIBS=$ac_check_lib_save_LIBS
8289 fi
8290 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8291 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8292 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8293   GLUT_LIBS="-lglut -lXmu -lXi"
8294
8295                         GLUT32FILES='$(GLUT32FILES)'
8296
8297 fi
8298
8299          fi
8300     fi
8301
8302         NASLIBS=""
8303
8304
8305 for ac_header in audio/audiolib.h
8306 do
8307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8309   echo "$as_me:$LINENO: checking for $ac_header" >&5
8310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 fi
8314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8316 else
8317   # Is the header compilable?
8318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h.  */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h.  */
8326 $ac_includes_default
8327 #include <$ac_header>
8328 _ACEOF
8329 rm -f conftest.$ac_objext
8330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8331   (eval $ac_compile) 2>conftest.er1
8332   ac_status=$?
8333   grep -v '^ *+' conftest.er1 >conftest.err
8334   rm -f conftest.er1
8335   cat conftest.err >&5
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); } &&
8338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340   (eval $ac_try) 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; } &&
8344          { ac_try='test -s conftest.$ac_objext'
8345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346   (eval $ac_try) 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; }; then
8350   ac_header_compiler=yes
8351 else
8352   echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355 ac_header_compiler=no
8356 fi
8357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8359 echo "${ECHO_T}$ac_header_compiler" >&6
8360
8361 # Is the header present?
8362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370 #include <$ac_header>
8371 _ACEOF
8372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8374   ac_status=$?
8375   grep -v '^ *+' conftest.er1 >conftest.err
8376   rm -f conftest.er1
8377   cat conftest.err >&5
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } >/dev/null; then
8380   if test -s conftest.err; then
8381     ac_cpp_err=$ac_c_preproc_warn_flag
8382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8383   else
8384     ac_cpp_err=
8385   fi
8386 else
8387   ac_cpp_err=yes
8388 fi
8389 if test -z "$ac_cpp_err"; then
8390   ac_header_preproc=yes
8391 else
8392   echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395   ac_header_preproc=no
8396 fi
8397 rm -f conftest.err conftest.$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8399 echo "${ECHO_T}$ac_header_preproc" >&6
8400
8401 # So?  What about this header?
8402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8403   yes:no: )
8404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8408     ac_header_preproc=yes
8409     ;;
8410   no:yes:* )
8411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8423     (
8424       cat <<\_ASBOX
8425 ## ------------------------------------ ##
8426 ## Report this to wine-devel@winehq.org ##
8427 ## ------------------------------------ ##
8428 _ASBOX
8429     ) |
8430       sed "s/^/$as_me: WARNING:     /" >&2
8431     ;;
8432 esac
8433 echo "$as_me:$LINENO: checking for $ac_header" >&5
8434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   eval "$as_ac_Header=\$ac_header_preproc"
8439 fi
8440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8442
8443 fi
8444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8445   cat >>confdefs.h <<_ACEOF
8446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8447 _ACEOF
8448
8449 for ac_header in audio/soundlib.h
8450 do
8451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8452 echo "$as_me:$LINENO: checking for $ac_header" >&5
8453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463 #include <audio/audiolib.h>
8464
8465 #include <$ac_header>
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469   (eval $ac_compile) 2>conftest.er1
8470   ac_status=$?
8471   grep -v '^ *+' conftest.er1 >conftest.err
8472   rm -f conftest.er1
8473   cat conftest.err >&5
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } &&
8476          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; } &&
8482          { ac_try='test -s conftest.$ac_objext'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; }; then
8488   eval "$as_ac_Header=yes"
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493 eval "$as_ac_Header=no"
8494 fi
8495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8496 fi
8497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8500   cat >>confdefs.h <<_ACEOF
8501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8502 _ACEOF
8503
8504 fi
8505
8506 done
8507
8508           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8509 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8510 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8511   echo $ECHO_N "(cached) $ECHO_C" >&6
8512 else
8513   ac_check_lib_save_LIBS=$LIBS
8514 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h.  */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h.  */
8521
8522 /* Override any gcc2 internal prototype to avoid an error.  */
8523 #ifdef __cplusplus
8524 extern "C"
8525 #endif
8526 /* We use char because int might match the return type of a gcc2
8527    builtin and then its argument prototype would still apply.  */
8528 char AuCreateFlow ();
8529 int
8530 main ()
8531 {
8532 AuCreateFlow ();
8533   ;
8534   return 0;
8535 }
8536 _ACEOF
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539   (eval $ac_link) 2>conftest.er1
8540   ac_status=$?
8541   grep -v '^ *+' conftest.er1 >conftest.err
8542   rm -f conftest.er1
8543   cat conftest.err >&5
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } &&
8546          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; } &&
8552          { ac_try='test -s conftest$ac_exeext'
8553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554   (eval $ac_try) 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }; }; then
8558   ac_cv_lib_audio_AuCreateFlow=yes
8559 else
8560   echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563 ac_cv_lib_audio_AuCreateFlow=no
8564 fi
8565 rm -f conftest.err conftest.$ac_objext \
8566       conftest$ac_exeext conftest.$ac_ext
8567 LIBS=$ac_check_lib_save_LIBS
8568 fi
8569 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8570 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8571 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8572
8573 cat >>confdefs.h <<\_ACEOF
8574 #define HAVE_NAS 1
8575 _ACEOF
8576
8577                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8578 fi
8579
8580 fi
8581
8582 done
8583
8584
8585     CPPFLAGS="$ac_save_CPPFLAGS"
8586     XFILES='$(XFILES)'
8587 else
8588     XLIB=""
8589     X_CFLAGS=""
8590     X_LIBS=""
8591 fi
8592
8593
8594 XML2LIBS=""
8595
8596 XML2INCL=""
8597
8598 if test "$PKG_CONFIG" != "false"
8599 then
8600     ac_save_CPPFLAGS="$CPPFLAGS"
8601     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0`"
8602     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0`"
8603     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8604
8605 for ac_header in libxml/parser.h
8606 do
8607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8609   echo "$as_me:$LINENO: checking for $ac_header" >&5
8610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8612   echo $ECHO_N "(cached) $ECHO_C" >&6
8613 fi
8614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8616 else
8617   # Is the header compilable?
8618 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h.  */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h.  */
8626 $ac_includes_default
8627 #include <$ac_header>
8628 _ACEOF
8629 rm -f conftest.$ac_objext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8631   (eval $ac_compile) 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } &&
8638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640   (eval $ac_try) 2>&5
8641   ac_status=$?
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); }; } &&
8644          { ac_try='test -s conftest.$ac_objext'
8645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646   (eval $ac_try) 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; }; then
8650   ac_header_compiler=yes
8651 else
8652   echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8654
8655 ac_header_compiler=no
8656 fi
8657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8659 echo "${ECHO_T}$ac_header_compiler" >&6
8660
8661 # Is the header present?
8662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8670 #include <$ac_header>
8671 _ACEOF
8672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8673   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8674   ac_status=$?
8675   grep -v '^ *+' conftest.er1 >conftest.err
8676   rm -f conftest.er1
8677   cat conftest.err >&5
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); } >/dev/null; then
8680   if test -s conftest.err; then
8681     ac_cpp_err=$ac_c_preproc_warn_flag
8682     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8683   else
8684     ac_cpp_err=
8685   fi
8686 else
8687   ac_cpp_err=yes
8688 fi
8689 if test -z "$ac_cpp_err"; then
8690   ac_header_preproc=yes
8691 else
8692   echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8694
8695   ac_header_preproc=no
8696 fi
8697 rm -f conftest.err conftest.$ac_ext
8698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8699 echo "${ECHO_T}$ac_header_preproc" >&6
8700
8701 # So?  What about this header?
8702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8703   yes:no: )
8704     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8708     ac_header_preproc=yes
8709     ;;
8710   no:yes:* )
8711     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8713     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8714 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8715     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8717     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8718 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8721     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8723     (
8724       cat <<\_ASBOX
8725 ## ------------------------------------ ##
8726 ## Report this to wine-devel@winehq.org ##
8727 ## ------------------------------------ ##
8728 _ASBOX
8729     ) |
8730       sed "s/^/$as_me: WARNING:     /" >&2
8731     ;;
8732 esac
8733 echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738   eval "$as_ac_Header=\$ac_header_preproc"
8739 fi
8740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8742
8743 fi
8744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745   cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8747 _ACEOF
8748  echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
8749 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6
8750 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
8751   echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753   ac_check_lib_save_LIBS=$LIBS
8754 LIBS="-lxml2 $ac_xml_libs $LIBS"
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h.  */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h.  */
8761
8762 /* Override any gcc2 internal prototype to avoid an error.  */
8763 #ifdef __cplusplus
8764 extern "C"
8765 #endif
8766 /* We use char because int might match the return type of a gcc2
8767    builtin and then its argument prototype would still apply.  */
8768 char xmlParseMemory ();
8769 int
8770 main ()
8771 {
8772 xmlParseMemory ();
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 rm -f conftest.$ac_objext conftest$ac_exeext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8779   (eval $ac_link) 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } &&
8786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788   (eval $ac_try) 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }; } &&
8792          { ac_try='test -s conftest$ac_exeext'
8793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794   (eval $ac_try) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; }; then
8798   ac_cv_lib_xml2_xmlParseMemory=yes
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803 ac_cv_lib_xml2_xmlParseMemory=no
8804 fi
8805 rm -f conftest.err conftest.$ac_objext \
8806       conftest$ac_exeext conftest.$ac_ext
8807 LIBS=$ac_check_lib_save_LIBS
8808 fi
8809 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
8810 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6
8811 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
8812
8813 cat >>confdefs.h <<\_ACEOF
8814 #define HAVE_LIBXML2 1
8815 _ACEOF
8816
8817              XML2LIBS="$ac_xml_libs"
8818              XML2INCL="$ac_xml_cflags"
8819 fi
8820
8821 fi
8822
8823 done
8824
8825     CPPFLAGS="$ac_save_CPPFLAGS"
8826 fi
8827
8828 CURSESLIBS=""
8829 if test "x$with_curses" != "xno"
8830 then
8831     if test "$ac_cv_header_ncurses_h" = "yes"
8832     then
8833         echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8834 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8835 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8836   echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838   ac_check_lib_save_LIBS=$LIBS
8839 LIBS="-lncurses  $LIBS"
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
8847 /* Override any gcc2 internal prototype to avoid an error.  */
8848 #ifdef __cplusplus
8849 extern "C"
8850 #endif
8851 /* We use char because int might match the return type of a gcc2
8852    builtin and then its argument prototype would still apply.  */
8853 char waddch ();
8854 int
8855 main ()
8856 {
8857 waddch ();
8858   ;
8859   return 0;
8860 }
8861 _ACEOF
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864   (eval $ac_link) 2>conftest.er1
8865   ac_status=$?
8866   grep -v '^ *+' conftest.er1 >conftest.err
8867   rm -f conftest.er1
8868   cat conftest.err >&5
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); } &&
8871          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873   (eval $ac_try) 2>&5
8874   ac_status=$?
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); }; } &&
8877          { ac_try='test -s conftest$ac_exeext'
8878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879   (eval $ac_try) 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); }; }; then
8883   ac_cv_lib_ncurses_waddch=yes
8884 else
8885   echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888 ac_cv_lib_ncurses_waddch=no
8889 fi
8890 rm -f conftest.err conftest.$ac_objext \
8891       conftest$ac_exeext conftest.$ac_ext
8892 LIBS=$ac_check_lib_save_LIBS
8893 fi
8894 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8895 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8896 if test $ac_cv_lib_ncurses_waddch = yes; then
8897
8898 cat >>confdefs.h <<\_ACEOF
8899 #define HAVE_LIBNCURSES 1
8900 _ACEOF
8901
8902              CURSESLIBS="-lncurses"
8903 fi
8904
8905     elif test "$ac_cv_header_curses_h" = "yes"
8906     then
8907         echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8908 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8909 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8910   echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912   ac_check_lib_save_LIBS=$LIBS
8913 LIBS="-lcurses  $LIBS"
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h.  */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h.  */
8920
8921 /* Override any gcc2 internal prototype to avoid an error.  */
8922 #ifdef __cplusplus
8923 extern "C"
8924 #endif
8925 /* We use char because int might match the return type of a gcc2
8926    builtin and then its argument prototype would still apply.  */
8927 char waddch ();
8928 int
8929 main ()
8930 {
8931 waddch ();
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938   (eval $ac_link) 2>conftest.er1
8939   ac_status=$?
8940   grep -v '^ *+' conftest.er1 >conftest.err
8941   rm -f conftest.er1
8942   cat conftest.err >&5
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); } &&
8945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947   (eval $ac_try) 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; } &&
8951          { ac_try='test -s conftest$ac_exeext'
8952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953   (eval $ac_try) 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; }; then
8957   ac_cv_lib_curses_waddch=yes
8958 else
8959   echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962 ac_cv_lib_curses_waddch=no
8963 fi
8964 rm -f conftest.err conftest.$ac_objext \
8965       conftest$ac_exeext conftest.$ac_ext
8966 LIBS=$ac_check_lib_save_LIBS
8967 fi
8968 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8969 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8970 if test $ac_cv_lib_curses_waddch = yes; then
8971
8972 cat >>confdefs.h <<\_ACEOF
8973 #define HAVE_LIBCURSES 1
8974 _ACEOF
8975
8976              CURSESLIBS="-lcurses"
8977 fi
8978
8979     fi
8980 fi
8981
8982
8983 # Extract the first word of "sane-config", so it can be a program name with args.
8984 set dummy sane-config; ac_word=$2
8985 echo "$as_me:$LINENO: checking for $ac_word" >&5
8986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8987 if test "${ac_cv_prog_sane_devel+set}" = set; then
8988   echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990   if test -n "$sane_devel"; then
8991   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8992 else
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH
8995 do
8996   IFS=$as_save_IFS
8997   test -z "$as_dir" && as_dir=.
8998   for ac_exec_ext in '' $ac_executable_extensions; do
8999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000     ac_cv_prog_sane_devel="sane-config"
9001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9002     break 2
9003   fi
9004 done
9005 done
9006
9007   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9008 fi
9009 fi
9010 sane_devel=$ac_cv_prog_sane_devel
9011 if test -n "$sane_devel"; then
9012   echo "$as_me:$LINENO: result: $sane_devel" >&5
9013 echo "${ECHO_T}$sane_devel" >&6
9014 else
9015   echo "$as_me:$LINENO: result: no" >&5
9016 echo "${ECHO_T}no" >&6
9017 fi
9018
9019 SANELIBS=""
9020
9021 SANEINCL=""
9022
9023 if test "$sane_devel" != "no"
9024 then
9025     SANELIBS="`$sane_devel --libs`"
9026     SANEINCL="`$sane_devel --cflags`"
9027     ac_save_CPPFLAGS="$CPPFLAGS"
9028     ac_save_LIBS="$LIBS"
9029     CPPFLAGS="$CPPFLAGS $SANEINCL"
9030     LIBS="$LIBS $SANELIBS"
9031     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9032   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9033 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9034 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9035   echo $ECHO_N "(cached) $ECHO_C" >&6
9036 fi
9037 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9038 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9039 else
9040   # Is the header compilable?
9041 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9042 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9043 cat >conftest.$ac_ext <<_ACEOF
9044 /* confdefs.h.  */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h.  */
9049 $ac_includes_default
9050 #include <sane/sane.h>
9051 _ACEOF
9052 rm -f conftest.$ac_objext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9054   (eval $ac_compile) 2>conftest.er1
9055   ac_status=$?
9056   grep -v '^ *+' conftest.er1 >conftest.err
9057   rm -f conftest.er1
9058   cat conftest.err >&5
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); } &&
9061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063   (eval $ac_try) 2>&5
9064   ac_status=$?
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); }; } &&
9067          { ac_try='test -s conftest.$ac_objext'
9068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069   (eval $ac_try) 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); }; }; then
9073   ac_header_compiler=yes
9074 else
9075   echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9077
9078 ac_header_compiler=no
9079 fi
9080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9082 echo "${ECHO_T}$ac_header_compiler" >&6
9083
9084 # Is the header present?
9085 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9086 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h.  */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h.  */
9093 #include <sane/sane.h>
9094 _ACEOF
9095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9097   ac_status=$?
9098   grep -v '^ *+' conftest.er1 >conftest.err
9099   rm -f conftest.er1
9100   cat conftest.err >&5
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); } >/dev/null; then
9103   if test -s conftest.err; then
9104     ac_cpp_err=$ac_c_preproc_warn_flag
9105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9106   else
9107     ac_cpp_err=
9108   fi
9109 else
9110   ac_cpp_err=yes
9111 fi
9112 if test -z "$ac_cpp_err"; then
9113   ac_header_preproc=yes
9114 else
9115   echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9117
9118   ac_header_preproc=no
9119 fi
9120 rm -f conftest.err conftest.$ac_ext
9121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9122 echo "${ECHO_T}$ac_header_preproc" >&6
9123
9124 # So?  What about this header?
9125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9126   yes:no: )
9127     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9128 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9129     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9130 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9131     ac_header_preproc=yes
9132     ;;
9133   no:yes:* )
9134     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9135 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9136     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
9137 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
9138     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9139 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9140     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
9141 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9142     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9143 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9144     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9145 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9146     (
9147       cat <<\_ASBOX
9148 ## ------------------------------------ ##
9149 ## Report this to wine-devel@winehq.org ##
9150 ## ------------------------------------ ##
9151 _ASBOX
9152     ) |
9153       sed "s/^/$as_me: WARNING:     /" >&2
9154     ;;
9155 esac
9156 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9157 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9158 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9159   echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161   ac_cv_header_sane_sane_h=$ac_header_preproc
9162 fi
9163 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9164 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9165
9166 fi
9167 if test $ac_cv_header_sane_sane_h = yes; then
9168   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9169 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9170 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173   ac_check_lib_save_LIBS=$LIBS
9174 LIBS="-lsane  $LIBS"
9175 cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h.  */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h.  */
9181
9182 /* Override any gcc2 internal prototype to avoid an error.  */
9183 #ifdef __cplusplus
9184 extern "C"
9185 #endif
9186 /* We use char because int might match the return type of a gcc2
9187    builtin and then its argument prototype would still apply.  */
9188 char sane_open ();
9189 int
9190 main ()
9191 {
9192 sane_open ();
9193   ;
9194   return 0;
9195 }
9196 _ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199   (eval $ac_link) 2>conftest.er1
9200   ac_status=$?
9201   grep -v '^ *+' conftest.er1 >conftest.err
9202   rm -f conftest.er1
9203   cat conftest.err >&5
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); } &&
9206          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208   (eval $ac_try) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); }; } &&
9212          { ac_try='test -s conftest$ac_exeext'
9213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214   (eval $ac_try) 2>&5
9215   ac_status=$?
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); }; }; then
9218   ac_cv_lib_sane_sane_open=yes
9219 else
9220   echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223 ac_cv_lib_sane_sane_open=no
9224 fi
9225 rm -f conftest.err conftest.$ac_objext \
9226       conftest$ac_exeext conftest.$ac_ext
9227 LIBS=$ac_check_lib_save_LIBS
9228 fi
9229 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9230 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9231 if test $ac_cv_lib_sane_sane_open = yes; then
9232
9233 cat >>confdefs.h <<\_ACEOF
9234 #define HAVE_SANE 1
9235 _ACEOF
9236
9237 else
9238   SANELIBS=""
9239                                   SANEINCL=""
9240 fi
9241
9242 else
9243   SANELIBS=""
9244                     SANEINCL=""
9245 fi
9246
9247
9248     LIBS="$ac_save_LIBS"
9249     CPPFLAGS="$ac_save_CPPFLAGS"
9250 fi
9251
9252 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9253 then
9254     saved_libs="$LIBS"
9255     ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9256     ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9257     ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9258     echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9259 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
9260     LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9261     cat >conftest.$ac_ext <<_ACEOF
9262 /* confdefs.h.  */
9263 _ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h.  */
9267 #include <unicode/ubidi.h>
9268 int
9269 main ()
9270 {
9271 ubidi_open()
9272   ;
9273   return 0;
9274 }
9275 _ACEOF
9276 rm -f conftest.$ac_objext conftest$ac_exeext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9278   (eval $ac_link) 2>conftest.er1
9279   ac_status=$?
9280   grep -v '^ *+' conftest.er1 >conftest.err
9281   rm -f conftest.er1
9282   cat conftest.err >&5
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); } &&
9285          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287   (eval $ac_try) 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); }; } &&
9291          { ac_try='test -s conftest$ac_exeext'
9292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293   (eval $ac_try) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); }; }; then
9297
9298 cat >>confdefs.h <<\_ACEOF
9299 #define HAVE_ICU 1
9300 _ACEOF
9301
9302                  ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9303
9304                  echo "$as_me:$LINENO: result: yes" >&5
9305 echo "${ECHO_T}yes" >&6
9306 else
9307   echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310 echo "$as_me:$LINENO: result: no" >&5
9311 echo "${ECHO_T}no" >&6
9312 fi
9313 rm -f conftest.err conftest.$ac_objext \
9314       conftest$ac_exeext conftest.$ac_ext
9315     LIBS="$saved_libs"
9316 fi
9317
9318 LCMSLIBS=""
9319
9320 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9321 then
9322     echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
9323 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6
9324 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   ac_check_lib_save_LIBS=$LIBS
9328 LIBS="-llcms  $LIBS"
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h.  */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h.  */
9335
9336 /* Override any gcc2 internal prototype to avoid an error.  */
9337 #ifdef __cplusplus
9338 extern "C"
9339 #endif
9340 /* We use char because int might match the return type of a gcc2
9341    builtin and then its argument prototype would still apply.  */
9342 char cmsOpenProfileFromFile ();
9343 int
9344 main ()
9345 {
9346 cmsOpenProfileFromFile ();
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 rm -f conftest.$ac_objext conftest$ac_exeext
9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353   (eval $ac_link) 2>conftest.er1
9354   ac_status=$?
9355   grep -v '^ *+' conftest.er1 >conftest.err
9356   rm -f conftest.er1
9357   cat conftest.err >&5
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); } &&
9360          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; } &&
9366          { ac_try='test -s conftest$ac_exeext'
9367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368   (eval $ac_try) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); }; }; then
9372   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
9378 fi
9379 rm -f conftest.err conftest.$ac_objext \
9380       conftest$ac_exeext conftest.$ac_ext
9381 LIBS=$ac_check_lib_save_LIBS
9382 fi
9383 echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
9384 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6
9385 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
9386
9387 cat >>confdefs.h <<\_ACEOF
9388 #define HAVE_LCMS 1
9389 _ACEOF
9390
9391          LCMSLIBS="-llcms"
9392 fi
9393
9394 fi
9395
9396 LDAPLIBS=""
9397
9398 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
9399 then
9400     echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
9401 echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6
9402 if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405   ac_check_lib_save_LIBS=$LIBS
9406 LIBS="-lldap  $LIBS"
9407 cat >conftest.$ac_ext <<_ACEOF
9408 /* confdefs.h.  */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h.  */
9413
9414 /* Override any gcc2 internal prototype to avoid an error.  */
9415 #ifdef __cplusplus
9416 extern "C"
9417 #endif
9418 /* We use char because int might match the return type of a gcc2
9419    builtin and then its argument prototype would still apply.  */
9420 char ldap_init ();
9421 int
9422 main ()
9423 {
9424 ldap_init ();
9425   ;
9426   return 0;
9427 }
9428 _ACEOF
9429 rm -f conftest.$ac_objext conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431   (eval $ac_link) 2>conftest.er1
9432   ac_status=$?
9433   grep -v '^ *+' conftest.er1 >conftest.err
9434   rm -f conftest.er1
9435   cat conftest.err >&5
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); } &&
9438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440   (eval $ac_try) 2>&5
9441   ac_status=$?
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   (exit $ac_status); }; } &&
9444          { ac_try='test -s conftest$ac_exeext'
9445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446   (eval $ac_try) 2>&5
9447   ac_status=$?
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); }; }; then
9450   ac_cv_lib_ldap_ldap_init=yes
9451 else
9452   echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9454
9455 ac_cv_lib_ldap_ldap_init=no
9456 fi
9457 rm -f conftest.err conftest.$ac_objext \
9458       conftest$ac_exeext conftest.$ac_ext
9459 LIBS=$ac_check_lib_save_LIBS
9460 fi
9461 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
9462 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6
9463 if test $ac_cv_lib_ldap_ldap_init = yes; then
9464   echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
9465 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6
9466 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
9467   echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469   ac_check_lib_save_LIBS=$LIBS
9470 LIBS="-llber  $LIBS"
9471 cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h.  */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h.  */
9477
9478 /* Override any gcc2 internal prototype to avoid an error.  */
9479 #ifdef __cplusplus
9480 extern "C"
9481 #endif
9482 /* We use char because int might match the return type of a gcc2
9483    builtin and then its argument prototype would still apply.  */
9484 char ber_init ();
9485 int
9486 main ()
9487 {
9488 ber_init ();
9489   ;
9490   return 0;
9491 }
9492 _ACEOF
9493 rm -f conftest.$ac_objext conftest$ac_exeext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495   (eval $ac_link) 2>conftest.er1
9496   ac_status=$?
9497   grep -v '^ *+' conftest.er1 >conftest.err
9498   rm -f conftest.er1
9499   cat conftest.err >&5
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); } &&
9502          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504   (eval $ac_try) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; } &&
9508          { ac_try='test -s conftest$ac_exeext'
9509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510   (eval $ac_try) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; }; then
9514   ac_cv_lib_lber_ber_init=yes
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 ac_cv_lib_lber_ber_init=no
9520 fi
9521 rm -f conftest.err conftest.$ac_objext \
9522       conftest$ac_exeext conftest.$ac_ext
9523 LIBS=$ac_check_lib_save_LIBS
9524 fi
9525 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
9526 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6
9527 if test $ac_cv_lib_lber_ber_init = yes; then
9528
9529 cat >>confdefs.h <<\_ACEOF
9530 #define HAVE_LDAP 1
9531 _ACEOF
9532
9533              LDAPLIBS="-lldap -llber"
9534 fi
9535
9536 fi
9537
9538 fi
9539
9540 FREETYPELIBS=""
9541
9542 FREETYPEINCL=""
9543
9544 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9545 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9546 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-lfreetype $X_LIBS $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557
9558 /* Override any gcc2 internal prototype to avoid an error.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 /* We use char because int might match the return type of a gcc2
9563    builtin and then its argument prototype would still apply.  */
9564 char FT_Init_FreeType ();
9565 int
9566 main ()
9567 {
9568 FT_Init_FreeType ();
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575   (eval $ac_link) 2>conftest.er1
9576   ac_status=$?
9577   grep -v '^ *+' conftest.er1 >conftest.err
9578   rm -f conftest.er1
9579   cat conftest.err >&5
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); } &&
9582          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584   (eval $ac_try) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; } &&
9588          { ac_try='test -s conftest$ac_exeext'
9589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590   (eval $ac_try) 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }; }; then
9594   ac_cv_lib_freetype_FT_Init_FreeType=yes
9595 else
9596   echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9598
9599 ac_cv_lib_freetype_FT_Init_FreeType=no
9600 fi
9601 rm -f conftest.err conftest.$ac_objext \
9602       conftest$ac_exeext conftest.$ac_ext
9603 LIBS=$ac_check_lib_save_LIBS
9604 fi
9605 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9606 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9607 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9608   ft_lib=yes
9609 else
9610   ft_lib=no
9611 fi
9612
9613 if test "$ft_lib" = "no"
9614 then
9615     wine_cv_msg_freetype=no
9616 else
9617     # Extract the first word of "freetype-config", so it can be a program name with args.
9618 set dummy freetype-config; ac_word=$2
9619 echo "$as_me:$LINENO: checking for $ac_word" >&5
9620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9621 if test "${ac_cv_prog_ft_devel+set}" = set; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   if test -n "$ft_devel"; then
9625   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9626 else
9627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628 for as_dir in $PATH
9629 do
9630   IFS=$as_save_IFS
9631   test -z "$as_dir" && as_dir=.
9632   for ac_exec_ext in '' $ac_executable_extensions; do
9633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9634     ac_cv_prog_ft_devel="freetype-config"
9635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9636     break 2
9637   fi
9638 done
9639 done
9640
9641   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9642 fi
9643 fi
9644 ft_devel=$ac_cv_prog_ft_devel
9645 if test -n "$ft_devel"; then
9646   echo "$as_me:$LINENO: result: $ft_devel" >&5
9647 echo "${ECHO_T}$ft_devel" >&6
9648 else
9649   echo "$as_me:$LINENO: result: no" >&5
9650 echo "${ECHO_T}no" >&6
9651 fi
9652
9653     if test "$ft_devel" = "no"
9654     then
9655         # Extract the first word of "freetype2-config", so it can be a program name with args.
9656 set dummy freetype2-config; ac_word=$2
9657 echo "$as_me:$LINENO: checking for $ac_word" >&5
9658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9659 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9660   echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662   if test -n "$ft_devel2"; then
9663   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9664 else
9665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 for as_dir in $PATH
9667 do
9668   IFS=$as_save_IFS
9669   test -z "$as_dir" && as_dir=.
9670   for ac_exec_ext in '' $ac_executable_extensions; do
9671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9672     ac_cv_prog_ft_devel2="freetype2-config"
9673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9674     break 2
9675   fi
9676 done
9677 done
9678
9679   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9680 fi
9681 fi
9682 ft_devel2=$ac_cv_prog_ft_devel2
9683 if test -n "$ft_devel2"; then
9684   echo "$as_me:$LINENO: result: $ft_devel2" >&5
9685 echo "${ECHO_T}$ft_devel2" >&6
9686 else
9687   echo "$as_me:$LINENO: result: no" >&5
9688 echo "${ECHO_T}no" >&6
9689 fi
9690
9691         if test "$ft_devel2" = "freetype2-config"
9692         then
9693                 ft_devel=$ft_devel2
9694         fi
9695     fi
9696     if test "$ft_devel" = "no"
9697     then
9698         wine_cv_msg_freetype=yes
9699     else
9700         FREETYPELIBS=`$ft_devel --libs`
9701         FREETYPEINCL=`$ft_devel --cflags`
9702         ac_save_CPPFLAGS="$CPPFLAGS"
9703         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714 for ac_header in ft2build.h \
9715                          freetype/freetype.h \
9716                          freetype/ftglyph.h \
9717                          freetype/tttables.h \
9718                          freetype/ftnames.h \
9719                          freetype/ftsnames.h \
9720                          freetype/ttnameid.h \
9721                          freetype/ftoutln.h \
9722                          freetype/ftwinfnt.h \
9723                          freetype/internal/sfnt.h
9724 do
9725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9726 echo "$as_me:$LINENO: checking for $ac_header" >&5
9727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9729   echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731   cat >conftest.$ac_ext <<_ACEOF
9732 /* confdefs.h.  */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h.  */
9737 #if HAVE_FT2BUILD_H
9738                           #include <ft2build.h>
9739                           #endif
9740
9741 #include <$ac_header>
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745   (eval $ac_compile) 2>conftest.er1
9746   ac_status=$?
9747   grep -v '^ *+' conftest.er1 >conftest.err
9748   rm -f conftest.er1
9749   cat conftest.err >&5
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } &&
9752          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754   (eval $ac_try) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; } &&
9758          { ac_try='test -s conftest.$ac_objext'
9759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760   (eval $ac_try) 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); }; }; then
9764   eval "$as_ac_Header=yes"
9765 else
9766   echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 eval "$as_ac_Header=no"
9770 fi
9771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9772 fi
9773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9776   cat >>confdefs.h <<_ACEOF
9777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9778 _ACEOF
9779
9780 fi
9781
9782 done
9783
9784         cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h.  */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h.  */
9790 #include <ft2build.h>
9791                     #include <freetype/fttrigon.h>
9792 _ACEOF
9793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9795   ac_status=$?
9796   grep -v '^ *+' conftest.er1 >conftest.err
9797   rm -f conftest.er1
9798   cat conftest.err >&5
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); } >/dev/null; then
9801   if test -s conftest.err; then
9802     ac_cpp_err=$ac_c_preproc_warn_flag
9803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9804   else
9805     ac_cpp_err=
9806   fi
9807 else
9808   ac_cpp_err=yes
9809 fi
9810 if test -z "$ac_cpp_err"; then
9811
9812 cat >>confdefs.h <<\_ACEOF
9813 #define HAVE_FREETYPE_FTTRIGON_H 1
9814 _ACEOF
9815
9816                     wine_cv_fttrigon=yes
9817 else
9818   echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821   wine_cv_fttrigon=no
9822 fi
9823 rm -f conftest.err conftest.$ac_ext
9824         CPPFLAGS="$ac_save_CPPFLAGS"
9825                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9826         then
9827
9828 cat >>confdefs.h <<\_ACEOF
9829 #define HAVE_FREETYPE 1
9830 _ACEOF
9831
9832             wine_cv_msg_freetype=no
9833         else
9834             FREETYPELIBS=""
9835             FREETYPEINCL=""
9836             wine_cv_msg_freetype=yes
9837         fi
9838     fi
9839 fi
9840
9841 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
9842 then
9843   FONTSSUBDIRS="fonts"
9844
9845 fi
9846
9847 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9848 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9849 if test "${ac_cv_c_ppdev+set}" = set; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h.  */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h.  */
9858 #include <linux/ppdev.h>
9859 int
9860 main ()
9861 {
9862 ioctl (1,PPCLAIM,0)
9863   ;
9864   return 0;
9865 }
9866 _ACEOF
9867 rm -f conftest.$ac_objext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869   (eval $ac_compile) 2>conftest.er1
9870   ac_status=$?
9871   grep -v '^ *+' conftest.er1 >conftest.err
9872   rm -f conftest.er1
9873   cat conftest.err >&5
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } &&
9876          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878   (eval $ac_try) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; } &&
9882          { ac_try='test -s conftest.$ac_objext'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   ac_cv_c_ppdev="yes"
9889 else
9890   echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893 ac_cv_c_ppdev="no"
9894 fi
9895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9896
9897 fi
9898 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9899 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9900 if test "$ac_cv_c_ppdev" = "yes"
9901 then
9902
9903 cat >>confdefs.h <<\_ACEOF
9904 #define HAVE_PPDEV 1
9905 _ACEOF
9906
9907 fi
9908
9909 echo "$as_me:$LINENO: checking for va_copy" >&5
9910 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9911 if test "${ac_cv_c_va_copy+set}" = set; then
9912   echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914   cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h.  */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h.  */
9920 #include <stdarg.h>
9921 int
9922 main ()
9923 {
9924 va_list ap1, ap2;
9925     va_copy(ap1,ap2);
9926
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933   (eval $ac_link) 2>conftest.er1
9934   ac_status=$?
9935   grep -v '^ *+' conftest.er1 >conftest.err
9936   rm -f conftest.er1
9937   cat conftest.err >&5
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); } &&
9940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942   (eval $ac_try) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; } &&
9946          { ac_try='test -s conftest$ac_exeext'
9947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948   (eval $ac_try) 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); }; }; then
9952   ac_cv_c_va_copy="yes"
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 ac_cv_c_va_copy="no"
9958 fi
9959 rm -f conftest.err conftest.$ac_objext \
9960       conftest$ac_exeext conftest.$ac_ext
9961
9962 fi
9963 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9964 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9965 if test "$ac_cv_c_va_copy" = "yes"
9966 then
9967
9968 cat >>confdefs.h <<\_ACEOF
9969 #define HAVE_VA_COPY 1
9970 _ACEOF
9971
9972 fi
9973 echo "$as_me:$LINENO: checking for __va_copy" >&5
9974 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9975 if test "${ac_cv_c___va_copy+set}" = set; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978   cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h.  */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h.  */
9984 #include <stdarg.h>
9985 int
9986 main ()
9987 {
9988 va_list ap1, ap2;
9989     __va_copy(ap1,ap2);
9990
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997   (eval $ac_link) 2>conftest.er1
9998   ac_status=$?
9999   grep -v '^ *+' conftest.er1 >conftest.err
10000   rm -f conftest.er1
10001   cat conftest.err >&5
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } &&
10004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006   (eval $ac_try) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; } &&
10010          { ac_try='test -s conftest$ac_exeext'
10011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012   (eval $ac_try) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }; }; then
10016   ac_cv_c___va_copy="yes"
10017 else
10018   echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_cv_c___va_copy="no"
10022 fi
10023 rm -f conftest.err conftest.$ac_objext \
10024       conftest$ac_exeext conftest.$ac_ext
10025
10026 fi
10027 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10028 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10029 if test "$ac_cv_c___va_copy" = "yes"
10030 then
10031
10032 cat >>confdefs.h <<\_ACEOF
10033 #define HAVE___VA_COPY 1
10034 _ACEOF
10035
10036 fi
10037
10038 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10039 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10040 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10041   echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043   cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h.  */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h.  */
10049 #include <setjmp.h>
10050 int
10051 main ()
10052 {
10053 sigjmp_buf buf;
10054     sigsetjmp( buf, 1 );
10055     siglongjmp( buf, 1 );
10056   ;
10057   return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062   (eval $ac_link) 2>conftest.er1
10063   ac_status=$?
10064   grep -v '^ *+' conftest.er1 >conftest.err
10065   rm -f conftest.er1
10066   cat conftest.err >&5
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } &&
10069          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; } &&
10075          { ac_try='test -s conftest$ac_exeext'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; }; then
10081   ac_cv_c_sigsetjmp="yes"
10082 else
10083   echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086 ac_cv_c_sigsetjmp="no"
10087 fi
10088 rm -f conftest.err conftest.$ac_objext \
10089       conftest$ac_exeext conftest.$ac_ext
10090
10091 fi
10092 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10093 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10094 if test "$ac_cv_c_sigsetjmp" = "yes"
10095 then
10096
10097 cat >>confdefs.h <<\_ACEOF
10098 #define HAVE_SIGSETJMP 1
10099 _ACEOF
10100
10101 fi
10102
10103 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10104 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10105 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h.  */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h.  */
10114 #define _GNU_SOURCE
10115 #include <pthread.h>
10116
10117 int
10118 main ()
10119 {
10120 if ((pthread_rwlock_t *) 0)
10121   return 0;
10122 if (sizeof (pthread_rwlock_t))
10123   return 0;
10124   ;
10125   return 0;
10126 }
10127 _ACEOF
10128 rm -f conftest.$ac_objext
10129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10130   (eval $ac_compile) 2>conftest.er1
10131   ac_status=$?
10132   grep -v '^ *+' conftest.er1 >conftest.err
10133   rm -f conftest.er1
10134   cat conftest.err >&5
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); } &&
10137          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139   (eval $ac_try) 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; } &&
10143          { ac_try='test -s conftest.$ac_objext'
10144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145   (eval $ac_try) 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); }; }; then
10149   ac_cv_type_pthread_rwlock_t=yes
10150 else
10151   echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10153
10154 ac_cv_type_pthread_rwlock_t=no
10155 fi
10156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10157 fi
10158 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10159 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10160 if test $ac_cv_type_pthread_rwlock_t = yes; then
10161
10162 cat >>confdefs.h <<_ACEOF
10163 #define HAVE_PTHREAD_RWLOCK_T 1
10164 _ACEOF
10165
10166
10167 fi
10168 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10169 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10170 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179 #define _GNU_SOURCE
10180 #include <pthread.h>
10181
10182 int
10183 main ()
10184 {
10185 if ((pthread_rwlockattr_t *) 0)
10186   return 0;
10187 if (sizeof (pthread_rwlockattr_t))
10188   return 0;
10189   ;
10190   return 0;
10191 }
10192 _ACEOF
10193 rm -f conftest.$ac_objext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10195   (eval $ac_compile) 2>conftest.er1
10196   ac_status=$?
10197   grep -v '^ *+' conftest.er1 >conftest.err
10198   rm -f conftest.er1
10199   cat conftest.err >&5
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); } &&
10202          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; } &&
10208          { ac_try='test -s conftest.$ac_objext'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_cv_type_pthread_rwlockattr_t=yes
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 ac_cv_type_pthread_rwlockattr_t=no
10220 fi
10221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10222 fi
10223 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10224 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10225 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10226
10227 cat >>confdefs.h <<_ACEOF
10228 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10229 _ACEOF
10230
10231
10232 fi
10233
10234
10235 ac_save_LIBS="$LIBS"
10236 LIBS="$LIBS $LIBPTHREAD"
10237
10238
10239
10240 for ac_func in \
10241         pthread_getattr_np \
10242         pthread_get_stackaddr_np \
10243         pthread_get_stacksize_np \
10244
10245 do
10246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10247 echo "$as_me:$LINENO: checking for $ac_func" >&5
10248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10249 if eval "test \"\${$as_ac_var+set}\" = set"; then
10250   echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252   cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10260 #define $ac_func innocuous_$ac_func
10261
10262 /* System header to define __stub macros and hopefully few prototypes,
10263     which can conflict with char $ac_func (); below.
10264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10265     <limits.h> exists even on freestanding compilers.  */
10266
10267 #ifdef __STDC__
10268 # include <limits.h>
10269 #else
10270 # include <assert.h>
10271 #endif
10272
10273 #undef $ac_func
10274
10275 /* Override any gcc2 internal prototype to avoid an error.  */
10276 #ifdef __cplusplus
10277 extern "C"
10278 {
10279 #endif
10280 /* We use char because int might match the return type of a gcc2
10281    builtin and then its argument prototype would still apply.  */
10282 char $ac_func ();
10283 /* The GNU C library defines this for functions which it implements
10284     to always fail with ENOSYS.  Some functions are actually named
10285     something starting with __ and the normal name is an alias.  */
10286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10287 choke me
10288 #else
10289 char (*f) () = $ac_func;
10290 #endif
10291 #ifdef __cplusplus
10292 }
10293 #endif
10294
10295 int
10296 main ()
10297 {
10298 return f != $ac_func;
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305   (eval $ac_link) 2>conftest.er1
10306   ac_status=$?
10307   grep -v '^ *+' conftest.er1 >conftest.err
10308   rm -f conftest.er1
10309   cat conftest.err >&5
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); } &&
10312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314   (eval $ac_try) 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; } &&
10318          { ac_try='test -s conftest$ac_exeext'
10319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320   (eval $ac_try) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; }; then
10324   eval "$as_ac_var=yes"
10325 else
10326   echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 eval "$as_ac_var=no"
10330 fi
10331 rm -f conftest.err conftest.$ac_objext \
10332       conftest$ac_exeext conftest.$ac_ext
10333 fi
10334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10336 if test `eval echo '${'$as_ac_var'}'` = yes; then
10337   cat >>confdefs.h <<_ACEOF
10338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10339 _ACEOF
10340
10341 fi
10342 done
10343
10344 LIBS="$ac_save_LIBS"
10345
10346 # Extract the first word of "artsc-config", so it can be a program name with args.
10347 set dummy artsc-config; ac_word=$2
10348 echo "$as_me:$LINENO: checking for $ac_word" >&5
10349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10350 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10351   echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353   case $ARTSCCONFIG in
10354   [\\/]* | ?:[\\/]*)
10355   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10356   ;;
10357   *)
10358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10360 do
10361   IFS=$as_save_IFS
10362   test -z "$as_dir" && as_dir=.
10363   for ac_exec_ext in '' $ac_executable_extensions; do
10364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10367     break 2
10368   fi
10369 done
10370 done
10371
10372   ;;
10373 esac
10374 fi
10375 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10376
10377 if test -n "$ARTSCCONFIG"; then
10378   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10379 echo "${ECHO_T}$ARTSCCONFIG" >&6
10380 else
10381   echo "$as_me:$LINENO: result: no" >&5
10382 echo "${ECHO_T}no" >&6
10383 fi
10384
10385 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
10386 then
10387     ARTSC_CFLAGS=""
10388     for i in `$ARTSCCONFIG --cflags`
10389     do
10390       case "$i" in
10391         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
10392       esac
10393     done
10394     ARTSC_LIBS=`$ARTSCCONFIG --libs`
10395     save_CFLAGS="$CFLAGS"
10396     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10397     echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
10398 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6
10399 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402   ac_check_lib_save_LIBS=$LIBS
10403 LIBS="-lartsc $ARTSC_LIBS $LIBS"
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410
10411 /* Override any gcc2 internal prototype to avoid an error.  */
10412 #ifdef __cplusplus
10413 extern "C"
10414 #endif
10415 /* We use char because int might match the return type of a gcc2
10416    builtin and then its argument prototype would still apply.  */
10417 char arts_init ();
10418 int
10419 main ()
10420 {
10421 arts_init ();
10422   ;
10423   return 0;
10424 }
10425 _ACEOF
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428   (eval $ac_link) 2>conftest.er1
10429   ac_status=$?
10430   grep -v '^ *+' conftest.er1 >conftest.err
10431   rm -f conftest.er1
10432   cat conftest.err >&5
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); } &&
10435          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437   (eval $ac_try) 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); }; } &&
10441          { ac_try='test -s conftest$ac_exeext'
10442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443   (eval $ac_try) 2>&5
10444   ac_status=$?
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); }; }; then
10447   ac_cv_lib_artsc_arts_init=yes
10448 else
10449   echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10451
10452 ac_cv_lib_artsc_arts_init=no
10453 fi
10454 rm -f conftest.err conftest.$ac_objext \
10455       conftest$ac_exeext conftest.$ac_ext
10456 LIBS=$ac_check_lib_save_LIBS
10457 fi
10458 echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
10459 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6
10460 if test $ac_cv_lib_artsc_arts_init = yes; then
10461   cat >conftest.$ac_ext <<_ACEOF
10462 /* confdefs.h.  */
10463 _ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h.  */
10467 #include <artsc.h>
10468 int
10469 main ()
10470 {
10471 arts_stream_t stream;
10472   ;
10473   return 0;
10474 }
10475 _ACEOF
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478   (eval $ac_compile) 2>conftest.er1
10479   ac_status=$?
10480   grep -v '^ *+' conftest.er1 >conftest.err
10481   rm -f conftest.er1
10482   cat conftest.err >&5
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); } &&
10485          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487   (eval $ac_try) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); }; } &&
10491          { ac_try='test -s conftest.$ac_objext'
10492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493   (eval $ac_try) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; }; then
10497   ARTSLIBS=$ARTSC_LIBS
10498
10499             ARTSINCL=$ARTSC_CFLAGS
10500
10501
10502 cat >>confdefs.h <<\_ACEOF
10503 #define HAVE_ARTS 1
10504 _ACEOF
10505
10506 else
10507   echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510 fi
10511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10512 fi
10513
10514     CFLAGS="$save_CFLAGS"
10515 fi
10516
10517 # Extract the first word of "esd-config", so it can be a program name with args.
10518 set dummy esd-config; ac_word=$2
10519 echo "$as_me:$LINENO: checking for $ac_word" >&5
10520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10521 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
10522   echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524   case $ESDCONFIG in
10525   [\\/]* | ?:[\\/]*)
10526   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10527   ;;
10528   *)
10529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530 for as_dir in $PATH
10531 do
10532   IFS=$as_save_IFS
10533   test -z "$as_dir" && as_dir=.
10534   for ac_exec_ext in '' $ac_executable_extensions; do
10535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10536     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10538     break 2
10539   fi
10540 done
10541 done
10542
10543   ;;
10544 esac
10545 fi
10546 ESDCONFIG=$ac_cv_path_ESDCONFIG
10547
10548 if test -n "$ESDCONFIG"; then
10549   echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
10550 echo "${ECHO_T}$ESDCONFIG" >&6
10551 else
10552   echo "$as_me:$LINENO: result: no" >&5
10553 echo "${ECHO_T}no" >&6
10554 fi
10555
10556 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
10557 then
10558     ESD_CFLAGS=""
10559     for i in `$ESDCONFIG --cflags`
10560     do
10561       case "$i" in
10562         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
10563       esac
10564     done
10565     ESD_LIBS=`$ESDCONFIG --libs`
10566     save_CFLAGS="$CFLAGS"
10567     CFLAGS="$CFLAGS $ESD_CFLAGS"
10568     echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
10569 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6
10570 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   ac_check_lib_save_LIBS=$LIBS
10574 LIBS="-lesd  $LIBS"
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581
10582 /* Override any gcc2 internal prototype to avoid an error.  */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 /* We use char because int might match the return type of a gcc2
10587    builtin and then its argument prototype would still apply.  */
10588 char esd_open_sound ();
10589 int
10590 main ()
10591 {
10592 esd_open_sound ();
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599   (eval $ac_link) 2>conftest.er1
10600   ac_status=$?
10601   grep -v '^ *+' conftest.er1 >conftest.err
10602   rm -f conftest.er1
10603   cat conftest.err >&5
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } &&
10606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608   (eval $ac_try) 2>&5
10609   ac_status=$?
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); }; } &&
10612          { ac_try='test -s conftest$ac_exeext'
10613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614   (eval $ac_try) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; }; then
10618   ac_cv_lib_esd_esd_open_sound=yes
10619 else
10620   echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 ac_cv_lib_esd_esd_open_sound=no
10624 fi
10625 rm -f conftest.err conftest.$ac_objext \
10626       conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10628 fi
10629 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
10630 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6
10631 if test $ac_cv_lib_esd_esd_open_sound = yes; then
10632   ESDLIBS=$ESD_LIBS
10633
10634          ESDINCL=$ESD_CFLAGS
10635
10636
10637 cat >>confdefs.h <<\_ACEOF
10638 #define HAVE_ESD 1
10639 _ACEOF
10640
10641 fi
10642
10643     CFLAGS="$save_CFLAGS"
10644 fi
10645
10646 ALSALIBS=""
10647
10648 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10649 then
10650     echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10651 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6
10652 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
10653   echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655   ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-lasound  $LIBS"
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663
10664 /* Override any gcc2 internal prototype to avoid an error.  */
10665 #ifdef __cplusplus
10666 extern "C"
10667 #endif
10668 /* We use char because int might match the return type of a gcc2
10669    builtin and then its argument prototype would still apply.  */
10670 char snd_pcm_hw_params_get_access ();
10671 int
10672 main ()
10673 {
10674 snd_pcm_hw_params_get_access ();
10675   ;
10676   return 0;
10677 }
10678 _ACEOF
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10681   (eval $ac_link) 2>conftest.er1
10682   ac_status=$?
10683   grep -v '^ *+' conftest.er1 >conftest.err
10684   rm -f conftest.er1
10685   cat conftest.err >&5
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); } &&
10688          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690   (eval $ac_try) 2>&5
10691   ac_status=$?
10692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); }; } &&
10694          { ac_try='test -s conftest$ac_exeext'
10695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696   (eval $ac_try) 2>&5
10697   ac_status=$?
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); }; }; then
10700   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10701 else
10702   echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10704
10705 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10706 fi
10707 rm -f conftest.err conftest.$ac_objext \
10708       conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10710 fi
10711 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10712 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6
10713 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
10714   cat >conftest.$ac_ext <<_ACEOF
10715 /* confdefs.h.  */
10716 _ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h.  */
10720 #ifdef HAVE_ALSA_ASOUNDLIB_H
10721 #include <alsa/asoundlib.h>
10722 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10723 #include <sys/asoundlib.h>
10724 #endif
10725 int
10726 main ()
10727 {
10728 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 rm -f conftest.$ac_objext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10735   (eval $ac_compile) 2>conftest.er1
10736   ac_status=$?
10737   grep -v '^ *+' conftest.er1 >conftest.err
10738   rm -f conftest.er1
10739   cat conftest.err >&5
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); } &&
10742          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744   (eval $ac_try) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; } &&
10748          { ac_try='test -s conftest.$ac_objext'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754
10755 cat >>confdefs.h <<\_ACEOF
10756 #define HAVE_ALSA 1
10757 _ACEOF
10758
10759                          ALSALIBS="-lasound"
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 fi
10765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10766 fi
10767
10768 fi
10769
10770
10771 AUDIOIOLIBS=""
10772
10773 if test "$ac_cv_header_libaudioio_h" = "yes"
10774 then
10775     echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10776 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10777 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10778   echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780   ac_check_lib_save_LIBS=$LIBS
10781 LIBS="-laudioio  $LIBS"
10782 cat >conftest.$ac_ext <<_ACEOF
10783 /* confdefs.h.  */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h.  */
10788
10789 /* Override any gcc2 internal prototype to avoid an error.  */
10790 #ifdef __cplusplus
10791 extern "C"
10792 #endif
10793 /* We use char because int might match the return type of a gcc2
10794    builtin and then its argument prototype would still apply.  */
10795 char AudioIOGetVersion ();
10796 int
10797 main ()
10798 {
10799 AudioIOGetVersion ();
10800   ;
10801   return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806   (eval $ac_link) 2>conftest.er1
10807   ac_status=$?
10808   grep -v '^ *+' conftest.er1 >conftest.err
10809   rm -f conftest.er1
10810   cat conftest.err >&5
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } &&
10813          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815   (eval $ac_try) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; } &&
10819          { ac_try='test -s conftest$ac_exeext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   ac_cv_lib_audioio_AudioIOGetVersion=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_cv_lib_audioio_AudioIOGetVersion=no
10831 fi
10832 rm -f conftest.err conftest.$ac_objext \
10833       conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10835 fi
10836 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10837 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10838 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10839   AUDIOIOLIBS="-laudioio"
10840
10841 cat >>confdefs.h <<\_ACEOF
10842 #define HAVE_LIBAUDIOIO 1
10843 _ACEOF
10844
10845 fi
10846
10847 fi
10848
10849
10850 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10851 then
10852     echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
10853 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
10854 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
10855   echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857   ac_check_lib_save_LIBS=$LIBS
10858 LIBS="-lcapi20  $LIBS"
10859 cat >conftest.$ac_ext <<_ACEOF
10860 /* confdefs.h.  */
10861 _ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h.  */
10865
10866 /* Override any gcc2 internal prototype to avoid an error.  */
10867 #ifdef __cplusplus
10868 extern "C"
10869 #endif
10870 /* We use char because int might match the return type of a gcc2
10871    builtin and then its argument prototype would still apply.  */
10872 char capi20_register ();
10873 int
10874 main ()
10875 {
10876 capi20_register ();
10877   ;
10878   return 0;
10879 }
10880 _ACEOF
10881 rm -f conftest.$ac_objext conftest$ac_exeext
10882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10883   (eval $ac_link) 2>conftest.er1
10884   ac_status=$?
10885   grep -v '^ *+' conftest.er1 >conftest.err
10886   rm -f conftest.er1
10887   cat conftest.err >&5
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); } &&
10890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892   (eval $ac_try) 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; } &&
10896          { ac_try='test -s conftest$ac_exeext'
10897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898   (eval $ac_try) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; }; then
10902   ac_cv_lib_capi20_capi20_register=yes
10903 else
10904   echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10906
10907 ac_cv_lib_capi20_capi20_register=no
10908 fi
10909 rm -f conftest.err conftest.$ac_objext \
10910       conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10912 fi
10913 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
10914 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
10915 if test $ac_cv_lib_capi20_capi20_register = yes; then
10916
10917 cat >>confdefs.h <<\_ACEOF
10918 #define HAVE_CAPI4LINUX 1
10919 _ACEOF
10920
10921 fi
10922
10923 fi
10924
10925
10926 EXTRACFLAGS=""
10927
10928 if test "x${GCC}" = "xyes"
10929 then
10930   EXTRACFLAGS="-Wall -pipe"
10931
10932     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10933 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10934 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   if test "$cross_compiling" = yes; then
10938   ac_cv_c_gcc_strength_bug="yes"
10939 else
10940   cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h.  */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h.  */
10946
10947 int     L[4] = {0,1,2,3};
10948 int main(void) {
10949   static int Array[3];
10950   unsigned int B = 3;
10951   int i;
10952   for(i=0; i<B; i++) Array[i] = i - 3;
10953   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10954   L[i] = 4;
10955
10956   exit( Array[1] != -2 || L[2] != 3);
10957 }
10958 _ACEOF
10959 rm -f conftest$ac_exeext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10961   (eval $ac_link) 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966   (eval $ac_try) 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; }; then
10970   ac_cv_c_gcc_strength_bug="no"
10971 else
10972   echo "$as_me: program exited with status $ac_status" >&5
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 ( exit $ac_status )
10977 ac_cv_c_gcc_strength_bug="yes"
10978 fi
10979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10980 fi
10981 fi
10982 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10983 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10984   if test "$ac_cv_c_gcc_strength_bug" = "yes"
10985   then
10986     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
10987   fi
10988
10989     echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
10990 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
10991 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   ac_wine_try_cflags_saved=$CFLAGS
10995 CFLAGS="$CFLAGS -fshort-wchar"
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002
11003 int
11004 main ()
11005 {
11006
11007   ;
11008   return 0;
11009 }
11010 _ACEOF
11011 rm -f conftest.$ac_objext conftest$ac_exeext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11013   (eval $ac_link) 2>conftest.er1
11014   ac_status=$?
11015   grep -v '^ *+' conftest.er1 >conftest.err
11016   rm -f conftest.er1
11017   cat conftest.err >&5
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); } &&
11020          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022   (eval $ac_try) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; } &&
11026          { ac_try='test -s conftest$ac_exeext'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; }; then
11032   ac_cv_c_gcc_fshort_wchar="yes"
11033 else
11034   echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11036
11037 ac_cv_c_gcc_fshort_wchar="no"
11038 fi
11039 rm -f conftest.err conftest.$ac_objext \
11040       conftest$ac_exeext conftest.$ac_ext
11041 CFLAGS=$ac_wine_try_cflags_saved
11042 fi
11043 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
11044 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
11045   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
11046   then
11047
11048 cat >>confdefs.h <<\_ACEOF
11049 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
11050 _ACEOF
11051
11052   fi
11053
11054     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
11055 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
11056 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
11057   echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059   ac_wine_try_cflags_saved=$CFLAGS
11060 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
11061 cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067
11068 int
11069 main ()
11070 {
11071
11072   ;
11073   return 0;
11074 }
11075 _ACEOF
11076 rm -f conftest.$ac_objext conftest$ac_exeext
11077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11078   (eval $ac_link) 2>conftest.er1
11079   ac_status=$?
11080   grep -v '^ *+' conftest.er1 >conftest.err
11081   rm -f conftest.er1
11082   cat conftest.err >&5
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); } &&
11085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087   (eval $ac_try) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; } &&
11091          { ac_try='test -s conftest$ac_exeext'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; }; then
11097   ac_cv_c_gcc_stack_boundary="yes"
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102 ac_cv_c_gcc_stack_boundary="no"
11103 fi
11104 rm -f conftest.err conftest.$ac_objext \
11105       conftest$ac_exeext conftest.$ac_ext
11106 CFLAGS=$ac_wine_try_cflags_saved
11107 fi
11108 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
11109 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
11110   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
11111   then
11112     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
11113   fi
11114
11115     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
11116 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
11117 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120   ac_wine_try_cflags_saved=$CFLAGS
11121 CFLAGS="$CFLAGS -fno-strict-aliasing"
11122 cat >conftest.$ac_ext <<_ACEOF
11123 /* confdefs.h.  */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h.  */
11128
11129 int
11130 main ()
11131 {
11132
11133   ;
11134   return 0;
11135 }
11136 _ACEOF
11137 rm -f conftest.$ac_objext conftest$ac_exeext
11138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11139   (eval $ac_link) 2>conftest.er1
11140   ac_status=$?
11141   grep -v '^ *+' conftest.er1 >conftest.err
11142   rm -f conftest.er1
11143   cat conftest.err >&5
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); } &&
11146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148   (eval $ac_try) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; } &&
11152          { ac_try='test -s conftest$ac_exeext'
11153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154   (eval $ac_try) 2>&5
11155   ac_status=$?
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); }; }; then
11158   ac_cv_c_gcc_no_strict_aliasing="yes"
11159 else
11160   echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163 ac_cv_c_gcc_no_strict_aliasing="no"
11164 fi
11165 rm -f conftest.err conftest.$ac_objext \
11166       conftest$ac_exeext conftest.$ac_ext
11167 CFLAGS=$ac_wine_try_cflags_saved
11168 fi
11169 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
11170 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
11171   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
11172   then
11173     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11174   fi
11175
11176     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11177 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11178 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11179   echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181   ac_wine_try_cflags_saved=$CFLAGS
11182 CFLAGS="$CFLAGS -gstabs+"
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h.  */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h.  */
11189
11190 int
11191 main ()
11192 {
11193
11194   ;
11195   return 0;
11196 }
11197 _ACEOF
11198 rm -f conftest.$ac_objext conftest$ac_exeext
11199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200   (eval $ac_link) 2>conftest.er1
11201   ac_status=$?
11202   grep -v '^ *+' conftest.er1 >conftest.err
11203   rm -f conftest.er1
11204   cat conftest.err >&5
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); } &&
11207          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209   (eval $ac_try) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; } &&
11213          { ac_try='test -s conftest$ac_exeext'
11214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215   (eval $ac_try) 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); }; }; then
11219   ac_cv_c_gcc_gstabs="yes"
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 ac_cv_c_gcc_gstabs="no"
11225 fi
11226 rm -f conftest.err conftest.$ac_objext \
11227       conftest$ac_exeext conftest.$ac_ext
11228 CFLAGS=$ac_wine_try_cflags_saved
11229 fi
11230 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11231 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11232   if test "$ac_cv_c_gcc_gstabs" = "yes"
11233   then
11234     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
11235   fi
11236
11237     saved_CFLAGS="$CFLAGS"
11238   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11239   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11240 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11241 if test "${ac_cv_c_string_h_warnings+set}" = set; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h.  */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h.  */
11250 #include <string.h>
11251 int
11252 main ()
11253 {
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261   (eval $ac_compile) 2>conftest.er1
11262   ac_status=$?
11263   grep -v '^ *+' conftest.er1 >conftest.err
11264   rm -f conftest.er1
11265   cat conftest.err >&5
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); } &&
11268          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270   (eval $ac_try) 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); }; } &&
11274          { ac_try='test -s conftest.$ac_objext'
11275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276   (eval $ac_try) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); }; }; then
11280   ac_cv_c_string_h_warnings=no
11281 else
11282   echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 ac_cv_c_string_h_warnings=yes
11286 fi
11287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11288 fi
11289 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11290 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11291   CFLAGS="$saved_CFLAGS"
11292   if test "$ac_cv_c_string_h_warnings" = "no"
11293   then
11294     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11295   fi
11296
11297   BUILTINFLAG=""
11298
11299   saved_CFLAGS="$CFLAGS"
11300   CFLAGS="$CFLAGS -Werror"
11301   echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
11302 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6
11303 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
11304   echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306   cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312
11313 int
11314 main ()
11315 {
11316 int iswlower(unsigned short);
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323   (eval $ac_compile) 2>conftest.er1
11324   ac_status=$?
11325   grep -v '^ *+' conftest.er1 >conftest.err
11326   rm -f conftest.er1
11327   cat conftest.err >&5
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); } &&
11330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332   (eval $ac_try) 2>&5
11333   ac_status=$?
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); }; } &&
11336          { ac_try='test -s conftest.$ac_objext'
11337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338   (eval $ac_try) 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); }; }; then
11342   ac_cv_c_builtin_wchar_ctype=no
11343 else
11344   echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11346
11347 ac_cv_c_builtin_wchar_ctype=yes
11348 fi
11349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11350 fi
11351 echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
11352 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6
11353   CFLAGS="$saved_CFLAGS"
11354   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
11355   then
11356     BUILTINFLAG=""
11357     for builtin in \
11358       iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \
11359       iswprint iswpunct iswspace iswupper iswxdigit towlower towupper
11360     do
11361       BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin"
11362     done
11363   fi
11364 fi
11365
11366
11367 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11368 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11369 if test "${ac_cv_asm_func_def+set}" = set; then
11370   echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372   cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h.  */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h.  */
11378 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"); }
11379
11380 int
11381 main ()
11382 {
11383
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 rm -f conftest.$ac_objext conftest$ac_exeext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11390   (eval $ac_link) 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } &&
11397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399   (eval $ac_try) 2>&5
11400   ac_status=$?
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); }; } &&
11403          { ac_try='test -s conftest$ac_exeext'
11404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405   (eval $ac_try) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; }; then
11409   ac_cv_asm_func_def=".def"
11410 else
11411   echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11413
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h.  */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h.  */
11420 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11421
11422 int
11423 main ()
11424 {
11425
11426   ;
11427   return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11432   (eval $ac_link) 2>conftest.er1
11433   ac_status=$?
11434   grep -v '^ *+' conftest.er1 >conftest.err
11435   rm -f conftest.er1
11436   cat conftest.err >&5
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); } &&
11439          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441   (eval $ac_try) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; } &&
11445          { ac_try='test -s conftest$ac_exeext'
11446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447   (eval $ac_try) 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); }; }; then
11451   ac_cv_asm_func_def=".type @function"
11452 else
11453   echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h.  */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h.  */
11462 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11463
11464 int
11465 main ()
11466 {
11467
11468   ;
11469   return 0;
11470 }
11471 _ACEOF
11472 rm -f conftest.$ac_objext conftest$ac_exeext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474   (eval $ac_link) 2>conftest.er1
11475   ac_status=$?
11476   grep -v '^ *+' conftest.er1 >conftest.err
11477   rm -f conftest.er1
11478   cat conftest.err >&5
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); } &&
11481          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483   (eval $ac_try) 2>&5
11484   ac_status=$?
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); }; } &&
11487          { ac_try='test -s conftest$ac_exeext'
11488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489   (eval $ac_try) 2>&5
11490   ac_status=$?
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); }; }; then
11493   ac_cv_asm_func_def=".type 2"
11494 else
11495   echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11497
11498 ac_cv_asm_func_def="unknown"
11499 fi
11500 rm -f conftest.err conftest.$ac_objext \
11501       conftest$ac_exeext conftest.$ac_ext
11502 fi
11503 rm -f conftest.err conftest.$ac_objext \
11504       conftest$ac_exeext conftest.$ac_ext
11505 fi
11506 rm -f conftest.err conftest.$ac_objext \
11507       conftest$ac_exeext conftest.$ac_ext
11508 fi
11509 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11510 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11511
11512
11513
11514 case "$ac_cv_asm_func_def" in
11515   ".def")
11516      cat >>confdefs.h <<\_ACEOF
11517 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11518 _ACEOF
11519  ;;
11520   ".type @function")
11521      cat >>confdefs.h <<\_ACEOF
11522 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11523 _ACEOF
11524  ;;
11525   ".type 2")
11526      cat >>confdefs.h <<\_ACEOF
11527 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11528 _ACEOF
11529  ;;
11530   *)
11531      cat >>confdefs.h <<\_ACEOF
11532 #define __ASM_FUNC(name) ""
11533 _ACEOF
11534  ;;
11535 esac
11536
11537
11538 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11539 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11540 if test "${ac_cv_c_extern_prefix+set}" = set; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11550 extern int ac_test;
11551 int
11552 main ()
11553 {
11554 if (ac_test) return 1
11555   ;
11556   return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext conftest$ac_exeext
11560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11561   (eval $ac_link) 2>conftest.er1
11562   ac_status=$?
11563   grep -v '^ *+' conftest.er1 >conftest.err
11564   rm -f conftest.er1
11565   cat conftest.err >&5
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); } &&
11568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570   (eval $ac_try) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; } &&
11574          { ac_try='test -s conftest$ac_exeext'
11575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576   (eval $ac_try) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; }; then
11580   ac_cv_c_extern_prefix="yes"
11581 else
11582   echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 ac_cv_c_extern_prefix="no"
11586 fi
11587 rm -f conftest.err conftest.$ac_objext \
11588       conftest$ac_exeext conftest.$ac_ext
11589 fi
11590 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11591 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11592
11593
11594
11595 if test "$ac_cv_c_extern_prefix" = "yes"
11596 then
11597   cat >>confdefs.h <<\_ACEOF
11598 #define __ASM_NAME(name) "_" name
11599 _ACEOF
11600
11601 else
11602   cat >>confdefs.h <<\_ACEOF
11603 #define __ASM_NAME(name) name
11604 _ACEOF
11605
11606 fi
11607
11608
11609 DLLEXT=""
11610
11611 DLLFLAGS="-D_REENTRANT"
11612
11613 DLLIBS=""
11614
11615 LDSHARED=""
11616
11617 LDDLLFLAGS=""
11618
11619 LIBEXT="so"
11620
11621 IMPLIBEXT="def"
11622
11623
11624 case $host_os in
11625   cygwin*|mingw32*)
11626     if test -n "$ac_tool_prefix"; then
11627   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11628 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11629 echo "$as_me:$LINENO: checking for $ac_word" >&5
11630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11631 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11632   echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634   if test -n "$DLLTOOL"; then
11635   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11636 else
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11639 do
11640   IFS=$as_save_IFS
11641   test -z "$as_dir" && as_dir=.
11642   for ac_exec_ext in '' $ac_executable_extensions; do
11643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11644     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11646     break 2
11647   fi
11648 done
11649 done
11650
11651 fi
11652 fi
11653 DLLTOOL=$ac_cv_prog_DLLTOOL
11654 if test -n "$DLLTOOL"; then
11655   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11656 echo "${ECHO_T}$DLLTOOL" >&6
11657 else
11658   echo "$as_me:$LINENO: result: no" >&5
11659 echo "${ECHO_T}no" >&6
11660 fi
11661
11662 fi
11663 if test -z "$ac_cv_prog_DLLTOOL"; then
11664   ac_ct_DLLTOOL=$DLLTOOL
11665   # Extract the first word of "dlltool", so it can be a program name with args.
11666 set dummy dlltool; ac_word=$2
11667 echo "$as_me:$LINENO: checking for $ac_word" >&5
11668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11669 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   if test -n "$ac_ct_DLLTOOL"; then
11673   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11674 else
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11677 do
11678   IFS=$as_save_IFS
11679   test -z "$as_dir" && as_dir=.
11680   for ac_exec_ext in '' $ac_executable_extensions; do
11681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11682     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11684     break 2
11685   fi
11686 done
11687 done
11688
11689   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11690 fi
11691 fi
11692 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11693 if test -n "$ac_ct_DLLTOOL"; then
11694   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11695 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11696 else
11697   echo "$as_me:$LINENO: result: no" >&5
11698 echo "${ECHO_T}no" >&6
11699 fi
11700
11701   DLLTOOL=$ac_ct_DLLTOOL
11702 else
11703   DLLTOOL="$ac_cv_prog_DLLTOOL"
11704 fi
11705
11706     if test -n "$ac_tool_prefix"; then
11707   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11708 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11709 echo "$as_me:$LINENO: checking for $ac_word" >&5
11710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11711 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   if test -n "$DLLWRAP"; then
11715   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11716 else
11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11719 do
11720   IFS=$as_save_IFS
11721   test -z "$as_dir" && as_dir=.
11722   for ac_exec_ext in '' $ac_executable_extensions; do
11723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11724     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11726     break 2
11727   fi
11728 done
11729 done
11730
11731 fi
11732 fi
11733 DLLWRAP=$ac_cv_prog_DLLWRAP
11734 if test -n "$DLLWRAP"; then
11735   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11736 echo "${ECHO_T}$DLLWRAP" >&6
11737 else
11738   echo "$as_me:$LINENO: result: no" >&5
11739 echo "${ECHO_T}no" >&6
11740 fi
11741
11742 fi
11743 if test -z "$ac_cv_prog_DLLWRAP"; then
11744   ac_ct_DLLWRAP=$DLLWRAP
11745   # Extract the first word of "dllwrap", so it can be a program name with args.
11746 set dummy dllwrap; ac_word=$2
11747 echo "$as_me:$LINENO: checking for $ac_word" >&5
11748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11749 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   if test -n "$ac_ct_DLLWRAP"; then
11753   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11754 else
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $PATH
11757 do
11758   IFS=$as_save_IFS
11759   test -z "$as_dir" && as_dir=.
11760   for ac_exec_ext in '' $ac_executable_extensions; do
11761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11762     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11764     break 2
11765   fi
11766 done
11767 done
11768
11769   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11770 fi
11771 fi
11772 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11773 if test -n "$ac_ct_DLLWRAP"; then
11774   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11775 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11776 else
11777   echo "$as_me:$LINENO: result: no" >&5
11778 echo "${ECHO_T}no" >&6
11779 fi
11780
11781   DLLWRAP=$ac_ct_DLLWRAP
11782 else
11783   DLLWRAP="$ac_cv_prog_DLLWRAP"
11784 fi
11785
11786     if test "$DLLWRAP" = "false"; then
11787       LIBEXT="a"
11788     else
11789             LIBEXT="dll"
11790     fi
11791     IMPLIBEXT="a"
11792         WIN16_FILES=""
11793     WIN16_INSTALL=""
11794     ;;
11795   *)
11796     if test "$ac_cv_header_dlfcn_h" = "yes"
11797     then
11798
11799 for ac_func in dlopen
11800 do
11801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11802 echo "$as_me:$LINENO: checking for $ac_func" >&5
11803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11804 if eval "test \"\${$as_ac_var+set}\" = set"; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807   cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11815 #define $ac_func innocuous_$ac_func
11816
11817 /* System header to define __stub macros and hopefully few prototypes,
11818     which can conflict with char $ac_func (); below.
11819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11820     <limits.h> exists even on freestanding compilers.  */
11821
11822 #ifdef __STDC__
11823 # include <limits.h>
11824 #else
11825 # include <assert.h>
11826 #endif
11827
11828 #undef $ac_func
11829
11830 /* Override any gcc2 internal prototype to avoid an error.  */
11831 #ifdef __cplusplus
11832 extern "C"
11833 {
11834 #endif
11835 /* We use char because int might match the return type of a gcc2
11836    builtin and then its argument prototype would still apply.  */
11837 char $ac_func ();
11838 /* The GNU C library defines this for functions which it implements
11839     to always fail with ENOSYS.  Some functions are actually named
11840     something starting with __ and the normal name is an alias.  */
11841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11842 choke me
11843 #else
11844 char (*f) () = $ac_func;
11845 #endif
11846 #ifdef __cplusplus
11847 }
11848 #endif
11849
11850 int
11851 main ()
11852 {
11853 return f != $ac_func;
11854   ;
11855   return 0;
11856 }
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860   (eval $ac_link) 2>conftest.er1
11861   ac_status=$?
11862   grep -v '^ *+' conftest.er1 >conftest.err
11863   rm -f conftest.er1
11864   cat conftest.err >&5
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); } &&
11867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869   (eval $ac_try) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; } &&
11873          { ac_try='test -s conftest$ac_exeext'
11874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875   (eval $ac_try) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; }; then
11879   eval "$as_ac_var=yes"
11880 else
11881   echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 eval "$as_ac_var=no"
11885 fi
11886 rm -f conftest.err conftest.$ac_objext \
11887       conftest$ac_exeext conftest.$ac_ext
11888 fi
11889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11891 if test `eval echo '${'$as_ac_var'}'` = yes; then
11892   cat >>confdefs.h <<_ACEOF
11893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11894 _ACEOF
11895
11896 else
11897   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11900   echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902   ac_check_lib_save_LIBS=$LIBS
11903 LIBS="-ldl  $LIBS"
11904 cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h.  */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h.  */
11910
11911 /* Override any gcc2 internal prototype to avoid an error.  */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 /* We use char because int might match the return type of a gcc2
11916    builtin and then its argument prototype would still apply.  */
11917 char dlopen ();
11918 int
11919 main ()
11920 {
11921 dlopen ();
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928   (eval $ac_link) 2>conftest.er1
11929   ac_status=$?
11930   grep -v '^ *+' conftest.er1 >conftest.err
11931   rm -f conftest.er1
11932   cat conftest.err >&5
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); } &&
11935          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937   (eval $ac_try) 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; } &&
11941          { ac_try='test -s conftest$ac_exeext'
11942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943   (eval $ac_try) 2>&5
11944   ac_status=$?
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); }; }; then
11947   ac_cv_lib_dl_dlopen=yes
11948 else
11949   echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11951
11952 ac_cv_lib_dl_dlopen=no
11953 fi
11954 rm -f conftest.err conftest.$ac_objext \
11955       conftest$ac_exeext conftest.$ac_ext
11956 LIBS=$ac_check_lib_save_LIBS
11957 fi
11958 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11959 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11960 if test $ac_cv_lib_dl_dlopen = yes; then
11961
11962 cat >>confdefs.h <<\_ACEOF
11963 #define HAVE_DLOPEN 1
11964 _ACEOF
11965
11966                           DLLIBS="-ldl"
11967 else
11968   LIBEXT="a"
11969 fi
11970
11971 fi
11972 done
11973
11974     else
11975         LIBEXT="a"
11976     fi
11977
11978     if test "$LIBEXT" = "so"
11979     then
11980       DLLFLAGS="$DLLFLAGS -fPIC"
11981       DLLEXT=".so"
11982       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
11983 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11984 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   ac_wine_try_cflags_saved=$CFLAGS
11988 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11989 cat >conftest.$ac_ext <<_ACEOF
11990 void myfunc() {}
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994   (eval $ac_link) 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003   (eval $ac_try) 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; } &&
12007          { ac_try='test -s conftest$ac_exeext'
12008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009   (eval $ac_try) 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); }; }; then
12013   ac_cv_c_dll_gnuelf="yes"
12014 else
12015   echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12017
12018 ac_cv_c_dll_gnuelf="no"
12019 fi
12020 rm -f conftest.err conftest.$ac_objext \
12021       conftest$ac_exeext conftest.$ac_ext
12022 CFLAGS=$ac_wine_try_cflags_saved
12023 fi
12024 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
12025 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
12026       if test "$ac_cv_c_dll_gnuelf" = "yes"
12027       then
12028         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12029         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
12030         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12031 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12032 if test "${ac_cv_c_dll_zdefs+set}" = set; then
12033   echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035   ac_wine_try_cflags_saved=$CFLAGS
12036 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h.  */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h.  */
12043
12044 int
12045 main ()
12046 {
12047
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054   (eval $ac_link) 2>conftest.er1
12055   ac_status=$?
12056   grep -v '^ *+' conftest.er1 >conftest.err
12057   rm -f conftest.er1
12058   cat conftest.err >&5
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); } &&
12061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063   (eval $ac_try) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); }; } &&
12067          { ac_try='test -s conftest$ac_exeext'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073   ac_cv_c_dll_zdefs="yes"
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 ac_cv_c_dll_zdefs="no"
12079 fi
12080 rm -f conftest.err conftest.$ac_objext \
12081       conftest$ac_exeext conftest.$ac_ext
12082 CFLAGS=$ac_wine_try_cflags_saved
12083 fi
12084 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12085 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12086         if test "$ac_cv_c_dll_zdefs" = "yes"
12087         then
12088           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
12089         fi
12090
12091         echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
12092 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
12093 if test "${ac_cv_c_dll_init_fini+set}" = set; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096   ac_wine_try_cflags_saved=$CFLAGS
12097 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104
12105 int
12106 main ()
12107 {
12108
12109   ;
12110   return 0;
12111 }
12112 _ACEOF
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115   (eval $ac_link) 2>conftest.er1
12116   ac_status=$?
12117   grep -v '^ *+' conftest.er1 >conftest.err
12118   rm -f conftest.er1
12119   cat conftest.err >&5
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); } &&
12122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124   (eval $ac_try) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; } &&
12128          { ac_try='test -s conftest$ac_exeext'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; }; then
12134   ac_cv_c_dll_init_fini="yes"
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139 ac_cv_c_dll_init_fini="no"
12140 fi
12141 rm -f conftest.err conftest.$ac_objext \
12142       conftest$ac_exeext conftest.$ac_ext
12143 CFLAGS=$ac_wine_try_cflags_saved
12144 fi
12145 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
12146 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
12147         if test "$ac_cv_c_dll_init_fini" = "yes"
12148         then
12149           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
12150         fi
12151
12152         echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
12153 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
12154 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
12155   echo $ECHO_N "(cached) $ECHO_C" >&6
12156 else
12157   echo '{ global: *; };' >conftest.map
12158            ac_wine_try_cflags_saved=$CFLAGS
12159 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h.  */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h.  */
12166
12167 int
12168 main ()
12169 {
12170
12171   ;
12172   return 0;
12173 }
12174 _ACEOF
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177   (eval $ac_link) 2>conftest.er1
12178   ac_status=$?
12179   grep -v '^ *+' conftest.er1 >conftest.err
12180   rm -f conftest.er1
12181   cat conftest.err >&5
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); } &&
12184          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186   (eval $ac_try) 2>&5
12187   ac_status=$?
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); }; } &&
12190          { ac_try='test -s conftest$ac_exeext'
12191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192   (eval $ac_try) 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; }; then
12196   ac_cv_c_ld_version_scripts="yes"
12197 else
12198   echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 ac_cv_c_ld_version_scripts="no"
12202 fi
12203 rm -f conftest.err conftest.$ac_objext \
12204       conftest$ac_exeext conftest.$ac_ext
12205 CFLAGS=$ac_wine_try_cflags_saved
12206            rm -f conftest.map
12207 fi
12208 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
12209 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
12210         if test "$ac_cv_c_ld_version_scripts" = "yes"
12211         then
12212           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
12213         fi
12214
12215         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
12216 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
12217 if test "${ac_cv_c_export_dynamic+set}" = set; then
12218   echo $ECHO_N "(cached) $ECHO_C" >&6
12219 else
12220   ac_wine_try_cflags_saved=$CFLAGS
12221 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228
12229 int
12230 main ()
12231 {
12232
12233   ;
12234   return 0;
12235 }
12236 _ACEOF
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12239   (eval $ac_link) 2>conftest.er1
12240   ac_status=$?
12241   grep -v '^ *+' conftest.er1 >conftest.err
12242   rm -f conftest.er1
12243   cat conftest.err >&5
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); } &&
12246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248   (eval $ac_try) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); }; } &&
12252          { ac_try='test -s conftest$ac_exeext'
12253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254   (eval $ac_try) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; }; then
12258   ac_cv_c_export_dynamic="yes"
12259 else
12260   echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12262
12263 ac_cv_c_export_dynamic="no"
12264 fi
12265 rm -f conftest.err conftest.$ac_objext \
12266       conftest$ac_exeext conftest.$ac_ext
12267 CFLAGS=$ac_wine_try_cflags_saved
12268 fi
12269 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
12270 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
12271         if test "$ac_cv_c_export_dynamic" = "yes"
12272         then
12273           LDEXECFLAGS="-Wl,--export-dynamic"
12274
12275         fi
12276
12277         case $host_cpu in
12278           *i[3456789]86*)
12279             echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
12280 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6
12281 if test "${ac_cv_ld_reloc_exec+set}" = set; then
12282   echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284   ac_wine_try_cflags_saved=$CFLAGS
12285 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292
12293 int
12294 main ()
12295 {
12296
12297   ;
12298   return 0;
12299 }
12300 _ACEOF
12301 rm -f conftest.$ac_objext conftest$ac_exeext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303   (eval $ac_link) 2>conftest.er1
12304   ac_status=$?
12305   grep -v '^ *+' conftest.er1 >conftest.err
12306   rm -f conftest.er1
12307   cat conftest.err >&5
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); } &&
12310          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312   (eval $ac_try) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; } &&
12316          { ac_try='test -s conftest$ac_exeext'
12317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318   (eval $ac_try) 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }; }; then
12322   ac_cv_ld_reloc_exec="yes"
12323 else
12324   echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327 ac_cv_ld_reloc_exec="no"
12328 fi
12329 rm -f conftest.err conftest.$ac_objext \
12330       conftest$ac_exeext conftest.$ac_ext
12331 CFLAGS=$ac_wine_try_cflags_saved
12332 fi
12333 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12334 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12335             if test "$ac_cv_ld_reloc_exec" = "yes"
12336             then
12337               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
12338             fi
12339             ;;
12340         esac
12341
12342       else
12343         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12344 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12345 if test "${ac_cv_c_dll_unixware+set}" = set; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348   ac_wine_try_cflags_saved=$CFLAGS
12349 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12350 cat >conftest.$ac_ext <<_ACEOF
12351 void myfunc() {}
12352 _ACEOF
12353 rm -f conftest.$ac_objext conftest$ac_exeext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355   (eval $ac_link) 2>conftest.er1
12356   ac_status=$?
12357   grep -v '^ *+' conftest.er1 >conftest.err
12358   rm -f conftest.er1
12359   cat conftest.err >&5
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); } &&
12362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364   (eval $ac_try) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; } &&
12368          { ac_try='test -s conftest$ac_exeext'
12369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370   (eval $ac_try) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }; }; then
12374   ac_cv_c_dll_unixware="yes"
12375 else
12376   echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_cv_c_dll_unixware="no"
12380 fi
12381 rm -f conftest.err conftest.$ac_objext \
12382       conftest$ac_exeext conftest.$ac_ext
12383 CFLAGS=$ac_wine_try_cflags_saved
12384 fi
12385 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12386 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12387         if test "$ac_cv_c_dll_unixware" = "yes"
12388         then
12389           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12390           LDDLLFLAGS="-Wl,-G,-B,symbolic"
12391
12392         else
12393           echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
12394 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
12395 if test "${ac_cv_c_dll_macho+set}" = set; then
12396   echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398   ac_wine_try_cflags_saved=$CFLAGS
12399 CFLAGS="$CFLAGS -bundle"
12400 cat >conftest.$ac_ext <<_ACEOF
12401 void myfunc() {}
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405   (eval $ac_link) 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } &&
12412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414   (eval $ac_try) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; } &&
12418          { ac_try='test -s conftest$ac_exeext'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; }; then
12424   ac_cv_c_dll_macho="yes"
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429 ac_cv_c_dll_macho="no"
12430 fi
12431 rm -f conftest.err conftest.$ac_objext \
12432       conftest$ac_exeext conftest.$ac_ext
12433 CFLAGS=$ac_wine_try_cflags_saved
12434 fi
12435 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
12436 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
12437           if test "$ac_cv_c_dll_macho" = "yes"
12438           then
12439             LIBEXT="dylib"
12440             LDDLLFLAGS="-bundle -flat_namespace -undefined suppress -read_only_relocs warning"
12441             LDSHARED="\$(CC) -dynamiclib"
12442             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
12443             STRIP="$STRIP -u -r"
12444                         LDEXECFLAGS="-seg1addr 0x120000"
12445
12446                         LDLIBWINEFLAGS="-seg1addr 0x140000"
12447
12448                     COREFOUNDATIONLIB="-framework CoreFoundation"
12449
12450             IOKITLIB="-framework IOKit"
12451
12452                     IOKITLIB="$IOKITLIB $COREFOUNDATIONLIB"
12453           else
12454             echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
12455 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
12456 if test "${ac_cv_c_dll_hpux+set}" = set; then
12457   echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459   ac_wine_try_cflags_saved=$CFLAGS
12460 CFLAGS="$CFLAGS -shared"
12461 cat >conftest.$ac_ext <<_ACEOF
12462 void myfunc() {}
12463 _ACEOF
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466   (eval $ac_link) 2>conftest.er1
12467   ac_status=$?
12468   grep -v '^ *+' conftest.er1 >conftest.err
12469   rm -f conftest.er1
12470   cat conftest.err >&5
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } &&
12473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475   (eval $ac_try) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); }; } &&
12479          { ac_try='test -s conftest$ac_exeext'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; }; then
12485   ac_cv_c_dll_hpux="yes"
12486 else
12487   echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490 ac_cv_c_dll_hpux="no"
12491 fi
12492 rm -f conftest.err conftest.$ac_objext \
12493       conftest$ac_exeext conftest.$ac_ext
12494 CFLAGS=$ac_wine_try_cflags_saved
12495 fi
12496 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
12497 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
12498             if test "$ac_cv_c_dll_hpux" = "yes"
12499             then
12500               LIBEXT="sl"
12501               DLLEXT=".sl"
12502               LDDLLFLAGS="-shared -fPIC"
12503               LDSHARED="\$(CC) -shared"
12504             fi
12505           fi
12506         fi
12507       fi
12508     fi
12509
12510         CROSSTEST=""
12511
12512     if test "$cross_compiling" = "no"
12513     then
12514       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
12515 do
12516   # Extract the first word of "$ac_prog", so it can be a program name with args.
12517 set dummy $ac_prog; ac_word=$2
12518 echo "$as_me:$LINENO: checking for $ac_word" >&5
12519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12520 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12521   echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523   if test -n "$CROSSCC"; then
12524   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12525 else
12526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527 for as_dir in $PATH
12528 do
12529   IFS=$as_save_IFS
12530   test -z "$as_dir" && as_dir=.
12531   for ac_exec_ext in '' $ac_executable_extensions; do
12532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12533     ac_cv_prog_CROSSCC="$ac_prog"
12534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12535     break 2
12536   fi
12537 done
12538 done
12539
12540 fi
12541 fi
12542 CROSSCC=$ac_cv_prog_CROSSCC
12543 if test -n "$CROSSCC"; then
12544   echo "$as_me:$LINENO: result: $CROSSCC" >&5
12545 echo "${ECHO_T}$CROSSCC" >&6
12546 else
12547   echo "$as_me:$LINENO: result: no" >&5
12548 echo "${ECHO_T}no" >&6
12549 fi
12550
12551   test -n "$CROSSCC" && break
12552 done
12553 test -n "$CROSSCC" || CROSSCC="false"
12554
12555       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
12556 do
12557   # Extract the first word of "$ac_prog", so it can be a program name with args.
12558 set dummy $ac_prog; ac_word=$2
12559 echo "$as_me:$LINENO: checking for $ac_word" >&5
12560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12561 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   if test -n "$DLLTOOL"; then
12565   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12566 else
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12569 do
12570   IFS=$as_save_IFS
12571   test -z "$as_dir" && as_dir=.
12572   for ac_exec_ext in '' $ac_executable_extensions; do
12573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574     ac_cv_prog_DLLTOOL="$ac_prog"
12575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12576     break 2
12577   fi
12578 done
12579 done
12580
12581 fi
12582 fi
12583 DLLTOOL=$ac_cv_prog_DLLTOOL
12584 if test -n "$DLLTOOL"; then
12585   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12586 echo "${ECHO_T}$DLLTOOL" >&6
12587 else
12588   echo "$as_me:$LINENO: result: no" >&5
12589 echo "${ECHO_T}no" >&6
12590 fi
12591
12592   test -n "$DLLTOOL" && break
12593 done
12594 test -n "$DLLTOOL" || DLLTOOL="false"
12595
12596       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
12597 do
12598   # Extract the first word of "$ac_prog", so it can be a program name with args.
12599 set dummy $ac_prog; ac_word=$2
12600 echo "$as_me:$LINENO: checking for $ac_word" >&5
12601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12602 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12603   echo $ECHO_N "(cached) $ECHO_C" >&6
12604 else
12605   if test -n "$CROSSWINDRES"; then
12606   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12607 else
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH
12610 do
12611   IFS=$as_save_IFS
12612   test -z "$as_dir" && as_dir=.
12613   for ac_exec_ext in '' $ac_executable_extensions; do
12614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12615     ac_cv_prog_CROSSWINDRES="$ac_prog"
12616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12617     break 2
12618   fi
12619 done
12620 done
12621
12622 fi
12623 fi
12624 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12625 if test -n "$CROSSWINDRES"; then
12626   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12627 echo "${ECHO_T}$CROSSWINDRES" >&6
12628 else
12629   echo "$as_me:$LINENO: result: no" >&5
12630 echo "${ECHO_T}no" >&6
12631 fi
12632
12633   test -n "$CROSSWINDRES" && break
12634 done
12635 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12636
12637       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12638     fi
12639     ;;
12640 esac
12641
12642 if test "$LIBEXT" = "a"; then
12643   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12644 It is currently not possible to build Wine without shared library
12645 (.so) support to allow transparent switch between .so and .dll files.
12646 If you are using Linux, you will need a newer binutils.
12647 " >&5
12648 echo "$as_me: error: could not find a way to build shared libraries.
12649 It is currently not possible to build Wine without shared library
12650 (.so) support to allow transparent switch between .so and .dll files.
12651 If you are using Linux, you will need a newer binutils.
12652 " >&2;}
12653    { (exit 1); exit 1; }; }
12654 fi
12655
12656 case $build_os in
12657   cygwin*|mingw32*)
12658     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12659  ;;
12660   darwin*|macosx*)
12661     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
12662  ;;
12663   *)
12664     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12665  ;;
12666 esac
12667
12668 case $host_os in
12669   mingw32*)
12670     CRTLIBS="-lmsvcrt"
12671
12672     SOCKETLIBS="-lws2_32"
12673
12674     ;;
12675 esac
12676
12677 case $host_os in
12678   linux*)
12679     case $host_cpu in
12680       *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
12681  ;;
12682       *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
12683  ;;
12684     esac
12685     MAIN_BINARY="wine-glibc"
12686
12687     ;;
12688   darwin*)
12689     WINE_BINARIES="wine-pthread"
12690
12691     MAIN_BINARY="wine-pthread"
12692
12693     ;;
12694   *)
12695     WINE_BINARIES="wine-kthread"
12696
12697     MAIN_BINARY="wine-kthread"
12698
12699     ;;
12700 esac
12701
12702
12703 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
12704 then
12705   # Extract the first word of "ldd", so it can be a program name with args.
12706 set dummy ldd; ac_word=$2
12707 echo "$as_me:$LINENO: checking for $ac_word" >&5
12708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12709 if test "${ac_cv_path_LDD+set}" = set; then
12710   echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712   case $LDD in
12713   [\\/]* | ?:[\\/]*)
12714   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12715   ;;
12716   *)
12717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 as_dummy="/sbin:/usr/sbin:$PATH"
12719 for as_dir in $as_dummy
12720 do
12721   IFS=$as_save_IFS
12722   test -z "$as_dir" && as_dir=.
12723   for ac_exec_ext in '' $ac_executable_extensions; do
12724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12725     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12727     break 2
12728   fi
12729 done
12730 done
12731
12732   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12733   ;;
12734 esac
12735 fi
12736 LDD=$ac_cv_path_LDD
12737
12738 if test -n "$LDD"; then
12739   echo "$as_me:$LINENO: result: $LDD" >&5
12740 echo "${ECHO_T}$LDD" >&6
12741 else
12742   echo "$as_me:$LINENO: result: no" >&5
12743 echo "${ECHO_T}no" >&6
12744 fi
12745
12746
12747 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12748 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12749 if test "${ac_cv_lib_soname_X11+set}" = set; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   ac_get_soname_save_LIBS=$LIBS
12753 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12754   cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h.  */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h.  */
12760
12761 /* Override any gcc2 internal prototype to avoid an error.  */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 /* We use char because int might match the return type of a gcc2
12766    builtin and then its argument prototype would still apply.  */
12767 char XCreateWindow ();
12768 int
12769 main ()
12770 {
12771 XCreateWindow ();
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12778   (eval $ac_link) 2>conftest.er1
12779   ac_status=$?
12780   grep -v '^ *+' conftest.er1 >conftest.err
12781   rm -f conftest.er1
12782   cat conftest.err >&5
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); } &&
12785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787   (eval $ac_try) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; } &&
12791          { ac_try='test -s conftest$ac_exeext'
12792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793   (eval $ac_try) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; }; then
12797   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^       ]*\).*$/\1/"`
12798   if test "x$ac_cv_lib_soname_X11" = "x"
12799   then
12800      ac_cv_lib_soname_X11="libX11.$LIBEXT"
12801   fi
12802 else
12803   echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12805
12806 ac_cv_lib_soname_X11="libX11.$LIBEXT"
12807 fi
12808 rm -f conftest.err conftest.$ac_objext \
12809       conftest$ac_exeext conftest.$ac_ext
12810   LIBS=$ac_get_soname_save_LIBS
12811 fi
12812 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12813 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12814 if test "x$ac_cv_lib_soname_X11" != xNONE
12815 then
12816 cat >>confdefs.h <<_ACEOF
12817 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12818 _ACEOF
12819 fi
12820
12821 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12822 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12823 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826   ac_get_soname_save_LIBS=$LIBS
12827 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12828   cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h.  */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h.  */
12834
12835 /* Override any gcc2 internal prototype to avoid an error.  */
12836 #ifdef __cplusplus
12837 extern "C"
12838 #endif
12839 /* We use char because int might match the return type of a gcc2
12840    builtin and then its argument prototype would still apply.  */
12841 char XextCreateExtension ();
12842 int
12843 main ()
12844 {
12845 XextCreateExtension ();
12846   ;
12847   return 0;
12848 }
12849 _ACEOF
12850 rm -f conftest.$ac_objext conftest$ac_exeext
12851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12852   (eval $ac_link) 2>conftest.er1
12853   ac_status=$?
12854   grep -v '^ *+' conftest.er1 >conftest.err
12855   rm -f conftest.er1
12856   cat conftest.err >&5
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } &&
12859          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861   (eval $ac_try) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; } &&
12865          { ac_try='test -s conftest$ac_exeext'
12866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867   (eval $ac_try) 2>&5
12868   ac_status=$?
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); }; }; then
12871   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^    ]*\).*$/\1/"`
12872   if test "x$ac_cv_lib_soname_Xext" = "x"
12873   then
12874      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
12875   fi
12876 else
12877   echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12879
12880 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
12881 fi
12882 rm -f conftest.err conftest.$ac_objext \
12883       conftest$ac_exeext conftest.$ac_ext
12884   LIBS=$ac_get_soname_save_LIBS
12885 fi
12886 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12887 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12888 if test "x$ac_cv_lib_soname_Xext" != xNONE
12889 then
12890 cat >>confdefs.h <<_ACEOF
12891 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12892 _ACEOF
12893 fi
12894
12895 echo "$as_me:$LINENO: checking for -lXi soname" >&5
12896 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
12897 if test "${ac_cv_lib_soname_Xi+set}" = set; then
12898   echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900   ac_get_soname_save_LIBS=$LIBS
12901 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12902   cat >conftest.$ac_ext <<_ACEOF
12903 /* confdefs.h.  */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h.  */
12908
12909 /* Override any gcc2 internal prototype to avoid an error.  */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 /* We use char because int might match the return type of a gcc2
12914    builtin and then its argument prototype would still apply.  */
12915 char XOpenDevice ();
12916 int
12917 main ()
12918 {
12919 XOpenDevice ();
12920   ;
12921   return 0;
12922 }
12923 _ACEOF
12924 rm -f conftest.$ac_objext conftest$ac_exeext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926   (eval $ac_link) 2>conftest.er1
12927   ac_status=$?
12928   grep -v '^ *+' conftest.er1 >conftest.err
12929   rm -f conftest.er1
12930   cat conftest.err >&5
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); } &&
12933          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935   (eval $ac_try) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); }; } &&
12939          { ac_try='test -s conftest$ac_exeext'
12940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941   (eval $ac_try) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }; }; then
12945   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^  ]*\).*$/\1/"`
12946   if test "x$ac_cv_lib_soname_Xi" = "x"
12947   then
12948      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
12949   fi
12950 else
12951   echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12953
12954 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
12955 fi
12956 rm -f conftest.err conftest.$ac_objext \
12957       conftest$ac_exeext conftest.$ac_ext
12958   LIBS=$ac_get_soname_save_LIBS
12959 fi
12960 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
12961 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
12962 if test "x$ac_cv_lib_soname_Xi" != xNONE
12963 then
12964 cat >>confdefs.h <<_ACEOF
12965 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
12966 _ACEOF
12967 fi
12968
12969 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12970 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12971 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12972   echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974   ac_get_soname_save_LIBS=$LIBS
12975 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12976   cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h.  */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h.  */
12982
12983 /* Override any gcc2 internal prototype to avoid an error.  */
12984 #ifdef __cplusplus
12985 extern "C"
12986 #endif
12987 /* We use char because int might match the return type of a gcc2
12988    builtin and then its argument prototype would still apply.  */
12989 char XRenderQueryExtension ();
12990 int
12991 main ()
12992 {
12993 XRenderQueryExtension ();
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13000   (eval $ac_link) 2>conftest.er1
13001   ac_status=$?
13002   grep -v '^ *+' conftest.er1 >conftest.err
13003   rm -f conftest.er1
13004   cat conftest.err >&5
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); } &&
13007          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009   (eval $ac_try) 2>&5
13010   ac_status=$?
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); }; } &&
13013          { ac_try='test -s conftest$ac_exeext'
13014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015   (eval $ac_try) 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; }; then
13019   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^   ]*\).*$/\1/"`
13020   if test "x$ac_cv_lib_soname_Xrender" = "x"
13021   then
13022      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
13023   fi
13024 else
13025   echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13027
13028 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
13029 fi
13030 rm -f conftest.err conftest.$ac_objext \
13031       conftest$ac_exeext conftest.$ac_ext
13032   LIBS=$ac_get_soname_save_LIBS
13033 fi
13034 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
13035 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
13036 if test "x$ac_cv_lib_soname_Xrender" != xNONE
13037 then
13038 cat >>confdefs.h <<_ACEOF
13039 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
13040 _ACEOF
13041 fi
13042
13043 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
13044 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
13045 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
13046   echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048   ac_get_soname_save_LIBS=$LIBS
13049 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
13050   cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h.  */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h.  */
13056
13057 /* Override any gcc2 internal prototype to avoid an error.  */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 /* We use char because int might match the return type of a gcc2
13062    builtin and then its argument prototype would still apply.  */
13063 char XRRQueryExtension ();
13064 int
13065 main ()
13066 {
13067 XRRQueryExtension ();
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13074   (eval $ac_link) 2>conftest.er1
13075   ac_status=$?
13076   grep -v '^ *+' conftest.er1 >conftest.err
13077   rm -f conftest.er1
13078   cat conftest.err >&5
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } &&
13081          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083   (eval $ac_try) 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; } &&
13087          { ac_try='test -s conftest$ac_exeext'
13088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089   (eval $ac_try) 2>&5
13090   ac_status=$?
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); }; }; then
13093   ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^      ]*\).*$/\1/"`
13094   if test "x$ac_cv_lib_soname_Xrandr" = "x"
13095   then
13096      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
13097   fi
13098 else
13099   echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
13103 fi
13104 rm -f conftest.err conftest.$ac_objext \
13105       conftest$ac_exeext conftest.$ac_ext
13106   LIBS=$ac_get_soname_save_LIBS
13107 fi
13108 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
13109 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
13110 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
13111 then
13112 cat >>confdefs.h <<_ACEOF
13113 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
13114 _ACEOF
13115 fi
13116
13117 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
13118 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
13119 if test "${ac_cv_lib_soname_freetype+set}" = set; then
13120   echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122   ac_get_soname_save_LIBS=$LIBS
13123 LIBS="-lfreetype $X_LIBS $LIBS"
13124   cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h.  */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h.  */
13130
13131 /* Override any gcc2 internal prototype to avoid an error.  */
13132 #ifdef __cplusplus
13133 extern "C"
13134 #endif
13135 /* We use char because int might match the return type of a gcc2
13136    builtin and then its argument prototype would still apply.  */
13137 char FT_Init_FreeType ();
13138 int
13139 main ()
13140 {
13141 FT_Init_FreeType ();
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148   (eval $ac_link) 2>conftest.er1
13149   ac_status=$?
13150   grep -v '^ *+' conftest.er1 >conftest.err
13151   rm -f conftest.er1
13152   cat conftest.err >&5
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } &&
13155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157   (eval $ac_try) 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; } &&
13161          { ac_try='test -s conftest$ac_exeext'
13162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163   (eval $ac_try) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; }; then
13167   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^        ]*\).*$/\1/"`
13168   if test "x$ac_cv_lib_soname_freetype" = "x"
13169   then
13170      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
13171   fi
13172 else
13173   echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13175
13176 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
13177 fi
13178 rm -f conftest.err conftest.$ac_objext \
13179       conftest$ac_exeext conftest.$ac_ext
13180   LIBS=$ac_get_soname_save_LIBS
13181 fi
13182 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
13183 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
13184 if test "x$ac_cv_lib_soname_freetype" != xNONE
13185 then
13186 cat >>confdefs.h <<_ACEOF
13187 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
13188 _ACEOF
13189 fi
13190
13191 echo "$as_me:$LINENO: checking for -lGL soname" >&5
13192 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
13193 if test "${ac_cv_lib_soname_GL+set}" = set; then
13194   echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196   ac_get_soname_save_LIBS=$LIBS
13197 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
13198   cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h.  */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h.  */
13204
13205 /* Override any gcc2 internal prototype to avoid an error.  */
13206 #ifdef __cplusplus
13207 extern "C"
13208 #endif
13209 /* We use char because int might match the return type of a gcc2
13210    builtin and then its argument prototype would still apply.  */
13211 char glXQueryExtension ();
13212 int
13213 main ()
13214 {
13215 glXQueryExtension ();
13216   ;
13217   return 0;
13218 }
13219 _ACEOF
13220 rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13222   (eval $ac_link) 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231   (eval $ac_try) 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); }; } &&
13235          { ac_try='test -s conftest$ac_exeext'
13236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237   (eval $ac_try) 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; }; then
13241   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^  ]*\).*$/\1/"`
13242   if test "x$ac_cv_lib_soname_GL" = "x"
13243   then
13244      ac_cv_lib_soname_GL="libGL.$LIBEXT"
13245   fi
13246 else
13247   echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13249
13250 ac_cv_lib_soname_GL="libGL.$LIBEXT"
13251 fi
13252 rm -f conftest.err conftest.$ac_objext \
13253       conftest$ac_exeext conftest.$ac_ext
13254   LIBS=$ac_get_soname_save_LIBS
13255 fi
13256 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
13257 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
13258 if test "x$ac_cv_lib_soname_GL" != xNONE
13259 then
13260 cat >>confdefs.h <<_ACEOF
13261 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
13262 _ACEOF
13263 fi
13264
13265 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
13266 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
13267 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   ac_get_soname_save_LIBS=$LIBS
13271 LIBS="-ltxc_dxtn  $LIBS"
13272   cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h.  */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h.  */
13278
13279 /* Override any gcc2 internal prototype to avoid an error.  */
13280 #ifdef __cplusplus
13281 extern "C"
13282 #endif
13283 /* We use char because int might match the return type of a gcc2
13284    builtin and then its argument prototype would still apply.  */
13285 char fetch_2d_texel_rgba_dxt1 ();
13286 int
13287 main ()
13288 {
13289 fetch_2d_texel_rgba_dxt1 ();
13290   ;
13291   return 0;
13292 }
13293 _ACEOF
13294 rm -f conftest.$ac_objext conftest$ac_exeext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13296   (eval $ac_link) 2>conftest.er1
13297   ac_status=$?
13298   grep -v '^ *+' conftest.er1 >conftest.err
13299   rm -f conftest.er1
13300   cat conftest.err >&5
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } &&
13303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305   (eval $ac_try) 2>&5
13306   ac_status=$?
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); }; } &&
13309          { ac_try='test -s conftest$ac_exeext'
13310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311   (eval $ac_try) 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; }; then
13315   ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^        ]*\).*$/\1/"`
13316   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
13317   then
13318      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
13319   fi
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
13325 fi
13326 rm -f conftest.err conftest.$ac_objext \
13327       conftest$ac_exeext conftest.$ac_ext
13328   LIBS=$ac_get_soname_save_LIBS
13329 fi
13330 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
13331 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
13332 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
13333 then
13334 cat >>confdefs.h <<_ACEOF
13335 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
13336 _ACEOF
13337 fi
13338
13339 echo "$as_me:$LINENO: checking for -lcups soname" >&5
13340 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
13341 if test "${ac_cv_lib_soname_cups+set}" = set; then
13342   echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344   ac_get_soname_save_LIBS=$LIBS
13345 LIBS="-lcups  $LIBS"
13346   cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h.  */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h.  */
13352
13353 /* Override any gcc2 internal prototype to avoid an error.  */
13354 #ifdef __cplusplus
13355 extern "C"
13356 #endif
13357 /* We use char because int might match the return type of a gcc2
13358    builtin and then its argument prototype would still apply.  */
13359 char cupsGetDefault ();
13360 int
13361 main ()
13362 {
13363 cupsGetDefault ();
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 rm -f conftest.$ac_objext conftest$ac_exeext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13370   (eval $ac_link) 2>conftest.er1
13371   ac_status=$?
13372   grep -v '^ *+' conftest.er1 >conftest.err
13373   rm -f conftest.er1
13374   cat conftest.err >&5
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } &&
13377          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; } &&
13383          { ac_try='test -s conftest$ac_exeext'
13384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385   (eval $ac_try) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; }; then
13389   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^    ]*\).*$/\1/"`
13390   if test "x$ac_cv_lib_soname_cups" = "x"
13391   then
13392      ac_cv_lib_soname_cups="libcups.$LIBEXT"
13393   fi
13394 else
13395   echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13397
13398 ac_cv_lib_soname_cups="libcups.$LIBEXT"
13399 fi
13400 rm -f conftest.err conftest.$ac_objext \
13401       conftest$ac_exeext conftest.$ac_ext
13402   LIBS=$ac_get_soname_save_LIBS
13403 fi
13404 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
13405 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
13406 if test "x$ac_cv_lib_soname_cups" != xNONE
13407 then
13408 cat >>confdefs.h <<_ACEOF
13409 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
13410 _ACEOF
13411 fi
13412
13413 echo "$as_me:$LINENO: checking for -ljack soname" >&5
13414 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
13415 if test "${ac_cv_lib_soname_jack+set}" = set; then
13416   echo $ECHO_N "(cached) $ECHO_C" >&6
13417 else
13418   ac_get_soname_save_LIBS=$LIBS
13419 LIBS="-ljack  $LIBS"
13420   cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426
13427 /* Override any gcc2 internal prototype to avoid an error.  */
13428 #ifdef __cplusplus
13429 extern "C"
13430 #endif
13431 /* We use char because int might match the return type of a gcc2
13432    builtin and then its argument prototype would still apply.  */
13433 char jack_client_new ();
13434 int
13435 main ()
13436 {
13437 jack_client_new ();
13438   ;
13439   return 0;
13440 }
13441 _ACEOF
13442 rm -f conftest.$ac_objext conftest$ac_exeext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444   (eval $ac_link) 2>conftest.er1
13445   ac_status=$?
13446   grep -v '^ *+' conftest.er1 >conftest.err
13447   rm -f conftest.er1
13448   cat conftest.err >&5
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453   (eval $ac_try) 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); }; } &&
13457          { ac_try='test -s conftest$ac_exeext'
13458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459   (eval $ac_try) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; }; then
13463   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^    ]*\).*$/\1/"`
13464   if test "x$ac_cv_lib_soname_jack" = "x"
13465   then
13466      ac_cv_lib_soname_jack="libjack.$LIBEXT"
13467   fi
13468 else
13469   echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 ac_cv_lib_soname_jack="libjack.$LIBEXT"
13473 fi
13474 rm -f conftest.err conftest.$ac_objext \
13475       conftest$ac_exeext conftest.$ac_ext
13476   LIBS=$ac_get_soname_save_LIBS
13477 fi
13478 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
13479 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
13480 if test "x$ac_cv_lib_soname_jack" != xNONE
13481 then
13482 cat >>confdefs.h <<_ACEOF
13483 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
13484 _ACEOF
13485 fi
13486
13487 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
13488 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
13489 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
13490   echo $ECHO_N "(cached) $ECHO_C" >&6
13491 else
13492   ac_get_soname_save_LIBS=$LIBS
13493 LIBS="-lfontconfig  $LIBS"
13494   cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h.  */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h.  */
13500
13501 /* Override any gcc2 internal prototype to avoid an error.  */
13502 #ifdef __cplusplus
13503 extern "C"
13504 #endif
13505 /* We use char because int might match the return type of a gcc2
13506    builtin and then its argument prototype would still apply.  */
13507 char FcInit ();
13508 int
13509 main ()
13510 {
13511 FcInit ();
13512   ;
13513   return 0;
13514 }
13515 _ACEOF
13516 rm -f conftest.$ac_objext conftest$ac_exeext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13518   (eval $ac_link) 2>conftest.er1
13519   ac_status=$?
13520   grep -v '^ *+' conftest.er1 >conftest.err
13521   rm -f conftest.er1
13522   cat conftest.err >&5
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } &&
13525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527   (eval $ac_try) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; } &&
13531          { ac_try='test -s conftest$ac_exeext'
13532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533   (eval $ac_try) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; }; then
13537   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^  ]*\).*$/\1/"`
13538   if test "x$ac_cv_lib_soname_fontconfig" = "x"
13539   then
13540      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
13541   fi
13542 else
13543   echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13545
13546 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
13547 fi
13548 rm -f conftest.err conftest.$ac_objext \
13549       conftest$ac_exeext conftest.$ac_ext
13550   LIBS=$ac_get_soname_save_LIBS
13551 fi
13552 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
13553 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
13554 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
13555 then
13556 cat >>confdefs.h <<_ACEOF
13557 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
13558 _ACEOF
13559 fi
13560
13561 echo "$as_me:$LINENO: checking for -lssl soname" >&5
13562 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
13563 if test "${ac_cv_lib_soname_ssl+set}" = set; then
13564   echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566   ac_get_soname_save_LIBS=$LIBS
13567 LIBS="-lssl  $LIBS"
13568   cat >conftest.$ac_ext <<_ACEOF
13569 /* confdefs.h.  */
13570 _ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h.  */
13574
13575 /* Override any gcc2 internal prototype to avoid an error.  */
13576 #ifdef __cplusplus
13577 extern "C"
13578 #endif
13579 /* We use char because int might match the return type of a gcc2
13580    builtin and then its argument prototype would still apply.  */
13581 char SSL_library_init ();
13582 int
13583 main ()
13584 {
13585 SSL_library_init ();
13586   ;
13587   return 0;
13588 }
13589 _ACEOF
13590 rm -f conftest.$ac_objext conftest$ac_exeext
13591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13592   (eval $ac_link) 2>conftest.er1
13593   ac_status=$?
13594   grep -v '^ *+' conftest.er1 >conftest.err
13595   rm -f conftest.er1
13596   cat conftest.err >&5
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); } &&
13599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601   (eval $ac_try) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; } &&
13605          { ac_try='test -s conftest$ac_exeext'
13606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607   (eval $ac_try) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; }; then
13611   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^       ]*\).*$/\1/"`
13612   if test "x$ac_cv_lib_soname_ssl" = "x"
13613   then
13614      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
13615   fi
13616 else
13617   echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13619
13620 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
13621 fi
13622 rm -f conftest.err conftest.$ac_objext \
13623       conftest$ac_exeext conftest.$ac_ext
13624   LIBS=$ac_get_soname_save_LIBS
13625 fi
13626 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
13627 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
13628 if test "x$ac_cv_lib_soname_ssl" != xNONE
13629 then
13630 cat >>confdefs.h <<_ACEOF
13631 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
13632 _ACEOF
13633 fi
13634
13635 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
13636 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
13637 if test "${ac_cv_lib_soname_crypto+set}" = set; then
13638   echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640   ac_get_soname_save_LIBS=$LIBS
13641 LIBS="-lcrypto  $LIBS"
13642   cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648
13649 /* Override any gcc2 internal prototype to avoid an error.  */
13650 #ifdef __cplusplus
13651 extern "C"
13652 #endif
13653 /* We use char because int might match the return type of a gcc2
13654    builtin and then its argument prototype would still apply.  */
13655 char BIO_new_socket ();
13656 int
13657 main ()
13658 {
13659 BIO_new_socket ();
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666   (eval $ac_link) 2>conftest.er1
13667   ac_status=$?
13668   grep -v '^ *+' conftest.er1 >conftest.err
13669   rm -f conftest.er1
13670   cat conftest.err >&5
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; } &&
13679          { ac_try='test -s conftest$ac_exeext'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; }; then
13685   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^      ]*\).*$/\1/"`
13686   if test "x$ac_cv_lib_soname_crypto" = "x"
13687   then
13688      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
13689   fi
13690 else
13691   echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
13695 fi
13696 rm -f conftest.err conftest.$ac_objext \
13697       conftest$ac_exeext conftest.$ac_ext
13698   LIBS=$ac_get_soname_save_LIBS
13699 fi
13700 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
13701 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
13702 if test "x$ac_cv_lib_soname_crypto" != xNONE
13703 then
13704 cat >>confdefs.h <<_ACEOF
13705 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
13706 _ACEOF
13707 fi
13708
13709 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
13710 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
13711 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
13712   echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714   ac_get_soname_save_LIBS=$LIBS
13715 LIBS="-lncurses  $LIBS"
13716   cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h.  */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h.  */
13722
13723 /* Override any gcc2 internal prototype to avoid an error.  */
13724 #ifdef __cplusplus
13725 extern "C"
13726 #endif
13727 /* We use char because int might match the return type of a gcc2
13728    builtin and then its argument prototype would still apply.  */
13729 char waddch ();
13730 int
13731 main ()
13732 {
13733 waddch ();
13734   ;
13735   return 0;
13736 }
13737 _ACEOF
13738 rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740   (eval $ac_link) 2>conftest.er1
13741   ac_status=$?
13742   grep -v '^ *+' conftest.er1 >conftest.err
13743   rm -f conftest.er1
13744   cat conftest.err >&5
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); } &&
13747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749   (eval $ac_try) 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; } &&
13753          { ac_try='test -s conftest$ac_exeext'
13754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755   (eval $ac_try) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; }; then
13759   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^   ]*\).*$/\1/"`
13760   if test "x$ac_cv_lib_soname_ncurses" = "x"
13761   then
13762      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
13763   fi
13764 else
13765   echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13767
13768 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
13769 fi
13770 rm -f conftest.err conftest.$ac_objext \
13771       conftest$ac_exeext conftest.$ac_ext
13772   LIBS=$ac_get_soname_save_LIBS
13773 fi
13774 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
13775 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
13776 if test "x$ac_cv_lib_soname_ncurses" != xNONE
13777 then
13778 cat >>confdefs.h <<_ACEOF
13779 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
13780 _ACEOF
13781 fi
13782
13783 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
13784 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
13785 if test "${ac_cv_lib_soname_curses+set}" = set; then
13786   echo $ECHO_N "(cached) $ECHO_C" >&6
13787 else
13788   ac_get_soname_save_LIBS=$LIBS
13789 LIBS="-lcurses  $LIBS"
13790   cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h.  */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h.  */
13796
13797 /* Override any gcc2 internal prototype to avoid an error.  */
13798 #ifdef __cplusplus
13799 extern "C"
13800 #endif
13801 /* We use char because int might match the return type of a gcc2
13802    builtin and then its argument prototype would still apply.  */
13803 char waddch ();
13804 int
13805 main ()
13806 {
13807 waddch ();
13808   ;
13809   return 0;
13810 }
13811 _ACEOF
13812 rm -f conftest.$ac_objext conftest$ac_exeext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13814   (eval $ac_link) 2>conftest.er1
13815   ac_status=$?
13816   grep -v '^ *+' conftest.er1 >conftest.err
13817   rm -f conftest.er1
13818   cat conftest.err >&5
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); } &&
13821          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; } &&
13827          { ac_try='test -s conftest$ac_exeext'
13828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829   (eval $ac_try) 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); }; }; then
13833   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^      ]*\).*$/\1/"`
13834   if test "x$ac_cv_lib_soname_curses" = "x"
13835   then
13836      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
13837   fi
13838 else
13839   echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13841
13842 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
13843 fi
13844 rm -f conftest.err conftest.$ac_objext \
13845       conftest$ac_exeext conftest.$ac_ext
13846   LIBS=$ac_get_soname_save_LIBS
13847 fi
13848 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
13849 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
13850 if test "x$ac_cv_lib_soname_curses" != xNONE
13851 then
13852 cat >>confdefs.h <<_ACEOF
13853 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
13854 _ACEOF
13855 fi
13856
13857 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
13858 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
13859 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
13860   echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862   ac_get_soname_save_LIBS=$LIBS
13863 LIBS="-ljpeg  $LIBS"
13864   cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870
13871 /* Override any gcc2 internal prototype to avoid an error.  */
13872 #ifdef __cplusplus
13873 extern "C"
13874 #endif
13875 /* We use char because int might match the return type of a gcc2
13876    builtin and then its argument prototype would still apply.  */
13877 char jpeg_start_decompress ();
13878 int
13879 main ()
13880 {
13881 jpeg_start_decompress ();
13882   ;
13883   return 0;
13884 }
13885 _ACEOF
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888   (eval $ac_link) 2>conftest.er1
13889   ac_status=$?
13890   grep -v '^ *+' conftest.er1 >conftest.err
13891   rm -f conftest.er1
13892   cat conftest.err >&5
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } &&
13895          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897   (eval $ac_try) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; } &&
13901          { ac_try='test -s conftest$ac_exeext'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^    ]*\).*$/\1/"`
13908   if test "x$ac_cv_lib_soname_jpeg" = "x"
13909   then
13910      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
13911   fi
13912 else
13913   echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
13917 fi
13918 rm -f conftest.err conftest.$ac_objext \
13919       conftest$ac_exeext conftest.$ac_ext
13920   LIBS=$ac_get_soname_save_LIBS
13921 fi
13922 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
13923 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
13924 if test "x$ac_cv_lib_soname_jpeg" != xNONE
13925 then
13926 cat >>confdefs.h <<_ACEOF
13927 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
13928 _ACEOF
13929 fi
13930
13931 echo "$as_me:$LINENO: checking for -lungif soname" >&5
13932 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
13933 if test "${ac_cv_lib_soname_ungif+set}" = set; then
13934   echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936   ac_get_soname_save_LIBS=$LIBS
13937 LIBS="-lungif  $LIBS"
13938   cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h.  */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h.  */
13944
13945 /* Override any gcc2 internal prototype to avoid an error.  */
13946 #ifdef __cplusplus
13947 extern "C"
13948 #endif
13949 /* We use char because int might match the return type of a gcc2
13950    builtin and then its argument prototype would still apply.  */
13951 char DGifOpen ();
13952 int
13953 main ()
13954 {
13955 DGifOpen ();
13956   ;
13957   return 0;
13958 }
13959 _ACEOF
13960 rm -f conftest.$ac_objext conftest$ac_exeext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13962   (eval $ac_link) 2>conftest.er1
13963   ac_status=$?
13964   grep -v '^ *+' conftest.er1 >conftest.err
13965   rm -f conftest.er1
13966   cat conftest.err >&5
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); } &&
13969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971   (eval $ac_try) 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; } &&
13975          { ac_try='test -s conftest$ac_exeext'
13976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977   (eval $ac_try) 2>&5
13978   ac_status=$?
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); }; }; then
13981   ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^         ]*\).*$/\1/"`
13982   if test "x$ac_cv_lib_soname_ungif" = "x"
13983   then
13984      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
13985   fi
13986 else
13987   echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13989
13990 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
13991 fi
13992 rm -f conftest.err conftest.$ac_objext \
13993       conftest$ac_exeext conftest.$ac_ext
13994   LIBS=$ac_get_soname_save_LIBS
13995 fi
13996 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
13997 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
13998 if test "x$ac_cv_lib_soname_ungif" != xNONE
13999 then
14000 cat >>confdefs.h <<_ACEOF
14001 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
14002 _ACEOF
14003 fi
14004
14005 echo "$as_me:$LINENO: checking for -lgif soname" >&5
14006 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
14007 if test "${ac_cv_lib_soname_gif+set}" = set; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010   ac_get_soname_save_LIBS=$LIBS
14011 LIBS="-lgif  $LIBS"
14012   cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h.  */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h.  */
14018
14019 /* Override any gcc2 internal prototype to avoid an error.  */
14020 #ifdef __cplusplus
14021 extern "C"
14022 #endif
14023 /* We use char because int might match the return type of a gcc2
14024    builtin and then its argument prototype would still apply.  */
14025 char DGifOpen ();
14026 int
14027 main ()
14028 {
14029 DGifOpen ();
14030   ;
14031   return 0;
14032 }
14033 _ACEOF
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14036   (eval $ac_link) 2>conftest.er1
14037   ac_status=$?
14038   grep -v '^ *+' conftest.er1 >conftest.err
14039   rm -f conftest.er1
14040   cat conftest.err >&5
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); } &&
14043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045   (eval $ac_try) 2>&5
14046   ac_status=$?
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); }; } &&
14049          { ac_try='test -s conftest$ac_exeext'
14050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051   (eval $ac_try) 2>&5
14052   ac_status=$?
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); }; }; then
14055   ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^       ]*\).*$/\1/"`
14056   if test "x$ac_cv_lib_soname_gif" = "x"
14057   then
14058      ac_cv_lib_soname_gif="libgif.$LIBEXT"
14059   fi
14060 else
14061   echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063
14064 ac_cv_lib_soname_gif="libgif.$LIBEXT"
14065 fi
14066 rm -f conftest.err conftest.$ac_objext \
14067       conftest$ac_exeext conftest.$ac_ext
14068   LIBS=$ac_get_soname_save_LIBS
14069 fi
14070 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
14071 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
14072 if test "x$ac_cv_lib_soname_gif" != xNONE
14073 then
14074 cat >>confdefs.h <<_ACEOF
14075 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
14076 _ACEOF
14077 fi
14078
14079 echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
14080 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6
14081 if test "${ac_cv_lib_soname_capi20+set}" = set; then
14082   echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084   ac_get_soname_save_LIBS=$LIBS
14085 LIBS="-lcapi20  $LIBS"
14086   cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h.  */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h.  */
14092
14093 /* Override any gcc2 internal prototype to avoid an error.  */
14094 #ifdef __cplusplus
14095 extern "C"
14096 #endif
14097 /* We use char because int might match the return type of a gcc2
14098    builtin and then its argument prototype would still apply.  */
14099 char capi20_isinstalled ();
14100 int
14101 main ()
14102 {
14103 capi20_isinstalled ();
14104   ;
14105   return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext conftest$ac_exeext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14110   (eval $ac_link) 2>conftest.er1
14111   ac_status=$?
14112   grep -v '^ *+' conftest.er1 >conftest.err
14113   rm -f conftest.er1
14114   cat conftest.err >&5
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); } &&
14117          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119   (eval $ac_try) 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }; } &&
14123          { ac_try='test -s conftest$ac_exeext'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; }; then
14129   ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed "s/^.*\(libcapi20\.$LIBEXT[^      ]*\).*$/\1/"`
14130   if test "x$ac_cv_lib_soname_capi20" = "x"
14131   then
14132      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
14133   fi
14134 else
14135   echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14137
14138 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
14139 fi
14140 rm -f conftest.err conftest.$ac_objext \
14141       conftest$ac_exeext conftest.$ac_ext
14142   LIBS=$ac_get_soname_save_LIBS
14143 fi
14144 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
14145 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6
14146 if test "x$ac_cv_lib_soname_capi20" != xNONE
14147 then
14148 cat >>confdefs.h <<_ACEOF
14149 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
14150 _ACEOF
14151 fi
14152 fi
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216 for ac_func in \
14217         _lwp_create \
14218         _lwp_self \
14219         _pclose \
14220         _popen \
14221         _snprintf \
14222         _spawnvp \
14223         _stricmp \
14224         _strnicmp \
14225         _vsnprintf \
14226         chsize \
14227         clone \
14228         epoll_create \
14229         ffs \
14230         finite \
14231         fork \
14232         fpclass \
14233         fstatfs \
14234         fstatvfs \
14235         ftruncate \
14236         futimes \
14237         futimesat \
14238         getnetbyname \
14239         getopt_long \
14240         getpagesize \
14241         getprotobyname \
14242         getprotobynumber \
14243         getpwuid \
14244         getservbyport \
14245         gettid \
14246         gettimeofday \
14247         getuid \
14248         inet_network \
14249         lstat \
14250         memmove \
14251         mmap \
14252         pclose \
14253         popen \
14254         pread \
14255         pwrite \
14256         readlink \
14257         rfork \
14258         sched_yield \
14259         select \
14260         sendmsg \
14261         settimeofday \
14262         sigaltstack \
14263         sigprocmask \
14264         snprintf \
14265         spawnvp \
14266         statfs \
14267         statvfs \
14268         strcasecmp \
14269         strerror \
14270         strncasecmp \
14271         tcgetattr \
14272         timegm \
14273         usleep \
14274         vsnprintf \
14275         wait4 \
14276         waitpid \
14277
14278 do
14279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14280 echo "$as_me:$LINENO: checking for $ac_func" >&5
14281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14282 if eval "test \"\${$as_ac_var+set}\" = set"; then
14283   echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285   cat >conftest.$ac_ext <<_ACEOF
14286 /* confdefs.h.  */
14287 _ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h.  */
14291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14293 #define $ac_func innocuous_$ac_func
14294
14295 /* System header to define __stub macros and hopefully few prototypes,
14296     which can conflict with char $ac_func (); below.
14297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14298     <limits.h> exists even on freestanding compilers.  */
14299
14300 #ifdef __STDC__
14301 # include <limits.h>
14302 #else
14303 # include <assert.h>
14304 #endif
14305
14306 #undef $ac_func
14307
14308 /* Override any gcc2 internal prototype to avoid an error.  */
14309 #ifdef __cplusplus
14310 extern "C"
14311 {
14312 #endif
14313 /* We use char because int might match the return type of a gcc2
14314    builtin and then its argument prototype would still apply.  */
14315 char $ac_func ();
14316 /* The GNU C library defines this for functions which it implements
14317     to always fail with ENOSYS.  Some functions are actually named
14318     something starting with __ and the normal name is an alias.  */
14319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14320 choke me
14321 #else
14322 char (*f) () = $ac_func;
14323 #endif
14324 #ifdef __cplusplus
14325 }
14326 #endif
14327
14328 int
14329 main ()
14330 {
14331 return f != $ac_func;
14332   ;
14333   return 0;
14334 }
14335 _ACEOF
14336 rm -f conftest.$ac_objext conftest$ac_exeext
14337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14338   (eval $ac_link) 2>conftest.er1
14339   ac_status=$?
14340   grep -v '^ *+' conftest.er1 >conftest.err
14341   rm -f conftest.er1
14342   cat conftest.err >&5
14343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); } &&
14345          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347   (eval $ac_try) 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); }; } &&
14351          { ac_try='test -s conftest$ac_exeext'
14352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353   (eval $ac_try) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); }; }; then
14357   eval "$as_ac_var=yes"
14358 else
14359   echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362 eval "$as_ac_var=no"
14363 fi
14364 rm -f conftest.err conftest.$ac_objext \
14365       conftest$ac_exeext conftest.$ac_ext
14366 fi
14367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14369 if test `eval echo '${'$as_ac_var'}'` = yes; then
14370   cat >>confdefs.h <<_ACEOF
14371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14372 _ACEOF
14373
14374 fi
14375 done
14376
14377
14378
14379
14380
14381
14382
14383 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
14384 do
14385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14386 echo "$as_me:$LINENO: checking for $ac_header" >&5
14387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14389   echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391   cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14397 #include <sys/types.h>
14398      #if HAVE_SYS_PARAM_H
14399      # include <sys/param.h>
14400      #endif
14401
14402 #include <$ac_header>
14403 _ACEOF
14404 rm -f conftest.$ac_objext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406   (eval $ac_compile) 2>conftest.er1
14407   ac_status=$?
14408   grep -v '^ *+' conftest.er1 >conftest.err
14409   rm -f conftest.er1
14410   cat conftest.err >&5
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); } &&
14413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415   (eval $ac_try) 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); }; } &&
14419          { ac_try='test -s conftest.$ac_objext'
14420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421   (eval $ac_try) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; }; then
14425   eval "$as_ac_Header=yes"
14426 else
14427   echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430 eval "$as_ac_Header=no"
14431 fi
14432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14433 fi
14434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14437   cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14439 _ACEOF
14440
14441 fi
14442
14443 done
14444
14445
14446
14447
14448
14449
14450
14451
14452 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
14453 do
14454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14455 echo "$as_me:$LINENO: checking for $ac_header" >&5
14456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14458   echo $ECHO_N "(cached) $ECHO_C" >&6
14459 else
14460   cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466 #include <sys/types.h>
14467      #if HAVE_SYS_SOCKET_H
14468      # include <sys/socket.h>
14469      #endif
14470
14471 #include <$ac_header>
14472 _ACEOF
14473 rm -f conftest.$ac_objext
14474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14475   (eval $ac_compile) 2>conftest.er1
14476   ac_status=$?
14477   grep -v '^ *+' conftest.er1 >conftest.err
14478   rm -f conftest.er1
14479   cat conftest.err >&5
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); } &&
14482          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484   (eval $ac_try) 2>&5
14485   ac_status=$?
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); }; } &&
14488          { ac_try='test -s conftest.$ac_objext'
14489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490   (eval $ac_try) 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; }; then
14494   eval "$as_ac_Header=yes"
14495 else
14496   echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14498
14499 eval "$as_ac_Header=no"
14500 fi
14501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14502 fi
14503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14506   cat >>confdefs.h <<_ACEOF
14507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14508 _ACEOF
14509
14510 fi
14511
14512 done
14513
14514
14515
14516 for ac_header in resolv.h
14517 do
14518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14519 echo "$as_me:$LINENO: checking for $ac_header" >&5
14520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14522   echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524   cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h.  */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h.  */
14530 #include <sys/types.h>
14531      #if HAVE_SYS_SOCKET_H
14532      # include <sys/socket.h>
14533      #endif
14534      #if HAVE_NETINET_IN_H
14535      # include <netinet/in.h>
14536      #endif
14537      #if HAVE_ARPA_NAMESER_H
14538      # include <arpa/nameser.h>
14539      #endif
14540
14541 #include <$ac_header>
14542 _ACEOF
14543 rm -f conftest.$ac_objext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545   (eval $ac_compile) 2>conftest.er1
14546   ac_status=$?
14547   grep -v '^ *+' conftest.er1 >conftest.err
14548   rm -f conftest.er1
14549   cat conftest.err >&5
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); } &&
14552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554   (eval $ac_try) 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); }; } &&
14558          { ac_try='test -s conftest.$ac_objext'
14559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560   (eval $ac_try) 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); }; }; then
14564   eval "$as_ac_Header=yes"
14565 else
14566   echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569 eval "$as_ac_Header=no"
14570 fi
14571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14572 fi
14573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14576   cat >>confdefs.h <<_ACEOF
14577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14578 _ACEOF
14579
14580 fi
14581
14582 done
14583
14584
14585
14586 for ac_header in ucontext.h
14587 do
14588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14589 echo "$as_me:$LINENO: checking for $ac_header" >&5
14590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14592   echo $ECHO_N "(cached) $ECHO_C" >&6
14593 else
14594   cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h.  */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h.  */
14600 #include <signal.h>
14601
14602 #include <$ac_header>
14603 _ACEOF
14604 rm -f conftest.$ac_objext
14605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14606   (eval $ac_compile) 2>conftest.er1
14607   ac_status=$?
14608   grep -v '^ *+' conftest.er1 >conftest.err
14609   rm -f conftest.er1
14610   cat conftest.err >&5
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); } &&
14613          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; } &&
14619          { ac_try='test -s conftest.$ac_objext'
14620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621   (eval $ac_try) 2>&5
14622   ac_status=$?
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); }; }; then
14625   eval "$as_ac_Header=yes"
14626 else
14627   echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630 eval "$as_ac_Header=no"
14631 fi
14632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14633 fi
14634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14637   cat >>confdefs.h <<_ACEOF
14638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14639 _ACEOF
14640
14641 fi
14642
14643 done
14644
14645
14646
14647
14648 for ac_header in linux/ipx.h linux/videodev.h
14649 do
14650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14651 echo "$as_me:$LINENO: checking for $ac_header" >&5
14652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14654   echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656   cat >conftest.$ac_ext <<_ACEOF
14657 /* confdefs.h.  */
14658 _ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h.  */
14662 #ifdef HAVE_SYS_TIME_H
14663 #include <sys/time.h>
14664 #endif
14665 #include <sys/types.h>
14666 #ifdef HAVE_ASM_TYPES_H
14667 #include <asm/types.h>
14668 #endif
14669
14670 #include <$ac_header>
14671 _ACEOF
14672 rm -f conftest.$ac_objext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14674   (eval $ac_compile) 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } &&
14681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
14687          { ac_try='test -s conftest.$ac_objext'
14688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689   (eval $ac_try) 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); }; }; then
14693   eval "$as_ac_Header=yes"
14694 else
14695   echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 eval "$as_ac_Header=no"
14699 fi
14700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14701 fi
14702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14705   cat >>confdefs.h <<_ACEOF
14706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14707 _ACEOF
14708
14709 fi
14710
14711 done
14712
14713
14714
14715 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14716 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14717 if test "${ac_cv_c_const+set}" = set; then
14718   echo $ECHO_N "(cached) $ECHO_C" >&6
14719 else
14720   cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h.  */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h.  */
14726
14727 int
14728 main ()
14729 {
14730 /* FIXME: Include the comments suggested by Paul. */
14731 #ifndef __cplusplus
14732   /* Ultrix mips cc rejects this.  */
14733   typedef int charset[2];
14734   const charset x;
14735   /* SunOS 4.1.1 cc rejects this.  */
14736   char const *const *ccp;
14737   char **p;
14738   /* NEC SVR4.0.2 mips cc rejects this.  */
14739   struct point {int x, y;};
14740   static struct point const zero = {0,0};
14741   /* AIX XL C 1.02.0.0 rejects this.
14742      It does not let you subtract one const X* pointer from another in
14743      an arm of an if-expression whose if-part is not a constant
14744      expression */
14745   const char *g = "string";
14746   ccp = &g + (g ? g-g : 0);
14747   /* HPUX 7.0 cc rejects these. */
14748   ++ccp;
14749   p = (char**) ccp;
14750   ccp = (char const *const *) p;
14751   { /* SCO 3.2v4 cc rejects this.  */
14752     char *t;
14753     char const *s = 0 ? (char *) 0 : (char const *) 0;
14754
14755     *t++ = 0;
14756   }
14757   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14758     int x[] = {25, 17};
14759     const int *foo = &x[0];
14760     ++foo;
14761   }
14762   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14763     typedef const int *iptr;
14764     iptr p = 0;
14765     ++p;
14766   }
14767   { /* AIX XL C 1.02.0.0 rejects this saying
14768        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14769     struct s { int j; const int *ap[3]; };
14770     struct s *b; b->j = 5;
14771   }
14772   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14773     const int foo = 10;
14774   }
14775 #endif
14776
14777   ;
14778   return 0;
14779 }
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783   (eval $ac_compile) 2>conftest.er1
14784   ac_status=$?
14785   grep -v '^ *+' conftest.er1 >conftest.err
14786   rm -f conftest.er1
14787   cat conftest.err >&5
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); } &&
14790          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; } &&
14796          { ac_try='test -s conftest.$ac_objext'
14797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798   (eval $ac_try) 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; }; then
14802   ac_cv_c_const=yes
14803 else
14804   echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14806
14807 ac_cv_c_const=no
14808 fi
14809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14810 fi
14811 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14812 echo "${ECHO_T}$ac_cv_c_const" >&6
14813 if test $ac_cv_c_const = no; then
14814
14815 cat >>confdefs.h <<\_ACEOF
14816 #define const
14817 _ACEOF
14818
14819 fi
14820
14821 echo "$as_me:$LINENO: checking for inline" >&5
14822 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14823 if test "${ac_cv_c_inline+set}" = set; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   ac_cv_c_inline=no
14827 for ac_kw in inline __inline__ __inline; do
14828   cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h.  */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h.  */
14834 #ifndef __cplusplus
14835 typedef int foo_t;
14836 static $ac_kw foo_t static_foo () {return 0; }
14837 $ac_kw foo_t foo () {return 0; }
14838 #endif
14839
14840 _ACEOF
14841 rm -f conftest.$ac_objext
14842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14843   (eval $ac_compile) 2>conftest.er1
14844   ac_status=$?
14845   grep -v '^ *+' conftest.er1 >conftest.err
14846   rm -f conftest.er1
14847   cat conftest.err >&5
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); } &&
14850          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852   (eval $ac_try) 2>&5
14853   ac_status=$?
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); }; } &&
14856          { ac_try='test -s conftest.$ac_objext'
14857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858   (eval $ac_try) 2>&5
14859   ac_status=$?
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); }; }; then
14862   ac_cv_c_inline=$ac_kw; break
14863 else
14864   echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14866
14867 fi
14868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14869 done
14870
14871 fi
14872 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14873 echo "${ECHO_T}$ac_cv_c_inline" >&6
14874
14875
14876 case $ac_cv_c_inline in
14877   inline | yes) ;;
14878   *)
14879     case $ac_cv_c_inline in
14880       no) ac_val=;;
14881       *) ac_val=$ac_cv_c_inline;;
14882     esac
14883     cat >>confdefs.h <<_ACEOF
14884 #ifndef __cplusplus
14885 #define inline $ac_val
14886 #endif
14887 _ACEOF
14888     ;;
14889 esac
14890
14891 echo "$as_me:$LINENO: checking for mode_t" >&5
14892 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14893 if test "${ac_cv_type_mode_t+set}" = set; then
14894   echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896   cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h.  */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h.  */
14902 $ac_includes_default
14903 int
14904 main ()
14905 {
14906 if ((mode_t *) 0)
14907   return 0;
14908 if (sizeof (mode_t))
14909   return 0;
14910   ;
14911   return 0;
14912 }
14913 _ACEOF
14914 rm -f conftest.$ac_objext
14915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14916   (eval $ac_compile) 2>conftest.er1
14917   ac_status=$?
14918   grep -v '^ *+' conftest.er1 >conftest.err
14919   rm -f conftest.er1
14920   cat conftest.err >&5
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); } &&
14923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925   (eval $ac_try) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); }; } &&
14929          { ac_try='test -s conftest.$ac_objext'
14930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931   (eval $ac_try) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935   ac_cv_type_mode_t=yes
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940 ac_cv_type_mode_t=no
14941 fi
14942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14943 fi
14944 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14945 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14946 if test $ac_cv_type_mode_t = yes; then
14947
14948 cat >>confdefs.h <<_ACEOF
14949 #define HAVE_MODE_T 1
14950 _ACEOF
14951
14952
14953 fi
14954 echo "$as_me:$LINENO: checking for off_t" >&5
14955 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14956 if test "${ac_cv_type_off_t+set}" = set; then
14957   echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14959   cat >conftest.$ac_ext <<_ACEOF
14960 /* confdefs.h.  */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h.  */
14965 $ac_includes_default
14966 int
14967 main ()
14968 {
14969 if ((off_t *) 0)
14970   return 0;
14971 if (sizeof (off_t))
14972   return 0;
14973   ;
14974   return 0;
14975 }
14976 _ACEOF
14977 rm -f conftest.$ac_objext
14978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14979   (eval $ac_compile) 2>conftest.er1
14980   ac_status=$?
14981   grep -v '^ *+' conftest.er1 >conftest.err
14982   rm -f conftest.er1
14983   cat conftest.err >&5
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); } &&
14986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; } &&
14992          { ac_try='test -s conftest.$ac_objext'
14993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994   (eval $ac_try) 2>&5
14995   ac_status=$?
14996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); }; }; then
14998   ac_cv_type_off_t=yes
14999 else
15000   echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ac_cv_type_off_t=no
15004 fi
15005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15006 fi
15007 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15008 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15009 if test $ac_cv_type_off_t = yes; then
15010
15011 cat >>confdefs.h <<_ACEOF
15012 #define HAVE_OFF_T 1
15013 _ACEOF
15014
15015
15016 fi
15017 echo "$as_me:$LINENO: checking for pid_t" >&5
15018 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15019 if test "${ac_cv_type_pid_t+set}" = set; then
15020   echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022   cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h.  */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h.  */
15028 $ac_includes_default
15029 int
15030 main ()
15031 {
15032 if ((pid_t *) 0)
15033   return 0;
15034 if (sizeof (pid_t))
15035   return 0;
15036   ;
15037   return 0;
15038 }
15039 _ACEOF
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042   (eval $ac_compile) 2>conftest.er1
15043   ac_status=$?
15044   grep -v '^ *+' conftest.er1 >conftest.err
15045   rm -f conftest.er1
15046   cat conftest.err >&5
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); } &&
15049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051   (eval $ac_try) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; } &&
15055          { ac_try='test -s conftest.$ac_objext'
15056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057   (eval $ac_try) 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); }; }; then
15061   ac_cv_type_pid_t=yes
15062 else
15063   echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 ac_cv_type_pid_t=no
15067 fi
15068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15069 fi
15070 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15071 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15072 if test $ac_cv_type_pid_t = yes; then
15073
15074 cat >>confdefs.h <<_ACEOF
15075 #define HAVE_PID_T 1
15076 _ACEOF
15077
15078
15079 fi
15080 echo "$as_me:$LINENO: checking for size_t" >&5
15081 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15082 if test "${ac_cv_type_size_t+set}" = set; then
15083   echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085   cat >conftest.$ac_ext <<_ACEOF
15086 /* confdefs.h.  */
15087 _ACEOF
15088 cat confdefs.h >>conftest.$ac_ext
15089 cat >>conftest.$ac_ext <<_ACEOF
15090 /* end confdefs.h.  */
15091 $ac_includes_default
15092 int
15093 main ()
15094 {
15095 if ((size_t *) 0)
15096   return 0;
15097 if (sizeof (size_t))
15098   return 0;
15099   ;
15100   return 0;
15101 }
15102 _ACEOF
15103 rm -f conftest.$ac_objext
15104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15105   (eval $ac_compile) 2>conftest.er1
15106   ac_status=$?
15107   grep -v '^ *+' conftest.er1 >conftest.err
15108   rm -f conftest.er1
15109   cat conftest.err >&5
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); } &&
15112          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114   (eval $ac_try) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); }; } &&
15118          { ac_try='test -s conftest.$ac_objext'
15119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120   (eval $ac_try) 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }; }; then
15124   ac_cv_type_size_t=yes
15125 else
15126   echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15128
15129 ac_cv_type_size_t=no
15130 fi
15131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15132 fi
15133 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15134 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15135 if test $ac_cv_type_size_t = yes; then
15136
15137 cat >>confdefs.h <<_ACEOF
15138 #define HAVE_SIZE_T 1
15139 _ACEOF
15140
15141
15142 fi
15143 echo "$as_me:$LINENO: checking for ssize_t" >&5
15144 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15145 if test "${ac_cv_type_ssize_t+set}" = set; then
15146   echo $ECHO_N "(cached) $ECHO_C" >&6
15147 else
15148   cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h.  */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h.  */
15154 $ac_includes_default
15155 int
15156 main ()
15157 {
15158 if ((ssize_t *) 0)
15159   return 0;
15160 if (sizeof (ssize_t))
15161   return 0;
15162   ;
15163   return 0;
15164 }
15165 _ACEOF
15166 rm -f conftest.$ac_objext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15168   (eval $ac_compile) 2>conftest.er1
15169   ac_status=$?
15170   grep -v '^ *+' conftest.er1 >conftest.err
15171   rm -f conftest.er1
15172   cat conftest.err >&5
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); } &&
15175          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177   (eval $ac_try) 2>&5
15178   ac_status=$?
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); }; } &&
15181          { ac_try='test -s conftest.$ac_objext'
15182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183   (eval $ac_try) 2>&5
15184   ac_status=$?
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); }; }; then
15187   ac_cv_type_ssize_t=yes
15188 else
15189   echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_cv_type_ssize_t=no
15193 fi
15194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15195 fi
15196 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15197 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15198 if test $ac_cv_type_ssize_t = yes; then
15199
15200 cat >>confdefs.h <<_ACEOF
15201 #define HAVE_SSIZE_T 1
15202 _ACEOF
15203
15204
15205 fi
15206 echo "$as_me:$LINENO: checking for long long" >&5
15207 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15208 if test "${ac_cv_type_long_long+set}" = set; then
15209   echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211   cat >conftest.$ac_ext <<_ACEOF
15212 /* confdefs.h.  */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h.  */
15217 $ac_includes_default
15218 int
15219 main ()
15220 {
15221 if ((long long *) 0)
15222   return 0;
15223 if (sizeof (long long))
15224   return 0;
15225   ;
15226   return 0;
15227 }
15228 _ACEOF
15229 rm -f conftest.$ac_objext
15230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15231   (eval $ac_compile) 2>conftest.er1
15232   ac_status=$?
15233   grep -v '^ *+' conftest.er1 >conftest.err
15234   rm -f conftest.er1
15235   cat conftest.err >&5
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); } &&
15238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240   (eval $ac_try) 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; } &&
15244          { ac_try='test -s conftest.$ac_objext'
15245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246   (eval $ac_try) 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); }; }; then
15250   ac_cv_type_long_long=yes
15251 else
15252   echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255 ac_cv_type_long_long=no
15256 fi
15257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15258 fi
15259 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15260 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15261 if test $ac_cv_type_long_long = yes; then
15262
15263 cat >>confdefs.h <<_ACEOF
15264 #define HAVE_LONG_LONG 1
15265 _ACEOF
15266
15267
15268 fi
15269 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
15270 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
15271 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
15272   echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274   cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h.  */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h.  */
15280 $ac_includes_default
15281 int
15282 main ()
15283 {
15284 if ((fsblkcnt_t *) 0)
15285   return 0;
15286 if (sizeof (fsblkcnt_t))
15287   return 0;
15288   ;
15289   return 0;
15290 }
15291 _ACEOF
15292 rm -f conftest.$ac_objext
15293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15294   (eval $ac_compile) 2>conftest.er1
15295   ac_status=$?
15296   grep -v '^ *+' conftest.er1 >conftest.err
15297   rm -f conftest.er1
15298   cat conftest.err >&5
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); } &&
15301          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303   (eval $ac_try) 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; } &&
15307          { ac_try='test -s conftest.$ac_objext'
15308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309   (eval $ac_try) 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; }; then
15313   ac_cv_type_fsblkcnt_t=yes
15314 else
15315   echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318 ac_cv_type_fsblkcnt_t=no
15319 fi
15320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15321 fi
15322 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
15323 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
15324 if test $ac_cv_type_fsblkcnt_t = yes; then
15325
15326 cat >>confdefs.h <<_ACEOF
15327 #define HAVE_FSBLKCNT_T 1
15328 _ACEOF
15329
15330
15331 fi
15332 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
15333 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
15334 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
15335   echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337   cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h.  */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h.  */
15343 $ac_includes_default
15344 int
15345 main ()
15346 {
15347 if ((fsfilcnt_t *) 0)
15348   return 0;
15349 if (sizeof (fsfilcnt_t))
15350   return 0;
15351   ;
15352   return 0;
15353 }
15354 _ACEOF
15355 rm -f conftest.$ac_objext
15356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15357   (eval $ac_compile) 2>conftest.er1
15358   ac_status=$?
15359   grep -v '^ *+' conftest.er1 >conftest.err
15360   rm -f conftest.er1
15361   cat conftest.err >&5
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); } &&
15364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366   (eval $ac_try) 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); }; } &&
15370          { ac_try='test -s conftest.$ac_objext'
15371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372   (eval $ac_try) 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); }; }; then
15376   ac_cv_type_fsfilcnt_t=yes
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381 ac_cv_type_fsfilcnt_t=no
15382 fi
15383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15384 fi
15385 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
15386 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
15387 if test $ac_cv_type_fsfilcnt_t = yes; then
15388
15389 cat >>confdefs.h <<_ACEOF
15390 #define HAVE_FSFILCNT_T 1
15391 _ACEOF
15392
15393
15394 fi
15395
15396 echo "$as_me:$LINENO: checking for sigset_t" >&5
15397 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
15398 if test "${ac_cv_type_sigset_t+set}" = set; then
15399   echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401   cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h.  */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h.  */
15407 #include <signal.h>
15408
15409 int
15410 main ()
15411 {
15412 if ((sigset_t *) 0)
15413   return 0;
15414 if (sizeof (sigset_t))
15415   return 0;
15416   ;
15417   return 0;
15418 }
15419 _ACEOF
15420 rm -f conftest.$ac_objext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422   (eval $ac_compile) 2>conftest.er1
15423   ac_status=$?
15424   grep -v '^ *+' conftest.er1 >conftest.err
15425   rm -f conftest.er1
15426   cat conftest.err >&5
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); } &&
15429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431   (eval $ac_try) 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); }; } &&
15435          { ac_try='test -s conftest.$ac_objext'
15436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437   (eval $ac_try) 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); }; }; then
15441   ac_cv_type_sigset_t=yes
15442 else
15443   echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446 ac_cv_type_sigset_t=no
15447 fi
15448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15449 fi
15450 echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
15451 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
15452 if test $ac_cv_type_sigset_t = yes; then
15453
15454 cat >>confdefs.h <<_ACEOF
15455 #define HAVE_SIGSET_T 1
15456 _ACEOF
15457
15458
15459 fi
15460
15461 echo "$as_me:$LINENO: checking for request_sense" >&5
15462 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6
15463 if test "${ac_cv_type_request_sense+set}" = set; then
15464   echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466   cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472 #include <linux/cdrom.h>
15473
15474 int
15475 main ()
15476 {
15477 if ((request_sense *) 0)
15478   return 0;
15479 if (sizeof (request_sense))
15480   return 0;
15481   ;
15482   return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15487   (eval $ac_compile) 2>conftest.er1
15488   ac_status=$?
15489   grep -v '^ *+' conftest.er1 >conftest.err
15490   rm -f conftest.er1
15491   cat conftest.err >&5
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); } &&
15494          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496   (eval $ac_try) 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; } &&
15500          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15506   ac_cv_type_request_sense=yes
15507 else
15508   echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15510
15511 ac_cv_type_request_sense=no
15512 fi
15513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15514 fi
15515 echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
15516 echo "${ECHO_T}$ac_cv_type_request_sense" >&6
15517 if test $ac_cv_type_request_sense = yes; then
15518
15519 cat >>confdefs.h <<_ACEOF
15520 #define HAVE_REQUEST_SENSE 1
15521 _ACEOF
15522
15523
15524 fi
15525
15526
15527 echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
15528 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6
15529 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
15530   echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532   cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h.  */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h.  */
15538 #ifdef HAVE_LINUX_INPUT_H
15539 #include <linux/input.h>
15540 #endif
15541
15542 int
15543 main ()
15544 {
15545 static struct ff_effect ac_aggr;
15546 if (ac_aggr.direction)
15547 return 0;
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15554   (eval $ac_compile) 2>conftest.er1
15555   ac_status=$?
15556   grep -v '^ *+' conftest.er1 >conftest.err
15557   rm -f conftest.er1
15558   cat conftest.err >&5
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } &&
15561          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563   (eval $ac_try) 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; } &&
15567          { ac_try='test -s conftest.$ac_objext'
15568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569   (eval $ac_try) 2>&5
15570   ac_status=$?
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); }; }; then
15573   ac_cv_member_struct_ff_effect_direction=yes
15574 else
15575   echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578 cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h.  */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h.  */
15584 #ifdef HAVE_LINUX_INPUT_H
15585 #include <linux/input.h>
15586 #endif
15587
15588 int
15589 main ()
15590 {
15591 static struct ff_effect ac_aggr;
15592 if (sizeof ac_aggr.direction)
15593 return 0;
15594   ;
15595   return 0;
15596 }
15597 _ACEOF
15598 rm -f conftest.$ac_objext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15600   (eval $ac_compile) 2>conftest.er1
15601   ac_status=$?
15602   grep -v '^ *+' conftest.er1 >conftest.err
15603   rm -f conftest.er1
15604   cat conftest.err >&5
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); } &&
15607          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; } &&
15613          { ac_try='test -s conftest.$ac_objext'
15614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615   (eval $ac_try) 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); }; }; then
15619   ac_cv_member_struct_ff_effect_direction=yes
15620 else
15621   echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15623
15624 ac_cv_member_struct_ff_effect_direction=no
15625 fi
15626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15627 fi
15628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15629 fi
15630 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
15631 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6
15632 if test $ac_cv_member_struct_ff_effect_direction = yes; then
15633
15634 cat >>confdefs.h <<_ACEOF
15635 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15636 _ACEOF
15637
15638
15639 fi
15640
15641
15642 echo "$as_me:$LINENO: checking for sigaddset" >&5
15643 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6
15644 if test "${wine_cv_have_sigaddset+set}" = set; then
15645   echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647   cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h.  */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h.  */
15653 #include <signal.h>
15654 int
15655 main ()
15656 {
15657 sigset_t set; sigaddset(&set,SIGTERM);
15658   ;
15659   return 0;
15660 }
15661 _ACEOF
15662 rm -f conftest.$ac_objext conftest$ac_exeext
15663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15664   (eval $ac_link) 2>conftest.er1
15665   ac_status=$?
15666   grep -v '^ *+' conftest.er1 >conftest.err
15667   rm -f conftest.er1
15668   cat conftest.err >&5
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); } &&
15671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673   (eval $ac_try) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); }; } &&
15677          { ac_try='test -s conftest$ac_exeext'
15678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679   (eval $ac_try) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; }; then
15683   wine_cv_have_sigaddset=yes
15684 else
15685   echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15687
15688 wine_cv_have_sigaddset=no
15689 fi
15690 rm -f conftest.err conftest.$ac_objext \
15691       conftest$ac_exeext conftest.$ac_ext
15692 fi
15693 echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
15694 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6
15695 if test "$wine_cv_have_sigaddset" = "yes"
15696 then
15697
15698 cat >>confdefs.h <<\_ACEOF
15699 #define HAVE_SIGADDSET 1
15700 _ACEOF
15701
15702 fi
15703
15704
15705 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15706 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15707 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   cat >conftest.$ac_ext <<_ACEOF
15711 /* confdefs.h.  */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h.  */
15716
15717 #include <netdb.h>
15718
15719 int
15720 main ()
15721 {
15722
15723     char *name=NULL;
15724     struct hostent he;
15725     struct hostent *result;
15726     char *buf=NULL;
15727     int bufsize=0;
15728     int res,errnr;
15729     char *addr=NULL;
15730     int addrlen=0;
15731     int addrtype=0;
15732     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15733     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15734
15735   ;
15736   return 0;
15737 }
15738 _ACEOF
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15741   (eval $ac_link) 2>conftest.er1
15742   ac_status=$?
15743   grep -v '^ *+' conftest.er1 >conftest.err
15744   rm -f conftest.er1
15745   cat conftest.err >&5
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); } &&
15748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750   (eval $ac_try) 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); }; } &&
15754          { ac_try='test -s conftest$ac_exeext'
15755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756   (eval $ac_try) 2>&5
15757   ac_status=$?
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); }; }; then
15760   wine_cv_linux_gethostbyname_r_6=yes
15761 else
15762   echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15764
15765 wine_cv_linux_gethostbyname_r_6=no
15766
15767 fi
15768 rm -f conftest.err conftest.$ac_objext \
15769       conftest$ac_exeext conftest.$ac_ext
15770
15771 fi
15772 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
15773 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
15774    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15775    then
15776
15777 cat >>confdefs.h <<\_ACEOF
15778 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
15779 _ACEOF
15780
15781    fi
15782
15783 if test "$ac_cv_header_linux_joystick_h" = "yes"
15784 then
15785    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15786 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15787 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15788   echo $ECHO_N "(cached) $ECHO_C" >&6
15789 else
15790   cat >conftest.$ac_ext <<_ACEOF
15791 /* confdefs.h.  */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h.  */
15796
15797         #include <sys/ioctl.h>
15798         #include <linux/joystick.h>
15799
15800         struct js_event blub;
15801         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15802         #error "no 2.2 header"
15803         #endif
15804
15805 int
15806 main ()
15807 {
15808 /*empty*/
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 rm -f conftest.$ac_objext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15815   (eval $ac_compile) 2>conftest.er1
15816   ac_status=$?
15817   grep -v '^ *+' conftest.er1 >conftest.err
15818   rm -f conftest.er1
15819   cat conftest.err >&5
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); } &&
15822          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824   (eval $ac_try) 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); }; } &&
15828          { ac_try='test -s conftest.$ac_objext'
15829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830   (eval $ac_try) 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); }; }; then
15834   wine_cv_linux_joystick_22_api=yes
15835 else
15836   echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839 wine_cv_linux_joystick_22_api=no
15840 fi
15841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15842
15843 fi
15844 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15845 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15846    if test "$wine_cv_linux_joystick_22_api" = "yes"
15847    then
15848
15849 cat >>confdefs.h <<\_ACEOF
15850 #define HAVE_LINUX_22_JOYSTICK_API 1
15851 _ACEOF
15852
15853    fi
15854 fi
15855
15856
15857 if test "$ac_cv_header_sys_vfs_h" = "yes"
15858 then
15859     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15860 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15861 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15862   echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864   cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870
15871         #include <sys/types.h>
15872         #ifdef HAVE_SYS_PARAM_H
15873         # include <sys/param.h>
15874         #endif
15875         #include <sys/vfs.h>
15876
15877 int
15878 main ()
15879 {
15880
15881                 struct statfs stfs;
15882
15883                 memset(&stfs,0,sizeof(stfs));
15884
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 rm -f conftest.$ac_objext
15890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15891   (eval $ac_compile) 2>conftest.er1
15892   ac_status=$?
15893   grep -v '^ *+' conftest.er1 >conftest.err
15894   rm -f conftest.er1
15895   cat conftest.err >&5
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } &&
15898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900   (eval $ac_try) 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); }; } &&
15904          { ac_try='test -s conftest.$ac_objext'
15905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906   (eval $ac_try) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); }; }; then
15910   wine_cv_sys_vfs_has_statfs=yes
15911 else
15912   echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15914
15915 wine_cv_sys_vfs_has_statfs=no
15916
15917 fi
15918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15919
15920 fi
15921 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15922 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15923     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15924     then
15925
15926 cat >>confdefs.h <<\_ACEOF
15927 #define STATFS_DEFINED_BY_SYS_VFS 1
15928 _ACEOF
15929
15930     fi
15931 fi
15932
15933 if test "$ac_cv_header_sys_statfs_h" = "yes"
15934 then
15935     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
15936 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15937 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15938   echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940   cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946
15947         #include <sys/types.h>
15948         #ifdef HAVE_SYS_PARAM_H
15949         # include <sys/param.h>
15950         #endif
15951         #include <sys/statfs.h>
15952
15953 int
15954 main ()
15955 {
15956
15957                 struct statfs stfs;
15958
15959   ;
15960   return 0;
15961 }
15962 _ACEOF
15963 rm -f conftest.$ac_objext
15964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15965   (eval $ac_compile) 2>conftest.er1
15966   ac_status=$?
15967   grep -v '^ *+' conftest.er1 >conftest.err
15968   rm -f conftest.er1
15969   cat conftest.err >&5
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); } &&
15972          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974   (eval $ac_try) 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; } &&
15978          { ac_try='test -s conftest.$ac_objext'
15979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980   (eval $ac_try) 2>&5
15981   ac_status=$?
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); }; }; then
15984   wine_cv_sys_statfs_has_statfs=yes
15985 else
15986   echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15988
15989 wine_cv_sys_statfs_has_statfs=no
15990
15991 fi
15992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15993
15994 fi
15995 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
15996 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
15997     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15998     then
15999
16000 cat >>confdefs.h <<\_ACEOF
16001 #define STATFS_DEFINED_BY_SYS_STATFS 1
16002 _ACEOF
16003
16004     fi
16005 fi
16006
16007 if test "$ac_cv_header_sys_mount_h" = "yes"
16008 then
16009     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
16010 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
16011 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
16012   echo $ECHO_N "(cached) $ECHO_C" >&6
16013 else
16014   cat >conftest.$ac_ext <<_ACEOF
16015 /* confdefs.h.  */
16016 _ACEOF
16017 cat confdefs.h >>conftest.$ac_ext
16018 cat >>conftest.$ac_ext <<_ACEOF
16019 /* end confdefs.h.  */
16020
16021         #include <sys/types.h>
16022         #ifdef HAVE_SYS_PARAM_H
16023         # include <sys/param.h>
16024         #endif
16025         #include <sys/mount.h>
16026
16027 int
16028 main ()
16029 {
16030
16031                 struct statfs stfs;
16032
16033   ;
16034   return 0;
16035 }
16036 _ACEOF
16037 rm -f conftest.$ac_objext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16039   (eval $ac_compile) 2>conftest.er1
16040   ac_status=$?
16041   grep -v '^ *+' conftest.er1 >conftest.err
16042   rm -f conftest.er1
16043   cat conftest.err >&5
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); } &&
16046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; } &&
16052          { ac_try='test -s conftest.$ac_objext'
16053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054   (eval $ac_try) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; }; then
16058   wine_cv_sys_mount_has_statfs=yes
16059 else
16060   echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16062
16063 wine_cv_sys_mount_has_statfs=no
16064
16065 fi
16066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16067
16068 fi
16069 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
16070 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
16071     if test "$wine_cv_sys_mount_has_statfs" = "yes"
16072     then
16073
16074 cat >>confdefs.h <<\_ACEOF
16075 #define STATFS_DEFINED_BY_SYS_MOUNT 1
16076 _ACEOF
16077
16078     fi
16079 fi
16080
16081
16082 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
16083 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
16084 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
16085   echo $ECHO_N "(cached) $ECHO_C" >&6
16086 else
16087   cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h.  */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h.  */
16093 #include <sys/types.h>
16094 #ifdef HAVE_SYS_PARAM_H
16095 # include <sys/param.h>
16096 #endif
16097 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16098 # include <sys/mount.h>
16099 #else
16100 # ifdef STATFS_DEFINED_BY_SYS_VFS
16101 #  include <sys/vfs.h>
16102 # else
16103 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16104 #   include <sys/statfs.h>
16105 #  endif
16106 # endif
16107 #endif
16108
16109 int
16110 main ()
16111 {
16112 static struct statfs ac_aggr;
16113 if (ac_aggr.f_bfree)
16114 return 0;
16115   ;
16116   return 0;
16117 }
16118 _ACEOF
16119 rm -f conftest.$ac_objext
16120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121   (eval $ac_compile) 2>conftest.er1
16122   ac_status=$?
16123   grep -v '^ *+' conftest.er1 >conftest.err
16124   rm -f conftest.er1
16125   cat conftest.err >&5
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); } &&
16128          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130   (eval $ac_try) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }; } &&
16134          { ac_try='test -s conftest.$ac_objext'
16135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136   (eval $ac_try) 2>&5
16137   ac_status=$?
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); }; }; then
16140   ac_cv_member_struct_statfs_f_bfree=yes
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145 cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151 #include <sys/types.h>
16152 #ifdef HAVE_SYS_PARAM_H
16153 # include <sys/param.h>
16154 #endif
16155 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16156 # include <sys/mount.h>
16157 #else
16158 # ifdef STATFS_DEFINED_BY_SYS_VFS
16159 #  include <sys/vfs.h>
16160 # else
16161 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16162 #   include <sys/statfs.h>
16163 #  endif
16164 # endif
16165 #endif
16166
16167 int
16168 main ()
16169 {
16170 static struct statfs ac_aggr;
16171 if (sizeof ac_aggr.f_bfree)
16172 return 0;
16173   ;
16174   return 0;
16175 }
16176 _ACEOF
16177 rm -f conftest.$ac_objext
16178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16179   (eval $ac_compile) 2>conftest.er1
16180   ac_status=$?
16181   grep -v '^ *+' conftest.er1 >conftest.err
16182   rm -f conftest.er1
16183   cat conftest.err >&5
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); } &&
16186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188   (eval $ac_try) 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); }; } &&
16192          { ac_try='test -s conftest.$ac_objext'
16193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194   (eval $ac_try) 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); }; }; then
16198   ac_cv_member_struct_statfs_f_bfree=yes
16199 else
16200   echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16202
16203 ac_cv_member_struct_statfs_f_bfree=no
16204 fi
16205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16206 fi
16207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16208 fi
16209 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
16210 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
16211 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
16212
16213 cat >>confdefs.h <<_ACEOF
16214 #define HAVE_STRUCT_STATFS_F_BFREE 1
16215 _ACEOF
16216
16217
16218 fi
16219 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
16220 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
16221 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
16222   echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224   cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h.  */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h.  */
16230 #include <sys/types.h>
16231 #ifdef HAVE_SYS_PARAM_H
16232 # include <sys/param.h>
16233 #endif
16234 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16235 # include <sys/mount.h>
16236 #else
16237 # ifdef STATFS_DEFINED_BY_SYS_VFS
16238 #  include <sys/vfs.h>
16239 # else
16240 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16241 #   include <sys/statfs.h>
16242 #  endif
16243 # endif
16244 #endif
16245
16246 int
16247 main ()
16248 {
16249 static struct statfs ac_aggr;
16250 if (ac_aggr.f_bavail)
16251 return 0;
16252   ;
16253   return 0;
16254 }
16255 _ACEOF
16256 rm -f conftest.$ac_objext
16257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16258   (eval $ac_compile) 2>conftest.er1
16259   ac_status=$?
16260   grep -v '^ *+' conftest.er1 >conftest.err
16261   rm -f conftest.er1
16262   cat conftest.err >&5
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); } &&
16265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267   (eval $ac_try) 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); }; } &&
16271          { ac_try='test -s conftest.$ac_objext'
16272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273   (eval $ac_try) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; }; then
16277   ac_cv_member_struct_statfs_f_bavail=yes
16278 else
16279   echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16281
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h.  */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h.  */
16288 #include <sys/types.h>
16289 #ifdef HAVE_SYS_PARAM_H
16290 # include <sys/param.h>
16291 #endif
16292 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16293 # include <sys/mount.h>
16294 #else
16295 # ifdef STATFS_DEFINED_BY_SYS_VFS
16296 #  include <sys/vfs.h>
16297 # else
16298 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16299 #   include <sys/statfs.h>
16300 #  endif
16301 # endif
16302 #endif
16303
16304 int
16305 main ()
16306 {
16307 static struct statfs ac_aggr;
16308 if (sizeof ac_aggr.f_bavail)
16309 return 0;
16310   ;
16311   return 0;
16312 }
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316   (eval $ac_compile) 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } &&
16323          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325   (eval $ac_try) 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; } &&
16329          { ac_try='test -s conftest.$ac_objext'
16330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331   (eval $ac_try) 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; }; then
16335   ac_cv_member_struct_statfs_f_bavail=yes
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ac_cv_member_struct_statfs_f_bavail=no
16341 fi
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343 fi
16344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16345 fi
16346 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
16347 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
16348 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
16349
16350 cat >>confdefs.h <<_ACEOF
16351 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
16352 _ACEOF
16353
16354
16355 fi
16356 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
16357 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
16358 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h.  */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h.  */
16367 #include <sys/types.h>
16368 #ifdef HAVE_SYS_PARAM_H
16369 # include <sys/param.h>
16370 #endif
16371 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16372 # include <sys/mount.h>
16373 #else
16374 # ifdef STATFS_DEFINED_BY_SYS_VFS
16375 #  include <sys/vfs.h>
16376 # else
16377 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16378 #   include <sys/statfs.h>
16379 #  endif
16380 # endif
16381 #endif
16382
16383 int
16384 main ()
16385 {
16386 static struct statfs ac_aggr;
16387 if (ac_aggr.f_frsize)
16388 return 0;
16389   ;
16390   return 0;
16391 }
16392 _ACEOF
16393 rm -f conftest.$ac_objext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16395   (eval $ac_compile) 2>conftest.er1
16396   ac_status=$?
16397   grep -v '^ *+' conftest.er1 >conftest.err
16398   rm -f conftest.er1
16399   cat conftest.err >&5
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); } &&
16402          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404   (eval $ac_try) 2>&5
16405   ac_status=$?
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); }; } &&
16408          { ac_try='test -s conftest.$ac_objext'
16409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410   (eval $ac_try) 2>&5
16411   ac_status=$?
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); }; }; then
16414   ac_cv_member_struct_statfs_f_frsize=yes
16415 else
16416   echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
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 #include <sys/types.h>
16426 #ifdef HAVE_SYS_PARAM_H
16427 # include <sys/param.h>
16428 #endif
16429 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16430 # include <sys/mount.h>
16431 #else
16432 # ifdef STATFS_DEFINED_BY_SYS_VFS
16433 #  include <sys/vfs.h>
16434 # else
16435 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16436 #   include <sys/statfs.h>
16437 #  endif
16438 # endif
16439 #endif
16440
16441 int
16442 main ()
16443 {
16444 static struct statfs ac_aggr;
16445 if (sizeof ac_aggr.f_frsize)
16446 return 0;
16447   ;
16448   return 0;
16449 }
16450 _ACEOF
16451 rm -f conftest.$ac_objext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16453   (eval $ac_compile) 2>conftest.er1
16454   ac_status=$?
16455   grep -v '^ *+' conftest.er1 >conftest.err
16456   rm -f conftest.er1
16457   cat conftest.err >&5
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); } &&
16460          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462   (eval $ac_try) 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; } &&
16466          { ac_try='test -s conftest.$ac_objext'
16467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468   (eval $ac_try) 2>&5
16469   ac_status=$?
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); }; }; then
16472   ac_cv_member_struct_statfs_f_frsize=yes
16473 else
16474   echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16476
16477 ac_cv_member_struct_statfs_f_frsize=no
16478 fi
16479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16480 fi
16481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16482 fi
16483 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
16484 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
16485 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
16486
16487 cat >>confdefs.h <<_ACEOF
16488 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
16489 _ACEOF
16490
16491
16492 fi
16493 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
16494 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
16495 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
16496   echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498   cat >conftest.$ac_ext <<_ACEOF
16499 /* confdefs.h.  */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h.  */
16504 #include <sys/types.h>
16505 #ifdef HAVE_SYS_PARAM_H
16506 # include <sys/param.h>
16507 #endif
16508 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16509 # include <sys/mount.h>
16510 #else
16511 # ifdef STATFS_DEFINED_BY_SYS_VFS
16512 #  include <sys/vfs.h>
16513 # else
16514 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16515 #   include <sys/statfs.h>
16516 #  endif
16517 # endif
16518 #endif
16519
16520 int
16521 main ()
16522 {
16523 static struct statfs ac_aggr;
16524 if (ac_aggr.f_ffree)
16525 return 0;
16526   ;
16527   return 0;
16528 }
16529 _ACEOF
16530 rm -f conftest.$ac_objext
16531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16532   (eval $ac_compile) 2>conftest.er1
16533   ac_status=$?
16534   grep -v '^ *+' conftest.er1 >conftest.err
16535   rm -f conftest.er1
16536   cat conftest.err >&5
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } &&
16539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541   (eval $ac_try) 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; } &&
16545          { ac_try='test -s conftest.$ac_objext'
16546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547   (eval $ac_try) 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); }; }; then
16551   ac_cv_member_struct_statfs_f_ffree=yes
16552 else
16553   echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16555
16556 cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h.  */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h.  */
16562 #include <sys/types.h>
16563 #ifdef HAVE_SYS_PARAM_H
16564 # include <sys/param.h>
16565 #endif
16566 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16567 # include <sys/mount.h>
16568 #else
16569 # ifdef STATFS_DEFINED_BY_SYS_VFS
16570 #  include <sys/vfs.h>
16571 # else
16572 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16573 #   include <sys/statfs.h>
16574 #  endif
16575 # endif
16576 #endif
16577
16578 int
16579 main ()
16580 {
16581 static struct statfs ac_aggr;
16582 if (sizeof ac_aggr.f_ffree)
16583 return 0;
16584   ;
16585   return 0;
16586 }
16587 _ACEOF
16588 rm -f conftest.$ac_objext
16589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16590   (eval $ac_compile) 2>conftest.er1
16591   ac_status=$?
16592   grep -v '^ *+' conftest.er1 >conftest.err
16593   rm -f conftest.er1
16594   cat conftest.err >&5
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); } &&
16597          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599   (eval $ac_try) 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); }; } &&
16603          { ac_try='test -s conftest.$ac_objext'
16604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605   (eval $ac_try) 2>&5
16606   ac_status=$?
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); }; }; then
16609   ac_cv_member_struct_statfs_f_ffree=yes
16610 else
16611   echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16613
16614 ac_cv_member_struct_statfs_f_ffree=no
16615 fi
16616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16617 fi
16618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16619 fi
16620 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
16621 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
16622 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
16623
16624 cat >>confdefs.h <<_ACEOF
16625 #define HAVE_STRUCT_STATFS_F_FFREE 1
16626 _ACEOF
16627
16628
16629 fi
16630 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
16631 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
16632 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
16633   echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635   cat >conftest.$ac_ext <<_ACEOF
16636 /* confdefs.h.  */
16637 _ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h.  */
16641 #include <sys/types.h>
16642 #ifdef HAVE_SYS_PARAM_H
16643 # include <sys/param.h>
16644 #endif
16645 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16646 # include <sys/mount.h>
16647 #else
16648 # ifdef STATFS_DEFINED_BY_SYS_VFS
16649 #  include <sys/vfs.h>
16650 # else
16651 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16652 #   include <sys/statfs.h>
16653 #  endif
16654 # endif
16655 #endif
16656
16657 int
16658 main ()
16659 {
16660 static struct statfs ac_aggr;
16661 if (ac_aggr.f_favail)
16662 return 0;
16663   ;
16664   return 0;
16665 }
16666 _ACEOF
16667 rm -f conftest.$ac_objext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669   (eval $ac_compile) 2>conftest.er1
16670   ac_status=$?
16671   grep -v '^ *+' conftest.er1 >conftest.err
16672   rm -f conftest.er1
16673   cat conftest.err >&5
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678   (eval $ac_try) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; } &&
16682          { ac_try='test -s conftest.$ac_objext'
16683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684   (eval $ac_try) 2>&5
16685   ac_status=$?
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); }; }; then
16688   ac_cv_member_struct_statfs_f_favail=yes
16689 else
16690   echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16692
16693 cat >conftest.$ac_ext <<_ACEOF
16694 /* confdefs.h.  */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h.  */
16699 #include <sys/types.h>
16700 #ifdef HAVE_SYS_PARAM_H
16701 # include <sys/param.h>
16702 #endif
16703 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16704 # include <sys/mount.h>
16705 #else
16706 # ifdef STATFS_DEFINED_BY_SYS_VFS
16707 #  include <sys/vfs.h>
16708 # else
16709 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16710 #   include <sys/statfs.h>
16711 #  endif
16712 # endif
16713 #endif
16714
16715 int
16716 main ()
16717 {
16718 static struct statfs ac_aggr;
16719 if (sizeof ac_aggr.f_favail)
16720 return 0;
16721   ;
16722   return 0;
16723 }
16724 _ACEOF
16725 rm -f conftest.$ac_objext
16726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16727   (eval $ac_compile) 2>conftest.er1
16728   ac_status=$?
16729   grep -v '^ *+' conftest.er1 >conftest.err
16730   rm -f conftest.er1
16731   cat conftest.err >&5
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); } &&
16734          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736   (eval $ac_try) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; } &&
16740          { ac_try='test -s conftest.$ac_objext'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   ac_cv_member_struct_statfs_f_favail=yes
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751 ac_cv_member_struct_statfs_f_favail=no
16752 fi
16753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16754 fi
16755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16756 fi
16757 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
16758 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
16759 if test $ac_cv_member_struct_statfs_f_favail = yes; then
16760
16761 cat >>confdefs.h <<_ACEOF
16762 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
16763 _ACEOF
16764
16765
16766 fi
16767 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
16768 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
16769 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
16770   echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772   cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h.  */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h.  */
16778 #include <sys/types.h>
16779 #ifdef HAVE_SYS_PARAM_H
16780 # include <sys/param.h>
16781 #endif
16782 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16783 # include <sys/mount.h>
16784 #else
16785 # ifdef STATFS_DEFINED_BY_SYS_VFS
16786 #  include <sys/vfs.h>
16787 # else
16788 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16789 #   include <sys/statfs.h>
16790 #  endif
16791 # endif
16792 #endif
16793
16794 int
16795 main ()
16796 {
16797 static struct statfs ac_aggr;
16798 if (ac_aggr.f_namelen)
16799 return 0;
16800   ;
16801   return 0;
16802 }
16803 _ACEOF
16804 rm -f conftest.$ac_objext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16806   (eval $ac_compile) 2>conftest.er1
16807   ac_status=$?
16808   grep -v '^ *+' conftest.er1 >conftest.err
16809   rm -f conftest.er1
16810   cat conftest.err >&5
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); } &&
16813          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815   (eval $ac_try) 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); }; } &&
16819          { ac_try='test -s conftest.$ac_objext'
16820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821   (eval $ac_try) 2>&5
16822   ac_status=$?
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); }; }; then
16825   ac_cv_member_struct_statfs_f_namelen=yes
16826 else
16827   echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16829
16830 cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h.  */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h.  */
16836 #include <sys/types.h>
16837 #ifdef HAVE_SYS_PARAM_H
16838 # include <sys/param.h>
16839 #endif
16840 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16841 # include <sys/mount.h>
16842 #else
16843 # ifdef STATFS_DEFINED_BY_SYS_VFS
16844 #  include <sys/vfs.h>
16845 # else
16846 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16847 #   include <sys/statfs.h>
16848 #  endif
16849 # endif
16850 #endif
16851
16852 int
16853 main ()
16854 {
16855 static struct statfs ac_aggr;
16856 if (sizeof ac_aggr.f_namelen)
16857 return 0;
16858   ;
16859   return 0;
16860 }
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864   (eval $ac_compile) 2>conftest.er1
16865   ac_status=$?
16866   grep -v '^ *+' conftest.er1 >conftest.err
16867   rm -f conftest.er1
16868   cat conftest.err >&5
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } &&
16871          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; } &&
16877          { ac_try='test -s conftest.$ac_objext'
16878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879   (eval $ac_try) 2>&5
16880   ac_status=$?
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); }; }; then
16883   ac_cv_member_struct_statfs_f_namelen=yes
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888 ac_cv_member_struct_statfs_f_namelen=no
16889 fi
16890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16891 fi
16892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16893 fi
16894 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
16895 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
16896 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
16897
16898 cat >>confdefs.h <<_ACEOF
16899 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
16900 _ACEOF
16901
16902
16903 fi
16904
16905
16906 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
16907 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
16908 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911   cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h.  */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h.  */
16917 #ifdef HAVE_SYS_STATVFS_H
16918 #include <sys/statvfs.h>
16919 #endif
16920
16921 int
16922 main ()
16923 {
16924 static struct statvfs ac_aggr;
16925 if (ac_aggr.f_blocks)
16926 return 0;
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933   (eval $ac_compile) 2>conftest.er1
16934   ac_status=$?
16935   grep -v '^ *+' conftest.er1 >conftest.err
16936   rm -f conftest.er1
16937   cat conftest.err >&5
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } &&
16940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942   (eval $ac_try) 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); }; } &&
16946          { ac_try='test -s conftest.$ac_objext'
16947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948   (eval $ac_try) 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; }; then
16952   ac_cv_member_struct_statvfs_f_blocks=yes
16953 else
16954   echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957 cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963 #ifdef HAVE_SYS_STATVFS_H
16964 #include <sys/statvfs.h>
16965 #endif
16966
16967 int
16968 main ()
16969 {
16970 static struct statvfs ac_aggr;
16971 if (sizeof ac_aggr.f_blocks)
16972 return 0;
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16979   (eval $ac_compile) 2>conftest.er1
16980   ac_status=$?
16981   grep -v '^ *+' conftest.er1 >conftest.err
16982   rm -f conftest.er1
16983   cat conftest.err >&5
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } &&
16986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988   (eval $ac_try) 2>&5
16989   ac_status=$?
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); }; } &&
16992          { ac_try='test -s conftest.$ac_objext'
16993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994   (eval $ac_try) 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); }; }; then
16998   ac_cv_member_struct_statvfs_f_blocks=yes
16999 else
17000   echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17002
17003 ac_cv_member_struct_statvfs_f_blocks=no
17004 fi
17005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17006 fi
17007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17008 fi
17009 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
17010 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
17011 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
17012
17013 cat >>confdefs.h <<_ACEOF
17014 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
17015 _ACEOF
17016
17017
17018 fi
17019
17020
17021 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
17022 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
17023 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
17024   echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026   cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h.  */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h.  */
17032 #include <sys/types.h>
17033 #ifdef HAVE_SYS_SOCKET_H
17034 # include <sys/socket.h>
17035 #endif
17036 #ifdef HAVE_SYS_UN_H
17037 # include <sys/un.h>
17038 #endif
17039
17040 int
17041 main ()
17042 {
17043 static struct msghdr ac_aggr;
17044 if (ac_aggr.msg_accrights)
17045 return 0;
17046   ;
17047   return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052   (eval $ac_compile) 2>conftest.er1
17053   ac_status=$?
17054   grep -v '^ *+' conftest.er1 >conftest.err
17055   rm -f conftest.er1
17056   cat conftest.err >&5
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } &&
17059          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061   (eval $ac_try) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; } &&
17065          { ac_try='test -s conftest.$ac_objext'
17066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067   (eval $ac_try) 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071   ac_cv_member_struct_msghdr_msg_accrights=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076 cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17082 #include <sys/types.h>
17083 #ifdef HAVE_SYS_SOCKET_H
17084 # include <sys/socket.h>
17085 #endif
17086 #ifdef HAVE_SYS_UN_H
17087 # include <sys/un.h>
17088 #endif
17089
17090 int
17091 main ()
17092 {
17093 static struct msghdr ac_aggr;
17094 if (sizeof ac_aggr.msg_accrights)
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_msghdr_msg_accrights=yes
17122 else
17123   echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17125
17126 ac_cv_member_struct_msghdr_msg_accrights=no
17127 fi
17128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17129 fi
17130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17131 fi
17132 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
17133 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
17134 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
17135
17136 cat >>confdefs.h <<_ACEOF
17137 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
17138 _ACEOF
17139
17140
17141 fi
17142 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
17143 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
17144 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
17145   echo $ECHO_N "(cached) $ECHO_C" >&6
17146 else
17147   cat >conftest.$ac_ext <<_ACEOF
17148 /* confdefs.h.  */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h.  */
17153 #include <sys/types.h>
17154 #ifdef HAVE_SYS_SOCKET_H
17155 # include <sys/socket.h>
17156 #endif
17157 #ifdef HAVE_SYS_UN_H
17158 # include <sys/un.h>
17159 #endif
17160
17161 int
17162 main ()
17163 {
17164 static struct sockaddr ac_aggr;
17165 if (ac_aggr.sa_len)
17166 return 0;
17167   ;
17168   return 0;
17169 }
17170 _ACEOF
17171 rm -f conftest.$ac_objext
17172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17173   (eval $ac_compile) 2>conftest.er1
17174   ac_status=$?
17175   grep -v '^ *+' conftest.er1 >conftest.err
17176   rm -f conftest.er1
17177   cat conftest.err >&5
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); } &&
17180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182   (eval $ac_try) 2>&5
17183   ac_status=$?
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); }; } &&
17186          { ac_try='test -s conftest.$ac_objext'
17187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188   (eval $ac_try) 2>&5
17189   ac_status=$?
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); }; }; then
17192   ac_cv_member_struct_sockaddr_sa_len=yes
17193 else
17194   echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 cat >conftest.$ac_ext <<_ACEOF
17198 /* confdefs.h.  */
17199 _ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h.  */
17203 #include <sys/types.h>
17204 #ifdef HAVE_SYS_SOCKET_H
17205 # include <sys/socket.h>
17206 #endif
17207 #ifdef HAVE_SYS_UN_H
17208 # include <sys/un.h>
17209 #endif
17210
17211 int
17212 main ()
17213 {
17214 static struct sockaddr ac_aggr;
17215 if (sizeof ac_aggr.sa_len)
17216 return 0;
17217   ;
17218   return 0;
17219 }
17220 _ACEOF
17221 rm -f conftest.$ac_objext
17222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17223   (eval $ac_compile) 2>conftest.er1
17224   ac_status=$?
17225   grep -v '^ *+' conftest.er1 >conftest.err
17226   rm -f conftest.er1
17227   cat conftest.err >&5
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); } &&
17230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232   (eval $ac_try) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; } &&
17236          { ac_try='test -s conftest.$ac_objext'
17237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238   (eval $ac_try) 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ac_cv_member_struct_sockaddr_sa_len=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 ac_cv_member_struct_sockaddr_sa_len=no
17248 fi
17249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17250 fi
17251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17252 fi
17253 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
17254 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
17255 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
17256
17257 cat >>confdefs.h <<_ACEOF
17258 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17259 _ACEOF
17260
17261
17262 fi
17263 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
17264 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
17265 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
17266   echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268   cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274 #include <sys/types.h>
17275 #ifdef HAVE_SYS_SOCKET_H
17276 # include <sys/socket.h>
17277 #endif
17278 #ifdef HAVE_SYS_UN_H
17279 # include <sys/un.h>
17280 #endif
17281
17282 int
17283 main ()
17284 {
17285 static struct sockaddr_un ac_aggr;
17286 if (ac_aggr.sun_len)
17287 return 0;
17288   ;
17289   return 0;
17290 }
17291 _ACEOF
17292 rm -f conftest.$ac_objext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17294   (eval $ac_compile) 2>conftest.er1
17295   ac_status=$?
17296   grep -v '^ *+' conftest.er1 >conftest.err
17297   rm -f conftest.er1
17298   cat conftest.err >&5
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } &&
17301          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303   (eval $ac_try) 2>&5
17304   ac_status=$?
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); }; } &&
17307          { ac_try='test -s conftest.$ac_objext'
17308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309   (eval $ac_try) 2>&5
17310   ac_status=$?
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); }; }; then
17313   ac_cv_member_struct_sockaddr_un_sun_len=yes
17314 else
17315   echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h.  */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h.  */
17324 #include <sys/types.h>
17325 #ifdef HAVE_SYS_SOCKET_H
17326 # include <sys/socket.h>
17327 #endif
17328 #ifdef HAVE_SYS_UN_H
17329 # include <sys/un.h>
17330 #endif
17331
17332 int
17333 main ()
17334 {
17335 static struct sockaddr_un ac_aggr;
17336 if (sizeof ac_aggr.sun_len)
17337 return 0;
17338   ;
17339   return 0;
17340 }
17341 _ACEOF
17342 rm -f conftest.$ac_objext
17343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17344   (eval $ac_compile) 2>conftest.er1
17345   ac_status=$?
17346   grep -v '^ *+' conftest.er1 >conftest.err
17347   rm -f conftest.er1
17348   cat conftest.err >&5
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); } &&
17351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353   (eval $ac_try) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }; } &&
17357          { ac_try='test -s conftest.$ac_objext'
17358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359   (eval $ac_try) 2>&5
17360   ac_status=$?
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); }; }; then
17363   ac_cv_member_struct_sockaddr_un_sun_len=yes
17364 else
17365   echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368 ac_cv_member_struct_sockaddr_un_sun_len=no
17369 fi
17370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17371 fi
17372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17373 fi
17374 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
17375 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
17376 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
17377
17378 cat >>confdefs.h <<_ACEOF
17379 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
17380 _ACEOF
17381
17382
17383 fi
17384
17385
17386 echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
17387 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6
17388 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
17389   echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391   cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h.  */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h.  */
17397 #include <sys/types.h>
17398 #ifdef HAVE_SCSI_SG_H
17399 #include <scsi/sg.h>
17400 #endif
17401
17402 int
17403 main ()
17404 {
17405 static scsireq_t ac_aggr;
17406 if (ac_aggr.cmd)
17407 return 0;
17408   ;
17409   return 0;
17410 }
17411 _ACEOF
17412 rm -f conftest.$ac_objext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17414   (eval $ac_compile) 2>conftest.er1
17415   ac_status=$?
17416   grep -v '^ *+' conftest.er1 >conftest.err
17417   rm -f conftest.er1
17418   cat conftest.err >&5
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); } &&
17421          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423   (eval $ac_try) 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; } &&
17427          { ac_try='test -s conftest.$ac_objext'
17428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429   (eval $ac_try) 2>&5
17430   ac_status=$?
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); }; }; then
17433   ac_cv_member_scsireq_t_cmd=yes
17434 else
17435   echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17437
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444 #include <sys/types.h>
17445 #ifdef HAVE_SCSI_SG_H
17446 #include <scsi/sg.h>
17447 #endif
17448
17449 int
17450 main ()
17451 {
17452 static scsireq_t ac_aggr;
17453 if (sizeof ac_aggr.cmd)
17454 return 0;
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 rm -f conftest.$ac_objext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461   (eval $ac_compile) 2>conftest.er1
17462   ac_status=$?
17463   grep -v '^ *+' conftest.er1 >conftest.err
17464   rm -f conftest.er1
17465   cat conftest.err >&5
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); } &&
17468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470   (eval $ac_try) 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); }; } &&
17474          { ac_try='test -s conftest.$ac_objext'
17475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476   (eval $ac_try) 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); }; }; then
17480   ac_cv_member_scsireq_t_cmd=yes
17481 else
17482   echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485 ac_cv_member_scsireq_t_cmd=no
17486 fi
17487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17488 fi
17489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17490 fi
17491 echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
17492 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6
17493 if test $ac_cv_member_scsireq_t_cmd = yes; then
17494
17495 cat >>confdefs.h <<_ACEOF
17496 #define HAVE_SCSIREQ_T_CMD 1
17497 _ACEOF
17498
17499
17500 fi
17501 echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
17502 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6
17503 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
17504   echo $ECHO_N "(cached) $ECHO_C" >&6
17505 else
17506   cat >conftest.$ac_ext <<_ACEOF
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512 #include <sys/types.h>
17513 #ifdef HAVE_SCSI_SG_H
17514 #include <scsi/sg.h>
17515 #endif
17516
17517 int
17518 main ()
17519 {
17520 static sg_io_hdr_t ac_aggr;
17521 if (ac_aggr.interface_id)
17522 return 0;
17523   ;
17524   return 0;
17525 }
17526 _ACEOF
17527 rm -f conftest.$ac_objext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17529   (eval $ac_compile) 2>conftest.er1
17530   ac_status=$?
17531   grep -v '^ *+' conftest.er1 >conftest.err
17532   rm -f conftest.er1
17533   cat conftest.err >&5
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } &&
17536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538   (eval $ac_try) 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; } &&
17542          { ac_try='test -s conftest.$ac_objext'
17543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544   (eval $ac_try) 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; }; then
17548   ac_cv_member_sg_io_hdr_t_interface_id=yes
17549 else
17550   echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553 cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h.  */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h.  */
17559 #include <sys/types.h>
17560 #ifdef HAVE_SCSI_SG_H
17561 #include <scsi/sg.h>
17562 #endif
17563
17564 int
17565 main ()
17566 {
17567 static sg_io_hdr_t ac_aggr;
17568 if (sizeof ac_aggr.interface_id)
17569 return 0;
17570   ;
17571   return 0;
17572 }
17573 _ACEOF
17574 rm -f conftest.$ac_objext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576   (eval $ac_compile) 2>conftest.er1
17577   ac_status=$?
17578   grep -v '^ *+' conftest.er1 >conftest.err
17579   rm -f conftest.er1
17580   cat conftest.err >&5
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); } &&
17583          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585   (eval $ac_try) 2>&5
17586   ac_status=$?
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); }; } &&
17589          { ac_try='test -s conftest.$ac_objext'
17590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591   (eval $ac_try) 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); }; }; then
17595   ac_cv_member_sg_io_hdr_t_interface_id=yes
17596 else
17597   echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 ac_cv_member_sg_io_hdr_t_interface_id=no
17601 fi
17602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17603 fi
17604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17605 fi
17606 echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
17607 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6
17608 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
17609
17610 cat >>confdefs.h <<_ACEOF
17611 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
17612 _ACEOF
17613
17614
17615 fi
17616
17617
17618 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
17619 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
17620 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
17621   echo $ECHO_N "(cached) $ECHO_C" >&6
17622 else
17623   cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h.  */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h.  */
17629 #include <signal.h>
17630
17631 int
17632 main ()
17633 {
17634 static siginfo_t ac_aggr;
17635 if (ac_aggr.si_fd)
17636 return 0;
17637   ;
17638   return 0;
17639 }
17640 _ACEOF
17641 rm -f conftest.$ac_objext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643   (eval $ac_compile) 2>conftest.er1
17644   ac_status=$?
17645   grep -v '^ *+' conftest.er1 >conftest.err
17646   rm -f conftest.er1
17647   cat conftest.err >&5
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } &&
17650          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652   (eval $ac_try) 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); }; } &&
17656          { ac_try='test -s conftest.$ac_objext'
17657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658   (eval $ac_try) 2>&5
17659   ac_status=$?
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); }; }; then
17662   ac_cv_member_siginfo_t_si_fd=yes
17663 else
17664   echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17666
17667 cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h.  */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h.  */
17673 #include <signal.h>
17674
17675 int
17676 main ()
17677 {
17678 static siginfo_t ac_aggr;
17679 if (sizeof ac_aggr.si_fd)
17680 return 0;
17681   ;
17682   return 0;
17683 }
17684 _ACEOF
17685 rm -f conftest.$ac_objext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17687   (eval $ac_compile) 2>conftest.er1
17688   ac_status=$?
17689   grep -v '^ *+' conftest.er1 >conftest.err
17690   rm -f conftest.er1
17691   cat conftest.err >&5
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); } &&
17694          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696   (eval $ac_try) 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; } &&
17700          { ac_try='test -s conftest.$ac_objext'
17701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702   (eval $ac_try) 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; }; then
17706   ac_cv_member_siginfo_t_si_fd=yes
17707 else
17708   echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711 ac_cv_member_siginfo_t_si_fd=no
17712 fi
17713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17714 fi
17715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17716 fi
17717 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
17718 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
17719 if test $ac_cv_member_siginfo_t_si_fd = yes; then
17720
17721 cat >>confdefs.h <<_ACEOF
17722 #define HAVE_SIGINFO_T_SI_FD 1
17723 _ACEOF
17724
17725
17726 fi
17727
17728
17729 echo "$as_me:$LINENO: checking for struct option.name" >&5
17730 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
17731 if test "${ac_cv_member_struct_option_name+set}" = set; then
17732   echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734   cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h.  */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h.  */
17740 #ifdef HAVE_GETOPT_H
17741 #include <getopt.h>
17742 #endif
17743
17744 int
17745 main ()
17746 {
17747 static struct option ac_aggr;
17748 if (ac_aggr.name)
17749 return 0;
17750   ;
17751   return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17756   (eval $ac_compile) 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765   (eval $ac_try) 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; } &&
17769          { ac_try='test -s conftest.$ac_objext'
17770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771   (eval $ac_try) 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; }; then
17775   ac_cv_member_struct_option_name=yes
17776 else
17777   echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17779
17780 cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h.  */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h.  */
17786 #ifdef HAVE_GETOPT_H
17787 #include <getopt.h>
17788 #endif
17789
17790 int
17791 main ()
17792 {
17793 static struct option ac_aggr;
17794 if (sizeof ac_aggr.name)
17795 return 0;
17796   ;
17797   return 0;
17798 }
17799 _ACEOF
17800 rm -f conftest.$ac_objext
17801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17802   (eval $ac_compile) 2>conftest.er1
17803   ac_status=$?
17804   grep -v '^ *+' conftest.er1 >conftest.err
17805   rm -f conftest.er1
17806   cat conftest.err >&5
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); } &&
17809          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811   (eval $ac_try) 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); }; } &&
17815          { ac_try='test -s conftest.$ac_objext'
17816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817   (eval $ac_try) 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); }; }; then
17821   ac_cv_member_struct_option_name=yes
17822 else
17823   echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17825
17826 ac_cv_member_struct_option_name=no
17827 fi
17828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17829 fi
17830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17831 fi
17832 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
17833 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
17834 if test $ac_cv_member_struct_option_name = yes; then
17835
17836 cat >>confdefs.h <<_ACEOF
17837 #define HAVE_STRUCT_OPTION_NAME 1
17838 _ACEOF
17839
17840
17841 fi
17842
17843
17844 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17845 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17846 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17847   echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849   cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h.  */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h.  */
17855 $ac_includes_default
17856 int
17857 main ()
17858 {
17859 static struct stat ac_aggr;
17860 if (ac_aggr.st_blocks)
17861 return 0;
17862   ;
17863   return 0;
17864 }
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17868   (eval $ac_compile) 2>conftest.er1
17869   ac_status=$?
17870   grep -v '^ *+' conftest.er1 >conftest.err
17871   rm -f conftest.er1
17872   cat conftest.err >&5
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); } &&
17875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; } &&
17881          { ac_try='test -s conftest.$ac_objext'
17882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883   (eval $ac_try) 2>&5
17884   ac_status=$?
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); }; }; then
17887   ac_cv_member_struct_stat_st_blocks=yes
17888 else
17889   echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17891
17892 cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h.  */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h.  */
17898 $ac_includes_default
17899 int
17900 main ()
17901 {
17902 static struct stat ac_aggr;
17903 if (sizeof ac_aggr.st_blocks)
17904 return 0;
17905   ;
17906   return 0;
17907 }
17908 _ACEOF
17909 rm -f conftest.$ac_objext
17910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17911   (eval $ac_compile) 2>conftest.er1
17912   ac_status=$?
17913   grep -v '^ *+' conftest.er1 >conftest.err
17914   rm -f conftest.er1
17915   cat conftest.err >&5
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); } &&
17918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920   (eval $ac_try) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; } &&
17924          { ac_try='test -s conftest.$ac_objext'
17925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926   (eval $ac_try) 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); }; }; then
17930   ac_cv_member_struct_stat_st_blocks=yes
17931 else
17932   echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17934
17935 ac_cv_member_struct_stat_st_blocks=no
17936 fi
17937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17938 fi
17939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17940 fi
17941 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17942 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17943 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17944
17945 cat >>confdefs.h <<_ACEOF
17946 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17947 _ACEOF
17948
17949
17950 fi
17951
17952
17953 echo "$as_me:$LINENO: checking for timezone variable" >&5
17954 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
17955 if test "${ac_cv_have_timezone+set}" = set; then
17956   echo $ECHO_N "(cached) $ECHO_C" >&6
17957 else
17958   cat >conftest.$ac_ext <<_ACEOF
17959 /* confdefs.h.  */
17960 _ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h.  */
17964 #include <time.h>
17965 int
17966 main ()
17967 {
17968 timezone;
17969   ;
17970   return 0;
17971 }
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17975   (eval $ac_link) 2>conftest.er1
17976   ac_status=$?
17977   grep -v '^ *+' conftest.er1 >conftest.err
17978   rm -f conftest.er1
17979   cat conftest.err >&5
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); } &&
17982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984   (eval $ac_try) 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); }; } &&
17988          { ac_try='test -s conftest$ac_exeext'
17989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990   (eval $ac_try) 2>&5
17991   ac_status=$?
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); }; }; then
17994   ac_cv_have_timezone="yes"
17995 else
17996   echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999 ac_cv_have_timezone="no"
18000 fi
18001 rm -f conftest.err conftest.$ac_objext \
18002       conftest$ac_exeext conftest.$ac_ext
18003 fi
18004 echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
18005 echo "${ECHO_T}$ac_cv_have_timezone" >&6
18006 if test "$ac_cv_have_timezone" = "yes"
18007 then
18008
18009 cat >>confdefs.h <<\_ACEOF
18010 #define HAVE_TIMEZONE 1
18011 _ACEOF
18012
18013 fi
18014 echo "$as_me:$LINENO: checking for daylight variable" >&5
18015 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
18016 if test "${ac_cv_have_daylight+set}" = set; then
18017   echo $ECHO_N "(cached) $ECHO_C" >&6
18018 else
18019   cat >conftest.$ac_ext <<_ACEOF
18020 /* confdefs.h.  */
18021 _ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h.  */
18025 #include <time.h>
18026 int
18027 main ()
18028 {
18029 daylight;
18030   ;
18031   return 0;
18032 }
18033 _ACEOF
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036   (eval $ac_link) 2>conftest.er1
18037   ac_status=$?
18038   grep -v '^ *+' conftest.er1 >conftest.err
18039   rm -f conftest.er1
18040   cat conftest.err >&5
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); } &&
18043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045   (eval $ac_try) 2>&5
18046   ac_status=$?
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); }; } &&
18049          { ac_try='test -s conftest$ac_exeext'
18050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051   (eval $ac_try) 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); }; }; then
18055   ac_cv_have_daylight="yes"
18056 else
18057   echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060 ac_cv_have_daylight="no"
18061 fi
18062 rm -f conftest.err conftest.$ac_objext \
18063       conftest$ac_exeext conftest.$ac_ext
18064 fi
18065 echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
18066 echo "${ECHO_T}$ac_cv_have_daylight" >&6
18067 if test "$ac_cv_have_daylight" = "yes"
18068 then
18069
18070 cat >>confdefs.h <<\_ACEOF
18071 #define HAVE_DAYLIGHT 1
18072 _ACEOF
18073
18074 fi
18075
18076
18077 case $host_cpu in
18078   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
18079 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
18080 if test "${ac_cv_cpp_def___i386__+set}" = set; then
18081   echo $ECHO_N "(cached) $ECHO_C" >&6
18082 else
18083   cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089 #ifndef __i386__
18090 yes
18091 #endif
18092 _ACEOF
18093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18094   $EGREP "yes" >/dev/null 2>&1; then
18095   ac_cv_cpp_def___i386__=yes
18096 else
18097   ac_cv_cpp_def___i386__=no
18098 fi
18099 rm -f conftest*
18100
18101 fi
18102 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
18103 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
18104 if test $ac_cv_cpp_def___i386__ = yes; then
18105   CFLAGS="$CFLAGS -D__i386__"
18106   LINTFLAGS="$LINTFLAGS -D__i386__"
18107 fi
18108  ;;
18109   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
18110 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
18111 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
18112   echo $ECHO_N "(cached) $ECHO_C" >&6
18113 else
18114   cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h.  */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h.  */
18120 #ifndef __ALPHA__
18121 yes
18122 #endif
18123 _ACEOF
18124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18125   $EGREP "yes" >/dev/null 2>&1; then
18126   ac_cv_cpp_def___ALPHA__=yes
18127 else
18128   ac_cv_cpp_def___ALPHA__=no
18129 fi
18130 rm -f conftest*
18131
18132 fi
18133 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
18134 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
18135 if test $ac_cv_cpp_def___ALPHA__ = yes; then
18136   CFLAGS="$CFLAGS -D__ALPHA__"
18137   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
18138 fi
18139  ;;
18140   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
18141 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
18142 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
18143   echo $ECHO_N "(cached) $ECHO_C" >&6
18144 else
18145   cat >conftest.$ac_ext <<_ACEOF
18146 /* confdefs.h.  */
18147 _ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h.  */
18151 #ifndef __sparc__
18152 yes
18153 #endif
18154 _ACEOF
18155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18156   $EGREP "yes" >/dev/null 2>&1; then
18157   ac_cv_cpp_def___sparc__=yes
18158 else
18159   ac_cv_cpp_def___sparc__=no
18160 fi
18161 rm -f conftest*
18162
18163 fi
18164 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
18165 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
18166 if test $ac_cv_cpp_def___sparc__ = yes; then
18167   CFLAGS="$CFLAGS -D__sparc__"
18168   LINTFLAGS="$LINTFLAGS -D__sparc__"
18169 fi
18170  ;;
18171   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
18172 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
18173 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
18174   echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176   cat >conftest.$ac_ext <<_ACEOF
18177 /* confdefs.h.  */
18178 _ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h.  */
18182 #ifndef __powerpc__
18183 yes
18184 #endif
18185 _ACEOF
18186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18187   $EGREP "yes" >/dev/null 2>&1; then
18188   ac_cv_cpp_def___powerpc__=yes
18189 else
18190   ac_cv_cpp_def___powerpc__=no
18191 fi
18192 rm -f conftest*
18193
18194 fi
18195 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
18196 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
18197 if test $ac_cv_cpp_def___powerpc__ = yes; then
18198   CFLAGS="$CFLAGS -D__powerpc__"
18199   LINTFLAGS="$LINTFLAGS -D__powerpc__"
18200 fi
18201  ;;
18202 esac
18203
18204 case $host_vendor in
18205   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
18206 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
18207 if test "${ac_cv_cpp_def___sun__+set}" = set; then
18208   echo $ECHO_N "(cached) $ECHO_C" >&6
18209 else
18210   cat >conftest.$ac_ext <<_ACEOF
18211 /* confdefs.h.  */
18212 _ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h.  */
18216 #ifndef __sun__
18217 yes
18218 #endif
18219 _ACEOF
18220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18221   $EGREP "yes" >/dev/null 2>&1; then
18222   ac_cv_cpp_def___sun__=yes
18223 else
18224   ac_cv_cpp_def___sun__=no
18225 fi
18226 rm -f conftest*
18227
18228 fi
18229 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
18230 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
18231 if test $ac_cv_cpp_def___sun__ = yes; then
18232   CFLAGS="$CFLAGS -D__sun__"
18233   LINTFLAGS="$LINTFLAGS -D__sun__"
18234 fi
18235  ;;
18236 esac
18237
18238
18239
18240
18241
18242           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
18243
18244           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
18245
18246           ac_config_commands="$ac_config_commands dlls/kernel/messages"
18247
18248           ac_config_commands="$ac_config_commands dlls/user/resources"
18249
18250           ac_config_commands="$ac_config_commands dlls/wineps/data"
18251
18252           ac_config_commands="$ac_config_commands include/wine"
18253
18254
18255 MAKE_RULES=Make.rules
18256
18257
18258 MAKE_DLL_RULES=dlls/Makedll.rules
18259
18260
18261 MAKE_TEST_RULES=dlls/Maketest.rules
18262
18263
18264 MAKE_LIB_RULES=libs/Makelib.rules
18265
18266
18267 MAKE_PROG_RULES=programs/Makeprog.rules
18268
18269
18270                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ac_config_files="$ac_config_files Make.rules dlls/Makedll.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/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/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/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/lzexpand/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/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/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/msxml3/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/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/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/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/usp10/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/mcicda/Makefile dlls/winmm/mciseq/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/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wow32/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/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/hh/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
18271
18272
18273 cat >confcache <<\_ACEOF
18274 # This file is a shell script that caches the results of configure
18275 # tests run on this system so they can be shared between configure
18276 # scripts and configure runs, see configure's option --config-cache.
18277 # It is not useful on other systems.  If it contains results you don't
18278 # want to keep, you may remove or edit it.
18279 #
18280 # config.status only pays attention to the cache file if you give it
18281 # the --recheck option to rerun configure.
18282 #
18283 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18284 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18285 # following values.
18286
18287 _ACEOF
18288
18289 # The following way of writing the cache mishandles newlines in values,
18290 # but we know of no workaround that is simple, portable, and efficient.
18291 # So, don't put newlines in cache variables' values.
18292 # Ultrix sh set writes to stderr and can't be redirected directly,
18293 # and sets the high bit in the cache file unless we assign to the vars.
18294 {
18295   (set) 2>&1 |
18296     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18297     *ac_space=\ *)
18298       # `set' does not quote correctly, so add quotes (double-quote
18299       # substitution turns \\\\ into \\, and sed turns \\ into \).
18300       sed -n \
18301         "s/'/'\\\\''/g;
18302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18303       ;;
18304     *)
18305       # `set' quotes correctly as required by POSIX, so do not add quotes.
18306       sed -n \
18307         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18308       ;;
18309     esac;
18310 } |
18311   sed '
18312      t clear
18313      : clear
18314      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18315      t end
18316      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18317      : end' >>confcache
18318 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18319   if test -w $cache_file; then
18320     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18321     cat confcache >$cache_file
18322   else
18323     echo "not updating unwritable cache $cache_file"
18324   fi
18325 fi
18326 rm -f confcache
18327
18328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18329 # Let make expand exec_prefix.
18330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18331
18332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18334 # trailing colons and then remove the whole line if VPATH becomes empty
18335 # (actually we leave an empty line to preserve line numbers).
18336 if test "x$srcdir" = x.; then
18337   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18338 s/:*\$(srcdir):*/:/;
18339 s/:*\${srcdir}:*/:/;
18340 s/:*@srcdir@:*/:/;
18341 s/^\([^=]*=[     ]*\):*/\1/;
18342 s/:*$//;
18343 s/^[^=]*=[       ]*$//;
18344 }'
18345 fi
18346
18347 DEFS=-DHAVE_CONFIG_H
18348
18349 ac_libobjs=
18350 ac_ltlibobjs=
18351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18352   # 1. Remove the extension, and $U if already installed.
18353   ac_i=`echo "$ac_i" |
18354          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18355   # 2. Add them.
18356   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18357   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18358 done
18359 LIBOBJS=$ac_libobjs
18360
18361 LTLIBOBJS=$ac_ltlibobjs
18362
18363
18364
18365 : ${CONFIG_STATUS=./config.status}
18366 ac_clean_files_save=$ac_clean_files
18367 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18368 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18369 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18370 cat >$CONFIG_STATUS <<_ACEOF
18371 #! $SHELL
18372 # Generated by $as_me.
18373 # Run this file to recreate the current configuration.
18374 # Compiler output produced by configure, useful for debugging
18375 # configure, is in config.log if it exists.
18376
18377 debug=false
18378 ac_cs_recheck=false
18379 ac_cs_silent=false
18380 SHELL=\${CONFIG_SHELL-$SHELL}
18381 _ACEOF
18382
18383 cat >>$CONFIG_STATUS <<\_ACEOF
18384 ## --------------------- ##
18385 ## M4sh Initialization.  ##
18386 ## --------------------- ##
18387
18388 # Be Bourne compatible
18389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18390   emulate sh
18391   NULLCMD=:
18392   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18393   # is contrary to our usage.  Disable this feature.
18394   alias -g '${1+"$@"}'='"$@"'
18395 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18396   set -o posix
18397 fi
18398 DUALCASE=1; export DUALCASE # for MKS sh
18399
18400 # Support unset when possible.
18401 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18402   as_unset=unset
18403 else
18404   as_unset=false
18405 fi
18406
18407
18408 # Work around bugs in pre-3.0 UWIN ksh.
18409 $as_unset ENV MAIL MAILPATH
18410 PS1='$ '
18411 PS2='> '
18412 PS4='+ '
18413
18414 # NLS nuisances.
18415 for as_var in \
18416   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18417   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18418   LC_TELEPHONE LC_TIME
18419 do
18420   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18421     eval $as_var=C; export $as_var
18422   else
18423     $as_unset $as_var
18424   fi
18425 done
18426
18427 # Required to use basename.
18428 if expr a : '\(a\)' >/dev/null 2>&1; then
18429   as_expr=expr
18430 else
18431   as_expr=false
18432 fi
18433
18434 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18435   as_basename=basename
18436 else
18437   as_basename=false
18438 fi
18439
18440
18441 # Name of the executable.
18442 as_me=`$as_basename "$0" ||
18443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18444          X"$0" : 'X\(//\)$' \| \
18445          X"$0" : 'X\(/\)$' \| \
18446          .     : '\(.\)' 2>/dev/null ||
18447 echo X/"$0" |
18448     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18449           /^X\/\(\/\/\)$/{ s//\1/; q; }
18450           /^X\/\(\/\).*/{ s//\1/; q; }
18451           s/.*/./; q'`
18452
18453
18454 # PATH needs CR, and LINENO needs CR and PATH.
18455 # Avoid depending upon Character Ranges.
18456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18459 as_cr_digits='0123456789'
18460 as_cr_alnum=$as_cr_Letters$as_cr_digits
18461
18462 # The user is always right.
18463 if test "${PATH_SEPARATOR+set}" != set; then
18464   echo "#! /bin/sh" >conf$$.sh
18465   echo  "exit 0"   >>conf$$.sh
18466   chmod +x conf$$.sh
18467   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18468     PATH_SEPARATOR=';'
18469   else
18470     PATH_SEPARATOR=:
18471   fi
18472   rm -f conf$$.sh
18473 fi
18474
18475
18476   as_lineno_1=$LINENO
18477   as_lineno_2=$LINENO
18478   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18479   test "x$as_lineno_1" != "x$as_lineno_2" &&
18480   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18481   # Find who we are.  Look in the path if we contain no path at all
18482   # relative or not.
18483   case $0 in
18484     *[\\/]* ) as_myself=$0 ;;
18485     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18486 for as_dir in $PATH
18487 do
18488   IFS=$as_save_IFS
18489   test -z "$as_dir" && as_dir=.
18490   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18491 done
18492
18493        ;;
18494   esac
18495   # We did not find ourselves, most probably we were run as `sh COMMAND'
18496   # in which case we are not to be found in the path.
18497   if test "x$as_myself" = x; then
18498     as_myself=$0
18499   fi
18500   if test ! -f "$as_myself"; then
18501     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18502 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18503    { (exit 1); exit 1; }; }
18504   fi
18505   case $CONFIG_SHELL in
18506   '')
18507     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18508 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18509 do
18510   IFS=$as_save_IFS
18511   test -z "$as_dir" && as_dir=.
18512   for as_base in sh bash ksh sh5; do
18513          case $as_dir in
18514          /*)
18515            if ("$as_dir/$as_base" -c '
18516   as_lineno_1=$LINENO
18517   as_lineno_2=$LINENO
18518   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18519   test "x$as_lineno_1" != "x$as_lineno_2" &&
18520   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18521              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18522              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18523              CONFIG_SHELL=$as_dir/$as_base
18524              export CONFIG_SHELL
18525              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18526            fi;;
18527          esac
18528        done
18529 done
18530 ;;
18531   esac
18532
18533   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18534   # uniformly replaced by the line number.  The first 'sed' inserts a
18535   # line-number line before each line; the second 'sed' does the real
18536   # work.  The second script uses 'N' to pair each line-number line
18537   # with the numbered line, and appends trailing '-' during
18538   # substitution so that $LINENO is not a special case at line end.
18539   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18540   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18541   sed '=' <$as_myself |
18542     sed '
18543       N
18544       s,$,-,
18545       : loop
18546       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18547       t loop
18548       s,-$,,
18549       s,^['$as_cr_digits']*\n,,
18550     ' >$as_me.lineno &&
18551   chmod +x $as_me.lineno ||
18552     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18553 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18554    { (exit 1); exit 1; }; }
18555
18556   # Don't try to exec as it changes $[0], causing all sort of problems
18557   # (the dirname of $[0] is not the place where we might find the
18558   # original and so on.  Autoconf is especially sensible to this).
18559   . ./$as_me.lineno
18560   # Exit status is that of the last command.
18561   exit
18562 }
18563
18564
18565 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18566   *c*,-n*) ECHO_N= ECHO_C='
18567 ' ECHO_T='      ' ;;
18568   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18569   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18570 esac
18571
18572 if expr a : '\(a\)' >/dev/null 2>&1; then
18573   as_expr=expr
18574 else
18575   as_expr=false
18576 fi
18577
18578 rm -f conf$$ conf$$.exe conf$$.file
18579 echo >conf$$.file
18580 if ln -s conf$$.file conf$$ 2>/dev/null; then
18581   # We could just check for DJGPP; but this test a) works b) is more generic
18582   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18583   if test -f conf$$.exe; then
18584     # Don't use ln at all; we don't have any links
18585     as_ln_s='cp -p'
18586   else
18587     as_ln_s='ln -s'
18588   fi
18589 elif ln conf$$.file conf$$ 2>/dev/null; then
18590   as_ln_s=ln
18591 else
18592   as_ln_s='cp -p'
18593 fi
18594 rm -f conf$$ conf$$.exe conf$$.file
18595
18596 if mkdir -p . 2>/dev/null; then
18597   as_mkdir_p=:
18598 else
18599   test -d ./-p && rmdir ./-p
18600   as_mkdir_p=false
18601 fi
18602
18603 as_executable_p="test -f"
18604
18605 # Sed expression to map a string onto a valid CPP name.
18606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18607
18608 # Sed expression to map a string onto a valid variable name.
18609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18610
18611
18612 # IFS
18613 # We need space, tab and new line, in precisely that order.
18614 as_nl='
18615 '
18616 IFS="   $as_nl"
18617
18618 # CDPATH.
18619 $as_unset CDPATH
18620
18621 exec 6>&1
18622
18623 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18624 # report actual input values of CONFIG_FILES etc. instead of their
18625 # values after options handling.  Logging --version etc. is OK.
18626 exec 5>>config.log
18627 {
18628   echo
18629   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18630 ## Running $as_me. ##
18631 _ASBOX
18632 } >&5
18633 cat >&5 <<_CSEOF
18634
18635 This file was extended by Wine $as_me 20050725, which was
18636 generated by GNU Autoconf 2.59.  Invocation command line was
18637
18638   CONFIG_FILES    = $CONFIG_FILES
18639   CONFIG_HEADERS  = $CONFIG_HEADERS
18640   CONFIG_LINKS    = $CONFIG_LINKS
18641   CONFIG_COMMANDS = $CONFIG_COMMANDS
18642   $ $0 $@
18643
18644 _CSEOF
18645 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18646 echo >&5
18647 _ACEOF
18648
18649 # Files that config.status was made for.
18650 if test -n "$ac_config_files"; then
18651   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18652 fi
18653
18654 if test -n "$ac_config_headers"; then
18655   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18656 fi
18657
18658 if test -n "$ac_config_links"; then
18659   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18660 fi
18661
18662 if test -n "$ac_config_commands"; then
18663   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18664 fi
18665
18666 cat >>$CONFIG_STATUS <<\_ACEOF
18667
18668 ac_cs_usage="\
18669 \`$as_me' instantiates files from templates according to the
18670 current configuration.
18671
18672 Usage: $0 [OPTIONS] [FILE]...
18673
18674   -h, --help       print this help, then exit
18675   -V, --version    print version number, then exit
18676   -q, --quiet      do not print progress messages
18677   -d, --debug      don't remove temporary files
18678       --recheck    update $as_me by reconfiguring in the same conditions
18679   --file=FILE[:TEMPLATE]
18680                    instantiate the configuration file FILE
18681   --header=FILE[:TEMPLATE]
18682                    instantiate the configuration header FILE
18683
18684 Configuration files:
18685 $config_files
18686
18687 Configuration headers:
18688 $config_headers
18689
18690 Configuration commands:
18691 $config_commands
18692
18693 Report bugs to <bug-autoconf@gnu.org>."
18694 _ACEOF
18695
18696 cat >>$CONFIG_STATUS <<_ACEOF
18697 ac_cs_version="\\
18698 Wine config.status 20050725
18699 configured by $0, generated by GNU Autoconf 2.59,
18700   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18701
18702 Copyright (C) 2003 Free Software Foundation, Inc.
18703 This config.status script is free software; the Free Software Foundation
18704 gives unlimited permission to copy, distribute and modify it."
18705 srcdir=$srcdir
18706 INSTALL="$INSTALL"
18707 _ACEOF
18708
18709 cat >>$CONFIG_STATUS <<\_ACEOF
18710 # If no file are specified by the user, then we need to provide default
18711 # value.  By we need to know if files were specified by the user.
18712 ac_need_defaults=:
18713 while test $# != 0
18714 do
18715   case $1 in
18716   --*=*)
18717     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18718     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18719     ac_shift=:
18720     ;;
18721   -*)
18722     ac_option=$1
18723     ac_optarg=$2
18724     ac_shift=shift
18725     ;;
18726   *) # This is not an option, so the user has probably given explicit
18727      # arguments.
18728      ac_option=$1
18729      ac_need_defaults=false;;
18730   esac
18731
18732   case $ac_option in
18733   # Handling of the options.
18734 _ACEOF
18735 cat >>$CONFIG_STATUS <<\_ACEOF
18736   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18737     ac_cs_recheck=: ;;
18738   --version | --vers* | -V )
18739     echo "$ac_cs_version"; exit 0 ;;
18740   --he | --h)
18741     # Conflict between --help and --header
18742     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18743 Try \`$0 --help' for more information." >&5
18744 echo "$as_me: error: ambiguous option: $1
18745 Try \`$0 --help' for more information." >&2;}
18746    { (exit 1); exit 1; }; };;
18747   --help | --hel | -h )
18748     echo "$ac_cs_usage"; exit 0 ;;
18749   --debug | --d* | -d )
18750     debug=: ;;
18751   --file | --fil | --fi | --f )
18752     $ac_shift
18753     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18754     ac_need_defaults=false;;
18755   --header | --heade | --head | --hea )
18756     $ac_shift
18757     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18758     ac_need_defaults=false;;
18759   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18760   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18761     ac_cs_silent=: ;;
18762
18763   # This is an error.
18764   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18765 Try \`$0 --help' for more information." >&5
18766 echo "$as_me: error: unrecognized option: $1
18767 Try \`$0 --help' for more information." >&2;}
18768    { (exit 1); exit 1; }; } ;;
18769
18770   *) ac_config_targets="$ac_config_targets $1" ;;
18771
18772   esac
18773   shift
18774 done
18775
18776 ac_configure_extra_args=
18777
18778 if $ac_cs_silent; then
18779   exec 6>/dev/null
18780   ac_configure_extra_args="$ac_configure_extra_args --silent"
18781 fi
18782
18783 _ACEOF
18784 cat >>$CONFIG_STATUS <<_ACEOF
18785 if \$ac_cs_recheck; then
18786   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18787   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18788 fi
18789
18790 _ACEOF
18791
18792
18793
18794
18795
18796 cat >>$CONFIG_STATUS <<\_ACEOF
18797 for ac_config_target in $ac_config_targets
18798 do
18799   case "$ac_config_target" in
18800   # Handling of arguments.
18801   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
18802   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
18803   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
18804   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
18805   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
18806   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18807   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
18808   "dlls/activeds/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
18809   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
18810   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
18811   "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
18812   "dlls/advpack/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
18813   "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
18814   "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
18815   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
18816   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
18817   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
18818   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
18819   "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
18820   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
18821   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
18822   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
18823   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
18824   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
18825   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
18826   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
18827   "dlls/crypt32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
18828   "dlls/cryptdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
18829   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
18830   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
18831   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
18832   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
18833   "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
18834   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
18835   "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
18836   "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
18837   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
18838   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
18839   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
18840   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
18841   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
18842   "dlls/dinput/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
18843   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
18844   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
18845   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
18846   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
18847   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
18848   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
18849   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
18850   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
18851   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
18852   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
18853   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
18854   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
18855   "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
18856   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
18857   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
18858   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
18859   "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
18860   "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
18861   "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
18862   "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
18863   "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
18864   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
18865   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
18866   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
18867   "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
18868   "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
18869   "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
18870   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
18871   "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
18872   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
18873   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
18874   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
18875   "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
18876   "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
18877   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
18878   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
18879   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
18880   "dlls/lzexpand/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/tests/Makefile" ;;
18881   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
18882   "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
18883   "dlls/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
18884   "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
18885   "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
18886   "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
18887   "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
18888   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
18889   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
18890   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
18891   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
18892   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
18893   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
18894   "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
18895   "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
18896   "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
18897   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
18898   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
18899   "dlls/mshtml/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
18900   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
18901   "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
18902   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
18903   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
18904   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
18905   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
18906   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
18907   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
18908   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
18909   "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
18910   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
18911   "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
18912   "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
18913   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
18914   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
18915   "dlls/msxml3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
18916   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
18917   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
18918   "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
18919   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
18920   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
18921   "dlls/objsel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
18922   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
18923   "dlls/odbccp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
18924   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
18925   "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
18926   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
18927   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
18928   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
18929   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
18930   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
18931   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
18932   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
18933   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
18934   "dlls/powrprof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
18935   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
18936   "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
18937   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
18938   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
18939   "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
18940   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
18941   "dlls/riched20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
18942   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
18943   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
18944   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
18945   "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
18946   "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
18947   "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
18948   "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
18949   "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
18950   "dlls/secur32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
18951   "dlls/sensapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
18952   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
18953   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
18954   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
18955   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
18956   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
18957   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
18958   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
18959   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
18960   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
18961   "dlls/stdole2.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
18962   "dlls/stdole32.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
18963   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
18964   "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
18965   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
18966   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
18967   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
18968   "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
18969   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
18970   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
18971   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
18972   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
18973   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
18974   "dlls/usp10/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
18975   "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
18976   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
18977   "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
18978   "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
18979   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
18980   "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
18981   "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
18982   "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
18983   "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
18984   "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
18985   "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
18986   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
18987   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
18988   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
18989   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
18990   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
18991   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
18992   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
18993   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
18994   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
18995   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
18996   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
18997   "dlls/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
18998   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
18999   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
19000   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
19001   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
19002   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
19003   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
19004   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
19005   "dlls/winmm/wineesd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
19006   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
19007   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
19008   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
19009   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
19010   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
19011   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
19012   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
19013   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
19014   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
19015   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
19016   "dlls/wldap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
19017   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
19018   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
19019   "dlls/wtsapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
19020   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
19021   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
19022   "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
19023   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19024   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
19025   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
19026   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
19027   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
19028   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
19029   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
19030   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
19031   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
19032   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
19033   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
19034   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
19035   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
19036   "programs/hh/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
19037   "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
19038   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
19039   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
19040   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
19041   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
19042   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
19043   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
19044   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
19045   "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
19046   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
19047   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
19048   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
19049   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
19050   "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
19051   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
19052   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
19053   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
19054   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
19055   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
19056   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
19057   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
19058   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
19059   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
19060   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
19061   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
19062   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
19063   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19064   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
19065   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
19066   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
19067   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
19068   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
19069   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
19070   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
19071   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
19072   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
19073   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
19074   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
19075   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
19076   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
19077   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
19078   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19079 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19080    { (exit 1); exit 1; }; };;
19081   esac
19082 done
19083
19084 # If the user did not use the arguments to specify the items to instantiate,
19085 # then the envvar interface is used.  Set only those that are not.
19086 # We use the long form for the default assignment because of an extremely
19087 # bizarre bug on SunOS 4.1.3.
19088 if $ac_need_defaults; then
19089   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19090   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19091   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19092 fi
19093
19094 # Have a temporary directory for convenience.  Make it in the build tree
19095 # simply because there is no reason to put it here, and in addition,
19096 # creating and moving files from /tmp can sometimes cause problems.
19097 # Create a temporary directory, and hook for its removal unless debugging.
19098 $debug ||
19099 {
19100   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19101   trap '{ (exit 1); exit 1; }' 1 2 13 15
19102 }
19103
19104 # Create a (secure) tmp directory for tmp files.
19105
19106 {
19107   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19108   test -n "$tmp" && test -d "$tmp"
19109 }  ||
19110 {
19111   tmp=./confstat$$-$RANDOM
19112   (umask 077 && mkdir $tmp)
19113 } ||
19114 {
19115    echo "$me: cannot create a temporary directory in ." >&2
19116    { (exit 1); exit 1; }
19117 }
19118
19119 _ACEOF
19120
19121 cat >>$CONFIG_STATUS <<_ACEOF
19122
19123 #
19124 # CONFIG_FILES section.
19125 #
19126
19127 # No need to generate the scripts if there are no CONFIG_FILES.
19128 # This happens for instance when ./config.status config.h
19129 if test -n "\$CONFIG_FILES"; then
19130   # Protect against being on the right side of a sed subst in config.status.
19131   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19132    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19133 s,@SHELL@,$SHELL,;t t
19134 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19135 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19136 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19137 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19138 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19139 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19140 s,@exec_prefix@,$exec_prefix,;t t
19141 s,@prefix@,$prefix,;t t
19142 s,@program_transform_name@,$program_transform_name,;t t
19143 s,@bindir@,$bindir,;t t
19144 s,@sbindir@,$sbindir,;t t
19145 s,@libexecdir@,$libexecdir,;t t
19146 s,@datadir@,$datadir,;t t
19147 s,@sysconfdir@,$sysconfdir,;t t
19148 s,@sharedstatedir@,$sharedstatedir,;t t
19149 s,@localstatedir@,$localstatedir,;t t
19150 s,@libdir@,$libdir,;t t
19151 s,@includedir@,$includedir,;t t
19152 s,@oldincludedir@,$oldincludedir,;t t
19153 s,@infodir@,$infodir,;t t
19154 s,@mandir@,$mandir,;t t
19155 s,@build_alias@,$build_alias,;t t
19156 s,@host_alias@,$host_alias,;t t
19157 s,@target_alias@,$target_alias,;t t
19158 s,@DEFS@,$DEFS,;t t
19159 s,@ECHO_C@,$ECHO_C,;t t
19160 s,@ECHO_N@,$ECHO_N,;t t
19161 s,@ECHO_T@,$ECHO_T,;t t
19162 s,@LIBS@,$LIBS,;t t
19163 s,@DLLDEFS@,$DLLDEFS,;t t
19164 s,@build@,$build,;t t
19165 s,@build_cpu@,$build_cpu,;t t
19166 s,@build_vendor@,$build_vendor,;t t
19167 s,@build_os@,$build_os,;t t
19168 s,@host@,$host,;t t
19169 s,@host_cpu@,$host_cpu,;t t
19170 s,@host_vendor@,$host_vendor,;t t
19171 s,@host_os@,$host_os,;t t
19172 s,@WIN16_FILES@,$WIN16_FILES,;t t
19173 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
19174 s,@SET_MAKE@,$SET_MAKE,;t t
19175 s,@CC@,$CC,;t t
19176 s,@CFLAGS@,$CFLAGS,;t t
19177 s,@LDFLAGS@,$LDFLAGS,;t t
19178 s,@CPPFLAGS@,$CPPFLAGS,;t t
19179 s,@ac_ct_CC@,$ac_ct_CC,;t t
19180 s,@EXEEXT@,$EXEEXT,;t t
19181 s,@OBJEXT@,$OBJEXT,;t t
19182 s,@CXX@,$CXX,;t t
19183 s,@CXXFLAGS@,$CXXFLAGS,;t t
19184 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19185 s,@CPPBIN@,$CPPBIN,;t t
19186 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
19187 s,@TOOLSDIR@,$TOOLSDIR,;t t
19188 s,@CPP@,$CPP,;t t
19189 s,@X_CFLAGS@,$X_CFLAGS,;t t
19190 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19191 s,@X_LIBS@,$X_LIBS,;t t
19192 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19193 s,@LEX@,$LEX,;t t
19194 s,@LEXLIB@,$LEXLIB,;t t
19195 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19196 s,@XLEX@,$XLEX,;t t
19197 s,@BISON@,$BISON,;t t
19198 s,@AS@,$AS,;t t
19199 s,@ac_ct_AS@,$ac_ct_AS,;t t
19200 s,@LD@,$LD,;t t
19201 s,@ac_ct_LD@,$ac_ct_LD,;t t
19202 s,@AR@,$AR,;t t
19203 s,@ac_ct_AR@,$ac_ct_AR,;t t
19204 s,@RANLIB@,$RANLIB,;t t
19205 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19206 s,@STRIP@,$STRIP,;t t
19207 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19208 s,@WINDRES@,$WINDRES,;t t
19209 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
19210 s,@LN_S@,$LN_S,;t t
19211 s,@LN@,$LN,;t t
19212 s,@EGREP@,$EGREP,;t t
19213 s,@LDCONFIG@,$LDCONFIG,;t t
19214 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19215 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19216 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19217 s,@LINT@,$LINT,;t t
19218 s,@LINTFLAGS@,$LINTFLAGS,;t t
19219 s,@FONTFORGE@,$FONTFORGE,;t t
19220 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19221 s,@PRELINK@,$PRELINK,;t t
19222 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
19223 s,@XLIB@,$XLIB,;t t
19224 s,@XFILES@,$XFILES,;t t
19225 s,@OPENGLFILES@,$OPENGLFILES,;t t
19226 s,@GLU32FILES@,$GLU32FILES,;t t
19227 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
19228 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
19229 s,@GLUT32FILES@,$GLUT32FILES,;t t
19230 s,@NASLIBS@,$NASLIBS,;t t
19231 s,@XML2LIBS@,$XML2LIBS,;t t
19232 s,@XML2INCL@,$XML2INCL,;t t
19233 s,@CURSESLIBS@,$CURSESLIBS,;t t
19234 s,@sane_devel@,$sane_devel,;t t
19235 s,@SANELIBS@,$SANELIBS,;t t
19236 s,@SANEINCL@,$SANEINCL,;t t
19237 s,@ICULIBS@,$ICULIBS,;t t
19238 s,@LCMSLIBS@,$LCMSLIBS,;t t
19239 s,@LDAPLIBS@,$LDAPLIBS,;t t
19240 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
19241 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
19242 s,@ft_devel@,$ft_devel,;t t
19243 s,@ft_devel2@,$ft_devel2,;t t
19244 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
19245 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
19246 s,@ARTSLIBS@,$ARTSLIBS,;t t
19247 s,@ARTSINCL@,$ARTSINCL,;t t
19248 s,@ESDCONFIG@,$ESDCONFIG,;t t
19249 s,@ESDLIBS@,$ESDLIBS,;t t
19250 s,@ESDINCL@,$ESDINCL,;t t
19251 s,@ALSALIBS@,$ALSALIBS,;t t
19252 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
19253 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
19254 s,@BUILTINFLAG@,$BUILTINFLAG,;t t
19255 s,@DLLEXT@,$DLLEXT,;t t
19256 s,@DLLFLAGS@,$DLLFLAGS,;t t
19257 s,@DLLIBS@,$DLLIBS,;t t
19258 s,@LDSHARED@,$LDSHARED,;t t
19259 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
19260 s,@LIBEXT@,$LIBEXT,;t t
19261 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
19262 s,@DLLTOOL@,$DLLTOOL,;t t
19263 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
19264 s,@DLLWRAP@,$DLLWRAP,;t t
19265 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
19266 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
19267 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
19268 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
19269 s,@IOKITLIB@,$IOKITLIB,;t t
19270 s,@CROSSTEST@,$CROSSTEST,;t t
19271 s,@CROSSCC@,$CROSSCC,;t t
19272 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
19273 s,@LDPATH@,$LDPATH,;t t
19274 s,@CRTLIBS@,$CRTLIBS,;t t
19275 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
19276 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
19277 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
19278 s,@LDD@,$LDD,;t t
19279 s,@LIBOBJS@,$LIBOBJS,;t t
19280 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19281 /@MAKE_RULES@/r $MAKE_RULES
19282 s,@MAKE_RULES@,,;t t
19283 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
19284 s,@MAKE_DLL_RULES@,,;t t
19285 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
19286 s,@MAKE_TEST_RULES@,,;t t
19287 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
19288 s,@MAKE_LIB_RULES@,,;t t
19289 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
19290 s,@MAKE_PROG_RULES@,,;t t
19291 CEOF
19292
19293 _ACEOF
19294
19295   cat >>$CONFIG_STATUS <<\_ACEOF
19296   # Split the substitutions into bite-sized pieces for seds with
19297   # small command number limits, like on Digital OSF/1 and HP-UX.
19298   ac_max_sed_lines=48
19299   ac_sed_frag=1 # Number of current file.
19300   ac_beg=1 # First line for current file.
19301   ac_end=$ac_max_sed_lines # Line after last line for current file.
19302   ac_more_lines=:
19303   ac_sed_cmds=
19304   while $ac_more_lines; do
19305     if test $ac_beg -gt 1; then
19306       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19307     else
19308       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19309     fi
19310     if test ! -s $tmp/subs.frag; then
19311       ac_more_lines=false
19312     else
19313       # The purpose of the label and of the branching condition is to
19314       # speed up the sed processing (if there are no `@' at all, there
19315       # is no need to browse any of the substitutions).
19316       # These are the two extra sed commands mentioned above.
19317       (echo ':t
19318   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19319       if test -z "$ac_sed_cmds"; then
19320         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19321       else
19322         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19323       fi
19324       ac_sed_frag=`expr $ac_sed_frag + 1`
19325       ac_beg=$ac_end
19326       ac_end=`expr $ac_end + $ac_max_sed_lines`
19327     fi
19328   done
19329   if test -z "$ac_sed_cmds"; then
19330     ac_sed_cmds=cat
19331   fi
19332 fi # test -n "$CONFIG_FILES"
19333
19334 _ACEOF
19335 cat >>$CONFIG_STATUS <<\_ACEOF
19336 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19337   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19338   case $ac_file in
19339   - | *:- | *:-:* ) # input from stdin
19340         cat >$tmp/stdin
19341         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19342         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19343   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19344         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19345   * )   ac_file_in=$ac_file.in ;;
19346   esac
19347
19348   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19349   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19350 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19351          X"$ac_file" : 'X\(//\)[^/]' \| \
19352          X"$ac_file" : 'X\(//\)$' \| \
19353          X"$ac_file" : 'X\(/\)' \| \
19354          .     : '\(.\)' 2>/dev/null ||
19355 echo X"$ac_file" |
19356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19357           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19358           /^X\(\/\/\)$/{ s//\1/; q; }
19359           /^X\(\/\).*/{ s//\1/; q; }
19360           s/.*/./; q'`
19361   { if $as_mkdir_p; then
19362     mkdir -p "$ac_dir"
19363   else
19364     as_dir="$ac_dir"
19365     as_dirs=
19366     while test ! -d "$as_dir"; do
19367       as_dirs="$as_dir $as_dirs"
19368       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19370          X"$as_dir" : 'X\(//\)[^/]' \| \
19371          X"$as_dir" : 'X\(//\)$' \| \
19372          X"$as_dir" : 'X\(/\)' \| \
19373          .     : '\(.\)' 2>/dev/null ||
19374 echo X"$as_dir" |
19375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19376           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19377           /^X\(\/\/\)$/{ s//\1/; q; }
19378           /^X\(\/\).*/{ s//\1/; q; }
19379           s/.*/./; q'`
19380     done
19381     test ! -n "$as_dirs" || mkdir $as_dirs
19382   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19383 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19384    { (exit 1); exit 1; }; }; }
19385
19386   ac_builddir=.
19387
19388 if test "$ac_dir" != .; then
19389   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19390   # A "../" for each directory in $ac_dir_suffix.
19391   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19392 else
19393   ac_dir_suffix= ac_top_builddir=
19394 fi
19395
19396 case $srcdir in
19397   .)  # No --srcdir option.  We are building in place.
19398     ac_srcdir=.
19399     if test -z "$ac_top_builddir"; then
19400        ac_top_srcdir=.
19401     else
19402        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19403     fi ;;
19404   [\\/]* | ?:[\\/]* )  # Absolute path.
19405     ac_srcdir=$srcdir$ac_dir_suffix;
19406     ac_top_srcdir=$srcdir ;;
19407   *) # Relative path.
19408     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19409     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19410 esac
19411
19412 # Do not use `cd foo && pwd` to compute absolute paths, because
19413 # the directories may not exist.
19414 case `pwd` in
19415 .) ac_abs_builddir="$ac_dir";;
19416 *)
19417   case "$ac_dir" in
19418   .) ac_abs_builddir=`pwd`;;
19419   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19420   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19421   esac;;
19422 esac
19423 case $ac_abs_builddir in
19424 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19425 *)
19426   case ${ac_top_builddir}. in
19427   .) ac_abs_top_builddir=$ac_abs_builddir;;
19428   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19429   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19430   esac;;
19431 esac
19432 case $ac_abs_builddir in
19433 .) ac_abs_srcdir=$ac_srcdir;;
19434 *)
19435   case $ac_srcdir in
19436   .) ac_abs_srcdir=$ac_abs_builddir;;
19437   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19438   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19439   esac;;
19440 esac
19441 case $ac_abs_builddir in
19442 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19443 *)
19444   case $ac_top_srcdir in
19445   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19446   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19447   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19448   esac;;
19449 esac
19450
19451
19452   case $INSTALL in
19453   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19454   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19455   esac
19456
19457   # Let's still pretend it is `configure' which instantiates (i.e., don't
19458   # use $as_me), people would be surprised to read:
19459   #    /* config.h.  Generated by config.status.  */
19460   if test x"$ac_file" = x-; then
19461     configure_input=
19462   else
19463     configure_input="$ac_file.  "
19464   fi
19465   configure_input=$configure_input"Generated from `echo $ac_file_in |
19466                                      sed 's,.*/,,'` by configure."
19467
19468   # First look for the input files in the build tree, otherwise in the
19469   # src tree.
19470   ac_file_inputs=`IFS=:
19471     for f in $ac_file_in; do
19472       case $f in
19473       -) echo $tmp/stdin ;;
19474       [\\/$]*)
19475          # Absolute (can't be DOS-style, as IFS=:)
19476          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19477 echo "$as_me: error: cannot find input file: $f" >&2;}
19478    { (exit 1); exit 1; }; }
19479          echo "$f";;
19480       *) # Relative
19481          if test -f "$f"; then
19482            # Build tree
19483            echo "$f"
19484          elif test -f "$srcdir/$f"; then
19485            # Source tree
19486            echo "$srcdir/$f"
19487          else
19488            # /dev/null tree
19489            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19490 echo "$as_me: error: cannot find input file: $f" >&2;}
19491    { (exit 1); exit 1; }; }
19492          fi;;
19493       esac
19494     done` || { (exit 1); exit 1; }
19495
19496   if test x"$ac_file" != x-; then
19497     { echo "$as_me:$LINENO: creating $ac_file" >&5
19498 echo "$as_me: creating $ac_file" >&6;}
19499     rm -f "$ac_file"
19500   fi
19501 _ACEOF
19502 cat >>$CONFIG_STATUS <<_ACEOF
19503   sed "$ac_vpsub
19504 $extrasub
19505 _ACEOF
19506 cat >>$CONFIG_STATUS <<\_ACEOF
19507 :t
19508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19509 s,@configure_input@,$configure_input,;t t
19510 s,@srcdir@,$ac_srcdir,;t t
19511 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19512 s,@top_srcdir@,$ac_top_srcdir,;t t
19513 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19514 s,@builddir@,$ac_builddir,;t t
19515 s,@abs_builddir@,$ac_abs_builddir,;t t
19516 s,@top_builddir@,$ac_top_builddir,;t t
19517 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19518 s,@INSTALL@,$ac_INSTALL,;t t
19519 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19520   rm -f $tmp/stdin
19521   if test x"$ac_file" != x-; then
19522     mv $tmp/out $ac_file
19523   else
19524     cat $tmp/out
19525     rm -f $tmp/out
19526   fi
19527
19528 done
19529 _ACEOF
19530 cat >>$CONFIG_STATUS <<\_ACEOF
19531
19532 #
19533 # CONFIG_HEADER section.
19534 #
19535
19536 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19537 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19538 #
19539 # ac_d sets the value in "#define NAME VALUE" lines.
19540 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
19541 ac_dB='[         ].*$,\1#\2'
19542 ac_dC=' '
19543 ac_dD=',;t'
19544 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19545 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19546 ac_uB='$,\1#\2define\3'
19547 ac_uC=' '
19548 ac_uD=',;t'
19549
19550 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19551   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19552   case $ac_file in
19553   - | *:- | *:-:* ) # input from stdin
19554         cat >$tmp/stdin
19555         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19556         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19557   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19558         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19559   * )   ac_file_in=$ac_file.in ;;
19560   esac
19561
19562   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19563 echo "$as_me: creating $ac_file" >&6;}
19564
19565   # First look for the input files in the build tree, otherwise in the
19566   # src tree.
19567   ac_file_inputs=`IFS=:
19568     for f in $ac_file_in; do
19569       case $f in
19570       -) echo $tmp/stdin ;;
19571       [\\/$]*)
19572          # Absolute (can't be DOS-style, as IFS=:)
19573          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19574 echo "$as_me: error: cannot find input file: $f" >&2;}
19575    { (exit 1); exit 1; }; }
19576          # Do quote $f, to prevent DOS paths from being IFS'd.
19577          echo "$f";;
19578       *) # Relative
19579          if test -f "$f"; then
19580            # Build tree
19581            echo "$f"
19582          elif test -f "$srcdir/$f"; then
19583            # Source tree
19584            echo "$srcdir/$f"
19585          else
19586            # /dev/null tree
19587            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19588 echo "$as_me: error: cannot find input file: $f" >&2;}
19589    { (exit 1); exit 1; }; }
19590          fi;;
19591       esac
19592     done` || { (exit 1); exit 1; }
19593   # Remove the trailing spaces.
19594   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
19595
19596 _ACEOF
19597
19598 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19599 # `conftest.undefs', that substitutes the proper values into
19600 # config.h.in to produce config.h.  The first handles `#define'
19601 # templates, and the second `#undef' templates.
19602 # And first: Protect against being on the right side of a sed subst in
19603 # config.status.  Protect against being in an unquoted here document
19604 # in config.status.
19605 rm -f conftest.defines conftest.undefs
19606 # Using a here document instead of a string reduces the quoting nightmare.
19607 # Putting comments in sed scripts is not portable.
19608 #
19609 # `end' is used to avoid that the second main sed command (meant for
19610 # 0-ary CPP macros) applies to n-ary macro definitions.
19611 # See the Autoconf documentation for `clear'.
19612 cat >confdef2sed.sed <<\_ACEOF
19613 s/[\\&,]/\\&/g
19614 s,[\\$`],\\&,g
19615 t clear
19616 : clear
19617 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19618 t end
19619 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19620 : end
19621 _ACEOF
19622 # If some macros were called several times there might be several times
19623 # the same #defines, which is useless.  Nevertheless, we may not want to
19624 # sort them, since we want the *last* AC-DEFINE to be honored.
19625 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19626 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19627 rm -f confdef2sed.sed
19628
19629 # This sed command replaces #undef with comments.  This is necessary, for
19630 # example, in the case of _POSIX_SOURCE, which is predefined and required
19631 # on some systems where configure will not decide to define it.
19632 cat >>conftest.undefs <<\_ACEOF
19633 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19634 _ACEOF
19635
19636 # Break up conftest.defines because some shells have a limit on the size
19637 # of here documents, and old seds have small limits too (100 cmds).
19638 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19639 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19640 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19641 echo '  :' >>$CONFIG_STATUS
19642 rm -f conftest.tail
19643 while grep . conftest.defines >/dev/null
19644 do
19645   # Write a limited-size here document to $tmp/defines.sed.
19646   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19647   # Speed up: don't consider the non `#define' lines.
19648   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
19649   # Work around the forget-to-reset-the-flag bug.
19650   echo 't clr' >>$CONFIG_STATUS
19651   echo ': clr' >>$CONFIG_STATUS
19652   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19653   echo 'CEOF
19654   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19655   rm -f $tmp/in
19656   mv $tmp/out $tmp/in
19657 ' >>$CONFIG_STATUS
19658   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19659   rm -f conftest.defines
19660   mv conftest.tail conftest.defines
19661 done
19662 rm -f conftest.defines
19663 echo '  fi # grep' >>$CONFIG_STATUS
19664 echo >>$CONFIG_STATUS
19665
19666 # Break up conftest.undefs because some shells have a limit on the size
19667 # of here documents, and old seds have small limits too (100 cmds).
19668 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19669 rm -f conftest.tail
19670 while grep . conftest.undefs >/dev/null
19671 do
19672   # Write a limited-size here document to $tmp/undefs.sed.
19673   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19674   # Speed up: don't consider the non `#undef'
19675   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19676   # Work around the forget-to-reset-the-flag bug.
19677   echo 't clr' >>$CONFIG_STATUS
19678   echo ': clr' >>$CONFIG_STATUS
19679   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19680   echo 'CEOF
19681   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19682   rm -f $tmp/in
19683   mv $tmp/out $tmp/in
19684 ' >>$CONFIG_STATUS
19685   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19686   rm -f conftest.undefs
19687   mv conftest.tail conftest.undefs
19688 done
19689 rm -f conftest.undefs
19690
19691 cat >>$CONFIG_STATUS <<\_ACEOF
19692   # Let's still pretend it is `configure' which instantiates (i.e., don't
19693   # use $as_me), people would be surprised to read:
19694   #    /* config.h.  Generated by config.status.  */
19695   if test x"$ac_file" = x-; then
19696     echo "/* Generated by configure.  */" >$tmp/config.h
19697   else
19698     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19699   fi
19700   cat $tmp/in >>$tmp/config.h
19701   rm -f $tmp/in
19702   if test x"$ac_file" != x-; then
19703     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19704       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19705 echo "$as_me: $ac_file is unchanged" >&6;}
19706     else
19707       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19709          X"$ac_file" : 'X\(//\)[^/]' \| \
19710          X"$ac_file" : 'X\(//\)$' \| \
19711          X"$ac_file" : 'X\(/\)' \| \
19712          .     : '\(.\)' 2>/dev/null ||
19713 echo X"$ac_file" |
19714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19715           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19716           /^X\(\/\/\)$/{ s//\1/; q; }
19717           /^X\(\/\).*/{ s//\1/; q; }
19718           s/.*/./; q'`
19719       { if $as_mkdir_p; then
19720     mkdir -p "$ac_dir"
19721   else
19722     as_dir="$ac_dir"
19723     as_dirs=
19724     while test ! -d "$as_dir"; do
19725       as_dirs="$as_dir $as_dirs"
19726       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19728          X"$as_dir" : 'X\(//\)[^/]' \| \
19729          X"$as_dir" : 'X\(//\)$' \| \
19730          X"$as_dir" : 'X\(/\)' \| \
19731          .     : '\(.\)' 2>/dev/null ||
19732 echo X"$as_dir" |
19733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19734           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19735           /^X\(\/\/\)$/{ s//\1/; q; }
19736           /^X\(\/\).*/{ s//\1/; q; }
19737           s/.*/./; q'`
19738     done
19739     test ! -n "$as_dirs" || mkdir $as_dirs
19740   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19741 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19742    { (exit 1); exit 1; }; }; }
19743
19744       rm -f $ac_file
19745       mv $tmp/config.h $ac_file
19746     fi
19747   else
19748     cat $tmp/config.h
19749     rm -f $tmp/config.h
19750   fi
19751 done
19752 _ACEOF
19753 cat >>$CONFIG_STATUS <<\_ACEOF
19754
19755 #
19756 # CONFIG_COMMANDS section.
19757 #
19758 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19759   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19760   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19761   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19762 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19763          X"$ac_dest" : 'X\(//\)[^/]' \| \
19764          X"$ac_dest" : 'X\(//\)$' \| \
19765          X"$ac_dest" : 'X\(/\)' \| \
19766          .     : '\(.\)' 2>/dev/null ||
19767 echo X"$ac_dest" |
19768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19770           /^X\(\/\/\)$/{ s//\1/; q; }
19771           /^X\(\/\).*/{ s//\1/; q; }
19772           s/.*/./; q'`
19773   { if $as_mkdir_p; then
19774     mkdir -p "$ac_dir"
19775   else
19776     as_dir="$ac_dir"
19777     as_dirs=
19778     while test ! -d "$as_dir"; do
19779       as_dirs="$as_dir $as_dirs"
19780       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19782          X"$as_dir" : 'X\(//\)[^/]' \| \
19783          X"$as_dir" : 'X\(//\)$' \| \
19784          X"$as_dir" : 'X\(/\)' \| \
19785          .     : '\(.\)' 2>/dev/null ||
19786 echo X"$as_dir" |
19787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19789           /^X\(\/\/\)$/{ s//\1/; q; }
19790           /^X\(\/\).*/{ s//\1/; q; }
19791           s/.*/./; q'`
19792     done
19793     test ! -n "$as_dirs" || mkdir $as_dirs
19794   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19795 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19796    { (exit 1); exit 1; }; }; }
19797
19798   ac_builddir=.
19799
19800 if test "$ac_dir" != .; then
19801   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19802   # A "../" for each directory in $ac_dir_suffix.
19803   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19804 else
19805   ac_dir_suffix= ac_top_builddir=
19806 fi
19807
19808 case $srcdir in
19809   .)  # No --srcdir option.  We are building in place.
19810     ac_srcdir=.
19811     if test -z "$ac_top_builddir"; then
19812        ac_top_srcdir=.
19813     else
19814        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19815     fi ;;
19816   [\\/]* | ?:[\\/]* )  # Absolute path.
19817     ac_srcdir=$srcdir$ac_dir_suffix;
19818     ac_top_srcdir=$srcdir ;;
19819   *) # Relative path.
19820     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19821     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19822 esac
19823
19824 # Do not use `cd foo && pwd` to compute absolute paths, because
19825 # the directories may not exist.
19826 case `pwd` in
19827 .) ac_abs_builddir="$ac_dir";;
19828 *)
19829   case "$ac_dir" in
19830   .) ac_abs_builddir=`pwd`;;
19831   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19832   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19833   esac;;
19834 esac
19835 case $ac_abs_builddir in
19836 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19837 *)
19838   case ${ac_top_builddir}. in
19839   .) ac_abs_top_builddir=$ac_abs_builddir;;
19840   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19841   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19842   esac;;
19843 esac
19844 case $ac_abs_builddir in
19845 .) ac_abs_srcdir=$ac_srcdir;;
19846 *)
19847   case $ac_srcdir in
19848   .) ac_abs_srcdir=$ac_abs_builddir;;
19849   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19850   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19851   esac;;
19852 esac
19853 case $ac_abs_builddir in
19854 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19855 *)
19856   case $ac_top_srcdir in
19857   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19858   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19859   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19860   esac;;
19861 esac
19862
19863
19864   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19865 echo "$as_me: executing $ac_dest commands" >&6;}
19866   case $ac_dest in
19867     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
19868 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
19869     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
19870 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
19871     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
19872 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
19873     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
19874 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
19875     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
19876 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
19877     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
19878 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
19879   esac
19880 done
19881 _ACEOF
19882
19883 cat >>$CONFIG_STATUS <<\_ACEOF
19884
19885 { (exit 0); exit 0; }
19886 _ACEOF
19887 chmod +x $CONFIG_STATUS
19888 ac_clean_files=$ac_clean_files_save
19889
19890
19891 # configure is writing to config.log, and then calls config.status.
19892 # config.status does its own redirection, appending to config.log.
19893 # Unfortunately, on DOS this fails, as config.log is still kept open
19894 # by configure, so config.status won't be able to write to it; its
19895 # output is simply discarded.  So we exec the FD to /dev/null,
19896 # effectively closing config.log, so it can be properly (re)opened and
19897 # appended to by config.status.  When coming back to configure, we
19898 # need to make the FD available again.
19899 if test "$no_create" != yes; then
19900   ac_cs_success=:
19901   ac_config_status_args=
19902   test "$silent" = yes &&
19903     ac_config_status_args="$ac_config_status_args --quiet"
19904   exec 5>/dev/null
19905   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19906   exec 5>>config.log
19907   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19908   # would make configure fail if this is the last instruction.
19909   $ac_cs_success || { (exit 1); exit 1; }
19910 fi
19911
19912
19913 if test "$have_x" = "no"
19914 then
19915   echo
19916   echo "*** Warning: X development files not found. Wine will be built without"
19917   echo "*** X support, which currently does not work, and would probably not be"
19918   echo "*** what you want anyway. You will need to install devel packages of"
19919   echo "*** Xlib/Xfree86 at the very least."
19920 fi
19921
19922 if test "$wine_cv_opengl_version_OK" = "no"
19923 then
19924   echo
19925   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
19926   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
19927 fi
19928
19929 if test "$wine_cv_msg_freetype" = "yes"
19930 then
19931   echo
19932   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
19933   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
19934   echo "*** freetype-devel package (or its equivalent on your distribution) to"
19935   echo "*** enable Wine to use TrueType fonts."
19936 fi
19937
19938 if test -z "$ALSALIBS" -a \
19939         -z "$ARTSC_LIBS" -a \
19940         -z "$AUDIOIOLIBS" -a \
19941         -z "$NASLIBS" -a \
19942         -z "$ESD_LIBS" -a \
19943         -z "$ac_cv_lib_soname_jack" -a \
19944         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
19945         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
19946         "$ac_cv_header_soundcard_h" != "yes"
19947 then
19948     echo "*** No sound system was found. Windows applications will be silent."
19949     echo "*** The currently supported sound systems are:"
19950     echo "*** ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS"
19951 fi
19952
19953 echo
19954 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
19955 echo
19956